Salome HOME
Update copyrights
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_FaceGroupsSeparatedByEdgesDlg.h
1 // Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef SMESHGUI_FaceGroupsSeparatedByEdges_H
21 #define SMESHGUI_FaceGroupsSeparatedByEdges_H
22
23 // SMESH includes
24 #include "SMESH_SMESHGUI.hxx"
25 #include "SMESHGUI_PreviewDlg.h"
26
27 #include <SALOMEconfig.h>
28 #include CORBA_SERVER_HEADER(SMESH_MeshEditor)
29 #include CORBA_SERVER_HEADER(SMESH_Mesh)
30
31 class LightApp_SelectionMgr;
32 class QCheckBox;
33 class QLineEdit;
34 class QWidget;
35 class QPushButton;
36 class SMESHGUI_SpinBox;
37
38 /*!
39  * \brief Dialog to create face groups divided by sharp edges
40  */
41
42 class SMESHGUI_EXPORT SMESHGUI_FaceGroupsSeparatedByEdgesDlg :  public SMESHGUI_PreviewDlg
43 {
44   Q_OBJECT
45
46  public:
47
48   SMESHGUI_FaceGroupsSeparatedByEdgesDlg( SMESHGUI* theModule );
49   virtual ~SMESHGUI_FaceGroupsSeparatedByEdgesDlg();
50
51  private slots:
52   void                   ClickOnOk();
53   bool                   ClickOnApply();
54   void                   ClickOnHelp();
55   void                   SelectionIntoArgument();
56   void                   DeactivateActiveDialog();
57   void                   ActivateThisDialog();
58   void                   reject();
59   void                   onArgChange() { onDisplaySimulation( true ); }
60   virtual void           onDisplaySimulation( bool = true );
61
62  private:
63
64   LightApp_SelectionMgr* mySelectionMgr;
65   QWidget*               GroupArgs;
66   QWidget*               GroupButtons;
67
68   QLineEdit*             myMeshName;
69   SMESHGUI_SpinBox*      myAngle;
70   QCheckBox*             myCreateEdgesCheck;
71   QCheckBox*             myUseExistingCheck;
72
73   QPushButton*           buttonOk;
74   QPushButton*           buttonCancel;
75   QPushButton*           buttonApply;
76   QPushButton*           buttonHelp;
77
78   SMESH::SMESH_Mesh_var  myMesh;
79 };
80
81 #endif // SMESHGUI_FaceGroupsSeparatedByEdges_H