SelectAllInit.js 723 B

1234567891011121314151617
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("SelectAll", "Select &All"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/SelectAll.js");
  5. action.setIcon(basePath + "/SelectAll.svg");
  6. action.setStatusTip(qsTranslate("SelectAll", "Select all visible entities"));
  7. action.setDefaultShortcuts([
  8. new QKeySequence("t,a"),
  9. new QKeySequence(QKeySequence.SelectAll)
  10. ]);
  11. action.setDefaultCommands(["selectall", "ta"]);
  12. action.setNoState();
  13. action.setGroupSortOrder(4100);
  14. action.setSortOrder(200);
  15. action.setWidgetNames(["SelectMenu", "SelectToolBar", "SelectToolsPanel", "SelectMatrixPanel"]);
  16. }