X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ee588fe50c77686a72f8c8e1a3eeabe263de5543..e059d69c2ce61b1ba1ae2e0b9c75eb53bb26f1bb:/lib/components/listboxepg.h diff --git a/lib/components/listboxepg.h b/lib/components/listboxepg.h index abbdc48e..e69de29b 100644 --- a/lib/components/listboxepg.h +++ b/lib/components/listboxepg.h @@ -1,63 +0,0 @@ -#ifndef __lib_components_listboxepg_h -#define __lib_components_listboxepg_h - -#include -#include - -#include - -class eListboxEPGContent: public virtual iListboxContent -{ - DECLARE_REF(eListboxEPGContent); -public: - eListboxEPGContent(); - void setRoot(const eServiceReference &ref); - void getCurrent(ePtr&); - - /* only in complex mode: */ - enum { - celBeginTime, - celTitle, - celElements - }; - - void setElementPosition(int element, eRect where); - void setElementFont(int element, gFont *font); - - void sort(); - -protected: - void cursorHome(); - void cursorEnd(); - int cursorMove(int count=1); - int cursorValid(); - int cursorSet(int n); - int cursorGet(); - - void cursorSave(); - void cursorRestore(); - int size(); - - // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though - void setSize(const eSize &size); - - /* the following functions always refer to the selected item */ - void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); - - eRect m_element_position[celElements]; - ePtr m_element_font[celElements]; -private: - typedef std::list > list; - - list m_list; - list::iterator m_cursor, m_saved_cursor; - - int m_cursor_number, m_saved_cursor_number; - int m_size; - - eSize m_itemsize; - - eServiceReference m_root; -}; - -#endif