]> git.sesse.net Git - vlc/blobdiff - modules/gui/beos/MediaControlView.h
qt4 - GotoTime dialog button, with handling for KDE/Gnome fanatics.
[vlc] / modules / gui / beos / MediaControlView.h
index 7bee538e238b23a6ca7005e9234d84e05c8a16a7..92b1d2a8f91221515186648ec09ef3acebc3eb88 100644 (file)
@@ -1,8 +1,8 @@
 /*****************************************************************************
  * MediaControlView.h: beos interface
  *****************************************************************************
- * Copyright (C) 1999, 2000, 2001 VideoLAN
- * $Id: MediaControlView.h,v 1.3 2002/10/28 19:42:24 titer Exp $
+ * Copyright (C) 1999, 2000, 2001 the VideoLAN team
+ * $Id$
  *
  * Authors: Tony Castley <tony@castley.net>
  *          Stephan Aßmus <stippi@yellowbites.com>
@@ -19,7 +19,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 #ifndef BEOS_MEDIA_CONTROL_VIEW_H
@@ -38,7 +38,7 @@ class VolumeSlider;
 class MediaControlView : public BBox
 {
  public:
-                                                               MediaControlView( BRect frame, intf_thread_t *p_intf );
+                                                               MediaControlView( intf_thread_t * p_intf, BRect frame );
        virtual                                         ~MediaControlView();
 
                                                                // BBox
@@ -49,18 +49,15 @@ class MediaControlView : public BBox
        virtual void                            Pulse(); // detect stopped stream
 
                                                                // MediaControlView
-                       void                            SetProgress(uint64 seek, uint64 size);
+                       void                            SetProgress( float position );
 
                        void                            SetStatus(int status, int rate); 
                        void                            SetEnabled(bool enable);
                        void                            SetAudioEnabled(bool enable);
-                       uint32                          GetSeekTo() const;
                        uint32                          GetVolume() const;
                        void                            SetSkippable(bool backward,
                                                                                         bool forward);
                        void                            SetMuted(bool mute);
-
-                       sem_id                          fScrubSem;
     
  private:
                        void                            _LayoutControls(BRect frame) const;
@@ -70,6 +67,7 @@ class MediaControlView : public BBox
                                                                                           bool resizeWidth = false,
                                                                                           bool resizeHeight = false) const;
 
+                       intf_thread_t *     p_intf;
 
                        VolumeSlider*           fVolumeSlider;
                        SeekSlider*                     fSeekSlider;
@@ -86,18 +84,17 @@ class MediaControlView : public BBox
                        int                                     fCurrentStatus;
                        float                           fBottomControlHeight;
                        BRect                           fOldBounds;
+                       bool                fIsEnabled;
                        
-                       intf_thread_t *     p_intf;
 };
 
 class SeekSlider : public BControl
 {
  public:
-                                                               SeekSlider(BRect frame,
+                                                               SeekSlider(intf_thread_t * p_intf,
+                                                                          BRect frame,
                                                                                   const char* name,
-                                                                                  MediaControlView* owner,
-                                                                                  int32 minValue,
-                                                                                  int32 maxValue);
+                                                                                  MediaControlView* owner );
 
        virtual                                         ~SeekSlider();
 
@@ -120,14 +117,10 @@ private:
                                                                                         rgb_color top,
                                                                                         rgb_color right,
                                                                                         rgb_color bottom);
-                       void                            _BeginSeek();
-                       void                            _Seek();
-                       void                            _EndSeek();
 
+            intf_thread_t     * p_intf;
                        MediaControlView*       fOwner; 
                        bool                            fTracking;
-                       int32                           fMinValue;
-                       int32                           fMaxValue;
 };
 
 class VolumeSlider : public BControl