1 /* 2 * Copyright 2006, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #ifndef FLOAT_VALUE_VIEW_H 10 #define FLOAT_VALUE_VIEW_H 11 12 #include "Property.h" 13 #include "TextInputValueView.h" 14 15 class NummericalTextView; 16 17 class FloatValueView : public TextInputValueView { 18 public: 19 FloatValueView(FloatProperty* property); 20 virtual ~FloatValueView(); 21 22 // TextInputValueView interface 23 virtual InputTextView* TextView() const; 24 25 // PropertyEditorView interface 26 virtual void ValueChanged(); 27 28 virtual bool AdoptProperty(Property* property); 29 virtual Property* GetProperty() const; 30 31 private: 32 FloatProperty* fProperty; 33 NummericalTextView* fTextView; 34 }; 35 36 #endif // FLOAT_VALUE_VIEW_H 37 38 39