YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
dc1394slider.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2025-2025 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: LGPL-2.1-or-later
4 */
5
6#ifndef DC1394SLIDER_H
7#define DC1394SLIDER_H
8
9#include <QWidget>
10#include "dc1394SliderBase.h"
11
12namespace Ui {
13class DC1394Slider;
14}
15
17{
18 Q_OBJECT
19
20public:
21
22 explicit DC1394Slider(QWidget *parent = nullptr);
24 bool init(yarp::dev::cameraFeature_id_t feature, char* label, DC1394Thread *controlThread);
25 void Refresh();
26 void Propagate();
27 void updateSliders();
28 void set_value(double val);
29protected:
30 void resizeEvent(QResizeEvent* event);
31
32
33private:
34 void connectWidgets();
35 void disconnectWidgets();
36
37protected:
38 QString m_Name;
41
42private:
43 Ui::DC1394Slider *ui;
44 DC1394Thread *controlThread;
45 bool pressed;
46
47private slots:
48 void onSliderValueChanged(int value);
49 void onOnePushClicked();
50 void onRadioAuto(bool toggled);
51 void onPower(bool checked);
52
53 void onSliderPressed();
54 void onSliderReleased();
55 void onRefreshDone(QObject *slider,bool bON,bool bAuto,bool bHasAuto,bool bHasOnOff,bool bHasManual,bool bHasOnePush,double val);
56 void onSliderSetFeatureDone(QObject *slider,double val);
57 void onOnePushDone(QObject *slider, double val);
58 void onRadioAutoDone(QObject *slider, bool bON, bool bAuto);
59 void onPowerDone(QObject *slider, bool bON, bool hasAuto, bool hasManual, bool hasOnePush);
60 void onHasFeatureDone(QObject *slider, bool hasFeature);
61};
62
63#endif // DC1394SLIDER_H
void updateSliders()
double m_old_value
void set_value(double val)
QString m_Name
yarp::dev::cameraFeature_id_t m_Feature
void resizeEvent(QResizeEvent *event)
bool init(yarp::dev::cameraFeature_id_t feature, char *label, DC1394Thread *controlThread)
double m_new_value
Definition aboutdlg.h:11