Line2PInit.js 639 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("Line2P", "Line from &2 Points"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/Line2P.js");
  5. action.setIcon(basePath + "/Line2P.svg");
  6. action.setStatusTip(qsTranslate("Line2P", "Draw single line or sequence of lines"));
  7. action.setDefaultShortcut(new QKeySequence("l,i"));
  8. action.setDefaultCommands(["line", "ln", "li", "l"]);
  9. action.setGroupSortOrder(6100);
  10. action.setSortOrder(100);
  11. action.setWidgetNames(["DrawLineMenu", "LineToolBar", "LineToolsPanel", "LineMatrixPanel"]);
  12. }