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

Method createMainMenu

GGEasy/interfaces/pluginfile.h:68–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 [[maybe_unused]] FileInterface* file,
67 [[maybe_unused]] QComboBox* cbx) {};
68 virtual void createMainMenu(
69 [[maybe_unused]] QMenu& menu,
70 [[maybe_unused]] FileTree::View* tv)
71 {
72 menu.addAction(QIcon::fromTheme("document-close"), QObject::tr("&Close All Files"), [tv] {
73 if (QMessageBox::question(tv, "", QObject::tr("Really?"), QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
74 tv->closeFiles();
75 });
76 };
77 virtual void updateFileModel([[maybe_unused]] FileInterface* file) {};
78
79 // signals:

Callers

nothing calls this directly

Calls 1

closeFilesMethod · 0.80

Tested by

no test coverage detected