/* * Copyright 2006-2009 Stephan Aßmus * All rights reserved. Distributed under the terms of the MIT License. */ #ifndef SEEK_SLIDER_H #define SEEK_SLIDER_H #include #include class SeekSlider : public BSlider { public: SeekSlider(const char* name, BMessage* message, int32 minValue, int32 maxValue); virtual ~SeekSlider(); // BSlider interface virtual status_t Invoke(BMessage* message); virtual BRect ThumbFrame() const; virtual void DrawBar(); virtual void DrawThumb(); virtual void MouseDown(BPoint where); virtual void MouseUp(BPoint where); virtual void GetPreferredSize(float* _width, float* _height); virtual BSize MinSize(); virtual BSize MaxSize(); // SeekSlider bool IsTracking() const; void SetDisabledString(const char* string); void SetSymbolScale(float scale); private: bool fTracking; bigtime_t fLastTrackTime; BString fDisabledString; float fScale; }; #endif //SEEK_SLIDER_H