9#ifndef KISGENERICGRADIENTEDITOR_H
10#define KISGENERICGRADIENTEDITOR_H
13#include <QScopedPointer>
15#include <kritaui_export.h>
44 void loadUISettings(
const QString &prefix = QString());
50 void saveUISettings(
const QString &prefix = QString());
125 QSize sizeHint()
const override;
126 QSize minimumSizeHint()
const override;
128 bool event(QEvent *e)
override;
158 void setCompactMode(
bool compact);
164 void setConvertGradientButtonVisible(
bool visible);
170 void setUpdateGradientButtonVisible(
bool visible);
176 void setAddGradientButtonVisible(
bool visible);
182 void setGradientPresetChooserVisible(
bool visible);
188 void setGradientPresetChooserOptionsButtonVisible(
bool visible);
195 void setUseGradientPresetChooserPopUp(
bool use);
203 void setCompactGradientPresetChooserMode(
bool compact);
209 void setCompactGradientEditorMode(
bool compact);
219 QScopedPointer<Private>
m_d;
221 void updateConvertGradientButton();
222 void updateUpdateGradientButton();
223 void updateAddGradientButton();
224 void updateGradientPresetChooser();
225 void updateGradientEditor();
228 void on_buttonConvertGradient_clicked();
229 void on_buttonUpdateGradient_clicked();
230 void on_buttonAddGradient_clicked();
231 void on_widgetGradientPresetChooser_resourceClicked(
KoResourceSP resource);
232 void on_widgetGradientEditor_sigGradientChanged();
This is a generic gradient editor widget.
void sigGradientChanged()
signal emitted when the gradient changes
bool compactGradientPresetChooserMode() const
Tell if the gradient preset chooser is being shown without any controls other than the list view.
bool compactGradientEditorMode() const
Tell if the internal gradient editor is using the compact mode.
QScopedPointer< Private > m_d
KoAbstractGradientSP gradient() const
Get the current gradient.
bool isConvertGradientButtonVisible() const
Tell if the convert gradient button is being shown.
bool isGradientPresetChooserVisible() const
Tell if the gradient preset chooser is being shown.
bool isGradientPresetChooserOptionsButtonVisible() const
Tell if the button for the gradient preset chooser options is being shown.
bool compactMode() const
Tell if the compact mode is being used.
bool isAddGradientButtonVisible() const
Tell if the add gradient button is being shown.
bool useGradientPresetChooserPopUp() const
Tell if the gradient preset chooser is being shown as a pop-up clicking a button or embedded in the w...
bool isUpdateGradientButtonVisible() const
Tell if the update gradient button is being shown.
KoCanvasResourcesInterfaceSP canvasResourcesInterface() const
Get the current Canvas Resources Interface.