xref: /haiku/src/apps/packageinstaller/PackageImageViewer.h (revision 002f37b0cca92e4cf72857c72ac95db5a8b09615)
1 /*
2  * Copyright (c) 2007, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Author:
6  *		Łukasz 'Sil2100' Zemczak <sil2100@vexillium.org>
7  */
8 #ifndef PACKAGE_IMAGE_VIEWER_H
9 #define PACKAGE_IMAGE_VIEWER_H
10 
11 #include <View.h>
12 #include <Bitmap.h>
13 #include <DataIO.h>
14 
15 #include "BlockingWindow.h"
16 
17 
18 class ImageView : public BView {
19 public:
20 								ImageView(BPositionIO* image);
21 	virtual						~ImageView();
22 
23 	virtual	void				AttachedToWindow();
24 	virtual	void				Draw(BRect updateRect);
25 	virtual	void				MouseUp(BPoint point);
26 
27 private:
28 			BBitmap*			fImage;
29 };
30 
31 
32 class PackageImageViewer : public BlockingWindow {
33 public:
34 								PackageImageViewer(BPositionIO* image);
35 
36 private:
37 			ImageView*			fBackground;
38 };
39 
40 
41 #endif // PACKAGE_IMAGE_VIEWER_H
42 
43