27#include "KPrGradient.h"
31class KoTextZoomHandler;
37class KPrPBPreview : public TQFrame
49 KPrPBPreview( TQWidget* parent, const char* name, PaintType _paintType = Pen );
51 void setPen( const KoPen &_pen ) { pen = _pen; repaint( true ); }
52 void setBrush( const TQBrush &_brush ) { brush = _brush; repaint( true ); }
53 void setLineBegin( LineEnd lb ) { lineBegin = lb; repaint( true ); }
54 void setLineEnd( LineEnd le ) { lineEnd = le; repaint( true ); }
55 void setGradient( KPrGradient *g ) { if ( g ) { gradient = g; } repaint( true ); }
56 void setPaintType( PaintType pt ) { paintType = pt; repaint( true); }
58 void setGradient( const TQColor &_c1, const TQColor &_c2, BCType _t,
59 bool _unbalanced, int _xfactor, int _yfactor );
60 void setColor1( const TQColor &_color ) { gradient->setColor1( _color ); repaint( false ); }
61 void setColor2( const TQColor &_color ) { gradient->setColor2( _color ); repaint( false ); }
62 void setBackColorType( BCType _type ) { gradient->setBackColorType( _type ); repaint( false ); }
63 void setUnbalanced( bool b ) { gradient->setUnbalanced( b ); repaint( false ); }
64 void setXFactor( int i ) { gradient->setXFactor( i ); repaint( false ); }
65 void setYFactor( int i ) { gradient->setYFactor( i ); repaint( false ); }
68 void drawContents( TQPainter *p );
69 void resizeEvent( TQResizeEvent *e );
75 LineEnd lineBegin, lineEnd;
76 KPrGradient *gradient;
77 KPrGradient *savedGradient;
78 KoTextZoomHandler *_zoomHandler;
|