Changeset View
Changeset View
Standalone View
Standalone View
plugins/filters/indexcolors/kiswdgindexcolors.cpp
Show All 20 Lines | |||||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #include "filter/kis_color_transformation_configuration.h" | 23 | #include "filter/kis_color_transformation_configuration.h" | ||
24 | 24 | | |||
25 | #include "kiswdgindexcolors.h" | 25 | #include "kiswdgindexcolors.h" | ||
26 | #include "palettegeneratorconfig.h" | 26 | #include "palettegeneratorconfig.h" | ||
27 | #include "ui_kiswdgindexcolors.h" | 27 | #include "ui_kiswdgindexcolors.h" | ||
28 | 28 | | |||
29 | #include "kis_int_parse_spin_box.h" | ||||
30 | | ||||
29 | #include <kcolorbutton.h> | 31 | #include <kcolorbutton.h> | ||
30 | 32 | | |||
31 | KisWdgIndexColors::KisWdgIndexColors(QWidget* parent, Qt::WFlags f, int delay): KisConfigWidget(parent, f, delay) | 33 | KisWdgIndexColors::KisWdgIndexColors(QWidget* parent, Qt::WFlags f, int delay): KisConfigWidget(parent, f, delay) | ||
32 | { | 34 | { | ||
33 | ui = new Ui::KisWdgIndexColors; | 35 | ui = new Ui::KisWdgIndexColors; | ||
34 | ui->setupUi(this); | 36 | ui->setupUi(this); | ||
35 | 37 | | |||
36 | connect(ui->diagCheck, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged())); | 38 | connect(ui->diagCheck, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged())); | ||
Show All 39 Lines | 59 | { | |||
76 | }*/ | 78 | }*/ | ||
77 | // Step selectors for the shade gradients | 79 | // Step selectors for the shade gradients | ||
78 | for(int row = 0; row < (rows-1); ++row) | 80 | for(int row = 0; row < (rows-1); ++row) | ||
79 | { | 81 | { | ||
80 | QLabel* l0 = new QLabel(shadesLabels[row+1]); | 82 | QLabel* l0 = new QLabel(shadesLabels[row+1]); | ||
81 | QLabel* l1 = new QLabel(QString::fromUtf8("↔")); | 83 | QLabel* l1 = new QLabel(QString::fromUtf8("↔")); | ||
82 | QLabel* l2 = new QLabel(shadesLabels[row]); | 84 | QLabel* l2 = new QLabel(shadesLabels[row]); | ||
83 | 85 | | |||
84 | QSpinBox* s = new QSpinBox(); | 86 | QSpinBox* s = new KisIntParseSpinBox(); | ||
85 | s->setMinimum(0); | 87 | s->setMinimum(0); | ||
86 | s->setMaximum(32); | 88 | s->setMaximum(32); | ||
87 | s->setValue(2); | 89 | s->setValue(2); | ||
88 | 90 | | |||
89 | connect(s, SIGNAL(valueChanged(int)), this, SIGNAL(sigConfigurationItemChanged())); | 91 | connect(s, SIGNAL(valueChanged(int)), this, SIGNAL(sigConfigurationItemChanged())); | ||
90 | m_stepSpinners[row] = s; | 92 | m_stepSpinners[row] = s; | ||
91 | 93 | | |||
92 | ui->layoutRowSteps->addWidget(l0, row, 0); | 94 | ui->layoutRowSteps->addWidget(l0, row, 0); | ||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |