Arc2PLInit.js 626 B

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