diff options
author | louis <louis.braun@gmx.de> | 2016-03-13 16:07:21 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2016-03-13 16:07:21 +0100 |
commit | 4623e7b345f850ac44cdcacbd0e43e139a4baa6a (patch) | |
tree | 8046f612d0a0821624e7de006021f551ea512d15 /recmenu.h | |
parent | d4ef992f8256d324221d15d3bef967eb044a9a86 (diff) | |
download | vdr-plugin-tvguideng-4623e7b345f850ac44cdcacbd0e43e139a4baa6a.tar.gz vdr-plugin-tvguideng-4623e7b345f850ac44cdcacbd0e43e139a4baa6a.tar.bz2 |
added VDR 2.3.1 compatibility
Diffstat (limited to 'recmenu.h')
-rw-r--r-- | recmenu.h | 130 |
1 files changed, 65 insertions, 65 deletions
@@ -1,66 +1,66 @@ -#ifndef __TVGUIDE_RECMENU_H
-#define __TVGUIDE_RECMENU_H
-
-#include <list>
-#include <libskindesignerapi/skindesignerosdbase.h>
-#include "definitions.h"
-#include "recmenuitem.h"
-
-// --- cRecMenu -------------------------------------------------------------
-
-class cRecMenu {
-private:
- bool hidden;
- int menuWidth;
- int menuHeight;
- int maxMenuHeight;
- skindesignerapi::cOsdView *osdView;
- skindesignerapi::cViewElement *back;
- skindesignerapi::cViewElement *scrollBar;
- skindesignerapi::cViewGrid *recMenuGrid;
- cList<cRecMenuItem> menuItems;
- cRecMenuItem *start;
- cRecMenuItem *stop;
- int itemCount;
- cRecMenuItem *active;
- cRecMenuItem *header;
- cRecMenuItem *footer;
- bool scrolling;
- bool SeekForward(bool page);
- bool SeekBack(bool page);
- void SetFirst(void);
- void SetLast(void);
- void DrawScrollbar(void);
- void DrawHeader(void);
- void DrawFooter(void);
-protected:
- void SetMenuWidth(int width) { menuWidth = width; };
- void AddMenuItem(cRecMenuItem *item, bool inFront = false);
- void AddHeader(cRecMenuItem *header);
- void AddFooter(cRecMenuItem *footer);
- int GetNumActive(void);
- cRecMenuItem *GetActive(void) { return active; };
- bool ScrollUp(bool retry);
- bool ScrollDown(bool retry);
- bool PageUp(void);
- bool PageDown(void);
- void ClearMenuItems(bool deleteItems);
- void InitMenuItems(void);
- void InitMenuItemsLast(void);
- int GetWidth(void) { return menuWidth; };
- int GetHeight(void);
-public:
- cRecMenu(void);
- virtual ~cRecMenu(void);
- void Init(skindesignerapi::cOsdView *osdView);
- void Activate(void) { osdView->Activate(); };
- void DrawBackground(void);
- void Draw(void);
- void Hide(void) { hidden = true; osdView->Deactivate(true); };
- void Show(void) { hidden = false; osdView->Activate(); };
- void Flush(void) { osdView->Display(); };
- virtual eRecMenuState ProcessKey(eKeys Key);
- static void DefineTokens(eViewElementsRecMenu ve, skindesignerapi::cTokenContainer *tk);
- static void DefineTokens(eViewGridsRecMenu vg, skindesignerapi::cTokenContainer *tk);
-};
+#ifndef __TVGUIDE_RECMENU_H +#define __TVGUIDE_RECMENU_H + +#include <list> +#include <libskindesignerapi/skindesignerosdbase.h> +#include "definitions.h" +#include "recmenuitem.h" + +// --- cRecMenu ------------------------------------------------------------- + +class cRecMenu { +private: + bool hidden; + int menuWidth; + int menuHeight; + int maxMenuHeight; + skindesignerapi::cOsdView *osdView; + skindesignerapi::cViewElement *back; + skindesignerapi::cViewElement *scrollBar; + skindesignerapi::cViewGrid *recMenuGrid; + cList<cRecMenuItem> menuItems; + cRecMenuItem *start; + cRecMenuItem *stop; + int itemCount; + cRecMenuItem *active; + cRecMenuItem *header; + cRecMenuItem *footer; + bool scrolling; + bool SeekForward(bool page); + bool SeekBack(bool page); + void SetFirst(void); + void SetLast(void); + void DrawScrollbar(void); + void DrawHeader(void); + void DrawFooter(void); +protected: + void SetMenuWidth(int width) { menuWidth = width; }; + void AddMenuItem(cRecMenuItem *item, bool inFront = false); + void AddHeader(cRecMenuItem *header); + void AddFooter(cRecMenuItem *footer); + int GetNumActive(void); + cRecMenuItem *GetActive(void) { return active; }; + bool ScrollUp(bool retry); + bool ScrollDown(bool retry); + bool PageUp(void); + bool PageDown(void); + void ClearMenuItems(bool deleteItems); + void InitMenuItems(void); + void InitMenuItemsLast(void); + int GetWidth(void) { return menuWidth; }; + int GetHeight(void); +public: + cRecMenu(void); + virtual ~cRecMenu(void); + void Init(skindesignerapi::cOsdView *osdView); + void Activate(void) { osdView->Activate(); }; + void DrawBackground(void); + void Draw(void); + void Hide(void) { hidden = true; osdView->Deactivate(true); }; + void Show(void) { hidden = false; osdView->Activate(); }; + void Flush(void) { osdView->Display(); }; + virtual eRecMenuState ProcessKey(eKeys Key); + static void DefineTokens(eViewElementsRecMenu ve, skindesignerapi::cTokenContainer *tk); + static void DefineTokens(eViewGridsRecMenu vg, skindesignerapi::cTokenContainer *tk); +}; #endif //__TVGUIDE_RECMENU_H
\ No newline at end of file |