27 class ColorPickButton;
28 class Painter2DPreview;
29 class GradientPainter2D;
40 void addStops(
const std::vector<GradientPainterStop2D>& _stops);
41 std::vector<GradientPainterStop2D>stops(
void)
const;
48 void slotCountChanged(
int _newCount);
49 void slotValueChanged(
void);
57 void rebuild(
const std::vector<GradientPainterStop2D>& _stops);
61 QVBoxLayout* m_layout;
65 std::list<StopEntry> m_stops;
99 void slotValueChanged(
void);
114 virtual QWidget* getRootWidget(
void)
const override;
118 virtual Painter2D* createPainter(
void)
const override;
140 virtual Painter2D* createPainter(
void)
const override;
171 virtual Painter2D* createPainter(
void)
const override;
174 void slotFocalEnabledChanged(
void);
202 virtual QWidget* getRootWidget(
void)
const override;
206 virtual Painter2D* createPainter(
void)
const override;
240 void slotTypeChanged(
void);
241 void slotUpdate(
void);
242 void slotConfirm(
void);
246 void applyPainter(
const Painter2D* _painter);
252 QVBoxLayout* m_vLayout;
257 QWidget* m_stretchItem;
The Color class is used to represent RGBA colors with integer values.
Definition Color.h:72
Definition DoubleSpinBox.h:20
Definition GradientPainter2D.h:16
Definition GradientPainterStop2D.h:15
Definition Painter2DEditDialog.h:75
DialogEntryType
Definition Painter2DEditDialog.h:78
@ RadialType
Definition Painter2DEditDialog.h:81
@ LinearType
Definition Painter2DEditDialog.h:80
@ FillType
Definition Painter2DEditDialog.h:79
virtual DialogEntryType getEntryType(void) const =0
virtual Painter2D * createPainter(void) const =0
Creates a new painter. Caller takes ownership.
Painter2DEditDialogEntry()
Definition Painter2DEditDialog.h:85
virtual QWidget * getRootWidget(void) const =0
Definition Painter2DEditDialog.h:108
virtual DialogEntryType getEntryType(void) const
Definition Painter2DEditDialog.h:113
Definition Painter2DEditDialog.h:218
const Painter2D * currentPainter(void) const
Definition Painter2DEditDialog.h:230
PainterEntryType
Definition Painter2DEditDialog.h:221
@ LinearType
Definition Painter2DEditDialog.h:223
@ FillType
Definition Painter2DEditDialog.h:222
void painterChanged(void)
void setHasChanged(bool _changed)
Definition Painter2DEditDialog.h:233
bool hasChanged(void) const
Definition Painter2DEditDialog.h:234
Definition Painter2DEditDialog.h:130
virtual DialogEntryType getEntryType(void) const
Definition Painter2DEditDialog.h:135
virtual QWidget * getRootWidget(void) const override
Definition Painter2DEditDialog.h:136
Definition Painter2DEditDialog.h:160
virtual QWidget * getRootWidget(void) const override
Definition Painter2DEditDialog.h:167
virtual DialogEntryType getEntryType(void) const
Definition Painter2DEditDialog.h:166
Definition Painter2DEditDialog.h:196
virtual DialogEntryType getEntryType(void) const
Definition Painter2DEditDialog.h:201
Definition Painter2D.h:17
Definition Painter2DPreview.h:21
Definition Painter2DEditDialog.h:32
void addStop(double _pos, const ot::Color &_color)
Definition Painter2DEditDialog.h:38
Definition GraphicsPicker.cpp:29
GradientSpread
Describes how the painter will behave when painting outsite the gradient area.
Definition GuiTypes.h:76