-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathmainwidget.h
65 lines (51 loc) · 1.24 KB
/
mainwidget.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
#ifndef MainWidget_H
#define MainWidget_H
#include <QWidget>
#include <QMouseEvent>
#include "channelwidget.h"
#include "controlpanel.h"
#include "pausemask.h"
#include "lyricwidget.h"
#include <QShortcut>
#include <QLabel>
#include <QSystemTrayIcon>
namespace Ui {
class MainWidget;
}
class MainWidget : public QWidget
{
Q_OBJECT
public:
explicit MainWidget(QWidget *parent = 0);
~MainWidget();
void mousePressEvent(QMouseEvent *);
bool isChannelWidgetShowing() const;
bool isAnimationStarted() const;
bool isLyricWidgetShowing() const;
signals:
void animationStart();
void animationFinish();
private:
Ui::MainWidget *ui;
QPoint dpos;
QShortcut *exitShortcut;
QShortcut *pauseShortcut;
QShortcut *nextShortcut;
QShortcut *deleteShortcut;
QShortcut *likeShortcut;
QShortcut *hideShortcut;
bool _isChannelWidgetShowing;
bool _isAnimStarted;
bool _isLyricWidgetShowing;
QLabel *topBorder;
QLabel *bottomBorder;
void animStart();
void animFinish();
QSystemTrayIcon *systemTrayIcon;
public slots:
void animHideChannelWidget();
void animShowChannelWidget();
void animHideLyricWidget();
void animShowLyricWidget();
};
#endif // MainWidget_H