-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathopendialog.hpp
67 lines (45 loc) · 1.11 KB
/
opendialog.hpp
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
#ifndef OPENDIALOG_HPP
#define OPENDIALOG_HPP
#include <memory>
#include <QDialog>
#include <QSettings>
#include "extractors/baseextractor.hpp"
#include "ui_opendialog.h"
class QNetworkRequest;
class QString;
class QStringList;
class QUrl;
namespace Ui {
class OpenDialog;
}
namespace vfg {
namespace ui {
class OpenDialog : public QDialog
{
Q_OBJECT
public:
explicit OpenDialog(QWidget *parent = 0);
enum class Tab {
OpenDisc,
OpenStream
};
void setActiveTab(Tab tabName);
private:
::Ui::OpenDialog ui;
std::unique_ptr<vfg::extractor::BaseExtractor> extractor;
QSettings config {"config.ini", QSettings::IniFormat};
private slots:
void on_networkUrl_textEdited(const QString &arg1);
void streamsReady();
void on_openButton_clicked();
void on_cancelButton_clicked();
void on_browseFiles_clicked();
void on_clearButton_clicked();
void on_removeButton_clicked();
signals:
void openUrl(const QNetworkRequest& url);
void processDiscFiles(const QStringList& files);
};
} // namespace ui
} // namespace vfg
#endif // OPENDIALOG_HPP