1 // Copyright (C) 2007-2022 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, or (at your option) any later version.
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
23 // File : SMESHGUI_SingleEditDlg.h
24 // Author : Sergey LITONIN, Open CASCADE S.A.S.
26 #ifndef SMESHGUI_SINGLEEDITDLG_H
27 #define SMESHGUI_SINGLEEDITDLG_H
30 #include "SMESH_SMESHGUI.hxx"
36 #include <SALOMEconfig.h>
37 #include CORBA_SERVER_HEADER(SMESH_MeshEditor)
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_EXPORT SMESHGUI_SingleEditDlg : public QDialog
57 SMESHGUI_SingleEditDlg( SMESHGUI* );
58 virtual ~SMESHGUI_SingleEditDlg();
64 virtual bool onApply();
65 virtual void reject();
70 void onSelectionDone();
71 void onTextChange( const QString& );
79 void enterEvent( QEvent* );
80 void keyPressEvent( QKeyEvent* );
81 QWidget* createButtonFrame( QWidget* );
82 QWidget* createMainFrame( QWidget* );
83 bool isValid( const bool ) const;
84 bool getNodeIds( const QString&, int&, int& ) const;
85 virtual bool process( SMESH::SMESH_MeshEditor_ptr, const int, const int ) = 0;
90 QPushButton* myApplyBtn;
91 QPushButton* myCloseBtn;
92 QPushButton* myHelpBtn;
96 LightApp_SelectionMgr* mySelectionMgr;
97 SVTK_Selector* mySelector;
100 QString myHelpFileName;
104 * Class : SMESHGUI_TrianglesInversionDlg
105 * Description : Inversion of the diagonal of a pseudo-quadrangle formed by
106 * 2 neighboring triangles with 1 common edge
108 class SMESHGUI_TrianglesInversionDlg : public SMESHGUI_SingleEditDlg
113 SMESHGUI_TrianglesInversionDlg( SMESHGUI* );
114 virtual ~SMESHGUI_TrianglesInversionDlg();
117 virtual bool process( SMESH::SMESH_MeshEditor_ptr, const int, const int );
121 * Class : SMESHGUI_UnionOfTwoTrianglesDlg
122 * Description : Construction of a quadrangle by deletion of the
123 * common border of 2 neighboring triangles
125 class SMESHGUI_UnionOfTwoTrianglesDlg : public SMESHGUI_SingleEditDlg
130 SMESHGUI_UnionOfTwoTrianglesDlg( SMESHGUI* );
131 virtual ~SMESHGUI_UnionOfTwoTrianglesDlg();
134 virtual bool process( SMESH::SMESH_MeshEditor_ptr, const int, const int );
137 #endif // SMESHGUI_SINGLEEDITDLG_H