X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgui%2Felistboxcontent.h;h=d3d2a08937814e15ae343702d3528beb76b02a57;hb=5744198c4276074cb812e23760f41e647dc0edd7;hp=9c89c65863295e74a9b778f4769da1e8d06132dc;hpb=ed40f6f85c9c07c3c1224ae20601082c0309a631;p=vuplus_dvbapp diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h index 9c89c65..d3d2a08 100644 --- a/lib/gui/elistboxcontent.h +++ b/lib/gui/elistboxcontent.h @@ -38,11 +38,14 @@ protected: /* the following functions always refer to the selected item */ virtual void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); + + int getItemHeight() { return m_itemheight; } protected: ePyObject m_list; int m_cursor, m_saved_cursor; eSize m_itemsize; + int m_itemheight; #endif }; @@ -59,15 +62,25 @@ private: class eListboxPythonMultiContent: public eListboxPythonStringContent { ePyObject m_buildFunc; + ePyObject m_selectableFunc; + ePyObject m_template; + eRect m_selection_clip; + gRegion m_clip, m_old_clip; public: eListboxPythonMultiContent(); ~eListboxPythonMultiContent(); - enum { TYPE_TEXT, TYPE_PROGRESS, TYPE_PIXMAP, TYPE_PIXMAP_ALPHATEST }; + enum { TYPE_TEXT, TYPE_PROGRESS, TYPE_PIXMAP, TYPE_PIXMAP_ALPHATEST, TYPE_PIXMAP_ALPHABLEND }; void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); int currentCursorSelectable(); - - void setFont(int fnt, gFont *fnt); + void setList(SWIG_PYOBJECT(ePyObject) list); + void setFont(int fnt, gFont *font); void setBuildFunc(SWIG_PYOBJECT(ePyObject) func); + void setSelectableFunc(SWIG_PYOBJECT(ePyObject) func); + void setItemHeight(int height); + void setSelectionClip(eRect &rect, bool update=false); + void updateClip(gRegion &); + void entryRemoved(int idx); + void setTemplate(SWIG_PYOBJECT(ePyObject) tmplate); private: std::map > m_font; };