SelectLayerByEntityInit.js 703 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("SelectLayerByEntity", "(De-)Select La&yer"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/SelectLayerByEntity.js");
  5. action.setIcon(basePath + "/SelectLayerByEntity.svg");
  6. action.setStatusTip(qsTranslate("SelectLayerByEntity", "(De-)Select all entities on the same layer"));
  7. action.setDefaultShortcut(new QKeySequence("t,l"));
  8. action.setDefaultCommands(["selectlayerbyentity", "tl"]);
  9. action.setGroupSortOrder(4300);
  10. action.setSortOrder(300);
  11. action.setWidgetNames(["SelectMenu", "SelectToolBar", "SelectToolsPanel", "SelectMatrixPanel"]);
  12. }