ShapePolygonPPInit.js 735 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ShapePolygonPP", "Polygo&n (2 Points of Side)"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/ShapePolygonPP.js");
  5. action.setIcon(basePath + "/ShapePolygonPP.svg");
  6. action.setStatusTip(qsTranslate("ShapePolygonPP", "Draw regular polygon from end points of one side"));
  7. action.setDefaultShortcuts([new QKeySequence("p,g,2"), new QKeySequence("h,p")]);
  8. action.setDefaultCommands(["linepolygon2", "polygon2", "pg2"]);
  9. action.setGroupSortOrder(11520);
  10. action.setSortOrder(200);
  11. action.setWidgetNames(["DrawShapeMenu", "ShapeToolBar", "ShapeToolsPanel", "ShapeMatrixPanel"]);
  12. }