InsertBlockInit.js 577 B

123456789101112
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("InsertBlock", "&Insert Block"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/InsertBlock.js");
  5. action.setIcon(basePath + "/InsertBlock.svg");
  6. action.setDefaultShortcut(new QKeySequence("b,i"));
  7. action.setDefaultCommands(["blockinsert", "minsert", "insert", "bi"]);
  8. action.setGroupSortOrder(14500);
  9. action.setSortOrder(100);
  10. action.setWidgetNames(["BlockMenu", "BlockToolBar", "BlockToolsPanel", "BlockMatrixPanel"]);
  11. }