Salome HOME
Merge from OCC_development_generic_2006
[modules/gui.git] / src / QDS / QDS_CheckBox.h
1 #ifndef QDS_CHECKBOX_H
2 #define QDS_CHECKBOX_H
3
4 #include "QDS_Datum.h"
5
6 class QCheckBox;
7
8 class QDS_EXPORT QDS_CheckBox : public QDS_Datum
9 {
10   Q_OBJECT
11
12 public:
13   QDS_CheckBox( const QString&, QWidget* = 0, const int = All, const QString& = QString::null );
14   virtual ~QDS_CheckBox();
15
16   bool                 isChecked() const;
17   void                 setChecked( const bool );
18
19   virtual void         clear();
20
21 signals:
22   void                 toggled( bool );
23
24 private slots:
25   void                 onParamChanged();
26   void                 onStateChanged( int );
27
28 protected:
29   QCheckBox*           checkBox() const;
30   virtual QWidget*     createControl( QWidget* );
31
32   virtual QString      getString() const;
33   virtual void         setString( const QString& );
34 };
35
36 #endif