1 // Copyright (C) 2007-2008 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
22 // SMESH SMESHGUI : GUI for SMESH component
23 // File : SMESHGUI_CreatePolyhedralVolumeDlg.h
24 // Author : Michael ZORIN, Open CASCADE S.A.S.
26 #ifndef SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H
27 #define SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H
30 #include "SMESH_SMESHGUI.hxx"
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(SMESH_Mesh)
51 class LightApp_SelectionMgr;
55 struct TPolySimulation;
58 //=================================================================================
59 // class : SMESHGUI_CreatePolyhedralVolumeDlg
61 //=================================================================================
62 class SMESHGUI_EXPORT SMESHGUI_CreatePolyhedralVolumeDlg : public QDialog
67 SMESHGUI_CreatePolyhedralVolumeDlg( SMESHGUI* );
68 ~SMESHGUI_CreatePolyhedralVolumeDlg();
72 void closeEvent( QCloseEvent* );
73 void enterEvent( QEvent* ); /* mouse enter the QWidget */
74 void hideEvent( QHideEvent* ); /* ESC key */
75 void keyPressEvent( QKeyEvent* );
76 int GetConstructorId();
77 void displaySimulation();
81 int checkEditLine( bool = true ); /*! Checking for indices, return 1 if all ok, esle -1*/
83 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
84 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
85 SVTK_Selector* mySelector;
87 int myNbOkElements; /* to check when elements are defined */
89 QLineEdit* myEditCurrentArgument;
91 SMESH::SMESH_Mesh_var myMesh;
93 SMESH::TPolySimulation* mySimulation;
96 QGroupBox* ConstructorsBox;
97 QButtonGroup* GroupConstructors;
98 QRadioButton* RadioButton1;
99 QRadioButton* RadioButton2;
101 QGroupBox* GroupGroups;
102 QLabel* TextLabel_GroupName;
103 QComboBox* ComboBox_GroupName;
104 QGroupBox* GroupButtons;
105 QPushButton* buttonOk;
106 QPushButton* buttonCancel;
107 QPushButton* buttonApply;
108 QPushButton* buttonHelp;
109 QGroupBox* GroupContent;
110 QLabel* TextLabelIds;
111 QPushButton* SelectElementsButton;
112 QLineEdit* LineEditElements;
113 QListWidget* myFacesByNodes;
114 QLabel* myFacesByNodesLabel;
115 QPushButton* AddButton;
116 QPushButton* RemoveButton;
118 QString myHelpFileName;
125 void ConstructorsClicked( int );
126 void ClickOnPreview( bool );
128 void ClickOnCancel();
131 void SetEditCurrentArgument();
132 void SelectionIntoArgument();
133 void DeactivateActiveDialog();
134 void ActivateThisDialog();
135 void onTextChange( const QString& );
136 void onListSelectionChanged();
139 #endif // SMESHGUI_CREATEPOLYHEDRALVOLUMEDLG_H