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.
32 lines
741 B
32 lines
741 B
#ifndef __textpreview_h__
|
|
#define __textpreview_h__
|
|
|
|
#include <tqframe.h>
|
|
#include "global.h"
|
|
|
|
class KPrTextPreview : public TQFrame
|
|
{
|
|
Q_OBJECT
|
|
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
|
|
|