1 #ifndef __lib_components_listboxepg_h
2 #define __lib_components_listboxepg_h
4 #include <lib/gui/elistbox.h>
5 #include <lib/service/iservice.h>
9 class eListboxEPGContent: public virtual iListboxContent
11 DECLARE_REF(eListboxEPGContent);
14 void setRoot(const eServiceReference &ref);
15 void getCurrent(ePtr<eServiceEvent>&);
17 /* only in complex mode: */
24 void setElementPosition(int element, eRect where);
25 void setElementFont(int element, gFont *font);
32 int cursorMove(int count=1);
41 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
42 void setSize(const eSize &size);
44 /* the following functions always refer to the selected item */
45 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
47 eRect m_element_position[celElements];
48 ePtr<gFont> m_element_font[celElements];
50 typedef std::list<ePtr<eServiceEvent> > list;
53 list::iterator m_cursor, m_saved_cursor;
55 int m_cursor_number, m_saved_cursor_number;
60 eServiceReference m_root;