xref: /haiku/src/preferences/screensaver/PreviewView.h (revision 4ddea1f86264f27062a11f3f08473d2bceb3c23e)
1 /*
2  * Copyright 2003-2013 Haiku, Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Michael Phipps
7  *		Jérôme Duval, jerome.duval@free.fr
8  */
9 #ifndef PREVIEW_VIEW_H
10 #define PREVIEW_VIEW_H
11 
12 
13 #include <View.h>
14 
15 
16 class BTextView;
17 
18 class PreviewView : public BView {
19 public:
20 								PreviewView(const char* name);
21 	virtual						~PreviewView();
22 
23 	virtual	void				Draw(BRect updateRect);
24 
25 			BView*				AddPreview();
26 			BView*				RemovePreview();
27 			BView*				SaverView();
28 
29 			void				ShowNoPreview() const;
30 			void				HideNoPreview() const;
31 
32 private:
33 			BView*				fSaverView;
34 			BTextView*			fNoPreview;
35 };
36 
37 
38 #endif	// PREVIEW_VIEW_H
39