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

Method createMainMenu

GGEasy/gcode/gcplugin.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void Plugin::createMainMenu(QMenu& menu, FileTree::View* tv)
49{
50 menu.addAction(QIcon::fromTheme("edit-delete"), tr("&Delete All Toolpaths"), [tv] {
51 if (QMessageBox::question(tv, "", tr("Really?"), QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
52 tv->closeFiles();
53 });
54 menu.addAction(QIcon::fromTheme("document-save-all"), tr("&Save Selected Tool Paths..."),
55 tv, &FileTree::View::saveSelectedGCodeFiles);
56}
57
58SettingsTabInterface* Plugin::createSettingsTab(QWidget* parent)
59{

Callers 1

contextMenuEventMethod · 0.45

Calls 1

closeFilesMethod · 0.80

Tested by

no test coverage detected