summaryrefslogtreecommitdiffstats
path: root/kugar/lib/mpagedisplay.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-20 01:29:50 +0000
commit8362bf63dea22bbf6736609b0f49c152f975eb63 (patch)
tree0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kugar/lib/mpagedisplay.h
downloadkoffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz
koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kugar/lib/mpagedisplay.h')
-rw-r--r--kugar/lib/mpagedisplay.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/kugar/lib/mpagedisplay.h b/kugar/lib/mpagedisplay.h
new file mode 100644
index 00000000..ffaa4921
--- /dev/null
+++ b/kugar/lib/mpagedisplay.h
@@ -0,0 +1,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