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_TEXT_VIEW_H
10#define STRING_TEXT_VIEW_H
11
12#include "InputTextView.h"
13
14#include <String.h>
15
16class StringTextView : public InputTextView {
17 public:
18								StringTextView(BRect frame,
19											   const char* name,
20											   BRect textRect,
21											   uint32 resizingMode,
22											   uint32 flags);
23	virtual						~StringTextView();
24
25	// BInvoker interface
26	virtual	status_t			Invoke(BMessage* message = NULL);
27
28	// InputTextView interface
29	virtual	void				RevertChanges();
30	virtual	void				ApplyChanges();
31
32	// StringTextView
33			void				SetValue(const char* string);
34			const char*			Value() const;
35
36protected:
37	mutable	BString				fStringCache;
38};
39
40#endif // STRING_TEXT_VIEW_H
41
42
43