HideAllBlocksInit.js 560 B

123456789101112
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("HideAllBlocks", "&Hide All Blocks"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/HideAllBlocks.js");
  5. action.setIcon(basePath + "/HideAllBlocks.svg");
  6. action.setDefaultShortcut(new QKeySequence("b,h"));
  7. action.setDefaultCommands(["blockhideAll"]);
  8. action.setGroupSortOrder(14100);
  9. action.setSortOrder(300);
  10. action.setWidgetNames(["BlockMenu", "BlockToolBar", "BlockToolsPanel", "BlockMatrixPanel"]);
  11. }