Changeset View
Changeset View
Standalone View
Standalone View
plugins/paintops/libpaintop/kis_auto_brush_widget.cpp
Context not available. | |||||
60 | inputRadius->setExponentRatio(3.0); | 60 | inputRadius->setExponentRatio(3.0); | ||
---|---|---|---|---|---|
61 | inputRadius->setSingleStep(1); | 61 | inputRadius->setSingleStep(1); | ||
62 | inputRadius->setValue(5); | 62 | inputRadius->setValue(5); | ||
63 | inputRadius->setPrefix(i18n("Diameter: ")); | ||||
63 | inputRadius->setSuffix(i18n(" px")); | 64 | inputRadius->setSuffix(i18n(" px")); | ||
64 | inputRadius->setBlockUpdateSignalOnDrag(true); | 65 | inputRadius->setBlockUpdateSignalOnDrag(true); | ||
65 | connect(inputRadius, SIGNAL(valueChanged(qreal)), m_updateCompressor.data(), SLOT(start())); | 66 | connect(inputRadius, SIGNAL(valueChanged(qreal)), m_updateCompressor.data(), SLOT(start())); | ||
66 | 67 | | |||
67 | inputRatio->setRange(0.0, 1.0, 2); | 68 | inputRatio->setRange(0.0, 1.0, 2); | ||
68 | inputRatio->setSingleStep(0.1); | 69 | inputRatio->setSingleStep(0.1); | ||
70 | inputRatio->setPrefix(i18n("Ratio: ")); | ||||
69 | inputRatio->setValue(1.0); | 71 | inputRatio->setValue(1.0); | ||
70 | inputRatio->setBlockUpdateSignalOnDrag(true); | 72 | inputRatio->setBlockUpdateSignalOnDrag(true); | ||
71 | connect(inputRatio, SIGNAL(valueChanged(qreal)), m_updateCompressor.data(), SLOT(start())); | 73 | connect(inputRatio, SIGNAL(valueChanged(qreal)), m_updateCompressor.data(), SLOT(start())); | ||
72 | 74 | | |||
75 | inputHFade->setPrefix(i18n("Horizontal: ")); | ||||
73 | inputHFade->setRange(0.0, 1.0, 2); | 76 | inputHFade->setRange(0.0, 1.0, 2); | ||
74 | inputHFade->setSingleStep(0.1); | 77 | inputHFade->setSingleStep(0.1); | ||
75 | inputHFade->setValue(0.5); | 78 | inputHFade->setValue(0.5); | ||
76 | 79 | | |||
80 | inputVFade->setPrefix(i18n("Vertical: ")); | ||||
77 | inputVFade->setRange(0.0, 1.0, 2); | 81 | inputVFade->setRange(0.0, 1.0, 2); | ||
78 | inputVFade->setSingleStep(0.1); | 82 | inputVFade->setSingleStep(0.1); | ||
79 | inputVFade->setValue(0.5); | 83 | inputVFade->setValue(0.5); | ||
Context not available. | |||||
87 | 91 | | |||
88 | inputSpikes->setRange(2, 20); | 92 | inputSpikes->setRange(2, 20); | ||
89 | inputSpikes->setValue(2); | 93 | inputSpikes->setValue(2); | ||
94 | inputSpikes->setPrefix(i18n("Spikes: ")); | ||||
90 | inputSpikes->setBlockUpdateSignalOnDrag(true); | 95 | inputSpikes->setBlockUpdateSignalOnDrag(true); | ||
91 | connect(inputSpikes, SIGNAL(valueChanged(int)), m_updateCompressor.data(), SLOT(start())); | 96 | connect(inputSpikes, SIGNAL(valueChanged(int)), m_updateCompressor.data(), SLOT(start())); | ||
92 | 97 | | |||
93 | inputRandomness->setRange(0, 100); | 98 | inputRandomness->setRange(0, 100); | ||
94 | inputRandomness->setValue(0); | 99 | inputRandomness->setValue(0); | ||
100 | inputRandomness->setPrefix(i18n("Randomness: ")); | ||||
95 | inputRandomness->setBlockUpdateSignalOnDrag(true); | 101 | inputRandomness->setBlockUpdateSignalOnDrag(true); | ||
96 | connect(inputRandomness, SIGNAL(valueChanged(qreal)), m_updateCompressor.data(), SLOT(start())); | 102 | connect(inputRandomness, SIGNAL(valueChanged(qreal)), m_updateCompressor.data(), SLOT(start())); | ||
97 | 103 | | |||
98 | inputAngle->setRange(0, 360); | 104 | inputAngle->setRange(0, 360); | ||
105 | inputAngle->setPrefix(i18n("Angle: ")); | ||||
99 | inputAngle->setSuffix(QChar(Qt::Key_degree)); | 106 | inputAngle->setSuffix(QChar(Qt::Key_degree)); | ||
100 | inputAngle->setValue(0); | 107 | inputAngle->setValue(0); | ||
101 | inputAngle->setBlockUpdateSignalOnDrag(true); | 108 | inputAngle->setBlockUpdateSignalOnDrag(true); | ||
Context not available. | |||||
103 | 110 | | |||
104 | connect(spacingWidget, SIGNAL(sigSpacingChanged()), m_updateCompressor.data(), SLOT(start())); | 111 | connect(spacingWidget, SIGNAL(sigSpacingChanged()), m_updateCompressor.data(), SLOT(start())); | ||
105 | 112 | | |||
113 | density->setPrefix(i18n("Density: ")); | ||||
106 | density->setRange(0, 100, 0); | 114 | density->setRange(0, 100, 0); | ||
107 | density->setSingleStep(1); | 115 | density->setSingleStep(1); | ||
108 | density->setValue(100); | 116 | density->setValue(100); | ||
Context not available. |