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

Method createMainMenu

GGEasy/interfaces/shapepluginin.h:103–109  ·  view source on GitHub ↗

virtual void addToDrillForm([[maybe_unused]] FileInterface* file, [[maybe_unused]] QComboBox* cbx) {};

Source from the content-addressed store, hash-verified

101 [[nodiscard]] virtual QIcon icon() const = 0;
102 // virtual void addToDrillForm([[maybe_unused]] FileInterface* file, [[maybe_unused]] QComboBox* cbx) {};
103 void createMainMenu(QMenu& menu, FileTree::View* tv)
104 {
105 menu.addAction(QIcon::fromTheme("edit-delete"), QObject::tr("&Delete All Shapes"), [tv] {
106 if (QMessageBox::question(tv, "", QObject::tr("Really?"), QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
107 tv->closeFiles();
108 });
109 };
110 QString folderName() { return QObject::tr("Shapes"); };
111
112signals:

Callers

nothing calls this directly

Calls 1

closeFilesMethod · 0.80

Tested by

no test coverage detected