]> SALOME platform Git repositories - modules/geom.git/blob - src/CurveCreator/CurveCreator_NewSectionDlg.h
Salome HOME
CurveCreator was updated
[modules/geom.git] / src / CurveCreator / CurveCreator_NewSectionDlg.h
1 #ifndef CURVECREATOR_NEWSECTION_H\r
2 #define CURVECREATOR_NEWSECTION_H\r
3 \r
4 #include "CurveCreator.hxx"\r
5 \r
6 #include <QDialog>\r
7 \r
8 class CurveCreator_Curve;\r
9 \r
10 class QLineEdit;\r
11 class QComboBox;\r
12 class QCheckBox;\r
13 class QPushButton;\r
14 class QAbstractButton;\r
15 class QDialogButtonBox;\r
16 \r
17 class CurveCreator_NewSectionDlg : public QDialog\r
18 {\r
19     Q_OBJECT\r
20 public:\r
21     explicit CurveCreator_NewSectionDlg(QWidget *parent = 0);\r
22 \r
23     QString getName() const;\r
24     bool    isClosed() const;\r
25     CurveCreator::Type getSectionType() const;\r
26 \r
27     void    setSectionParameters( const QString& theName, bool isClosed, CurveCreator::Type theType );\r
28     void    setSectionName(const QString& theName );\r
29     void    clear();\r
30     void    setEditMode( bool isEdit );\r
31 \r
32 signals:\r
33     void    addSection();\r
34 public slots:\r
35 protected slots:\r
36     void onBtnClicked(QAbstractButton* theBtn );\r
37 protected:\r
38     void    updateTitle();\r
39 private:\r
40     QLineEdit*          myName;\r
41     QComboBox*          myLineType;\r
42     QCheckBox*          myIsClosed;\r
43     bool                myIsEdit;\r
44     QPushButton*        myContBtn;\r
45     QPushButton*        myAddBtn;\r
46     QDialogButtonBox*   myBtnBox;\r
47 };\r
48 \r
49 #endif // CURVECREATOR_NEWSECTION_H\r