ZoomInInit.js 690 B

123456789101112131415161718
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ZoomIn", "Zoom &In"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/ZoomIn.js");
  5. action.setIcon(basePath + "/ZoomIn.svg");
  6. action.setDefaultShortcuts([
  7. new QKeySequence("+"),
  8. // workaround for Qt 5.5 bug / convenience:
  9. new QKeySequence("="),
  10. new QKeySequence(QKeySequence.ZoomIn)
  11. ]);
  12. action.setDefaultCommands(["zoomin"]);
  13. action.setNoState();
  14. action.setGroupSortOrder(3300);
  15. action.setSortOrder(100);
  16. action.setWidgetNames(["ZoomMenu", "ViewToolBar", "ZoomToolsPanel", "ZoomMatrixPanel"]);
  17. }