56{
58 return;
59 }
60
62
64 m_d->layout =
new QFormLayout(
this);
65
66 Q_FOREACH(QObject *o,
m_d->labels) {
68 }
69 Q_FOREACH(QObject *o,
m_d->spinBoxList) {
71 }
72 Q_FOREACH(QObject *o,
m_d->doubleSpinBoxList) {
74 }
75
77 m_d->spinBoxList.clear();
78 m_d->doubleSpinBoxList.clear();
79
82 QString inputLabel = channel->
name() +
":";
83 QLabel *inlb = new QLabel(this);
85 inlb->setText(inputLabel);
89 input->setMinimum(0);
90 input->setMaximum(0xFF);
91 m_d->spinBoxList.append(input);
94 inlb->setVisible(false);
95 input->setVisible(false);
96 input->blockSignals(true);
97 }
98 else {
99 m_d->layout->addRow(inlb, input);
100 }
101 }
102 break;
105 input->setMinimum(0);
106 input->setMaximum(0xFFFF);
107 m_d->spinBoxList.append(input);
110 inlb->setVisible(false);
111 input->setVisible(false);
112 input->blockSignals(true);
113 }
114 else {
115 m_d->layout->addRow(inlb,input);
116 }
117 }
118 break;
121 input->setMinimum(0);
122 input->setMaximum(0xFFFFFFFF);
123 m_d->spinBoxList.append(input);
126 inlb->setVisible(false);
127 input->setVisible(false);
128 input->blockSignals(true);
129 }
130 else {
131 m_d->layout->addRow(inlb,input);
132 }
133 }
134 break;
135#ifdef HAVE_OPENEXR
137 half m_uiMin, m_uiMax;
141 } else {
142 m_uiMin = 0;
144 }
145
147 input->setMinimum(m_uiMin);
148 input->setMaximum(m_uiMax);
149 input->setSingleStep(0.1);
150 m_d->doubleSpinBoxList.append(input);
153 inlb->setVisible(false);
154 input->setVisible(false);
155 input->blockSignals(true);
156 }
157 else {
158 m_d->layout->addRow(inlb,input);
159 }
160 }
161 break;
162#endif
164 float m_uiMin, m_uiMax;
168 } else {
169 m_uiMin = 0;
171 }
172
174 input->setMinimum(m_uiMin);
175 input->setMaximum(m_uiMax);
176 input->setSingleStep(0.1);
177 m_d->doubleSpinBoxList.append(input);
180 inlb->setVisible(false);
181 input->setVisible(false);
182 input->blockSignals(true);
183 }
184 else {
185 m_d->layout->addRow(inlb,input);
186 }
187 }
188 break;
189 default:
190 Q_ASSERT(false);
191 }
192
193 }
194}
const KoID CMYKAColorModelID("CMYKA", ki18n("CMYK/Alpha"))
const KoID LABAColorModelID("LABA", ki18n("L*a*b*/Alpha"))
connect(this, SIGNAL(optionsChanged()), this, SLOT(saveOptions()))
The KisDoubleParseSpinBox class is a cleverer doubleSpinBox, able to parse arithmetic expressions.
The KisIntParseSpinBox class is a cleverer SpinBox, able to parse arithmetic expressions.
void slotUpdateFromSpinBoxes()
@ ALPHA
The channel represents the opacity of a pixel.
@ UINT32
use this for an unsigned integer 21bits channel
enumChannelType channelType() const
enumChannelValueType channelValueType() const
double getUIMin(void) const
double getUIMax(void) const
virtual KoID colorModelId() const =0