- fix segfault when there was no attached listbox
[enigma2.git] / lib / gui / elistboxcontent.h
index 0c4cb00120b6fc6e06311accf7a6f0e1f37ee15f..cfd0f15535b8f24d9f1bdc37e6a8ea9ebb71d29b 100644 (file)
@@ -83,6 +83,7 @@ public:
        void setList(PyObject *list);
        PyObject *getCurrentSelection();
        int getCurrentSelectionIndex() { return m_cursor; }
+       void invalidateEntry(int index);
 #ifndef SWIG
 protected:
        void cursorHome();
@@ -115,10 +116,19 @@ class eListboxPythonConfigContent: public eListboxPythonStringContent
 {
 public:
        void paint(gPainter &painter, eWindowStyle &style, const ePoint &offset, int selected);
-       void invalidateEntry(int index);
        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<int, ePtr<gFont> > m_font;
+};
+
 #endif