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 RESULT connectItemChanged(const Slot0<void> &itemChanged, ePtr<eConnection> &connection);
60 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
61 void setSize(const eSize &size);
63 /* the following functions always refer to the selected item */
64 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
66 typedef std::list<std::string> list;
69 list::iterator m_cursor, m_saved_cursor;
71 int m_cursor_number, m_saved_cursor_number;
78 class eListboxPythonStringContent: public virtual iListboxContent
82 eListboxPythonStringContent();
83 ~eListboxPythonStringContent();
85 void setList(PyObject *list);
86 PyObject *getCurrentSelection();
91 int cursorMove(int count=1);
100 RESULT connectItemChanged(const Slot0<void> &itemChanged, ePtr<eConnection> &connection);
102 // void setOutputDevice ? (for allocating colors, ...) .. requires some work, though
103 void setSize(const eSize &size);
105 /* the following functions always refer to the selected item */
106 void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
110 int m_cursor, m_saved_cursor;