28 << i18nc(
"the gradient will be drawn linearly",
"Linear")
29 << i18nc(
"the gradient will be drawn bilinearly",
"Bi-Linear")
30 << i18nc(
"the gradient will be drawn radially",
"Radial")
31 << i18nc(
"the gradient will be drawn in a square around a centre",
"Square")
32 << i18nc(
"the gradient will be drawn as an asymmetric cone",
"Conical")
33 << i18nc(
"the gradient will be drawn as a symmetric cone",
"Conical Symmetric")
34 << i18nc(
"the gradient will be drawn as a spiral",
"Spiral")
35 << i18nc(
"the gradient will be drawn as a reverse spiral",
"Reverse Spiral")
36 << i18nc(
"the gradient will be drawn in a selection outline",
"Shaped");
39 << i18nc(
"The gradient will not repeat",
"None")
40 << i18nc(
"The gradient will repeat forwards",
"Forwards")
41 << i18nc(
"The gradient will repeat alternatingly",
"Alternating");
44 << i18nc(
"The position will be set in pixels",
"Pixels")
45 << i18nc(
"The position will be a percentage of the width",
"Percent of the Width")
46 << i18nc(
"The position will be a percentage of the height",
"Percent of the Height")
47 << i18nc(
"The position will be a percentage of the longest image side",
"Percent of the Longest Side")
48 << i18nc(
"The position will be a percentage of the shortest image side",
"Percent of the Shortest Side");
51 << i18nc(
"The position will be relative to the top-left corner of the image",
"Absolute")
52 << i18nc(
"The position will be relative to the start point",
"Relative");
56 m_ui.comboBoxShape->addItems(shapeNames);
57 m_ui.comboBoxRepeat->addItems(repeatNames);
58 m_ui.sliderAntiAliasThreshold->setRange(0, 1, 3);
60 m_ui.comboBoxStartPositionXUnits->addItems(spatialUnitsNames);
61 m_ui.comboBoxStartPositionYUnits->addItems(spatialUnitsNames);
62 m_ui.comboBoxEndPositionXUnits->addItems(spatialUnitsNames);
63 m_ui.comboBoxEndPositionYUnits->addItems(spatialUnitsNames);
64 m_ui.comboBoxEndPositionXPositioning->addItems(positioningNames);
65 m_ui.comboBoxEndPositionYPositioning->addItems(positioningNames);
66 m_ui.comboBoxEndPositionDistanceUnits->addItems(spatialUnitsNames);
68 m_ui.widgetGradientEditor->setContentsMargins(10, 10, 10, 10);
69 m_ui.widgetGradientEditor->loadUISettings();
83 m_ui.radioButtonEndPositionCartesianCoordinates,
84 SIGNAL(toggled(
bool)),
89 m_ui.radioButtonEndPositionPolarCoordinates,
90 SIGNAL(toggled(
bool)),
121 m_ui.comboBoxShape->setCurrentIndex(generatorConfig->
shape());
122 m_ui.comboBoxRepeat->setCurrentIndex(generatorConfig->
repeat());
124 m_ui.checkBoxDither->setChecked(generatorConfig->
dither());
125 m_ui.checkBoxReverse->setChecked(generatorConfig->
reverse());
132 m_ui.radioButtonEndPositionCartesianCoordinates->setChecked(
true);
134 m_ui.radioButtonEndPositionPolarCoordinates->setChecked(
true);
152 if (currentGradient) {
157 m_ui.widgetGradientEditor->setGradient(generatorConfig->
gradient(fallbackGradient));
177 if (
m_ui.radioButtonEndPositionCartesianCoordinates->isChecked()) {