-
Notifications
You must be signed in to change notification settings - Fork 0
/
qargusslider.h
59 lines (45 loc) · 947 Bytes
/
qargusslider.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef QARGUSSLIDER_H
#define QARGUSSLIDER_H
#include <iostream>
#include <QCoreApplication>
#include <QMainWindow>
#include <QBoxLayout>
#include <QWidget>
#include <QSlider>
#include <QStyle>
#include <QPushButton>
#include <vector>
class QArgusSlider : public QWidget
{
Q_OBJECT
public:
QArgusSlider(int);
~QArgusSlider();
void enableSlider(int);
void disableSlider();
bool isSliderDown();
void setValue(int);
int value();
void testSlider();
private:
QVBoxLayout *totalBox;
//QHBoxLayout *markerBox;
//QHBoxLayout *sliderBox;
QWidget *baseWidget;
QSlider *argusSlider;
std::vector<QPushButton *> buttonVec;
//QPushButton *button1;
private slots:
void sliderValueChanged(int);
void sliderWasReleased();
public slots:
void retractFive();
void retractOne();
void returnOne();
void returnFive();
void addMarker();
signals:
void valueChanged(int);
void sliderReleased();
};
#endif