Salome HOME
3a8a053d8b1586136ff79f29660ee56a66951768
[modules/geom.git] / src / AdvancedGUI / AdvancedGUI_SmoothingSurfaceDlg.h
1 // Copyright (C) 2013-2014  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 ADVANCEDGUI_SMOOTHINGSURFACEDLG_H
21 #define ADVANCEDGUI_SMOOTHINGSURFACEDLG_H
22
23 #include <GEOMBase_Skeleton.h>
24 #include "GEOM_GenericObjPtr.h"
25
26 #include <list>
27
28 class DlgRef_1Sel;
29
30 //=================================================================================
31 // class    : AdvancedGUI_SmoothingSurfaceDlg
32 // purpose  :
33 //=================================================================================
34 class AdvancedGUI_SmoothingSurfaceDlg : public GEOMBase_Skeleton
35 {
36   Q_OBJECT
37
38 public:
39   AdvancedGUI_SmoothingSurfaceDlg( GeometryGUI*, QWidget* = 0 );
40   ~AdvancedGUI_SmoothingSurfaceDlg();
41
42 protected:
43   // redefined from GEOMBase_Helper
44   virtual GEOM::GEOM_IOperations_ptr createOperation();
45   virtual bool                       isValid( QString& );
46   virtual bool                       execute( ObjectList& );
47
48 private:
49   void                               Init();
50   void                               enterEvent( QEvent* );
51
52 private:
53   DlgRef_1Sel*                 GroupPoints;
54   QList<GEOM::GeomObjPtr>            myPoints;
55
56 private slots:
57   void                               ClickOnOk();
58   bool                               ClickOnApply();
59   
60   void                               ActivateThisDialog();
61   //void                               DeactivateActiveDialog();
62   
63   //void                               CheckButtonToggled();
64   void                               SelectionIntoArgument();
65   void                               SetEditCurrentArgument();
66   //void                               ValueChangedInSpinBox();
67   //void                               SetDoubleSpinBoxStep( double );
68 };
69
70 #endif // ADVANCEDGUI_SMOOTHINGSURFACEDLG_H