Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/YoutubeDownload/ytsettings.h
- This file was added.
1 | #ifndef YTSETTINGS_H | ||||
---|---|---|---|---|---|
2 | #define YTSETTINGS_H | ||||
3 | | ||||
4 | #include <QDialog> | ||||
5 | #include "ytinterface.h" | ||||
6 | #include "ytprocess.h" | ||||
7 | | ||||
8 | namespace Ui { | ||||
9 | class YtSettings; | ||||
10 | } | ||||
11 | | ||||
12 | class YtSettings : public QDialog | ||||
13 | { | ||||
14 | Q_OBJECT | ||||
15 | | ||||
16 | public: | ||||
17 | explicit YtSettings(YtInterface *plugin, QWidget *parent = nullptr); | ||||
18 | ~YtSettings(); | ||||
19 | | ||||
20 | private Q_SLOTS: | ||||
21 | | ||||
22 | void on_buttonBox_accepted(); | ||||
23 | | ||||
24 | void on_buttonBox_rejected(); | ||||
25 | | ||||
26 | void selectFile(); | ||||
27 | void selectDir(); | ||||
28 | void changeExec(const QString& file); | ||||
29 | | ||||
30 | private: | ||||
31 | | ||||
32 | Ui::YtSettings *ui; | ||||
33 | YtInterface *m_plugin; | ||||
34 | }; | ||||
35 | | ||||
36 | #endif |