virtual void addToDrillForm([[maybe_unused]] FileInterface* file, [[maybe_unused]] QComboBox* cbx) {};
| 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 | |
| 112 | signals: |
nothing calls this directly
no test coverage detected