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);
15 void getCurrent(eServiceReference &ref);
20 int cursorMove(int count=1);
29 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
30 void setSize(const eSize &size);
32 /* the following functions always refer to the selected item */
33 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
35 typedef std::list<eServiceReference> list;
38 list::iterator m_cursor, m_saved_cursor;
40 int m_cursor_number, m_saved_cursor_number;
44 ePtr<eServiceCenter> m_service_center;
46 eServiceReference m_root;