MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / saveGCodeFile

Method saveGCodeFile

GGEasy/mainwindow.cpp:586–600  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

584}
585
586void MainWindow::saveGCodeFile(int id)
587{
588 qDebug();
589 if (m_project->pinsPlacedMessage())
590 return;
591 auto* file = m_project->file<GCode::File>(id);
592 QString name(QFileDialog::getSaveFileName(this, tr("Save GCode file"),
593 GCode::GCUtils::getLastDir().append(file->shortName()),
594 tr("GCode (*.%1)").arg(GCode::Settings::fileExtension())));
595
596 if (name.isEmpty())
597 return;
598
599 file->save(name);
600}
601
602void MainWindow::saveGCodeFiles()
603{

Callers

nothing calls this directly

Calls 5

pinsPlacedMessageMethod · 0.80
shortNameMethod · 0.80
isEmptyMethod · 0.80
appendMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected