1 // GEOM GEOMGUI : GUI for Geometry component
3 // Copyright (C) 2003 CEA
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License.
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // File : BooleanGUI.cxx
24 // Author : Julia DOOVSKIKH
28 #include "BlocksGUI.h"
30 #include "BlocksGUI_QuadFaceDlg.h"
31 #include "BlocksGUI_BlockDlg.h"
32 #include "BlocksGUI_TrsfDlg.h"
33 #include "BlocksGUI_ExplodeDlg.h"
34 #include "BlocksGUI_PropagateDlg.h"
36 #include "GeometryGUI.h"
38 #include "SUIT_Desktop.h"
39 #include "SUIT_MessageBox.h"
40 #include "SUIT_Session.h"
42 #include "SalomeApp_Application.h"
44 //=======================================================================
45 // function : BlocksGUI()
46 // purpose : Constructor
47 //=======================================================================
48 BlocksGUI::BlocksGUI( GeometryGUI* parent )
53 //=======================================================================
54 // function : ~BlocksGUI()
55 // purpose : Destructor
56 //=======================================================================
57 BlocksGUI::~BlocksGUI()
61 //=======================================================================
62 // function : OnGUIEvent()
64 //=======================================================================
65 bool BlocksGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
67 getGeometryGUI()->EmitSignalDeactivateDialog();
73 case 9999: aDlg = new BlocksGUI_BlockDlg (getGeometryGUI(), parent); break;
74 case 9998: aDlg = new BlocksGUI_TrsfDlg (getGeometryGUI(), parent); break;
75 case 9997: aDlg = new BlocksGUI_QuadFaceDlg (getGeometryGUI(), parent); break;
76 case 9995: aDlg = new BlocksGUI_ExplodeDlg (getGeometryGUI(), parent); break;
77 case 99991: aDlg = new BlocksGUI_PropagateDlg (getGeometryGUI(), parent); break;
79 getGeometryGUI()->getApp()->putInfo(tr("GEOM_PRP_COMMAND").arg(theCommandID));
89 //=====================================================================================
91 //=====================================================================================
95 __declspec( dllexport )
97 GEOMGUI* GetLibGUI( GeometryGUI* parent )
99 return new BlocksGUI( parent );