00001 #ifndef GENERALSETUPWIZARD_H 00002 #define GENERALSETUPWIZARD_H 00003 00004 #include "uitypes.h" 00005 #include "mythwidgets.h" 00006 #include "mythdialogs.h" 00007 00008 // libmythui 00009 #include "mythuitext.h" 00010 #include "mythuibutton.h" 00011 #include "mythuicheckbox.h" 00012 #include "mythscreentype.h" 00013 #include "mythdialogbox.h" 00014 #include "mythprogressdialog.h" 00015 00016 class HardwareProfile; 00017 00018 class GeneralSetupWizard : public MythScreenType 00019 { 00020 Q_OBJECT 00021 00022 public: 00023 00024 GeneralSetupWizard(MythScreenStack *parent, const char *name = 0); 00025 ~GeneralSetupWizard(); 00026 00027 bool Create(void); 00028 bool keyPressEvent(QKeyEvent *); 00029 00030 void save(void); 00031 00032 public slots: 00033 void OnSubmitPromptReturn(bool submit); 00034 void OnDeletePromptReturn(bool submit); 00035 00036 private: 00037 void CreateBusyDialog(QString message); 00038 00039 MythUIButton *m_submitButton; 00040 MythUIButton *m_viewButton; 00041 MythUIButton *m_deleteButton; 00042 00043 MythUIButton *m_nextButton; 00044 MythUIButton *m_cancelButton; 00045 00046 MythUIText *m_profileLocation; 00047 MythUIText *m_adminPassword; 00048 00049 MythScreenStack *m_popupStack; 00050 MythUIBusyDialog *m_busyPopup; 00051 00052 HardwareProfile *m_hardwareProfile; 00053 00054 private slots: 00055 void loadData(void); 00056 void slotNext(void); 00057 00058 void slotSubmit(void); 00059 void slotView(void); 00060 void slotDelete(void); 00061 }; 00062 00063 #endif 00064
1.6.3