-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvlcplaylistcreator.h
61 lines (54 loc) · 1.51 KB
/
vlcplaylistcreator.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
#ifndef VLCPLAYLISTCREATOR_H
#define VLCPLAYLISTCREATOR_H
#include <QMainWindow>
#include <QLineEdit>
#include <QCheckBox>
#include <QTextEdit>
#include <QMenuBar>
#include <QMenu>
#include <QAction>
#include <QListWidget>
#include <QTabWidget>
#include <QVBoxLayout>
#include <QSplitter>
#include <QSettings>
#include <QComboBox>
#include "videoprocessor.h"
class VLCPlaylistCreator : public QMainWindow {
Q_OBJECT
public:
VLCPlaylistCreator(QWidget *parent = nullptr);
private slots:
void browseDirectory();
void processDirectory();
void updateOutput(const QString &output);
void displayError(const QString &error);
void appendLog(const QString &message);
void openAddVideoDialog();
void addVideoToPlaylist();
void browseVideoFile();
void switchDisplayMode(int index);
void processManualPlaylist();
void clearManualPlaylist();
private:
QLineEdit *m_directoryInput;
QCheckBox *m_verboseCheckbox;
QComboBox *m_sortTypeComboBox;
QTextEdit *m_outputTextEdit;
QTextEdit *m_logTextEdit;
QLineEdit *m_videoInput;
QListWidget *m_playlist;
QTabWidget *m_mainTabWidget;
QTabWidget *m_displayTabWidget;
QMenuBar *menuBar;
QMenu *fileMenu;
QAction *addVideoAction;
QStringList m_videoPaths;
QSettings m_settings;
void updatePlaylistDisplay();
QString getOutputFilePath();
void saveLastDirectory(const QString &path);
QString getLastDirectory();
VideoProcessor::SortType getCurrentSortType();
};
#endif // VLCPLAYLISTCREATOR_H