HideAllLayersInit.js 566 B

123456789101112
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("HideAllLayers", "&Hide All Layers"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/HideAllLayers.js");
  5. action.setIcon(basePath + "/HideAllLayers.svg");
  6. action.setDefaultShortcut(new QKeySequence("y,h"));
  7. action.setDefaultCommands(["layerhideall", "yh"]);
  8. action.setGroupSortOrder(14120);
  9. action.setSortOrder(200);
  10. action.setWidgetNames(["LayerMenu", "LayerToolBar", "LayerToolsPanel", "LayerMatrixPanel"]);
  11. }