EditFromReferenceInit.js 701 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("EditFromReference", "E&dit Block from Reference"), RMainWindowQt.getMainWindow());
  3. action.setToolTip(qsTranslate("EditFromReference", "Edit block based on chosen block reference"));
  4. action.setRequiresDocument(true);
  5. action.setScriptFile(basePath + "/EditFromReference.js");
  6. action.setIcon(basePath + "/EditFromReference.svg");
  7. action.setDefaultShortcut(new QKeySequence("b,d"));
  8. action.setDefaultCommands(["blockeditfromreference", "bd"]);
  9. action.setGroupSortOrder(14350);
  10. action.setSortOrder(300);
  11. action.setWidgetNames(["BlockMenu", "BlockToolBar", "BlockToolsPanel", "BlockMatrixPanel"]);
  12. }