ZoomOutInit.js 613 B

12345678910111213141516
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ZoomOut", "Zoom &Out"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/ZoomOut.js");
  5. action.setIcon(basePath + "/ZoomOut.svg");
  6. action.setDefaultShortcuts([
  7. new QKeySequence("-"),
  8. new QKeySequence(QKeySequence.ZoomOut)
  9. ]);
  10. action.setDefaultCommands(["zoomout"]);
  11. action.setNoState();
  12. action.setGroupSortOrder(3300);
  13. action.setSortOrder(200);
  14. action.setWidgetNames(["ZoomMenu", "ViewToolBar", "ZoomToolsPanel", "ZoomMatrixPanel"]);
  15. }