xref: /haiku/src/apps/resedit/InlineEditor.h (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 /*
2  * Copyright (c) 2005-2010, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Author:
6  *		DarkWyrm <darkwyrm@gmail.com>
7  */
8 #ifndef INLINE_EDITOR
9 #define INLINE_EDITOR
10 
11 #include <Messenger.h>
12 #include <TextControl.h>
13 #include <Window.h>
14 
15 #define M_INLINE_TEXT 'intx'
16 
17 class InlineEditor : public BWindow
18 {
19 public:
20 			InlineEditor(BMessenger target, const BRect &frame,
21 						const char *text);
22 	bool	QuitRequested(void);
23 	void	SetMessage(BMessage *msg);
24 	void	MessageReceived(BMessage *msg);
25 	void	WindowActivated(bool active);
26 
27 private:
28 	BTextControl	*fTextBox;
29 	BMessenger		fMessenger;
30 	uint32			fCommand;
31 };
32 
33 
34 #endif
35