RemoveBlockInit.js 632 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("RemoveBlock", "&Remove Block"), RMainWindowQt.getMainWindow());
  3. action.setToolTip(qsTranslate("RemoveBlock", "Delete selected block"));
  4. action.setRequiresDocument(true);
  5. action.setScriptFile(basePath + "/RemoveBlock.js");
  6. action.setIcon(basePath + "/RemoveBlock.svg");
  7. action.setDefaultShortcut(new QKeySequence("b,r"));
  8. action.setDefaultCommands(["blockremove", "br"]);
  9. action.setGroupSortOrder(14300);
  10. action.setSortOrder(100);
  11. action.setWidgetNames(["BlockMenu", "BlockToolBar", "BlockToolsPanel", "BlockMatrixPanel"]);
  12. }