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
15enum {
16	MSG_POPUP_SHOWN		= 'push',
17	MSG_POPUP_HIDDEN	= 'puhi',
18};
19
20class PopupControl;
21class PopupView;
22
23class 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