xref: /haiku/src/apps/resedit/InlineEditor.h (revision 22c6ae695176ead7d736db8c69472d8ae89dc75f)
1 #ifndef INLINE_EDITOR
2 #define INLINE_EDITOR
3 
4 #include <Window.h>
5 #include <TextControl.h>
6 #include <Messenger.h>
7 
8 #define M_INLINE_TEXT 'intx'
9 
10 class InlineEditor : public BWindow
11 {
12 public:
13 			InlineEditor(BMessenger target, const BRect &frame,
14 						const char *text);
15 	bool	QuitRequested(void);
16 	void	SetMessage(BMessage *msg);
17 	void	MessageReceived(BMessage *msg);
18 	void	WindowActivated(bool active);
19 
20 private:
21 	BTextControl	*fTextBox;
22 	BMessenger		fMessenger;
23 	uint32			fCommand;
24 };
25 
26 
27 #endif
28