X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/20fdb2a2af40da98427a702a03a79b1fbec3d7af..618000daa18e5a321e6f6c3095b3b05b71521e18:/lib/service/listboxservice.h diff --git a/lib/service/listboxservice.h b/lib/service/listboxservice.h index b1cc249b..5228a2f2 100644 --- a/lib/service/listboxservice.h +++ b/lib/service/listboxservice.h @@ -1,6 +1,7 @@ #ifndef __lib_service_listboxservice_h #define __lib_service_listboxservice_h +#include #include #include #include @@ -10,11 +11,19 @@ class eListboxServiceContent: public virtual iListboxContent DECLARE_REF(eListboxServiceContent); public: eListboxServiceContent(); - void setRoot(const eServiceReference &ref); + + void addService(const eServiceReference &ref, bool beforeCurrent=false); + void removeCurrent(); + void FillFinished(); + + void setIgnoreService( const eServiceReference &service ); + void setRoot(const eServiceReference &ref, bool justSet=false); void getCurrent(eServiceReference &ref); int getNextBeginningWithChar(char c); - + int getPrevMarkerPos(); + int getNextMarkerPos(); + /* support for marked services */ void initMarked(); void addMarked(const eServiceReference &ref); @@ -37,21 +46,48 @@ public: /* only in complex mode: */ enum { - celIcon, celServiceNumber, + celMarkerPixmap, + celFolderPixmap, celServiceName, + celServiceTypePixmap, celServiceInfo, // "now" event celElements }; - + + enum { + picDVB_S, + picDVB_T, + picDVB_C, + picServiceGroup, + picFolder, + picMarker, + picElements + }; + void setElementPosition(int element, eRect where); void setElementFont(int element, gFont *font); + void setPixmap(int type, ePtr &pic); void sort(); int setCurrentMarked(bool); void setNumberOffset(int offset) { m_numberoffset = offset; } + + int getItemHeight() { return m_itemheight; } + void setItemHeight(int height); + + enum { + markedForeground, + markedForegroundSelected, + markedBackground, + markedBackgroundSelected, + serviceNotAvail, + colorElements + }; + + void setColor(int color, gRGB &col); protected: void cursorHome(); void cursorEnd(); @@ -74,6 +110,9 @@ protected: /* for complex mode */ eRect m_element_position[celElements]; ePtr m_element_font[celElements]; + ePtr m_pixmaps[picElements]; + gRGB m_color[colorElements]; + bool m_color_set[colorElements]; private: typedef std::list list; @@ -85,6 +124,7 @@ private: eSize m_itemsize; ePtr m_service_center; + ePtr m_lst; eServiceReference m_root; @@ -96,6 +136,10 @@ private: bool m_current_marked; int m_numberoffset; + + eServiceReference m_is_playable_ignore; + + int m_itemheight; }; #endif