00001 #ifndef MYTHUI_CLOCK_H_ 00002 #define MYTHUI_CLOCK_H_ 00003 00004 #include <qstring.h> 00005 #include <qdatetime.h> 00006 #include <qvaluevector.h> 00007 00008 #include "mythuitype.h" 00009 #include "mythuitext.h" 00010 00011 class MythFontProperties; 00012 00027 class MythUIClock : public MythUIText 00028 { 00029 public: 00030 MythUIClock(MythUIType *parent, const char *name); 00031 ~MythUIClock(); 00032 00033 virtual void Pulse(void); 00034 00035 protected: 00036 virtual bool ParseElement(QDomElement &element); 00037 virtual void CopyFrom(MythUIType *base); 00038 virtual void CreateCopy(MythUIType *parent); 00039 00040 QDateTime m_Time; 00041 QDateTime m_nextUpdate; 00042 00043 QString m_Format; 00044 QString m_TimeFormat; 00045 QString m_DateFormat; 00046 QString m_ShortDateFormat; 00047 00048 bool m_SecsFlash; 00049 bool m_Flash; 00050 }; 00051 00052 #endif
1.5.5