diff -r db677d321cf4 -r 2c368cf5cc19 src/prompts.h --- a/src/prompts.h Fri Jun 05 19:13:44 2015 +0300 +++ b/src/prompts.h Sat Jun 06 22:03:00 2015 +0300 @@ -16,53 +16,73 @@ * along with this program. If not, see . */ -#ifndef ZCINEMA_PROMPTS_H -#define ZCINEMA_PROMPTS_H - +#pragma once #include #include "main.h" #include "types.h" -class QAbstractButton; -class Ui_UnknownVersion; -class Ui_FindFile; +// +// ------------------------------------------------------------------------------------------------- +// -// ============================================================================= -// ----------------------------------------------------------------------------- -class UnknownVersionPrompt : public QDialog { +class UnknownVersionPrompt : public QDialog +{ Q_OBJECT - + public: - explicit UnknownVersionPrompt (QString fileName, QString binaryName, bool isRelease, - QWidget* parent = NULL, Qt::WindowFlags f = 0); + UnknownVersionPrompt (QString fileName, QString binaryName, bool isRelease, + QWidget* parent = NULL, Qt::WindowFlags f = 0); virtual ~UnknownVersionPrompt(); - + public slots: void findBinary(); void addBinary(); - + private: - Ui_UnknownVersion* ui; - QString m_binaryString; - bool m_isRelease; + class Ui_UnknownVersion* ui; + QString m_binaryString; + bool m_isRelease; }; -// ============================================================================= -// ----------------------------------------------------------------------------- -class FindFilePrompt : public QDialog { +// +// ------------------------------------------------------------------------------------------------- +// + +class FindFilePrompt : public QDialog +{ Q_OBJECT - + public: - explicit FindFilePrompt (QWidget* parent = 0, Qt::WindowFlags f = 0); + FindFilePrompt (QWidget* parent = NULL, Qt::WindowFlags f = 0); virtual ~FindFilePrompt(); - + QString path() const; - + public slots: void findDemo(); - + private: - Ui_FindFile* m_ui; + class Ui_FindFile* m_ui; }; -#endif // ZCINEMA_PROMPTS_H \ No newline at end of file +// +// ------------------------------------------------------------------------------------------------- +// + +class AddVersionPrompt : public QDialog +{ + Q_OBJECT + +public: + AddVersionPrompt (struct VersionGuiEntry* entry, QWidget* parent = NULL, Qt::WindowFlags f = 0); + virtual ~AddVersionPrompt(); + VersionGuiEntry* getVersionInfo(); + +private slots: + void acceptPressed(); + void findExePath(); + +private: + class Ui_AddVersion& ui; + struct VersionGuiEntry* m_entry; +};