aboutsummaryrefslogtreecommitdiff
path: root/lib/gui/elistboxcontent.h
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-04-25 23:12:23 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-04-25 23:12:23 +0000
commit9a1eb9bbf5d26648c761459ec7019f9c6eae24d7 (patch)
treed6384b47ed3a64f8d5e474b4253f190d3da8782c /lib/gui/elistboxcontent.h
parent949a07352f59a32a5ae00f30650a6d067ef59b77 (diff)
downloadenigma2-9a1eb9bbf5d26648c761459ec7019f9c6eae24d7.tar.gz
enigma2-9a1eb9bbf5d26648c761459ec7019f9c6eae24d7.zip
- add new listbox content type for multiple strings
- add first version of config class - a bit ugly
Diffstat (limited to 'lib/gui/elistboxcontent.h')
-rw-r--r--lib/gui/elistboxcontent.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h
index a2e1fd36..0c4cb001 100644
--- a/lib/gui/elistboxcontent.h
+++ b/lib/gui/elistboxcontent.h
@@ -82,6 +82,7 @@ public:
void setList(PyObject *list);
PyObject *getCurrentSelection();
+ int getCurrentSelectionIndex() { return m_cursor; }
#ifndef SWIG
protected:
void cursorHome();
@@ -101,13 +102,23 @@ protected:
void setSize(const eSize &size);
/* the following functions always refer to the selected item */
- void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
+ virtual void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
-private:
+protected:
PyObject *m_list;
int m_cursor, m_saved_cursor;
eSize m_itemsize;
#endif
};
+class eListboxPythonConfigContent: public eListboxPythonStringContent
+{
+public:
+ void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
+ void invalidateEntry(int index);
+ void setSeperation(int sep) { m_seperation = sep; }
+private:
+ int m_seperation;
+};
+
#endif