Salome HOME
Initial repository creation
[plugins/canrecplugin.git] / src / CANRECPLUGINGUI / CANRECPluginGUI_CanonicalRecognitionDlg.h
1 // Copyright (C) 2014-2015  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 #if !defined(__CANRECPLUGINGUI_CANONICALRECONGNITION_H)
21 #define __CANRECPLUGINGUI_CANONICALRECONGNITION_H
22
23 #include <GEOMBase_Skeleton.h>
24 #include <GEOM_GenericObjPtr.h>
25
26 class GeometryGUI;
27 class SalomeApp_DoubleSpinBox;
28 class QCheckBox;
29 class QPushButton;
30 class QLineEdit;
31 class QGroupBox;
32
33 class CANRECPluginGUI_CanonicalRecognitionDlg : public GEOMBase_Skeleton
34 {
35   Q_OBJECT
36
37 public:
38   CANRECPluginGUI_CanonicalRecognitionDlg( GeometryGUI*, QWidget* = 0 );
39   ~CANRECPluginGUI_CanonicalRecognitionDlg();
40
41 protected:
42   virtual GEOM::GEOM_IOperations_ptr createOperation();
43   virtual bool                       isValid( QString& );
44   virtual bool                       execute( ObjectList& );
45
46 private:
47   void                               Init();
48   void                               enterEvent( QEvent* );
49
50 private slots:
51   void                               ClickOnOk();
52   virtual void                       ClickOnCancel();
53   bool                               ClickOnApply();
54   
55   void                               ActivateThisDialog();
56   void                               SelectionIntoArgument();
57   void                               SetEditCurrentArgument();
58   void                               SetDoubleSpinBoxStep( double );
59   
60 private:
61   QLineEdit*                         LineEdit1;
62   QPushButton*                       PButton1;
63   SalomeApp_DoubleSpinBox*           SpinBoxTol;
64   QCheckBox*                         CheckButton1;
65   QCheckBox*                         CheckButton2;
66   
67   GEOM::GeomObjPtr                   myObject;
68 };
69
70 #endif // __CANRECPLUGINGUI_CANONICALRECONGNITION_H