xref: /haiku/headers/private/shared/PromptWindow.h (revision b8ded2f89783a220c7b3019d48266a682cc79158)
1 /*
2  * Copyright 2012-2013, Rene Gollent, rene@gollent.com.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef PROMPT_WINDOW_H_
6 #define PROMPT_WINDOW_H_
7 
8 
9 #include <Messenger.h>
10 #include <Window.h>
11 
12 
13 class BStringView;
14 class BTextControl;
15 
16 
17 class PromptWindow : public BWindow
18 {
19 public:
20 								// PromptWindow takes ownership of message
21 								PromptWindow(const char* title,
22 									const char* label, const char* info,
23 									BMessenger target, BMessage* message = NULL);
24 								~PromptWindow();
25 
26 	virtual void				MessageReceived(BMessage* message);
27 
28 		status_t				SetTarget(BMessenger messenger);
29 		status_t				SetMessage(BMessage* message);
30 private:
31 		BTextControl*			fTextControl;
32 		BStringView*			fInfoView;
33 		BMessenger				fTarget;
34 		BMessage*				fMessage;
35 };
36 
37 #endif // PROMPT_WINDOW_H_
38