File: KPrTextPreview.h

package info (click to toggle)
koffice 1%3A1.6.1-2etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 166,968 kB
  • ctags: 102,365
  • sloc: cpp: 829,873; ansic: 86,242; xml: 14,460; sh: 11,579; makefile: 8,604; python: 6,325; perl: 3,364; yacc: 2,654; lex: 455; sql: 266; ruby: 244
file content (30 lines) | stat: -rw-r--r-- 723 bytes parent folder | download | duplicates (3)
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