blob: ffaa49213fe6f4a4d47a0612468f2fb934972616 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/***************************************************************************
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
|