TranslateInit.js 979 B

123456789101112131415161718192021
  1. // function init(basePath) {
  2. // var action = new RGuiAction(qsTranslate("Translate", "&Move / Copy"), RMainWindowQt.getMainWindow());
  3. // action.setRequiresDocument(true);
  4. // action.setRequiresSelection(true);
  5. // action.setScriptFile(basePath + "/Translate.js");
  6. // action.setIcon(basePath + "/Translate.svg");
  7. // // workaround for bug FS#709, cursor freezes
  8. // // after starting tool from docked toolbar
  9. // // affects only Qt 4.8.x on windows
  10. // if (RS.getSystemId() !== "win" || !RSettings.getQtVersionString().startsWith("4.8.")) {
  11. // action.setStatusTip(qsTranslate("Translate", "Move or copy entities once or multiple times"));
  12. // }
  13. // action.setDefaultShortcut(new QKeySequence("m,v"));
  14. // action.setDefaultCommands(["move", "mv"]);
  15. // action.setGroupSortOrder(13100);
  16. // action.setSortOrder(100);
  17. // action.setWidgetNames(["ModifyMenu", "ModifyToolBar", "ModifyToolsPanel", "ModifyMatrixPanel"]);
  18. // }