From c1bf83aec2961a4e84dbc1c36042bd985f044a91 Mon Sep 17 00:00:00 2001 From: Andreas Brugger Date: Sat, 4 Feb 2006 11:49:02 +0100 Subject: 2006-02-04: Version 1.1-cvs_ext-0.7 (vdr-text2skin-1.1-cvs_ext-0.7.diff) - changed the routines to determine the next timers - added the possibility to have a scrollbar in every menu - not fully implemented yet (to position in menu-lists is not necessarily correct, if there are more items with the same osd-text) --- render.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'render.h') diff --git a/render.h b/render.h index b0e50cf..4748a0d 100644 --- a/render.h +++ b/render.h @@ -134,8 +134,19 @@ public: static bool ItemColor(const std::string &Color, tColor &Result); static std::string ImagePath(const std::string &Filename); static cxType GetToken(const txToken &Token); + + // provide scrollbar in every menu + struct tMenuScrollbar + { + int current; + int total; + std::vector items; - // update infos + tMenuScrollbar(void) : current(0), total(0) {} + //bool available(void) { printf("%d / %d\n", total, GetMaxItems(); return total > GetMaxItems(); } + } mMenuScrollbar; + + // update infos (e.g. timerConflict) struct tUpdate { bool timerConflict; -- cgit v1.2.3