InvertSelectionInit.js 709 B

1234567891011121314
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("InvertSelection", "&Invert Selection"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/InvertSelection.js");
  5. action.setIcon(basePath + "/InvertSelection.svg");
  6. action.setStatusTip(qsTranslate("InvertSelection", "Invert the current selection"));
  7. action.setDefaultShortcut(new QKeySequence("t,i"));
  8. action.setDefaultCommands(["selectinvert", "invertselection", "ti"]);
  9. action.setNoState();
  10. action.setGroupSortOrder(4100);
  11. action.setSortOrder(400);
  12. action.setWidgetNames(["SelectMenu", "SelectToolBar", "SelectToolsPanel", "SelectMatrixPanel"]);
  13. }