summaryrefslogtreecommitdiffstats
path: root/abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2017-12-14 22:29:56 (GMT)
committerBritney Fransen <brfransen@gmail.com>2017-12-14 22:29:56 (GMT)
commit617a3af08e1baa921cda93e0077121f22a9447d9 (patch)
treea0b1eb2a96c8249239f7f6380a3da12ba2b7c8f6 /abs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h
parent9b5ae377f655f80525fb73e26fb3bbcd601c9f32 (diff)
downloadlinhes_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-xabs/core/mythinstall/MythVantage-app/mythinstall/questionnotice.h43
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