-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmainwindow.h
137 lines (128 loc) · 4.2 KB
/
mainwindow.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "dialogurl.h"
#include "ui_dialogurl.h"
#include <QMainWindow>
#include <QMediaPlayer>
#include <QMediaPlaylist>
#include <QTableWidget>
#include <QMessageBox>
#include <QNetworkReply>
#include <QGraphicsVideoItem>
#include <QGraphicsTextItem>
#include <QTreeWidgetItem>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
protected:
void mousePressEvent(QMouseEvent *event);
void mouseDoubleClickEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
bool eventFilter(QObject *obj, QEvent *event);
private:
Ui::MainWindow *ui;
void createPopmenu();
void createTVList();
void open(QString path);
QString filename, STimeDuration, version="3.0";
QMediaPlayer *player;
QGraphicsScene *scene;
QGraphicsVideoItem *GVI;
QGraphicsTextItem *GTI;
QTimer *timer_information, *timer_controlPanel;
QMenu *popmenu;
QAction *PMAPlay, *PMAFullscreen, *PMACapture, *PMAInfo;
QTableWidget *table;
float sr=1;
QPoint m_point;
int widthV=0, heightV=0,widthV0=0, heightV0=0, listVisible, angle=0, mh=1, mv=1;
bool isListShow, isManualUpdate=false;
void dragEnterEvent(QDragEnterEvent*);
void dropEvent(QDropEvent*);
DialogURL *dialogUrl;
QMediaPlaylist *MPLurl, *playlist;
QPixmap pixmapAD;
QString SB(qint64 b);
void scale(float s);
void setSTime(qint64);
QString SBytes(qint64 bytes);
//bool importXSPF(QString fileName);
void appandText(QString fileName, QString text);
QTreeWidgetItem *TWI_search;
void genTreeLive();
void genTreeFM();
private slots:
void on_action_open_triggered();
void on_action_openURL_triggered();
void on_action_liveList_triggered();
void on_action_liveImport_triggered();
void on_action_quit_triggered();
void on_action_fullscreen_triggered();
void on_action_capture_triggered();
void on_action_capture16_triggered();
void on_action_info_triggered();
void on_action_volumeUp_triggered();
void on_action_volumeDown_triggered();
void on_action_volumeMute_triggered();
void on_action_help_triggered();
void on_action_changelog_triggered();
void on_action_aboutQt_triggered();
void on_action_about_triggered();
void on_pushButton_play_clicked();
void on_pushButton_stop_clicked();
void on_pushButton_seek_backward_clicked();
void on_pushButton_seek_forward_clicked();
void on_pushButton_skip_backward_clicked();
void on_pushButton_skip_forward_clicked();
void on_pushButton_mute_clicked();
void on_pushButton_playbackMode_clicked();
void on_pushButton_fullscreen_clicked();
void on_pushButton_list_clicked();
void durationChange(qint64);
void positionChange(qint64);
void volumeChange(int);
void mutedChange(bool muted);
void enterFullscreen();
void exitFullscreen();
void EEFullscreen();
void playPause();
void contextMenuEvent(QContextMenuEvent*);
//void playTV(int,int);
//void fillTable(QString);
void metaDataChange();
void showHideList();
void errorHandle(QMediaPlayer::Error);
void analyze();
void playURL(int,int);
void MPLCIChange(int);
void stateChange(QMediaPlayer::State);
void mediaStatusChange(QMediaPlayer::MediaStatus status);
void resizeEvent(QResizeEvent*);
void addHistory(QString url);
void openHistory(bool);
void on_action_scale0_triggered();
void on_action_scale0_5_triggered();
void on_action_scale1_triggered();
void on_action_scale1_5_triggered();
void on_action_scale2_triggered();
void fitDesktop();
void sliderProgressReleased();
//void sliderProgressValueChanged(int);
void sliderProgressMoved(int);
void sliderVolumeMoved(int);
void autoCheckVersion();
void manualCheckVersion(bool);
void checkVersion(bool);
void updateProgress(qint64 bytesReceived, qint64 bytesTotal);
QByteArray getReply(QString surl);
QByteArray postReply(QString surl,QString spost);
void search();
void treeWidgetItemDoubleClicked(QTreeWidgetItem *item, int column);
};
#endif // MAINWINDOW_H