ZoomToSelectionInit.js 610 B

12345678910111213
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ZoomToSelection", "Zoom to &Selection"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setRequiresSelection(true);
  5. action.setScriptFile(basePath + "/ZoomToSelection.js");
  6. action.setIcon(basePath + "/ZoomToSelection.svg");
  7. action.setDefaultShortcut(new QKeySequence("z,s"));
  8. action.setDefaultCommands(["zoomselection", "zs"]);
  9. action.setGroupSortOrder(3300);
  10. action.setSortOrder(400);
  11. action.setWidgetNames(["ZoomMenu", "!ViewToolBar", "ZoomToolsPanel", "ZoomMatrixPanel"]);
  12. }