kpresenter

KPrTextPreview.h
1#ifndef __textpreview_h__
2#define __textpreview_h__
3
4#include <tqframe.h>
5#include "global.h"
6
7class KPrTextPreview : public TQFrame
8{
9 TQ_OBJECT
10
11
12public:
13 KPrTextPreview( TQWidget* parent, const char* name = 0 );
14 ~KPrTextPreview() {}
15
16 void setShadowDirection( ShadowDirection sd ) { shadowDirection = sd; repaint( true ); }
17 void setShadowDistance( int sd ) { shadowDistance = sd; repaint( true ); }
18 void setShadowColor( const TQColor &sc ) { shadowColor = sc; repaint( true ); }
19 void setAngle( double a ) { angle = a; repaint( true ); }
20
21protected:
22 void drawContents( TQPainter* );
23
24 ShadowDirection shadowDirection;
25 int shadowDistance;
26 TQColor shadowColor;
27 double angle;
28};
29
30#endif
31