| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- include("scripts/EAction.js");
- function GroundDataImport(guiAction) {
- EAction.call(this, guiAction);
- }
- GroundDataImport.prototype = new EAction();
- GroundDataImport.includeBasePath = includeBasePath;
- GroundDataImport.prototype.beginEvent = function() {
- EAction.prototype.beginEvent.call(this);
- if (!isNull(this.getGuiAction()) && this.getGuiAction().objectName==="GroundDataImportToolsPanelAction") {
- EAction.showCadToolBarPanel("GroundDataImportToolsPanel");
- this.terminate();
- }
- };
- GroundDataImport.getMenu = function() {
- var menu = EAction.getSubMenu(Data.getMenu(), 90001, 100, GroundDataImport.getTitle(), "GroundDataImportMenu");
- menu.setProperty("scriptFile", GroundDataImport.includeBasePath + "/GroundDataImport.js");
- return menu;
- };
- GroundDataImport.getToolBar = function() {
- //return EAction.getToolBar(GroundDataImport.getTitle(), "ViewToolBar", undefined, undefined, View.getToolBar());
- return Data.getToolBar();
- };
- // GroundDataImport.getCadToolBarPanel = function() {
- // var mtb = EAction.getMainCadToolBarPanel();
- // var actionName = "GroundDataImportToolsPanelAction";
- // if (!isNull(mtb) && mtb.findChild(actionName)==undefined) {
- // var action = new RGuiAction(qsTr("GroundDataImport Tools"), mtb);
- // action.setScriptFile(GroundDataImport.includeBasePath + "/GroundDataImport.js");
- // action.objectName = actionName;
- // action.setRequiresDocument(false);
- // action.setIcon(GroundDataImport.includeBasePath + "/GroundDataImport.svg");
- // //action.setStatusTip(qsTr("Show GroundDataImport tools"));
- // action.setDefaultShortcut(new QKeySequence("w,z"));
- // action.setNoState();
- // action.setDefaultCommands(["GroundDataImportmenu"]);
- // action.setGroupSortOrder(10);
- // action.setSortOrder(350);
- // action.setWidgetNames(["!MainToolsPanel"]);
- // }
- // var tb = EAction.getCadToolBarPanel(
- // GroundDataImport.getTitle(),
- // "GroundDataImportToolsPanel",
- // true
- // );
- // return tb;
- // };
- // GroundDataImport.getToolMatrixPanel = function() {
- // RSettings.setValue("GroundDataImport/VisibleInMatrixPanel", false, false);
- // return EAction.getToolMatrixPanel(GroundDataImport.getTitle(), "GroundDataImportMatrixPanel", 30);
- // };
- GroundDataImport.getTitle = function() {
- return qsTr("&地形数据导入");
- };
- GroundDataImport.prototype.getTitle = function() {
- return GroundDataImport.getTitle();
- };
- GroundDataImport.init = function() {
- GroundDataImport.getMenu();
- GroundDataImport.getToolBar();
- // GroundDataImport.getCadToolBarPanel();
- // GroundDataImport.getToolMatrixPanel();
- };
|