summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mpagedisplay.h
blob: 29145d85f7f2f8bf982de81e2d68fcd2cf25558e (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
56
/***************************************************************************
             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 <tqwidget.h>
#include <tqpainter.h>
#include <tqpixmap.h>
#include <tqpicture.h>
#include <tqsize.h>

/**Kugar page display widget
  *@author Mutiny Bay Software
  */

namespace Kugar
{

class MPageDisplay : public TQWidget
{
    Q_OBJECT
  
public:
    /** Constructor */
    MPageDisplay( TQWidget *parent = 0, const char *name = 0 );
    /** Destructor */
    virtual ~MPageDisplay();

private:
    /** Page Widget's image buffer */
    TQPixmap buffer;

public:
    /** Sets the page image */
    void setPage( TQPicture* image );
    /** Sets the page display dimensions */
    void setPageDimensions( TQSize size );

    TQSize sizeHint() const;
    TQSizePolicy sizePolicy() const;

protected:
    /** Page widget's's paint event */
    void paintEvent( TQPaintEvent* event );

};

}

#endif