LineParallelThroughInit.js 772 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("LineParallelThrough", "Par&allel (through Point)"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/LineParallelThrough.js");
  5. action.setIcon(basePath + "/LineParallelThrough.svg");
  6. action.setStatusTip(qsTranslate("LineParallelThrough", "Draw parallel line or concentric arc or circle through a given point"));
  7. action.setDefaultShortcut(new QKeySequence("l,g"));
  8. action.setDefaultCommands(["lineparallelthrough", "lineoffsetthrough", "parallelthrough", "lg"]);
  9. action.setGroupSortOrder(6400);
  10. action.setSortOrder(200);
  11. action.setWidgetNames(["DrawLineMenu", "LineToolBar", "LineToolsPanel", "LineMatrixPanel"]);
  12. }