/*****************************************************************************
* 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>
*
* 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
class MediaControlView : public BBox
{
public:
- MediaControlView( BRect frame, intf_thread_t *p_intf );
+ MediaControlView( intf_thread_t * p_intf, BRect frame );
virtual ~MediaControlView();
// 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;
bool resizeWidth = false,
bool resizeHeight = false) const;
+ intf_thread_t * p_intf;
VolumeSlider* fVolumeSlider;
SeekSlider* fSeekSlider;
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();
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