-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayerdock.h
43 lines (38 loc) · 917 Bytes
/
playerdock.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
#ifndef PLAYERDOCK_H
#define PLAYERDOCK_H
#include <QWidget>
#include <QDockWidget>
#include <QPixmap>
#include <QPushButton>
#include <QSlider>
#include <QListWidget>
#include <QLabel>
class PlayerDock : public QDockWidget
{
Q_OBJECT
private:
QDockWidget *m_player;
QPixmap *m_albumImage;
QPushButton *m_playButton;
QPushButton *m_nextButton;
QPushButton *m_previousButton;
QPushButton *m_shuffleButton;
QPushButton *m_repeatButton;
QSlider *m_volumeSlider;
QListWidget *m_trackListWidget;
QLabel *m_volumePercent;
QLabel *m_trackLabel;
QLabel *m_artistLabel;
QLabel *m_albumLabel;
QLabel *m_albumArtistLabel;
QLabel *m_yearLabel;
QLabel *m_genreLabel;
public:
explicit PlayerDock(QWidget *parent = nullptr);
void createLayout();
void createButtons();
public slots:
void onPlayButtonClick();
signals:
};
#endif // PLAYERDOCK_H