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