1 #ifndef __lib_gui_elistboxcontent_h
2 #define __lib_gui_elistboxcontent_h
4 #include <lib/python/python.h>
6 class eListboxTestContent: public virtual iListboxContent
12 int cursorMove(int count=1);
21 RESULT connectItemChanged(const Slot0<void> &itemChanged, ePtr<eConnection> &connection);
23 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
24 void setSize(const eSize &size);
26 /* the following functions always refer to the selected item */
27 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
29 int m_cursor, m_saved_cursor;
33 class eListboxStringContent: public virtual iListboxContent
37 eListboxStringContent();
41 int cursorMove(int count=1);
50 RESULT connectItemChanged(const Slot0<void> &itemChanged, ePtr<eConnection> &connection);
52 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
53 void setSize(const eSize &size);
55 /* the following functions always refer to the selected item */
56 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
58 void setList(std::list<std::string> &list);
60 typedef std::list<std::string> list;
63 list::iterator m_cursor, m_saved_cursor;
65 int m_cursor_number, m_saved_cursor_number;
71 class eListboxPythonStringContent: public virtual iListboxContent
75 eListboxPythonStringContent();
76 ~eListboxPythonStringContent();
79 int cursorMove(int count=1);
88 RESULT connectItemChanged(const Slot0<void> &itemChanged, ePtr<eConnection> &connection);
90 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
91 void setSize(const eSize &size);
93 /* the following functions always refer to the selected item */
94 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
96 void setList(PyObject *list);
98 PyObject *getCurrentSelection();
102 int m_cursor, m_saved_cursor;