summaryrefslogtreecommitdiff
path: root/render.h
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-06-05 18:06:22 +0000
committerlordjaxom <lordjaxom>2004-06-05 18:06:22 +0000
commit6094765d94e4caaf0813039dff826b731f277753 (patch)
treefed79334167f26d5a81a6cae9be3f1341375a36f /render.h
parente0c2ee1d37c0f213f22a04df71710bebe3526f85 (diff)
downloadvdr-plugin-text2skin-6094765d94e4caaf0813039dff826b731f277753.tar.gz
vdr-plugin-text2skin-6094765d94e4caaf0813039dff826b731f277753.tar.bz2
- added scrollable texts and "SymbolScrollUp" and "SymbolScrollDown"v0.0.1
- added "MenuText", "MenuEventTitle", "MenuEventShortText", "MenuEventDescription", "MenuEventTime", "MenuRecording", "SymbolEventRunning", "SymbolEventTimer" and "SymbolEventVPS" - implemented image caching - added english and german README - removed some workarounds, and added a patch to vdr to the tree (will be included in 1.3.10) - fixed two bugs when displaying replay symbols - implemented tabbed texts in menu
Diffstat (limited to 'render.h')
-rw-r--r--render.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/render.h b/render.h
index e96fd08..e27ac5b 100644
--- a/render.h
+++ b/render.h
@@ -1,5 +1,5 @@
/*
- * $Id: render.h,v 1.12 2004/06/02 20:43:05 lordjaxom Exp $
+ * $Id: render.h,v 1.15 2004/06/05 18:04:29 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_RENDER_H
@@ -28,6 +28,7 @@ private:
cText2SkinTheme *mTheme;
eSkinSection mSection;
cOsd *mOsd;
+ cTextScroller *mScroller;
// channel display
const cChannel *mChannel;
@@ -58,9 +59,10 @@ private:
// menu
struct MenuItem {
- string name;
+ string text;
+ string tabs[cSkinDisplayMenu::MaxTabs];
bool sel;
- bool operator!=(const MenuItem &b) { return b.name != name || b.sel != sel; }
+ bool operator!=(const MenuItem &b) { return b.text != text || b.sel != sel; }
};
string mMenuTitle;
vector<MenuItem> mMenuItems;
@@ -73,7 +75,11 @@ private:
const cRecording *mMenuRecording;
string mMenuText;
bool mMenuTextFixedFont;
-
+ bool mMenuScroll;
+ bool mMenuScrollUp;
+ bool mMenuScrollPage;
+ int mMenuTabs[cSkinDisplayMenu::MaxTabs];
+
protected:
// Basic operations
void DrawBackground(const POINT &Pos, const SIZE &Size, const tColor *Bg, const tColor *Fg, const string &Path);
@@ -84,6 +90,7 @@ protected:
void DrawSlope(const POINT &Pos, const SIZE &Size, const tColor *Fg, int Arc);
void DrawProgressbar(const POINT &Pos, const SIZE &Size, int Current, int Total, const tColor *Fg, const tColor *Bg, const cMarks *Marks = NULL);
void DrawMark(const POINT &Pos, const SIZE &Size, bool Start, bool Current, bool Horizontal);
+ void DrawScrollText(const POINT &Pos, const SIZE &Size, const tColor *Fg, const string &Text, const cFont *Font, int Align);
// High-level operations
void DisplayBackground(cText2SkinItem *Item);
@@ -119,13 +126,19 @@ protected:
void DisplayMenuItems(cText2SkinItem *Item);
void DisplayMenuTitle(cText2SkinItem *Item);
void DisplayMenuColorbutton(cText2SkinItem *Item);
- void DisplayMenuMessage(cText2SkinItem *Item);
+ void DisplayMenuText(cText2SkinItem *Item);
+ void DisplayMenuEventTitle(cText2SkinItem *Item);
+ void DisplayMenuEventShortText(cText2SkinItem *Item);
+ void DisplayMenuEventDescription(cText2SkinItem *Item);
+ void DisplayMenuEventTime(cText2SkinItem *Item);
+ void DisplayMenuRecording(cText2SkinItem *Item);
// Helpers
string ItemText(cText2SkinItem *Item);
string ItemText(cText2SkinItem *Item, const string &Content);
tColor *ItemFg(cText2SkinItem *Item);
tColor *ItemBg(cText2SkinItem *Item);
+ int GetEditableWidth(MenuItem Item, bool Current);
public:
cText2SkinRender(cText2SkinData *Data, cText2SkinI18n *I18n, cText2SkinTheme *Theme, eSkinSection Section);