ToggleLayerLockInit.js 578 B

123456789101112
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("ToggleLayerLock", "&Toggle Lock Status"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setScriptFile(basePath + "/ToggleLayerLock.js");
  5. action.setIcon(basePath + "/ToggleLayerLock.svg");
  6. action.setDefaultShortcut(new QKeySequence("y,l"));
  7. action.setDefaultCommands(["layertogglelock", "yl"]);
  8. action.setGroupSortOrder(14100);
  9. action.setSortOrder(250);
  10. action.setWidgetNames(["LayerMenu", "LayerToolBar", "LayerToolsPanel", "LayerMatrixPanel"]);
  11. }