ExMinimal.js 702 B

123456789101112131415161718192021222324252627
  1. // include("scripts/EAction.js");
  2. // function ExMinimal(guiAction) {
  3. // EAction.call(this, guiAction);
  4. // }
  5. // ExMinimal.prototype = new EAction();
  6. // ExMinimal.prototype.beginEvent = function() {
  7. // EAction.prototype.beginEvent.call(this);
  8. // EAction.handleUserMessage(qsTr("Hello World."));
  9. // this.terminate();
  10. // };
  11. // ExMinimal.init = function(basePath) {
  12. // var action = new RGuiAction(qsTr("&Minimal Example"), RMainWindowQt.getMainWindow());
  13. // action.setRequiresDocument(true);
  14. // action.setScriptFile(basePath + "/ExMinimal.js");
  15. // action.setGroupSortOrder(100000);
  16. // action.setSortOrder(0);
  17. // action.setWidgetNames(["ExamplesMenu"]);
  18. // };