MCPcopy Create free account
hub / github.com/LibreCAD/LibreCAD / execComm

Method execComm

plugins/circletools/circletools.cpp:1033–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1031}
1032
1033void CircleToolsPlugin::execComm(Document_Interface* doc, QWidget* parent, QString cmd) {
1034 Q_UNUSED(cmd);
1035 if (!doc) return;
1036
1037 int op = 1;
1038 if (!promptOperationDialog(parent, op)) {
1039 return; // Cancel
1040 }
1041
1042 switch (op) {
1043 case 1: opFindMoveToLayer(doc, parent); break;
1044 case 2: opResizeSelected(doc, parent); break;
1045 case 3: opFindResize(doc, parent); break;
1046 default:
1047 warn(parent, QStringLiteral("CircleTools"), QStringLiteral("Invalid choice."));
1048 break;
1049 }
1050}

Callers

nothing calls this directly

Calls 2

promptOperationDialogFunction · 0.85
warnFunction · 0.85

Tested by

no test coverage detected