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_SewingDlg.h
24 // Author : Michael ZORIN
28 #ifndef DIALOGBOX_SEWING_H
29 #define DIALOGBOX_SEWING_H
31 #include "SMESH_SMESHGUI.hxx"
33 #include "LightApp_SelectionMgr.h"
48 class SVTK_ViewWindow;
52 #include <SALOMEconfig.h>
53 #include CORBA_SERVER_HEADER(SMESH_Mesh)
56 //=================================================================================
57 // class : SMESHGUI_SewingDlg
59 //=================================================================================
60 class SMESHGUI_EXPORT SMESHGUI_SewingDlg : public QDialog
65 SMESHGUI_SewingDlg( SMESHGUI*,
69 ~SMESHGUI_SewingDlg();
73 void closeEvent( QCloseEvent* e ) ;
74 void enterEvent ( QEvent * ); /* mouse enter the QWidget */
75 void hideEvent ( QHideEvent * ); /* ESC key */
76 void keyPressEvent(QKeyEvent*);
77 int GetConstructorId();
80 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
81 LightApp_SelectionMgr* mySelectionMgr; /* User shape selection */
82 int myOk1, myOk2, myOk3, myOk4, myOk5, myOk6;
83 QLineEdit* myEditCurrentArgument; /* Current LineEdit */
84 SVTK_Selector* mySelector;
87 SMESH::SMESH_Mesh_var myMesh;
90 QButtonGroup* GroupConstructors;
91 QRadioButton* RadioButton1;
92 QRadioButton* RadioButton2;
93 QRadioButton* RadioButton3;
94 QRadioButton* RadioButton4;
95 QGroupBox* GroupButtons;
96 QPushButton* buttonOk;
97 QPushButton* buttonCancel;
98 QPushButton* buttonApply;
99 QPushButton* buttonHelp;
100 QGroupBox* GroupArguments;
101 QGroupBox* SubGroup1;
102 QGroupBox* SubGroup2;
109 QPushButton* SelectButton1;
110 QPushButton* SelectButton2;
111 QPushButton* SelectButton3;
112 QPushButton* SelectButton4;
113 QPushButton* SelectButton5;
114 QPushButton* SelectButton6;
115 QLineEdit* LineEdit1;
116 QLineEdit* LineEdit2;
117 QLineEdit* LineEdit3;
118 QLineEdit* LineEdit4;
119 QLineEdit* LineEdit5;
120 QLineEdit* LineEdit6;
121 QCheckBox* CheckBoxMerge;
122 QCheckBox* CheckBoxPolygons;
123 QCheckBox* CheckBoxPolyedrs;
125 QString myHelpFileName;
129 void ConstructorsClicked(int constructorId);
131 void ClickOnCancel();
134 void SetEditCurrentArgument() ;
135 void SelectionIntoArgument(bool isSelectionChanged = true) ;
136 void DeactivateActiveDialog() ;
137 void ActivateThisDialog() ;
138 void onTextChange(const QString&);
141 QGridLayout* SMESHGUI_SewingDlgLayout;
142 QGridLayout* GroupConstructorsLayout;
143 QGridLayout* GroupButtonsLayout;
144 QGridLayout* GroupArgumentsLayout;
147 #endif // DIALOGBOX_SEWING_H