iCub-main
Loading...
Searching...
No Matches
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
7namespace Ui {
8class DC1394Slider;
9}
10
12{
13 Q_OBJECT
14
15public:
16
17 explicit DC1394Slider(/*dc1394feature_id_t feature,char* label,MainWindow *fg,*/QWidget *parent = 0);
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);
24protected:
25 void resizeEvent(QResizeEvent* event);
26
27
28private:
29 void connectWidgets();
30 void disconnectWidgets();
31
32protected:
33 QString m_Name;
35 cameraFeature_id_t m_Feature;
36
37private:
38 Ui::DC1394Slider *ui;
39 DC1394Thread *controlThread;
40 bool pressed;
41
42private 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
void set_value(double val)
QString m_Name
void resizeEvent(QResizeEvent *event)
bool init(cameraFeature_id_t feature, char *label, DC1394Thread *controlThread)
double m_new_value
cameraFeature_id_t m_Feature