]> SALOME platform Git repositories - modules/geom.git/blob - src/CurveCreator/CurveCreator_NewPointDlg.h
Salome HOME
Take into account merge of branch 'asl/hydro_porting_741' in GUI module.
[modules/geom.git] / src / CurveCreator / CurveCreator_NewPointDlg.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 CURVECREATOR_NEWPOINTDLG_H
21 #define CURVECREATOR_NEWPOINTDLG_H
22
23 #include "CurveCreator.hxx"
24
25 #include <QDockWidget>
26
27 class QDoubleSpinBox;
28 class QDialogButtonBox;
29 class QAbstractButton;
30 class QPushButton;
31 class QLabel;
32 class QFrame;
33
34 class CurveCreator_NewPointDlg : public QWidget
35 {
36   Q_OBJECT
37 public:
38   explicit CurveCreator_NewPointDlg(CurveCreator::Dimension theDim, QWidget *parent = 0);
39   CurveCreator::Coordinates getCoordinates() const;
40   void clear();
41   void setSectionName( const QString& theName );
42   void setEditMode( bool isEdit );
43   void setCoordinates( const CurveCreator::Coordinates& theCoords );
44   void setDimension(CurveCreator::Dimension theDim);
45   bool isInstantSketchingEnabled() const;
46   void setInstantSketchingEnabled( const bool theState );
47 signals:
48   void addPoint();
49   void modifyPoint();
50   void cancelPoint();
51 public slots:
52 protected slots:
53 protected:
54   void updateTitle();
55   void initSpinBox(QDoubleSpinBox *theSpinBox);
56 private:
57   QFrame*                 myBtnFrame;
58   CurveCreator::Dimension myDim;
59   QDoubleSpinBox*         myX;
60   QDoubleSpinBox*         myY;
61   QDoubleSpinBox*         myZ;
62   QLabel*                 myZLabel;
63   QPushButton*            myAddBtn;
64   QPushButton*            myCancelBtn;
65   bool                    myIsEdit;
66   QString                 mySectionName;
67   bool                    myIsInstantSketchingEnabled;
68 };
69
70 #endif // CURVECREATOR_NEWPOINTDLG_H