fix bluescreen on movieplayback
[enigma2.git] / lib / gui / epositiongauge.h
index 0fa704c303418c27186acc88e1739cc4f98643ad..f90b2809782850bd50a36035e1df0ffebb90db63 100644 (file)
@@ -17,9 +17,15 @@ public:
        void setPosition(const pts_t &pos);
        
        void setInColor(const gRGB &color); /* foreground? */
-       void setPointer(gPixmap *pixmap, const ePoint &center);
+       void setPointer(int which, gPixmap *pixmap, const ePoint &center);
+       void setPointer(int which, ePtr<gPixmap> &pixmap, const ePoint &center);
+       
+       void setInOutList(SWIG_PYOBJECT(ePyObject) list);
+       void setForegroundColor(const gRGB &col);
+       
+       void enableSeekPointer(int enable);
+       void setSeekPosition(const pts_t &pos);
        
-       void setInOutList(PyObject *list);
 #ifndef SWIG
 protected:
        int event(int event, void *data=0, void *data2=0);
@@ -29,12 +35,12 @@ private:
        {
                evtChangedPosition = evtUserWidget
        };
-       ePixmap *m_point_widget;
-       ePoint m_point_center;
+       ePixmap *m_point_widget, *m_seek_point_widget;
+       ePoint m_point_center, m_seek_point_center;
+       
+       pts_t m_position, m_length, m_seek_position;
+       int m_pos, m_seek_pos;
        
-       pts_t m_position, m_length;
-       int m_pos;
-
                /* TODO: this is duplicated code from lib/service/servicedvb.h */
        struct cueEntry
        {
@@ -43,7 +49,7 @@ private:
                
                bool operator < (const struct cueEntry &o) const
                {
-                       return what < o.what;
+                       return where < o.where;
                }
                cueEntry(const pts_t &where, unsigned int what) :
                        where(where), what(what)
@@ -53,6 +59,9 @@ private:
        
        std::multiset<cueEntry> m_cue_entries;
        int scale(const pts_t &val);
+       
+       int m_have_foreground_color;
+       gRGB m_foreground_color;
 #endif
 };