1 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
22 // File : SMESHGUI_SingleEditDlg.h
23 // Author : Sergey LITONIN
27 #ifndef SMESHGUI_SingleEditDlg_H
28 #define SMESHGUI_SingleEditDlg_H
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(SMESH_Mesh)
38 class SMESHGUI_SpinBox;
44 class SVTK_ViewWindow;
45 class LightApp_SelectionMgr;
48 * Class : SMESHGUI_SingleEditDlg
49 * Description : Base class for dialogs of diagonal inversion and
50 * union of two neighboring triangles
52 class SMESHGUI_SingleEditDlg : public QDialog
57 SMESHGUI_SingleEditDlg(SMESHGUI* theModule,
58 const char* theName = 0);
59 virtual ~SMESHGUI_SingleEditDlg();
65 virtual bool onApply();
70 void onSelectionDone();
71 void onTextChange (const QString&);
74 void closeEvent (QCloseEvent*);
75 void enterEvent (QEvent*);
76 void hideEvent (QHideEvent*); /* ESC key */
77 QFrame* createButtonFrame (QWidget*);
78 QFrame* createMainFrame (QWidget*);
79 bool isValid (const bool) const;
80 bool getNodeIds (const QString&, int&, int&) const;
81 virtual bool process (SMESH::SMESH_MeshEditor_ptr, const int, const int) = 0;
86 QPushButton* myApplyBtn;
87 QPushButton* myCloseBtn;
91 LightApp_SelectionMgr* mySelectionMgr;
92 SVTK_Selector* mySelector;
97 * Class : SMESHGUI_TrianglesInversionDlg
98 * Description : Inversion of the diagonal of a pseudo-quadrangle formed by
99 * 2 neighboring triangles with 1 common edge
101 class SMESHGUI_TrianglesInversionDlg : public SMESHGUI_SingleEditDlg
106 SMESHGUI_TrianglesInversionDlg(SMESHGUI* theModule,
107 const char* theName = 0);
108 virtual ~SMESHGUI_TrianglesInversionDlg();
111 virtual bool process (SMESH::SMESH_MeshEditor_ptr, const int, const int);
115 * Class : SMESHGUI_UnionOfTwoTrianglesDlg
116 * Description : Construction of a quadrangle by deletion of the
117 * common border of 2 neighboring triangles
119 class SMESHGUI_UnionOfTwoTrianglesDlg : public SMESHGUI_SingleEditDlg
124 SMESHGUI_UnionOfTwoTrianglesDlg(SMESHGUI* theModule,
125 const char* theName = 0);
126 virtual ~SMESHGUI_UnionOfTwoTrianglesDlg();
129 virtual bool process (SMESH::SMESH_MeshEditor_ptr, const int, const int);