xref: /haiku/src/apps/icon-o-matic/generic/gui/popup_control/PopupView.h (revision 99d027cd0238c1d86da86d7c3f4200509ccc61a6)
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 
17 class PopupWindow;
18 
19 class 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