X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/9a1eb9bbf5d26648c761459ec7019f9c6eae24d7..9db4b5a47686981facc54c3eeab1113a814a961f:/lib/gui/elistboxcontent.h diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h index 0c4cb001..d3648373 100644 --- a/lib/gui/elistboxcontent.h +++ b/lib/gui/elistboxcontent.h @@ -83,6 +83,9 @@ public: void setList(PyObject *list); PyObject *getCurrentSelection(); int getCurrentSelectionIndex() { return m_cursor; } + void invalidateEntry(int index); + void invalidate(); + eSize getItemSize() { return m_itemsize; } #ifndef SWIG protected: void cursorHome(); @@ -115,10 +118,20 @@ 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; }; +class eListboxPythonMultiContent: public eListboxPythonStringContent +{ +public: + enum { TYPE_TEXT, TYPE_PROGRESS, TYPE_PIXMAP, TYPE_PIXMAP_ALPHATEST }; + void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); + + void setFont(int fnt, gFont *fnt); +private: + std::map > m_font; +}; + #endif