xref: /haiku/src/apps/icon-o-matic/generic/gui/popup_control/PopupWindow.h (revision 128277c969aa806add78941cd2972754c37a1572)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  *		Ingo Weinhold <bonefish@cs.tu-berlin.de>
8  */
9 
10 #ifndef POPUP_WINDOW_H
11 #define POPUP_WINDOW_H
12 
13 #include <MWindow.h>
14 
15 enum {
16 	MSG_POPUP_SHOWN		= 'push',
17 	MSG_POPUP_HIDDEN	= 'puhi',
18 };
19 
20 class PopupControl;
21 class PopupView;
22 
23 class PopupWindow : public MWindow {
24  public:
25 								PopupWindow(PopupView* child,
26 											PopupControl* control);
27 	virtual						~PopupWindow();
28 
29 	virtual	void				MessageReceived(BMessage* message);
30 
31 								// MWindow
32 	virtual	void				Show();
33 	virtual	void				Hide();
34 	virtual	bool				QuitRequested();
35 
36 	virtual	void				PopupDone(bool canceled = true);
37 
38  private:
39 			bool				fCanceled;
40 			PopupControl*		fControl;
41 };
42 
43 
44 #endif	// POPUP_CONTROL_H
45