X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fgui%2Felistboxcontent.h;h=6bb45590e433ab51c8a34136c8978f125dd44a03;hb=e68a1617b7c1efbedf8b28309943dd7669daaad0;hp=aff071bfd9cc2965de10283af43b7f0a29be55f3;hpb=470e1bf98764d9e0c6cdc463b2f2e1a2bb453ce8;p=vuplus_dvbapp diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h index aff071b..6bb4559 100644 --- a/lib/gui/elistboxcontent.h +++ b/lib/gui/elistboxcontent.h @@ -62,19 +62,25 @@ private: class eListboxPythonMultiContent: public eListboxPythonStringContent { ePyObject m_buildFunc; + ePyObject m_selectableFunc; + ePyObject m_template; eRect m_selection_clip; - eRect m_temp_clip; + gRegion m_clip, m_old_clip; public: eListboxPythonMultiContent(); ~eListboxPythonMultiContent(); enum { TYPE_TEXT, TYPE_PROGRESS, TYPE_PIXMAP, TYPE_PIXMAP_ALPHATEST }; 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=true); + 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; };