From 4bc08995411e21f3564f09e136809be68ddf96a8 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 31 Jan 2005 22:51:14 +0000 Subject: - fixed dvb scan - fixed dvbdb (reading/writing lamedb) - fixed (i.e. disallow) operator= in iObject (destroyed refcounts before) - implemented listboxcontent for servicelists - implemented getServiceInformation for non-playing services (still not happy with the result, though) - implemented first try of serviceSelector component --- lib/gui/elistbox.h | 5 ++++- lib/gui/elistboxcontent.h | 23 ++++++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) (limited to 'lib/gui') diff --git a/lib/gui/elistbox.h b/lib/gui/elistbox.h index 4c06e288..d5464868 100644 --- a/lib/gui/elistbox.h +++ b/lib/gui/elistbox.h @@ -19,7 +19,9 @@ public: to stay on the same data, however when the current item is removed, this won't work. you'll be notified anyway. */ - +#ifndef SWIG +protected: + friend class eListbox; virtual void cursorHome()=0; virtual void cursorEnd()=0; virtual int cursorMove(int count=1)=0; @@ -39,6 +41,7 @@ public: /* the following functions always refer to the selected item */ virtual void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected)=0; +#endif }; class eListbox: public eWidget diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h index 6219cec6..7ef60116 100644 --- a/lib/gui/elistboxcontent.h +++ b/lib/gui/elistboxcontent.h @@ -2,11 +2,15 @@ #define __lib_gui_elistboxcontent_h #include +#include class eListboxTestContent: public virtual iListboxContent { DECLARE_REF; public: + +#ifndef SWIG +protected: void cursorHome(); void cursorEnd(); int cursorMove(int count=1); @@ -28,6 +32,7 @@ public: private: int m_cursor, m_saved_cursor; eSize m_size; +#endif }; class eListboxStringContent: public virtual iListboxContent @@ -35,6 +40,9 @@ class eListboxStringContent: public virtual iListboxContent DECLARE_REF; public: eListboxStringContent(); + void setList(std::list &list); +#ifndef SWI +protected: void cursorHome(); void cursorEnd(); @@ -54,8 +62,6 @@ public: /* the following functions always refer to the selected item */ void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); - - void setList(std::list &list); private: typedef std::list list; @@ -66,6 +72,7 @@ private: int m_size; eSize m_itemsize; +#endif }; class eListboxPythonStringContent: public virtual iListboxContent @@ -74,6 +81,11 @@ class eListboxPythonStringContent: public virtual iListboxContent public: eListboxPythonStringContent(); ~eListboxPythonStringContent(); + + void setList(PyObject *list); + PyObject *getCurrentSelection(); +#ifndef SWIG +protected: void cursorHome(); void cursorEnd(); int cursorMove(int count=1); @@ -92,15 +104,12 @@ public: /* the following functions always refer to the selected item */ void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected); - - void setList(PyObject *list); - - PyObject *getCurrentSelection(); - + private: PyObject *m_list; int m_cursor, m_saved_cursor; eSize m_itemsize; +#endif }; #endif -- cgit v1.2.3