AddBlockInit.js 620 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("AddBlock", "&Add Empty Block"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/AddBlock.js");
  5. action.setIcon(basePath + "/AddBlock.svg");
  6. action.setDefaultShortcut(new QKeySequence("b,a"));
  7. action.setDefaultCommands(["blockadd", "ba"]);
  8. action.setStatusTip(qsTranslate("AddBlock", "Add new empty block"));
  9. action.setGroupSortOrder(14200);
  10. action.setSortOrder(100);
  11. action.setWidgetNames(["BlockMenu", "BlockToolBar", "BlockToolsPanel", "BlockMatrixPanel"]);
  12. }