| 1031 | } |
| 1032 | |
| 1033 | void 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 | } |
nothing calls this directly
no test coverage detected