-
Notifications
You must be signed in to change notification settings - Fork 0
/
SimplePlayer.h
72 lines (57 loc) · 1.33 KB
/
SimplePlayer.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
/*
* VLC-Qt Simple Player
* Copyright (C)
*/
#ifndef SIMPLEPLAYER_H_
#define SIMPLEPLAYER_H_
#include <QMainWindow>
#include <QTime>
#include <QDebug>
#include <QMouseEvent>
#include "customseekslider.h"
#include "widget/aboutdialog.h"
namespace Ui {
class SimplePlayer;
}
class SimplePlayer : public QMainWindow
{
Q_OBJECT
public:
explicit SimplePlayer(QWidget *parent = 0);
~SimplePlayer();
Ui::SimplePlayer * getUI();
void changeSeek(float pos);
const long long MAXVALUE = 100000000;
public slots:
void updateDurationLabel(int type, QTime time);
void activeSlider();
void changePlayIcon(bool);
void changeModeIcon(QString);
private:
Ui::SimplePlayer *ui;
aboutDialog *aboutWidget;
bool isDrag;
QPoint mouse;
QPoint win;
protected:
bool eventFilter(QObject *, QEvent *);
signals:
void open_local_files();
void open_url();
void toggle_play_state();
void seekSlider_clicked(double);
void seekSlider_moved(int);
void seekSlider_released();
void volumeSlider_changed(int);
void signal_set_full_screen();
void showList();
void takeSnapShot();
void toggleMute();
void recordPos();
void moveDif(QPoint);
void debugTest();
void leftClick(bool);
void rightClick(bool);
void modeChange();
};
#endif // SIMPLEPLAYER_H_