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 TEXT_INPUT_VALUE_VIEW_H 10 #define TEXT_INPUT_VALUE_VIEW_H 11 12 #include "PropertyEditorView.h" 13 14 class InputTextView; 15 16 // Common base class for 17 // IntValueView, 18 // Int64ValueView, 19 // FloatValueView, 20 // StringValueView 21 22 class TextInputValueView : public PropertyEditorView { 23 public: 24 TextInputValueView(); 25 virtual ~TextInputValueView(); 26 27 // BView interface 28 virtual void AttachedToWindow(); 29 30 virtual void Draw(BRect updateRect); 31 virtual void FrameResized(float width, float height); 32 33 virtual void MakeFocus(bool focused); 34 35 virtual void MessageReceived(BMessage* message); 36 37 38 // PropertyItemValueView interface 39 virtual void SetEnabled(bool enabled); 40 virtual bool IsFocused() const; 41 42 // TextInputValueView 43 virtual InputTextView* TextView() const = 0; 44 }; 45 46 #endif // TEXT_INPUT_VALUE_VIEW_H 47 48 49