xref: /haiku/src/apps/debugger/user_interface/gui/utility_windows/ExpressionPromptWindow.h (revision 97dfeb96704e5dbc5bec32ad7b21379d0125e031)
1 /*
2  * Copyright 2014, Rene Gollent, rene@gollent.com.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef EXPRESSION_PROMPT_WINDOW_H
6 #define EXPRESSION_PROMPT_WINDOW_H
7 
8 
9 #include <Window.h>
10 
11 
12 class BButton;
13 class BTextControl;
14 
15 
16 class ExpressionPromptWindow : public BWindow
17 {
18 public:
19 								ExpressionPromptWindow(BHandler* addTarget,
20 									BHandler* closeTarget);
21 
22 								~ExpressionPromptWindow();
23 
24 	static	ExpressionPromptWindow* Create(BHandler* addTarget,
25 									BHandler* closeTarget);
26 									// throws
27 
28 
29 	virtual	void				MessageReceived(BMessage* message);
30 
31 	virtual	void				Show();
32 	virtual	bool				QuitRequested();
33 
34 private:
35 			void	 			_Init();
36 
37 private:
38 			BTextControl*		fExpressionInput;
39 			BButton*			fCancelButton;
40 			BButton*			fAddButton;
41 			BHandler*			fAddTarget;
42 			BHandler*			fCloseTarget;
43 };
44 
45 #endif // EXPRESSION_PROMPT_WINDOW_H
46