1 #ifndef __lib_service_listboxservice_h
2 #define __lib_service_listboxservice_h
4 #include <lib/gui/elistbox.h>
5 #include <lib/service/iservice.h>
9 class eListboxServiceContent: public virtual iListboxContent
13 eListboxServiceContent();
14 void setRoot(const eServiceReference &ref);
19 int cursorMove(int count=1);
28 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
29 void setSize(const eSize &size);
31 /* the following functions always refer to the selected item */
32 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
34 typedef std::list<eServiceReference> list;
37 list::iterator m_cursor, m_saved_cursor;
39 int m_cursor_number, m_saved_cursor_number;
43 ePtr<eServiceCenter> m_service_center;
45 eServiceReference m_root;