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 18class ImageView : public BView { 19public: 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 27private: 28 BBitmap* fImage; 29}; 30 31 32class PackageImageViewer : public BlockingWindow { 33public: 34 PackageImageViewer(BPositionIO* image); 35 36private: 37 ImageView* fBackground; 38}; 39 40 41#endif // PACKAGE_IMAGE_VIEWER_H 42 43