Differential D1875 Diff 5683 plugins/dockers/advancedcolorselector/kis_shade_selector_line_editor.cpp
Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/advancedcolorselector/kis_shade_selector_line_editor.cpp
Show All 13 Lines | |||||
14 | * | 14 | * | ||
15 | * You should have received a copy of the GNU General Public License | 15 | * You should have received a copy of the GNU General Public License | ||
16 | * along with this program; if not, write to the Free Software | 16 | * along with this program; if not, write to the Free Software | ||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "kis_shade_selector_line_editor.h" | 20 | #include "kis_shade_selector_line_editor.h" | ||
21 | 21 | | |||
22 | #include "kis_double_parse_spin_box.h" | ||||
23 | | ||||
22 | KisShadeSelectorLineEditor::KisShadeSelectorLineEditor(QWidget* parent) | 24 | KisShadeSelectorLineEditor::KisShadeSelectorLineEditor(QWidget* parent) | ||
23 | : KisShadeSelectorLineBase(parent) | 25 | : KisShadeSelectorLineBase(parent) | ||
24 | { | 26 | { | ||
25 | QVBoxLayout* layout = new QVBoxLayout(this); | 27 | QVBoxLayout* layout = new QVBoxLayout(this); | ||
26 | 28 | | |||
27 | QHBoxLayout* lineOne = new QHBoxLayout(); | 29 | QHBoxLayout* lineOne = new QHBoxLayout(); | ||
28 | layout->addLayout(lineOne); | 30 | layout->addLayout(lineOne); | ||
29 | lineOne->addWidget(new QLabel(i18n("Delta: "))); | 31 | lineOne->addWidget(new QLabel(i18n("Delta: "))); | ||
30 | 32 | | |||
31 | m_hueDelta = new QDoubleSpinBox(); | 33 | m_hueDelta = new KisDoubleParseSpinBox(); | ||
32 | lineOne->addWidget(m_hueDelta); | 34 | lineOne->addWidget(m_hueDelta); | ||
33 | m_saturationDelta = new QDoubleSpinBox(); | 35 | m_saturationDelta = new KisDoubleParseSpinBox(); | ||
34 | lineOne->addWidget(m_saturationDelta); | 36 | lineOne->addWidget(m_saturationDelta); | ||
35 | m_valueDelta = new QDoubleSpinBox(); | 37 | m_valueDelta = new KisDoubleParseSpinBox(); | ||
36 | lineOne->addWidget(m_valueDelta); | 38 | lineOne->addWidget(m_valueDelta); | ||
37 | 39 | | |||
38 | QHBoxLayout* lineTwo = new QHBoxLayout(); | 40 | QHBoxLayout* lineTwo = new QHBoxLayout(); | ||
39 | layout->addLayout(lineTwo); | 41 | layout->addLayout(lineTwo); | ||
40 | lineTwo->addWidget(new QLabel(i18n("Shift: "))); | 42 | lineTwo->addWidget(new QLabel(i18n("Shift: "))); | ||
41 | 43 | | |||
42 | m_hueShift = new QDoubleSpinBox(); | 44 | m_hueShift = new KisDoubleParseSpinBox(); | ||
43 | lineTwo->addWidget(m_hueShift); | 45 | lineTwo->addWidget(m_hueShift); | ||
44 | m_saturationShift = new QDoubleSpinBox(); | 46 | m_saturationShift = new KisDoubleParseSpinBox(); | ||
45 | lineTwo->addWidget(m_saturationShift); | 47 | lineTwo->addWidget(m_saturationShift); | ||
46 | m_valueShift = new QDoubleSpinBox(); | 48 | m_valueShift = new KisDoubleParseSpinBox(); | ||
47 | lineTwo->addWidget(m_valueShift); | 49 | lineTwo->addWidget(m_valueShift); | ||
48 | 50 | | |||
49 | 51 | | |||
50 | m_hueDelta->setRange(-1, 1); | 52 | m_hueDelta->setRange(-1, 1); | ||
51 | m_saturationDelta->setRange(-1, 1); | 53 | m_saturationDelta->setRange(-1, 1); | ||
52 | m_valueDelta->setRange(-1, 1); | 54 | m_valueDelta->setRange(-1, 1); | ||
53 | m_hueShift->setRange(-1, 1); | 55 | m_hueShift->setRange(-1, 1); | ||
54 | m_saturationShift->setRange(-1, 1); | 56 | m_saturationShift->setRange(-1, 1); | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |