xref: /haiku/src/apps/launchbox/NamePanel.h (revision 508f54795f39c3e7552d87c95aae9dd8ec6f505b)
1 /*
2  * Copyright 2006-2009, Stephan Aßmus <superstippi@gmx.de>.
3  * All rights reserved. Distributed under the terms of the MIT License.
4  */
5 #ifndef NAME_PANEL_H
6 #define NAME_PANEL_H
7 
8 #include "Panel.h"
9 
10 class BTextControl;
11 
12 class NamePanel : public Panel {
13 public:
14 							NamePanel(const char* label,
15 									  const char* text,
16 									  BWindow* window,
17 									  BHandler* target,
18 									  BMessage* message,
19 									  BRect frame = BRect(-1000.0, -1000.0, -900.0, -900.0));
20 	virtual					~NamePanel();
21 
22 	virtual void			MessageReceived(BMessage *message);
23 
24 private:
25 	BTextControl*			fNameTC;
26 	BWindow*				fWindow;
27 	BHandler*				fTarget;
28 	BMessage*				fMessage;
29 
30 	window_feel				fSavedTargetWindowFeel;
31 };
32 
33 #endif // NAME_PANEL_H
34