diff options
author | lordjaxom <lordjaxom> | 2004-06-07 19:09:34 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-06-07 19:09:34 +0000 |
commit | e0de96fc7168daeaf414fb6196e08969468427d2 (patch) | |
tree | de7f2dfb83796a7c77e5600a23b8b6b26f284796 /render.h | |
parent | 6094765d94e4caaf0813039dff826b731f277753 (diff) | |
download | vdr-plugin-text2skin-e0de96fc7168daeaf414fb6196e08969468427d2.tar.gz vdr-plugin-text2skin-e0de96fc7168daeaf414fb6196e08969468427d2.tar.bz2 |
- fixed Timebar which sometimes displayed something beyond 100%v0.0.2
- fixed scrolling in EPG detail display
- added "MenuEventEndTime", "MenuEventVPSTime" and "MenuEventDate"
- added "DateTimeF" and "MenuEventDateTimeF" for free formattable dates
- added parameter format that holds the format string for the above items
- implemented setup menu to flush image cache
Diffstat (limited to 'render.h')
-rw-r--r-- | render.h | 27 |
1 files changed, 19 insertions, 8 deletions
@@ -1,5 +1,5 @@ /* - * $Id: render.h,v 1.15 2004/06/05 18:04:29 lordjaxom Exp $ + * $Id: render.h,v 1.17 2004/06/07 19:08:42 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_RENDER_H @@ -7,15 +7,18 @@ #include "common.h" #include "data.h" -#include "i18n.h" -#include "theme.h" #include <vdr/osd.h> #include <vdr/skins.h> +#include <vdr/thread.h> class cChannel; class cEvent; +class cText2SkinLoader; +class cText2SkinData; +class cText2SkinI18n; +class cText2SkinTheme; -class cText2SkinRender { +class cText2SkinRender: public cThread { friend class cText2SkinDisplayChannel; friend class cText2SkinDisplayVolume; friend class cText2SkinDisplayReplay; @@ -80,7 +83,17 @@ private: bool mMenuScrollPage; int mMenuTabs[cSkinDisplayMenu::MaxTabs]; + // update thread + bool mActive; + cCondVar mDoUpdate; + cMutex mMutex; + protected: + // Update thread + void Lock(void) { mMutex.Lock(); } + void Unlock(void) { mMutex.Unlock(); } + virtual void Action(void); + // Basic operations void DrawBackground(const POINT &Pos, const SIZE &Size, const tColor *Bg, const tColor *Fg, const string &Path); void DrawImage(const POINT &Pos, const SIZE &Size, const tColor *Bg, const tColor *Fg, const string &Path); @@ -99,8 +112,6 @@ protected: void DisplayText(cText2SkinItem *Item); void DisplayImage(cText2SkinItem *Item); void DisplayDateTime(cText2SkinItem *Item); - void DisplayDate(cText2SkinItem *Item); - void DisplayTime(cText2SkinItem *Item); void DisplayChannelNumberName(cText2SkinItem *Item); void DisplayChannelNumber(cText2SkinItem *Item); void DisplayChannelName(cText2SkinItem *Item); @@ -141,8 +152,8 @@ protected: int GetEditableWidth(MenuItem Item, bool Current); public: - cText2SkinRender(cText2SkinData *Data, cText2SkinI18n *I18n, cText2SkinTheme *Theme, eSkinSection Section); - ~cText2SkinRender(); + cText2SkinRender(cText2SkinLoader *Loader, eSkinSection Section); + virtual ~cText2SkinRender(); void Flush(void); }; |