Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

rtkqtpagedisplay.h

00001 /*<<<<<COPYRIGHT*/
00002 /*
00003  * RTK The report toolkit
00004  * Copyright (C) 2003 Francisco Santiago Capel Torres
00005 
00006  * rtkqtpagedisplay.h RTK page display widget
00007  * 
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  */
00019 /*>>>>>COPYRIGHT*/
00020 /***************************************************************************
00021               mpagedisplay.h  -  Kugar page display widget
00022               -------------------
00023     begin     : Sun Aug 15 1999                                           
00024     copyright : (C) 1999 by Mutiny Bay Software                         
00025     email     : info@mutinybaysoftware.com                                     
00026  ***************************************************************************/
00027 
00028 #ifndef QPAGEDISPLAY_H
00029 #define QPAGEDISPLAY_H
00030 
00031 #include <qwidget.h>
00032 #include <qpainter.h>
00033 #include <qpixmap.h>
00034 #include <qpicture.h>
00035 #include <qsize.h>
00036 
00037  
00038 class QPageDisplay : public QWidget  {
00039    Q_OBJECT
00040 public:
00042         QPageDisplay(QWidget *parent=0, const char *name=0);
00044   virtual ~QPageDisplay();
00045 
00046 private:
00048   QPixmap buffer;
00049 
00050 public:
00052   void setPage(QPicture* image);
00054   void setPageDimensions(QSize size);
00055   QSize getPageDimensions();
00056 
00057         QSize sizeHint() const;
00058         QSizePolicy sizePolicy() const;
00059 
00060 protected:
00062   void paintEvent(QPaintEvent* event);
00063 
00064 };
00065 
00066 
00067 #endif  // QPAGEDISPLAY_H

Generated on Tue Feb 22 14:44:37 2005 for RTK. Report ToolKit by  doxygen 1.3.9.1