161 m_d->optionButtonStripMode->addButton(
163 m_d->optionButtonStripMode->button(0)->setChecked(
true);
168 m_d->optionButtonStripAction->addButton(
170 m_d->optionButtonStripAction->addButton(
172 m_d->optionButtonStripAction->addButton(
174 m_d->optionButtonStripAction->addButton(
176 m_d->optionButtonStripAction->button(0)->setChecked(
true);
178 m_d->checkBoxAntiAliasSelection =
new QCheckBox(
179 i18nc(
"The anti-alias checkbox in fill tool options",
"Anti-aliasing"));
182 m_d->sliderGrowSelection->setPrefix(
183 i18nc(
"The 'grow/shrink' spinbox prefix in selection tools options",
186 m_d->sliderGrowSelection->setSoftRange(-40, 40);
187 m_d->sliderGrowSelection->setSuffix(i18n(
" px"));
188 m_d->buttonStopGrowingAtDarkestPixel =
new QToolButton;
189 m_d->buttonStopGrowingAtDarkestPixel->setAutoRaise(
true);
190 m_d->buttonStopGrowingAtDarkestPixel->setCheckable(
true);
192 containerGrowSelection->
appendWidget(
"sliderGrowSelection",
m_d->sliderGrowSelection);
193 containerGrowSelection->
appendWidget(
"buttonStopGrowingAtDarkestPixel",
m_d->buttonStopGrowingAtDarkestPixel);
195 containerGrowSelection->
setWidgetVisible(
"buttonStopGrowingAtDarkestPixel",
false);
197 m_d->sliderFeatherSelection->setPrefix(
198 i18nc(
"The 'feather' spinbox prefix in selection tools options",
201 m_d->sliderFeatherSelection->setSoftRange(0, 40);
202 m_d->sliderFeatherSelection->setSuffix(i18n(
" px"));
207 m_d->optionButtonStripReference->addButton(
210 m_d->optionButtonStripReference->button(0)->setChecked(
true);
213 m_d->widgetLabels->setButtonSize(20);
214 m_d->widgetLabels->setButtonWrapEnabled(
true);
215 m_d->widgetLabels->setMouseDragEnabled(
true);
218 m_d->optionButtonStripMode->button(0)->setToolTip(
219 i18nc(
"@info:tooltip",
"Pixel Selection"));
220 m_d->optionButtonStripMode->button(1)->setToolTip(
221 i18nc(
"@info:tooltip",
"Vector Selection"));
223 m_d->optionButtonStripAction->button(0)->setToolTip(
224 i18nc(
"@info:tooltip",
"Replace"));
225 m_d->optionButtonStripAction->button(1)->setToolTip(
226 i18nc(
"@info:tooltip",
"Intersect"));
227 m_d->optionButtonStripAction->button(2)->setToolTip(
228 i18nc(
"@info:tooltip",
"Add"));
229 m_d->optionButtonStripAction->button(3)->setToolTip(
230 i18nc(
"@info:tooltip",
"Subtract"));
231 m_d->optionButtonStripAction->button(4)->setToolTip(
232 i18nc(
"@info:tooltip",
"Symmetric Difference"));
234 m_d->checkBoxAntiAliasSelection->setToolTip(
235 i18n(
"Smooths the edges of the selection"));
236 m_d->sliderGrowSelection->setToolTip(
237 i18n(
"Grow or shrink the selection by the set amount"));
238 m_d->buttonStopGrowingAtDarkestPixel->setToolTip(
239 i18n(
"Stop growing at the darkest and/or most opaque pixels"));
240 m_d->sliderFeatherSelection->setToolTip(
241 i18n(
"Blur the selection by the set amount"));
243 m_d->optionButtonStripReference->button(0)->setToolTip(
244 i18n(
"Select regions found from the active layer"));
245 m_d->optionButtonStripReference->button(1)->setToolTip(
246 i18n(
"Select regions found from the merging of all layers"));
247 m_d->optionButtonStripReference->button(2)->setToolTip(
248 i18n(
"Select regions found from the merging of layers with specific color labels"));
255 i18nc(
"The 'mode' section label in selection tools options",
262 i18nc(
"The 'action' section label in selection tools options",
269 i18nc(
"The 'reference' section label in selection tools options",
278 i18nc(
"The 'adjustments' section label in selection tools options",
280 sectionAdjustments->
appendWidget(
"checkBoxAntiAliasSelection",
281 m_d->checkBoxAntiAliasSelection);
282 sectionAdjustments->
appendWidget(
"containerGrowSelection", containerGrowSelection);
284 m_d->sliderFeatherSelection);
290 [
this](
int i,
int c) {
291 m_d->on_optionButtonStripMode_buttonToggled(i, c);
295 [
this](
int i,
int c) {
296 m_d->on_optionButtonStripAction_buttonToggled(i, c);
299 SIGNAL(toggled(
bool)),
302 SIGNAL(valueChanged(
int)),
305 SIGNAL(toggled(
bool)),
308 SIGNAL(valueChanged(
int)),
312 [
this](
int i,
int c) {
313 m_d->on_optionButtonStripReference_buttonToggled(i, c);
316 SIGNAL(selectionChanged()),