X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/dba614edd2aad3c17e244914eaef3809d8300cb1..6dbbf2167e1a8ca25dd2cd8e20bef82686b28f61:/lib/gui/elistboxcontent.h diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h index a2e1fd36..11a9d080 100644 --- a/lib/gui/elistboxcontent.h +++ b/lib/gui/elistboxcontent.h @@ -82,6 +82,9 @@ public: void setList(PyObject *list); PyObject *getCurrentSelection(); + int getCurrentSelectionIndex() { return m_cursor; } + void invalidateEntry(int index); + void invalidate(); #ifndef SWIG protected: void cursorHome(); @@ -101,13 +104,32 @@ 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 setSeperation(int sep) { m_seperation = sep; } +private: + int m_seperation; +}; + +class eListboxPythonMultiContent: public eListboxPythonStringContent +{ +public: + void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); + + void setFont(int fnt, gFont *fnt); +private: + std::map > m_font; +}; + #endif