00001 #ifndef MYTHAPPEARANCE_H 00002 #define MYTHAPPEARANCE_H 00003 00004 #include <qstringlist.h> 00005 #include <qstring.h> 00006 #include <qptrlist.h> 00007 00008 #include "mythscreentype.h" 00009 #include "mythuitext.h" 00010 #include "mythuibutton.h" 00011 #include "mythuiimage.h" 00012 //#include "mythgesture.h" 00013 #include "mythdialogbox.h" 00014 00015 class XMLParse; 00016 class MythAppearance : public MythScreenType 00017 { 00018 Q_OBJECT 00019 00020 public: 00021 00022 MythAppearance(MythScreenStack *parent, const char *name); 00023 ~MythAppearance(); 00024 00025 bool Create(void); 00026 bool keyPressEvent(QKeyEvent *); 00027 void customEvent(QCustomEvent *event); 00028 00029 protected: 00030 void doMenu(); 00031 private: 00032 int m_x_offset; 00033 int m_y_offset; 00034 bool m_whicharrow; 00035 bool m_coarsefine; 00036 bool m_changed; 00037 int m_fine; 00038 int m_coarse; 00039 int m_change; 00040 int m_topleftarrow_x; 00041 int m_topleftarrow_y; 00042 int m_bottomrightarrow_x; 00043 int m_bottomrightarrow_y; 00044 int m_arrowsize_x; 00045 int m_arrowsize_y; 00046 int m_screenwidth; 00047 int m_screenheight; 00048 int m_xsize; 00049 int m_ysize; 00050 int m_xoffset; 00051 int m_yoffset; 00052 int m_xoffset_old; 00053 int m_yoffset_old; 00054 00055 void getSettings(); 00056 void getScreenInfo(); 00057 00058 QRect m_menuRect; 00059 QRect m_arrowsRect; 00060 00061 MythUIImage *m_topleftarrow; 00062 MythUIImage *m_bottomrightarrow; 00063 MythUIText *m_size; 00064 MythUIText *m_offsets; 00065 MythUIText *m_changeamount; 00066 MythUIButton *OKButton; 00067 MythUIButton *updateButton; 00068 MythDialogBox *m_menuPopup; 00069 00070 void moveUp(); 00071 void moveDown(); 00072 void moveLeft(); 00073 void moveRight(); 00074 void swapArrows(); 00075 void wireUpTheme(); 00076 void updateScreen(); 00077 void updateSettings(); 00078 void anythingChanged(); 00079 void setContext(int context); 00080 00081 void slotSaveSettings(); 00082 void slotChangeCoarseFine(); 00083 void closeMenu(); 00084 void slotResetSettings(); 00085 }; 00086 00087 #endif
1.5.5