HatchFromSelectionInit.js 735 B

1234567891011121314
  1. function init(basePath) {
  2. var action = new RGuiAction(qsTranslate("HatchFromSelection", "&Hatch from Selection"), RMainWindowQt.getMainWindow());
  3. action.setRequiresDocument(true);
  4. action.setRequiresSelection(true);
  5. action.setScriptFile(basePath + "/HatchFromSelection.js");
  6. action.setIcon(basePath + "/HatchFromSelection.svg");
  7. action.setStatusTip(qsTranslate("HatchFromSelection", "Create hatch or solid fill from selected boundary"));
  8. action.setDefaultShortcut(new QKeySequence("h,a"));
  9. action.setDefaultCommands(["hatch", "ha"]);
  10. action.setGroupSortOrder(11800);
  11. action.setSortOrder(100);
  12. action.setWidgetNames(["DrawHatchMenu", "HatchToolBar", "HatchToolsPanel", "HatchMatrixPanel"]);
  13. }