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_VIEW_H
11#define POPUP_VIEW_H
12
13#include <View.h>
14
15#include <layout.h>
16
17class PopupWindow;
18
19class PopupView : public MView, public BView {
20 public:
21								PopupView(const char* name);
22	virtual						~PopupView();
23
24								// MView
25	virtual	minimax				layoutprefs() = 0;
26	virtual	BRect				layout(BRect frame) = 0;
27
28	virtual	void				SetPopupWindow(PopupWindow* window);
29
30	virtual	void				PopupDone(bool canceled);
31
32 private:
33			PopupWindow*		fWindow;
34};
35
36
37#endif	// POPUP_CONTROL_H
38