summaryrefslogtreecommitdiffstats
path: root/kpresenter/KPrTextPreview.h
blob: a993d72b32e30330d367ef51d9587c40a590c849 (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
#ifndef __textpreview_h__
#define __textpreview_h__

#include <tqframe.h>
#include "global.h"

class KPrTextPreview : public TQFrame
{
    TQ_OBJECT
  

public:
    KPrTextPreview( TQWidget* 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 TQColor &sc ) { shadowColor = sc; repaint( true ); }
    void setAngle( double a ) { angle = a; repaint( true ); }

protected:
    void drawContents( TQPainter* );

    ShadowDirection shadowDirection;
    int shadowDistance;
    TQColor shadowColor;
    double angle;
};

#endif