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 STRING_VALUE_VIEW_H 10 #define STRING_VALUE_VIEW_H 11 12 #include "OptionProperty.h" 13 #include "Property.h" 14 #include "TextInputValueView.h" 15 16 class StringTextView; 17 18 class StringValueView : public TextInputValueView { 19 public: 20 StringValueView(StringProperty* property); 21 virtual ~StringValueView(); 22 23 // TextInputValueView interface 24 virtual InputTextView* TextView() const; 25 26 // PropertyEditorView interface 27 virtual void ValueChanged(); 28 29 virtual bool AdoptProperty(Property* property); 30 virtual Property* GetProperty() const 31 { return fProperty; } 32 33 private: 34 StringProperty* fProperty; 35 StringTextView* fTextView; 36 }; 37 38 #endif // STRING_VALUE_VIEW_H 39 40 41