1 // SMESH SMESHGUI : GUI for SMESH component
3 // Copyright (C) 2003 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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SMESHGUI_SewingDlg.h
25 // Author : Michael ZORIN
29 #ifndef DIALOGBOX_SEWING_H
30 #define DIALOGBOX_SEWING_H
32 #include "SalomeApp_SelectionMgr.h"
47 class SVTK_ViewWindow;
51 #include <SALOMEconfig.h>
52 #include CORBA_SERVER_HEADER(SMESH_Mesh)
55 //=================================================================================
56 // class : SMESHGUI_SewingDlg
58 //=================================================================================
59 class SMESHGUI_SewingDlg : public QDialog
64 SMESHGUI_SewingDlg( SMESHGUI*,
68 ~SMESHGUI_SewingDlg();
72 void closeEvent( QCloseEvent* e ) ;
73 void enterEvent ( QEvent * ); /* mouse enter the QWidget */
74 void hideEvent ( QHideEvent * ); /* ESC key */
75 int GetConstructorId();
78 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
79 SalomeApp_SelectionMgr* mySelectionMgr; /* User shape selection */
80 int myOk1, myOk2, myOk3, myOk4, myOk5, myOk6;
81 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
82 SVTK_ViewWindow* myViewWindow;
83 SVTK_Selector* mySelector;
86 SMESH::SMESH_Mesh_var myMesh;
89 QButtonGroup* GroupConstructors;
90 QRadioButton* RadioButton1;
91 QRadioButton* RadioButton2;
92 QRadioButton* RadioButton3;
93 QRadioButton* RadioButton4;
94 QGroupBox* GroupButtons;
95 QPushButton* buttonOk;
96 QPushButton* buttonCancel;
97 QPushButton* buttonApply;
98 QGroupBox* GroupArguments;
100 QGroupBox* SubGroup2;
107 QPushButton* SelectButton1;
108 QPushButton* SelectButton2;
109 QPushButton* SelectButton3;
110 QPushButton* SelectButton4;
111 QPushButton* SelectButton5;
112 QPushButton* SelectButton6;
113 QLineEdit* LineEdit1;
114 QLineEdit* LineEdit2;
115 QLineEdit* LineEdit3;
116 QLineEdit* LineEdit4;
117 QLineEdit* LineEdit5;
118 QLineEdit* LineEdit6;
119 QCheckBox* CheckBoxMerge;
120 QCheckBox* CheckBoxPolygons;
121 QCheckBox* CheckBoxPolyedrs;
125 void ConstructorsClicked(int constructorId);
127 void ClickOnCancel();
129 void SetEditCurrentArgument() ;
130 void SelectionIntoArgument(bool isSelectionChanged = true) ;
131 void DeactivateActiveDialog() ;
132 void ActivateThisDialog() ;
133 void onTextChange(const QString&);
136 QGridLayout* SMESHGUI_SewingDlgLayout;
137 QGridLayout* GroupConstructorsLayout;
138 QGridLayout* GroupButtonsLayout;
139 QGridLayout* GroupArgumentsLayout;
142 #endif // DIALOGBOX_SEWING_H