LineOrthogonalTangentInit.js 746 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("LineOrthogonalTangent", "Orthogonal / Tange&nt"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/LineOrthogonalTangent.js");
  5. action.setIcon(basePath + "/LineOrthogonalTangent.svg");
  6. action.setStatusTip(qsTranslate("LineOrthogonalTangent", "Draw line orthogonal to line and tangent to circle, arc or ellipse"));
  7. action.setDefaultShortcut(new QKeySequence("l,n"));
  8. action.setDefaultCommands(["lineorthogonaltangent", "orthotangent"]);
  9. action.setGroupSortOrder(6500);
  10. action.setSortOrder(300);
  11. action.setWidgetNames(["DrawLineMenu", "LineToolBar", "LineToolsPanel", "LineMatrixPanel"]);
  12. }