SelectRectangleInit.js 747 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("SelectRectangle", "(De-)Select &Rectangular Area"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/SelectRectangle.js");
  5. action.setIcon(basePath + "/SelectRectangle.svg");
  6. action.setStatusTip(qsTranslate("SelectRectangle", "(De-)Select all entities inside a rectangle"));
  7. action.setDefaultShortcuts([ new QKeySequence("t,r"), new QKeySequence("t,w") ]);
  8. action.setDefaultCommands(["selectrectangle", "selectwindow", "tr", "tw"]);
  9. action.setGroupSortOrder(4200);
  10. action.setSortOrder(100);
  11. action.setWidgetNames(["SelectMenu", "SelectToolBar", "SelectToolsPanel", "SelectMatrixPanel"]);
  12. }