diff options
author | Britney Fransen <brfransen@gmail.com> | 2017-12-14 22:29:56 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2017-12-14 22:29:56 (GMT) |
commit | 617a3af08e1baa921cda93e0077121f22a9447d9 (patch) | |
tree | a0b1eb2a96c8249239f7f6380a3da12ba2b7c8f6 /abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h | |
parent | 9b5ae377f655f80525fb73e26fb3bbcd601c9f32 (diff) | |
download | linhes_pkgbuild-617a3af08e1baa921cda93e0077121f22a9447d9.zip linhes_pkgbuild-617a3af08e1baa921cda93e0077121f22a9447d9.tar.gz linhes_pkgbuild-617a3af08e1baa921cda93e0077121f22a9447d9.tar.bz2 |
mythinstall: port question, readme and help screens to MythUI
eliminate some compiler warnings by checking for system call outputs.
Diffstat (limited to 'abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h')
-rwxr-xr-x | abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h b/abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h new file mode 100755 index 0000000..a2c2c79 --- /dev/null +++ b/abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h @@ -0,0 +1,43 @@ +#ifndef QUESIONNOTICEDIALOG_H_ +#define QUESIONNOTICEDIALOG_H_ + +// qt +#include <QDateTime> + +// libmythui +#include "mythscreentype.h" +#include "mythuibutton.h" +#include "mythuitext.h" +#include "mythdialogbox.h" + +class QuestionNoticeDialog : public MythScreenType +{ + + Q_OBJECT + +public: + QuestionNoticeDialog(MythScreenStack *parent, const char *name); + ~QuestionNoticeDialog(); + + bool Create(QString questionORnotice, QString title, QString displayText); + +protected slots: + void yesButton(void); + void yesButtonClick(void); + void noButton(void); + void noButtonClick(void); + void okButton(void); + void okButtonClick(void); + +private: + // GUI stuff + MythUIText *m_title_text; + MythUIText *m_notice_text; + MythUIButton *m_ok_button; + + MythUIText *m_question_text; + MythUIButton *m_yes_button; + MythUIButton *m_no_button; +}; + +#endif |