* Copyright 2006, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* Stephan Aßmus <superstippi@gmx.de>
*/
#ifndef INPUT_SLIDER_H
#define INPUT_SLIDER_H
#include "PopupSlider.h"
class NummericalTextView;
class BMessageFilter;
class InputSlider : public PopupSlider {
public:
InputSlider(const char* name = NULL,
const char* label = NULL,
BMessage* model = NULL,
BHandler* target = NULL,
int32 min = 0,
int32 max = 100,
int32 value = 0,
const char* formatString = "%ld");
virtual ~InputSlider();
virtual BRect layout(BRect frame);
virtual void MouseDown(BPoint where);
void SetEnabled(bool enabled);
virtual void ValueChanged(int32 newValue);
virtual void DrawSlider(BRect frame, bool enabled);
private:
NummericalTextView* fTextView;
BMessageFilter* fTextViewFilter;
};
#endif