-
Notifications
You must be signed in to change notification settings - Fork 0
/
musicinterfase.h
87 lines (68 loc) · 1.68 KB
/
musicinterfase.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
76
77
78
79
80
81
82
83
84
85
86
87
#ifndef MUSICINTERFASE_H
#define MUSICINTERFASE_H
/**
* @author: jingbo
* @date: 2018/05/14
* @desc: 音乐主界面框架
*/
#include <QWidget>
#include <QMouseEvent>
#include <QHBoxLayout>
#include <QPainter>
#include "navigate.h"
#include "playcontrol.h"
#include "musiclist.h"
#include "lyriccontrol.h"
#include "musiclistplay.h"
#include "musicplay.h"
namespace Ui {
class MusicInterfase;
}
class MusicInterfase : public QWidget
{
Q_OBJECT
public:
explicit MusicInterfase(QWidget *parent = 0);
~MusicInterfase();
public slots:
//---Nav
void showMask(); //mask
void hideMask(); //mask
void miniWin(); //最小化窗口
void closeWin(); //关闭窗口
void customizeSkin();//自定义皮肤
private:
Ui::MusicInterfase *ui;
Navigate *musicNav;
PlayControl *musicPlayControl;
MusicList *musicList;
LyricControl *lyricControl;
//----------Layout
QHBoxLayout *musicCenterLayout;
QVBoxLayout *musicMainLayout;
QHBoxLayout *musicNavAndWinControl;
QHBoxLayout *windowControl;
//----------Function
void setControlsLayout();
void setControlsForm();
void connectSlot();
//-----Nav
QPushButton *resultPreBtn;
QPushButton *skinBtn;
//QPushButton *skinDiaCloseBtn;
QPushButton *miniBtn;
QPushButton *closeBtn;
QPushButton *customizeSkinBtn;
QStringList themePathList;
QWidget *mask;
int index=0;
//---MusicPlay
MusicPlay *musicPlay;
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event);
bool pressFlag;
QPoint beginPos;
};
#endif // MUSICINTERFASE_H