00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef BOOLBUTTON_H
00019 #define BOOLBUTTON_H
00020
00021 #include <qgroupbox.h>
00022
00023 #include "odinqt.h"
00024
00028 class buttonBox : public QGroupBox {
00029 Q_OBJECT
00030
00031 public:
00032 buttonBox(const char *text, QWidget *parent, const char *buttonlabel);
00033 buttonBox(const char *ontext,const char *offtext, bool initstate, QWidget *parent, const char *buttonlabel);
00034 ~buttonBox();
00035
00036 bool is_on() const {return gb->is_on();}
00037
00038 public slots:
00039 void setToggleState(bool);
00040
00041 private slots:
00042 void reportclicked();
00043 void setButtonState();
00044
00045
00046 signals:
00047 void buttonClicked();
00048 void buttonToggled(bool);
00049
00050 private:
00051 GuiGridLayout* grid;
00052 GuiButton* gb;
00053 };
00054
00055 #endif