1 // Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SMESH SMESHGUI : GUI for SMESH component
24 // File : SMESHGUI_CreatePolyhedralVolumeDlg.h
25 // Author : Michael ZORIN, Open CASCADE S.A.S.
27 #ifndef SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H
28 #define SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H
31 #include "SMESH_SMESHGUI.hxx"
37 #include <SALOMEconfig.h>
38 #include CORBA_SERVER_HEADER(SMESH_Mesh)
52 class LightApp_SelectionMgr;
56 struct TPolySimulation;
59 //=================================================================================
60 // class : SMESHGUI_CreatePolyhedralVolumeDlg
62 //=================================================================================
63 class SMESHGUI_EXPORT SMESHGUI_CreatePolyhedralVolumeDlg : public QDialog
68 SMESHGUI_CreatePolyhedralVolumeDlg( SMESHGUI* );
69 ~SMESHGUI_CreatePolyhedralVolumeDlg();
72 typedef QList<SMESH::SMESH_GroupBase_var> GrpList;
75 void enterEvent( QEvent* ); /* mouse enter the QWidget */
76 void keyPressEvent( QKeyEvent* );
77 int GetConstructorId();
78 void displaySimulation();
82 int checkEditLine( bool = true ); /*! Checking for indices, return 1 if all ok, esle -1*/
84 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
85 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
86 SVTK_Selector* mySelector;
88 int myNbOkElements; /* to check when elements are defined */
90 QLineEdit* myEditCurrentArgument;
92 SMESH::SMESH_Mesh_var myMesh;
94 SMESH::TPolySimulation* mySimulation;
98 QGroupBox* ConstructorsBox;
99 QButtonGroup* GroupConstructors;
100 QRadioButton* RadioButton1;
101 QRadioButton* RadioButton2;
103 QGroupBox* GroupGroups;
104 QLabel* TextLabel_GroupName;
105 QComboBox* ComboBox_GroupName;
106 QGroupBox* GroupButtons;
107 QPushButton* buttonOk;
108 QPushButton* buttonCancel;
109 QPushButton* buttonApply;
110 QPushButton* buttonHelp;
111 QGroupBox* GroupContent;
112 QLabel* TextLabelIds;
113 QPushButton* SelectElementsButton;
114 QLineEdit* LineEditElements;
115 QListWidget* myFacesByNodes;
116 QLabel* myFacesByNodesLabel;
117 QPushButton* AddButton;
118 QPushButton* RemoveButton;
120 QString myHelpFileName;
127 virtual void reject();
130 void ConstructorsClicked( int );
131 void ClickOnPreview( bool );
135 void SetEditCurrentArgument();
136 void SelectionIntoArgument();
137 void DeactivateActiveDialog();
138 void ActivateThisDialog();
139 void onTextChange( const QString& );
140 void onListSelectionChanged();
143 #endif // SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H