Arc2PHInit.js 626 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("Arc2PH", "2 Points and &Height"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/Arc2PH.js");
  5. action.setIcon(basePath + "/Arc2PH.svg");
  6. action.setStatusTip(qsTranslate("Arc2PH", "Draw arc from 2 points and height"));
  7. action.setDefaultShortcut(new QKeySequence("a,h"));
  8. action.setDefaultCommands(["archeight", "ah"]);
  9. action.setGroupSortOrder(7200);
  10. action.setSortOrder(400);
  11. action.setWidgetNames(["DrawArcMenu", "ArcToolBar", "ArcToolsPanel", "ArcMatrixPanel"]);
  12. }