-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.h
79 lines (64 loc) · 1.66 KB
/
player.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
#ifndef PLAYER_H
#define PLAYER_H
#include <QMainWindow>
#include <Phonon/AudioOutput>
#include <Phonon/SeekSlider>
#include <Phonon/VideoWidget>
#include <Phonon/MediaObject>
#include <Phonon/VolumeSlider>
#include <Phonon/BackendCapabilities>
#include <QFileDialog>
#include <QStandardItem>
#include "pathuri.h"
#include "fileproperty.h"
#include "manageplaylist.h"
#include<QLabel>
namespace Ui {
class Player;
}
class Player : public QMainWindow
{
Q_OBJECT
public:
explicit Player(QWidget *parent = 0);
~Player();
QLabel *timelbl;
private:
Ui::Player *ui;
Phonon::MediaObject *media; //player widget
Phonon::VideoWidget *vwidget; //video widget
Phonon::AudioOutput *aOutput;
Phonon::VolumeSlider *volumeSlider;
Phonon::SeekSlider *seekSlider;
QString filePath;
FileProperty *p;
PathURI *puri;
ManagePlayList managepl;
QStandardItemModel *standardItemModel;
//解析lrc歌词
void resolve_lrc(const QString &source_file_name);
// void getlrc(QString *filename);
void getlrc();
void mouseDoubleClickEvent(QMouseEvent *event);
// void mouseClick(QMouseEvent *event);
QTimer *timer;
void showlbl(const QString thestr);
private slots:
void on_pbStop_clicked();
void on_pbPause_clicked();
void on_pbPlay_clicked();
void setPath();
void incSound();
void decSound();
void myGrabWindow();
void hideShowListView();
void showProperty();
void uriOpenFile();
void fullNormalScreen();
void selectedMoviePlay();
void clearPlayList();
void showTime(qint64);
void mouseClick();
void on_actionShow_lrc_2_triggered();
};
#endif // PLAYER_H