OpenProjectInit.js 690 B

1234567891011121314151617
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("OpenProject", "&打开工程"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(false);
  4. action.setScriptFile(basePath + "/OpenProject.js");
  5. action.setIcon(basePath + "/OpenProject.svg");
  6. // action.setDefaultShortcuts([
  7. // new QKeySequence(QKeySequence.New),
  8. // // new tab (as known from browsers):
  9. // new QKeySequence("Ctrl+T")
  10. // ]);
  11. // action.setDefaultCommands(["new"]);
  12. action.setNoState();
  13. action.setGroupSortOrder(1000);
  14. action.setSortOrder(102);
  15. action.setWidgetNames(["FileMenu", "FileToolBar", "FileToolsPanel", "FileMatrixPanel"]);
  16. }