ShowActiveLayerInit.js 576 B

123456789101112
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ShowActiveLayer", "Show &Only Active"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/ShowActiveLayer.js");
  5. action.setIcon(basePath + "/ShowActiveLayer.svg");
  6. action.setDefaultShortcut(new QKeySequence("y,o"));
  7. action.setDefaultCommands(["layershowactive", "yo"]);
  8. action.setGroupSortOrder(14100);
  9. action.setSortOrder(300);
  10. action.setWidgetNames(["LayerMenu", "LayerToolBar", "LayerToolsPanel", "LayerMatrixPanel"]);
  11. }