1 // Copyright (C) 2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #include "GeometryGUI.h"
23 #include "GeometryGUI_Operations.h"
26 #include <SUIT_Desktop.h>
27 #include <SUIT_Desktop.h>
28 #include <SUIT_MessageBox.h>
29 #include <SalomeApp_Application.h>
31 #include "ImportExportGUI_ExportXAODlg.h"
32 #include "ImportExportGUI_ImportXAODlg.h"
33 #include "ImportExportGUI.h"
34 //@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@//
37 //=======================================================================
38 // function : ImportExportGUI()
39 // purpose : Constructor
40 //=======================================================================
41 ImportExportGUI::ImportExportGUI(GeometryGUI* parent) :
46 //=======================================================================
47 // function : ~ImportExportGUI
48 // purpose : Destructor
49 //=======================================================================
50 ImportExportGUI::~ImportExportGUI()
54 //=======================================================================
55 // function : OnGUIEvent()
57 //=======================================================================
58 bool ImportExportGUI::OnGUIEvent(int commandId, SUIT_Desktop* parent)
60 SalomeApp_Application* app = getGeometryGUI()->getApp();
61 if (!app) return false;
63 getGeometryGUI()->EmitSignalDeactivateDialog();
65 QDialog* dialog = NULL;
68 case GEOMOp::OpExportXAO:
69 dialog = new ImportExportGUI_ExportXAODlg(getGeometryGUI(), parent);
71 case GEOMOp::OpImportXAO:
72 dialog = new ImportExportGUI_ImportXAODlg(getGeometryGUI(), parent);
74 //@@ insert new functions before this line @@ do not remove this line @@ do not remove this line @@//
76 app->putInfo(tr("GEOM_PRP_COMMAND").arg(commandId));
86 //=====================================================================================
88 //=====================================================================================
92 __declspec( dllexport )
94 GEOMGUI* GetLibGUI(GeometryGUI* parent)
96 return new ImportExportGUI(parent);