00001 #ifndef LANGSETTINGS_H_ 00002 #define LANGSETTINGS_H_ 00003 00004 // QT headers 00005 #include <QObject> 00006 #include <QTranslator> 00007 00008 // MythDB headers 00009 #include "mythexp.h" 00010 00011 // MythUI headers 00012 #include "mythscreentype.h" 00013 #include "mythscreenstack.h" 00014 00015 class MythUIButtonList; 00016 class MythUIButtonListItem; 00017 class MythUIButton; 00018 class MythUIText; 00019 00020 class MPUBLIC LanguageSelection : public MythScreenType 00021 { 00022 Q_OBJECT 00023 00024 public: 00025 LanguageSelection(MythScreenStack *parent, bool exitOnFinish = false); 00026 ~LanguageSelection(void); 00027 00031 static bool prompt(bool force = false); 00032 00033 bool Create(void); 00034 void Load(void); 00035 00036 private slots: 00037 //void LanguageClicked(MythUIButtonListItem *item); 00038 //void CountryClicked(MythUIButtonListItem *item); 00039 void Close(void); 00040 void Save(void); 00041 00042 private: 00043 void LanguageChanged(void); 00044 00045 MythUIButtonList *m_languageList; 00046 MythUIButtonList *m_countryList; 00047 MythUIButton *m_saveButton; 00048 MythUIButton *m_cancelButton; 00049 00050 bool m_exitOnFinish; 00051 bool m_loaded; 00052 static bool m_languageChanged; 00053 QString m_language; 00054 QString m_country; 00055 }; 00056 00057 #endif
1.6.3