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.salome-platform.org/ or email : webmaster.salome@opencascade.com
24 // File : SMESHGUI_SewingDlg.h
25 // Author : Michael ZORIN
29 #ifndef DIALOGBOX_SEWING_H
30 #define DIALOGBOX_SEWING_H
32 #include "LightApp_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 void keyPressEvent(QKeyEvent*);
76 int GetConstructorId();
79 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
80 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
81 int myOk1, myOk2, myOk3, myOk4, myOk5, myOk6;
82 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
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 QPushButton* buttonHelp;
99 QGroupBox* GroupArguments;
100 QGroupBox* SubGroup1;
101 QGroupBox* SubGroup2;
108 QPushButton* SelectButton1;
109 QPushButton* SelectButton2;
110 QPushButton* SelectButton3;
111 QPushButton* SelectButton4;
112 QPushButton* SelectButton5;
113 QPushButton* SelectButton6;
114 QLineEdit* LineEdit1;
115 QLineEdit* LineEdit2;
116 QLineEdit* LineEdit3;
117 QLineEdit* LineEdit4;
118 QLineEdit* LineEdit5;
119 QLineEdit* LineEdit6;
120 QCheckBox* CheckBoxMerge;
121 QCheckBox* CheckBoxPolygons;
122 QCheckBox* CheckBoxPolyedrs;
124 QString myHelpFileName;
128 void ConstructorsClicked(int constructorId);
130 void ClickOnCancel();
133 void SetEditCurrentArgument() ;
134 void SelectionIntoArgument(bool isSelectionChanged = true) ;
135 void DeactivateActiveDialog() ;
136 void ActivateThisDialog() ;
137 void onTextChange(const QString&);
140 QGridLayout* SMESHGUI_SewingDlgLayout;
141 QGridLayout* GroupConstructorsLayout;
142 QGridLayout* GroupButtonsLayout;
143 QGridLayout* GroupArgumentsLayout;
146 #endif // DIALOGBOX_SEWING_H