LineAngleInit.js 640 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("LineAngle", "Line from &Angle"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/LineAngle.js");
  5. action.setIcon(basePath + "/LineAngle.svg");
  6. action.setStatusTip(qsTranslate("LineAngle", "Draw line at a given absolute angle"));
  7. action.setDefaultShortcut(new QKeySequence("l,a"));
  8. action.setDefaultCommands(["lineangle", "la"]);
  9. action.setGroupSortOrder(6100);
  10. action.setSortOrder(200);
  11. action.setWidgetNames(["DrawLineMenu", "LineToolBar", "LineToolsPanel", "LineMatrixPanel"]);
  12. }