-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontrolpanel.h
75 lines (64 loc) · 1.55 KB
/
controlpanel.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef CONTROLPANEL_H
#define CONTROLPANEL_H
#include <QMainWindow>
#include <QPushButton>
#include <QCheckBox>
#include <QSlider>
#include "Utilities/displayslider.h"
#include "Utilities/avexception.h"
class ControlPanel : public QWidget
{
Q_OBJECT
public:
ControlPanel(QMainWindow *parent);
void resizeEvent(QResizeEvent *event) override;
bool checkCodec(const QString& filename);
QString getButtonStyle(const QString& name) const;
void styleButtons();
void saveEngageSetting(bool arg);
void restoreEngageSetting();
QMainWindow *mainWindow;
QCheckBox *engageFilter;
QSlider *volumeSlider;
QPushButton *btnMute;
QPushButton *btnPlay;
QPushButton *btnStop;
QPushButton *btnRewind;
QPushButton *btnFastForward;
QPushButton *btnNext;
QPushButton *btnPrevious;
QIcon icnAudioOn;
QIcon icnAudioOff;
QIcon icnPlay;
QIcon icnPause;
QIcon icnStop;
QIcon icnRewind;
QIcon icnFastForward;
QIcon icnNext;
QIcon icnPrevious;
bool muted = false;
bool paused = false;
bool stopped = true;
const QString engageKey = "ControlPanel/engage";
AVExceptionHandler av;
signals:
void msg(const QString&);
void quitting();
void muting();
public slots:
void test();
void play();
void pause();
void mute();
void volup();
void voldn();
void quit();
void fastforward();
void rewind();
void previous();
void next();
void singlestep();
void engage(bool);
void sliderMoved(int);
};
#endif // CONTROLPANEL_H