vfs: check userland buffers before reading them.
[haiku.git] / src / apps / resedit / InlineEditor.h
blob5499c5c898901c9e1aec1fe225f723536bba1bb2
1 /*
2 * Copyright (c) 2005-2010, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
5 * Author:
6 * DarkWyrm <darkwyrm@gmail.com>
7 */
8 #ifndef INLINE_EDITOR
9 #define INLINE_EDITOR
11 #include <Messenger.h>
12 #include <TextControl.h>
13 #include <Window.h>
15 #define M_INLINE_TEXT 'intx'
17 class InlineEditor : public BWindow
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);
27 private:
28 BTextControl *fTextBox;
29 BMessenger fMessenger;
30 uint32 fCommand;
34 #endif