You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
723 B
31 lines
723 B
#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
|
|
|