You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koffice/kugar/lib/mpagedisplay.h

56 lines
1.2 KiB

/***************************************************************************
mpagedisplay.h - Kugar page display widget
-------------------
begin : Sun Aug 15 1999
copyright : (C) 1999 by Mutiny Bay Software
email : info@mutinybaysoftware.com
***************************************************************************/
#ifndef MPAGEDISPLAY_H
#define MPAGEDISPLAY_H
#include <qwidget.h>
#include <qpainter.h>
#include <qpixmap.h>
#include <qpicture.h>
#include <qsize.h>
/**Kugar page display widget
*@author Mutiny Bay Software
*/
namespace Kugar
{
class MPageDisplay : public QWidget
{
Q_OBJECT
public:
/** Constructor */
MPageDisplay( QWidget *parent = 0, const char *name = 0 );
/** Destructor */
virtual ~MPageDisplay();
private:
/** Page Widget's image buffer */
QPixmap buffer;
public:
/** Sets the page image */
void setPage( QPicture* image );
/** Sets the page display dimensions */
void setPageDimensions( QSize size );
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
protected:
/** Page widget's's paint event */
void paintEvent( QPaintEvent* event );
};
}
#endif