kpresenter

KPrTextPreview.h

00001 #ifndef __textpreview_h__
00002 #define __textpreview_h__
00003 
00004 #include <qframe.h>
00005 #include "global.h"
00006 
00007 class KPrTextPreview : public QFrame
00008 {
00009     Q_OBJECT
00010 
00011 public:
00012     KPrTextPreview( QWidget* parent, const char* name = 0 );
00013     ~KPrTextPreview() {}
00014 
00015     void setShadowDirection( ShadowDirection sd ) { shadowDirection = sd; repaint( true ); }
00016     void setShadowDistance( int sd ) { shadowDistance = sd; repaint( true ); }
00017     void setShadowColor( const QColor &sc ) { shadowColor = sc; repaint( true ); }
00018     void setAngle( double a ) { angle = a; repaint( true ); }
00019 
00020 protected:
00021     void drawContents( QPainter* );
00022 
00023     ShadowDirection shadowDirection;
00024     int shadowDistance;
00025     QColor shadowColor;
00026     double angle;
00027 };
00028 
00029 #endif
00030 
KDE Home | KDE Accessibility Home | Description of Access Keys