MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / execDeleteSheetDialog

Method execDeleteSheetDialog

libs/librepcb/editor/project/projecteditor.cpp:621–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619}
620
621void ProjectEditor::execDeleteSheetDialog(int index) noexcept {
622 Schematic* schematic = mProject->getSchematicByIndex(index);
623 if (!schematic) return;
624
625 emit abortBlockingToolsInOtherEditors(nullptr); // Release undo stack.
626
627 try {
628 mUndoStack->execCmd(new CmdSchematicRemove(*mProject, *schematic));
629 } catch (const Exception& e) {
630 QMessageBox::critical(qApp->activeWindow(), tr("Error"), e.getMsg());
631 }
632}
633
634std::shared_ptr<BoardEditor> ProjectEditor::execNewBoardDialog(
635 std::optional<int> copyFromIndex) noexcept {

Callers 1

triggerSchematicMethod · 0.80

Calls 2

getSchematicByIndexMethod · 0.80
execCmdMethod · 0.45

Tested by

no test coverage detected