-
Notifications
You must be signed in to change notification settings - Fork 22
/
aristpicture.h
64 lines (50 loc) · 1.1 KB
/
aristpicture.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
#ifndef ARISTPICTURE_H
#define ARISTPICTURE_H
#include <QFrame>
#include <QTimer>
#include <QImage>
#include "channelswidget.h"
namespace Ui {
class AristPicture;
}
enum PLAYER_STATE
{
STATE_STOP,
STATE_PAUSE,
STATE_PALYING
};
class AristPicture : public QFrame
{
Q_OBJECT
public:
explicit AristPicture(QWidget *parent = 0);
~AristPicture();
private:
Ui::AristPicture *ui;
QPixmap m_mixedPic;
QPixmap m_mixedCurrentPic;
QTimer *m_timer;
private:
ushort m_iCurrentRotateAngle;
int m_iCurrentState;
qint64 m_totalTime;
QString m_channelInfo;
QString m_userName;
public:
void setAristPic(QPixmap pixmap);
public slots:
void setDefultPic(qint64 totalTime);
void channelChangedSlot(QString channel);
void userLoninSlot(QString userInfo);
void scrollInfo();
private slots:
void clickSlot();
void leaveSlot();
void enterSlot();
void positionChanged(qint64 position);
void showwhirlPicSlot(qint64 position);
signals:
void pauseSignal(bool pause);
void showPicSignal(qint64 position);
};
#endif // ARISTPICTURE_H