iCub-main
dc1394slider.h
Go to the documentation of this file.
1 #ifndef DC1394SLIDER_H
2 #define DC1394SLIDER_H
3 
4 #include <QWidget>
5 #include "dc1394SliderBase.h"
6 
7 namespace Ui {
8 class DC1394Slider;
9 }
10 
12 {
13  Q_OBJECT
14 
15 public:
16 
17  explicit DC1394Slider(/*dc1394feature_id_t feature,char* label,MainWindow *fg,*/QWidget *parent = 0);
18  ~DC1394Slider();
19  bool init(cameraFeature_id_t feature, char* label, DC1394Thread *controlThread);
20  void Refresh();
21  void Propagate();
22  void updateSliders();
23  void set_value(double val);
24 protected:
25  void resizeEvent(QResizeEvent* event);
26 
27 
28 private:
29  void connectWidgets();
30  void disconnectWidgets();
31 
32 protected:
33  QString m_Name;
35  cameraFeature_id_t m_Feature;
36 
37 private:
38  Ui::DC1394Slider *ui;
39  DC1394Thread *controlThread;
40  bool pressed;
41 
42 private slots:
43  void onSliderValueChanged(int value);
44  void onOnePushClicked();
45  void onRadioAuto(bool toggled);
46  void onPower(bool checked);
47 
48  void onSliderPressed();
49  void onSliderReleased();
50  void onRefreshDone(QObject *slider,bool bON,bool bAuto,bool bHasAuto,bool bHasOnOff,bool bHasManual,bool bHasOnePush,double val);
51  void onSliderSetFeatureDone(QObject *slider,double val);
52  void onOnePushDone(QObject *slider, double val);
53  void onRadioAutoDone(QObject *slider, bool bON, bool bAuto);
54  void onPowerDone(QObject *slider, bool bON, bool hasAuto, bool hasManual, bool hasOnePush);
55  void onHasFeatureDone(QObject *slider, bool hasFeature);
56 
57 
58 
59 };
60 
61 #endif // DC1394SLIDER_H
void updateSliders()
double m_old_value
Definition: dc1394slider.h:34
DC1394Slider(QWidget *parent=0)
Definition: dc1394slider.cpp:5
void set_value(double val)
QString m_Name
Definition: dc1394slider.h:33
void resizeEvent(QResizeEvent *event)
bool init(cameraFeature_id_t feature, char *label, DC1394Thread *controlThread)
double m_new_value
Definition: dc1394slider.h:34
cameraFeature_id_t m_Feature
Definition: dc1394slider.h:35