1 #ifndef __lib_gui_elistboxcontent_h
2 #define __lib_gui_elistboxcontent_h
4 #include <lib/python/python.h>
5 #include <lib/gui/elistbox.h>
7 class eListboxTestContent: public virtual iListboxContent
16 int cursorMove(int count=1);
25 RESULT connectItemChanged(const Slot0<void> &itemChanged, ePtr<eConnection> &connection);
27 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
28 void setSize(const eSize &size);
30 /* the following functions always refer to the selected item */
31 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
33 int m_cursor, m_saved_cursor;
38 class eListboxStringContent: public virtual iListboxContent
42 eListboxStringContent();
43 void setList(std::list<std::string> &list);
49 int cursorMove(int count=1);
58 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
59 void setSize(const eSize &size);
61 /* the following functions always refer to the selected item */
62 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
64 typedef std::list<std::string> list;
67 list::iterator m_cursor, m_saved_cursor;
69 int m_cursor_number, m_saved_cursor_number;
76 class eListboxPythonStringContent: public virtual iListboxContent
80 eListboxPythonStringContent();
81 ~eListboxPythonStringContent();
83 void setList(PyObject *list);
84 PyObject *getCurrentSelection();
89 int cursorMove(int count=1);
98 RESULT connectItemChanged(const Slot0<void> &itemChanged, ePtr<eConnection> &connection);
100 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
101 void setSize(const eSize &size);
103 /* the following functions always refer to the selected item */
104 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
108 int m_cursor, m_saved_cursor;