diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2013-01-03 13:35:22 +0100 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2013-01-03 13:35:22 +0100 |
commit | ba7c6277f024139ccca68f49d274d62e07c556b0 (patch) | |
tree | 2a46bc1ed8e0ac2cee5823ca320735f49721c8b9 /menu_whatson.h | |
parent | 5b85d9ca2d3cc4f0800e49c140eac583bf06e9a0 (diff) | |
download | vdr-plugin-epgsearch-ba7c6277f024139ccca68f49d274d62e07c556b0.tar.gz vdr-plugin-epgsearch-ba7c6277f024139ccca68f49d274d62e07c556b0.tar.bz2 |
special item separator class to handle SetMenuItem for separators
Diffstat (limited to 'menu_whatson.h')
-rw-r--r-- | menu_whatson.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/menu_whatson.h b/menu_whatson.h index a30a5ab..75595e8 100644 --- a/menu_whatson.h +++ b/menu_whatson.h @@ -40,11 +40,24 @@ public: cMenuTemplate* menuTemplate; cMenuMyScheduleItem(const cEvent *Event, cChannel *Channel = NULL, showMode ShowMode = showNow, cMenuTemplate* menuTemplate = NULL); - bool Update(bool Force = false); + virtual bool Update(bool Force = false); virtual void SetMenuItem(cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable); }; +// --- cMenuMyScheduleSepItem ------------------------------------------------------ +class cMenuMyScheduleSepItem : public cMenuMyScheduleItem { + cEvent *dummyEvent; // this event is used to store the text of the separator in its title + // to pass it in SetMenuItem via the event argument. Would be nice + // if VDR had a SetItemSeparator function for this +public: + + cMenuMyScheduleSepItem(const cEvent *Event, cChannel *Channel = NULL); + ~cMenuMyScheduleSepItem(); + virtual bool Update(bool Force = false); + virtual void SetMenuItem(cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable); +}; + // --- cMenuWhatsOnSearch ---------------------------------------------------------- class cMenuWhatsOnSearch : public cOsdMenu { private: |