14 * |
14 * |
15 * You should have received a copy of the GNU General Public License |
15 * You should have received a copy of the GNU General Public License |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 */ |
17 */ |
18 |
18 |
19 #ifndef ZCINEMA_PROMPTS_H |
19 #pragma once |
20 #define ZCINEMA_PROMPTS_H |
|
21 |
|
22 #include <QDialog> |
20 #include <QDialog> |
23 #include "main.h" |
21 #include "main.h" |
24 #include "types.h" |
22 #include "types.h" |
25 |
23 |
26 class QAbstractButton; |
24 // |
27 class Ui_UnknownVersion; |
25 // ------------------------------------------------------------------------------------------------- |
28 class Ui_FindFile; |
26 // |
29 |
27 |
30 // ============================================================================= |
28 class UnknownVersionPrompt : public QDialog |
31 // ----------------------------------------------------------------------------- |
29 { |
32 class UnknownVersionPrompt : public QDialog { |
|
33 Q_OBJECT |
30 Q_OBJECT |
34 |
31 |
35 public: |
32 public: |
36 explicit UnknownVersionPrompt (QString fileName, QString binaryName, bool isRelease, |
33 UnknownVersionPrompt (QString fileName, QString binaryName, bool isRelease, |
37 QWidget* parent = NULL, Qt::WindowFlags f = 0); |
34 QWidget* parent = NULL, Qt::WindowFlags f = 0); |
38 virtual ~UnknownVersionPrompt(); |
35 virtual ~UnknownVersionPrompt(); |
39 |
36 |
40 public slots: |
37 public slots: |
41 void findBinary(); |
38 void findBinary(); |
42 void addBinary(); |
39 void addBinary(); |
43 |
40 |
44 private: |
41 private: |
45 Ui_UnknownVersion* ui; |
42 class Ui_UnknownVersion* ui; |
46 QString m_binaryString; |
43 QString m_binaryString; |
47 bool m_isRelease; |
44 bool m_isRelease; |
48 }; |
45 }; |
49 |
46 |
50 // ============================================================================= |
47 // |
51 // ----------------------------------------------------------------------------- |
48 // ------------------------------------------------------------------------------------------------- |
52 class FindFilePrompt : public QDialog { |
49 // |
|
50 |
|
51 class FindFilePrompt : public QDialog |
|
52 { |
53 Q_OBJECT |
53 Q_OBJECT |
54 |
54 |
55 public: |
55 public: |
56 explicit FindFilePrompt (QWidget* parent = 0, Qt::WindowFlags f = 0); |
56 FindFilePrompt (QWidget* parent = NULL, Qt::WindowFlags f = 0); |
57 virtual ~FindFilePrompt(); |
57 virtual ~FindFilePrompt(); |
58 |
58 |
59 QString path() const; |
59 QString path() const; |
60 |
60 |
61 public slots: |
61 public slots: |
62 void findDemo(); |
62 void findDemo(); |
63 |
63 |
64 private: |
64 private: |
65 Ui_FindFile* m_ui; |
65 class Ui_FindFile* m_ui; |
66 }; |
66 }; |
67 |
67 |
68 #endif // ZCINEMA_PROMPTS_H |
68 // |
|
69 // ------------------------------------------------------------------------------------------------- |
|
70 // |
|
71 |
|
72 class AddVersionPrompt : public QDialog |
|
73 { |
|
74 Q_OBJECT |
|
75 |
|
76 public: |
|
77 AddVersionPrompt (struct VersionGuiEntry* entry, QWidget* parent = NULL, Qt::WindowFlags f = 0); |
|
78 virtual ~AddVersionPrompt(); |
|
79 VersionGuiEntry* getVersionInfo(); |
|
80 |
|
81 private slots: |
|
82 void acceptPressed(); |
|
83 void findExePath(); |
|
84 |
|
85 private: |
|
86 class Ui_AddVersion& ui; |
|
87 struct VersionGuiEntry* m_entry; |
|
88 }; |