19#ifndef BRUSHSTYLEWIDGET_H
20#define BRUSHSTYLEWIDGET_H
25#include "KPrCommand.h"
28class GradientPropertyUI;
36class KPrBrushProperty : public TQWidget
41 KPrBrushProperty( TQWidget *parent, const char *name, const KPrBrushCmd::Brush &brush );
44 int getBrushPropertyChange() const;
45 KPrBrushCmd::Brush getBrush() const;
47 void setBrush( KPrBrushCmd::Brush &brush );
52 FillType getFillType() const;
53 TQBrush getTQBrush() const;
55 TQColor getGColor1() const;
56 TQColor getGColor2() const;
57 BCType getGType() const;
58 bool getGUnbalanced() const;
59 int getGXFactor() const;
60 int getGYFactor() const;
62 void setTQBrush( const TQBrush &brush );
63 void setGradient( const TQColor &_c1, const TQColor &_c2, BCType _t,
64 bool _unbalanced, int _xfactor, int _yfactor );
65 void setUnbalancedEnabled( bool state );
67 KComboBox *m_typeCombo;
68 TQWidgetStack *m_stack;
69 BrushPropertyUI *m_brushUI;
70 GradientPropertyUI *m_gradientUI;
71 KPrPBPreview *m_preview_color;
72 KPrPBPreview *m_preview_gradient;
74 KPrBrushCmd::Brush m_brush;
78 void slotTypeChanged( int pos );
79 void slotBrushChanged();
81 void slotColor1Changed();
82 void slotColor2Changed();
83 void slotBackColorTypeChanged();
84 void slotUnbalancedChanged();
85 void slotXFactorChanged();
86 void slotYFactorChanged();
|