summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrTextPreview.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 /kpresenter/KPrTextPreview.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 'kpresenter/KPrTextPreview.h')
-rw-r--r--kpresenter/KPrTextPreview.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/kpresenter/KPrTextPreview.h b/kpresenter/KPrTextPreview.h
new file mode 100644
index 00000000..e9d91616
--- /dev/null
+++ b/kpresenter/KPrTextPreview.h
@@ -0,0 +1,30 @@
+#ifndef __textpreview_h__
+#define __textpreview_h__
+
+#include <qframe.h>
+#include "global.h"
+
+class KPrTextPreview : public QFrame
+{
+ Q_OBJECT
+
+public:
+ KPrTextPreview( QWidget* parent, const char* name = 0 );
+ ~KPrTextPreview() {}
+
+ void setShadowDirection( ShadowDirection sd ) { shadowDirection = sd; repaint( true ); }
+ void setShadowDistance( int sd ) { shadowDistance = sd; repaint( true ); }
+ void setShadowColor( const QColor &sc ) { shadowColor = sc; repaint( true ); }
+ void setAngle( double a ) { angle = a; repaint( true ); }
+
+protected:
+ void drawContents( QPainter* );
+
+ ShadowDirection shadowDirection;
+ int shadowDistance;
+ QColor shadowColor;
+ double angle;
+};
+
+#endif
+