/***************************************************************************
                          image_viewer.h  -  description
                             -------------------
    begin                : Tue Jan 15 2002
    copyright            : (C) 2002 by Renchi Raju
    email                : renchi@green.tam.uiuc.edu
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef IMAGE_VIEWER_H
#define IMAGE_VIEWER_H

#include <qscrollview.h>

class QString;
class QPixmap;
class QImage;
class QPainter;

/**
  *@author Renchi Raju
  */

class Image_Viewer : public QScrollView  {
 public: 
	Image_Viewer(QWidget* parent=0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
	~Image_Viewer();
	void loadImage(QString filePath);
 private:
	QPixmap pixmap;
	QImage image;
	void drawContents(QPainter* painter,int clipx,int clipy,int clipw,int cliph);
	
};

#endif
