iCub-main
dc1394sliderwb.h
Go to the documentation of this file.
1 #ifndef DC1394SLIDERWB_H
2 #define DC1394SLIDERWB_H
3 
4 #include <QWidget>
5 #include "dc1394SliderBase.h"
6 
7 namespace Ui {
8 class DC1394SliderWB;
9 }
10 
12 {
13  Q_OBJECT
14 
15 public:
16  explicit DC1394SliderWB(QWidget *parent = 0);
18  bool init(DC1394Thread *controlThread);
19  void Refresh();
20  void Propagate();
21  void updateSliders();
22  void set_value(double blue,double red);
23 
24 protected:
25  void resizeEvent(QResizeEvent* event);
26 
27 private:
28  Ui::DC1394SliderWB *ui;
29  double m_old_red,m_new_red,m_old_blu,m_new_blu;
30  DC1394Thread *controlThread;
31 
32 
33 private:
34  void connectWidgets();
35  void disconnectWidgets();
36 
37 private slots:
38  void onSliderRedReleased();
39  void onSliderBlueReleased();
40  void onSliderRedValueChanged(int value);
41  void onSliderBlueValueChanged(int value);
42  void onOnePushClicked();
43  void onRadioAuto(bool toggled);
44  void onPower(bool checked);
45 
46  void onHasFeatureDone(QObject *slider, bool hasFeature);
47  void onRefreshDone(QObject *slider,bool bON,bool bAuto,bool bHasOnOff,bool bHasAuto,bool bHasManual,bool bHasOnePush,double redVal, double blueVal);
48  void onSliderWBSetFeatureDone(QObject*slider, double redVal, double blueVal);
49  void onRadioAutoDone(QObject *slider,bool bON, bool bAuto);
50  void onPowerDone(QObject *slider, bool bON,bool hasAuto, bool hasManual, bool hasOnePush);
51  void onOnePushDone(QObject *slider, double redVal, double blueVal);
52 
53 };
54 
55 #endif // DC1394SLIDERWB_H
void resizeEvent(QResizeEvent *event)
DC1394SliderWB(QWidget *parent=0)
void set_value(double blue, double red)
bool init(DC1394Thread *controlThread)