ShapeRectangleSizeInit.js 712 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ShapeRectangleSize", "Rectangle with &Size"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/ShapeRectangleSize.js");
  5. action.setIcon(basePath + "/ShapeRectangleSize.svg");
  6. action.setDefaultShortcut(new QKeySequence("r,s"));
  7. action.setStatusTip(qsTranslate("ShapeRectangleSize", "Draw rectangle with position and size"));
  8. action.setDefaultCommands(["rectanglesize", "linerectanglesize", "rs"]);
  9. action.setGroupSortOrder(11510);
  10. action.setSortOrder(200);
  11. action.setWidgetNames(["DrawShapeMenu", "ShapeToolBar", "ShapeToolsPanel", "ShapeMatrixPanel"]);
  12. }