ShapePolygonCPInit.js 732 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ShapePolygonCP", "Pol&ygon (Center, Corner)"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/ShapePolygonCP.js");
  5. action.setIcon(basePath + "/ShapePolygonCP.svg");
  6. action.setStatusTip(qsTranslate("ShapePolygonCP", "Draw regular polygon from center and corner point"));
  7. action.setDefaultShortcuts([new QKeySequence("p,g,1"), new QKeySequence("h,c")]);
  8. action.setDefaultCommands(["linepolygon", "polygon", "pg1"]);
  9. action.setGroupSortOrder(11520);
  10. action.setSortOrder(100);
  11. action.setWidgetNames(["DrawShapeMenu", "ShapeToolBar", "ShapeToolsPanel", "ShapeMatrixPanel"]);
  12. }