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 gradient will not be dithered",
"None")
45 << i18nc(
"The gradient will be dithered with Blue Noise",
"Blue Noise")
46 << i18nc(
"The gradient will be dithered with Bayer Matrix 2x2",
"Bayer Matrix 2x2")
47 << i18nc(
"The gradient will be dithered with Bayer Matrix 4x4",
"Bayer Matrix 4x4")
48 << i18nc(
"The gradient will be dithered with Bayer Matrix 8x8",
"Bayer Matrix 8x8");
51 << i18nc(
"The position will be set in pixels",
"Pixels")
52 << i18nc(
"The position will be a percentage of the width",
"Percent of the Width")
53 << i18nc(
"The position will be a percentage of the height",
"Percent of the Height")
54 << i18nc(
"The position will be a percentage of the longest image side",
"Percent of the Longest Side")
55 << i18nc(
"The position will be a percentage of the shortest image side",
"Percent of the Shortest Side");
58 << i18nc(
"The position will be relative to the top-left corner of the image",
"Absolute")
59 << i18nc(
"The position will be relative to the start point",
"Relative");
63 m_ui.comboBoxShape->addItems(shapeNames);
64 m_ui.comboBoxRepeat->addItems(repeatNames);
65 m_ui.comboBoxDither->addItems(ditherNames);
67 m_ui.sliderAntiAliasThreshold->setRange(0, 1, 3);
69 m_ui.comboBoxStartPositionXUnits->addItems(spatialUnitsNames);
70 m_ui.comboBoxStartPositionYUnits->addItems(spatialUnitsNames);
71 m_ui.comboBoxEndPositionXUnits->addItems(spatialUnitsNames);
72 m_ui.comboBoxEndPositionYUnits->addItems(spatialUnitsNames);
73 m_ui.comboBoxEndPositionXPositioning->addItems(positioningNames);
74 m_ui.comboBoxEndPositionYPositioning->addItems(positioningNames);
75 m_ui.comboBoxEndPositionDistanceUnits->addItems(spatialUnitsNames);
77 m_ui.widgetGradientEditor->setContentsMargins(10, 10, 10, 10);
78 m_ui.widgetGradientEditor->loadUISettings();
93 m_ui.radioButtonEndPositionCartesianCoordinates,
94 SIGNAL(toggled(
bool)),
99 m_ui.radioButtonEndPositionPolarCoordinates,
100 SIGNAL(toggled(
bool)),
131 m_ui.comboBoxShape->setCurrentIndex(generatorConfig->
shape());
132 m_ui.comboBoxRepeat->setCurrentIndex(generatorConfig->
repeat());
133 m_ui.comboBoxDither->setCurrentIndex(generatorConfig->
dither());
137 m_ui.checkBoxReverse->setChecked(generatorConfig->
reverse());
144 m_ui.radioButtonEndPositionCartesianCoordinates->setChecked(
true);
146 m_ui.radioButtonEndPositionPolarCoordinates->setChecked(
true);
164 if (currentGradient) {
169 m_ui.widgetGradientEditor->setGradient(generatorConfig->
gradient(fallbackGradient));
190 if (
m_ui.radioButtonEndPositionCartesianCoordinates->isChecked()) {