277 m_d->ui =
new Ui_KisToolKnifeOptionsWidget();
278 m_d->ui->setupUi(
this);
280 m_d->toolId = toolId;
281 m_d->resolution = resolution;
287 m_d->buttonModeAddGutter =
m_d->ui->optionButtonStripToolMode->addButton(
289 m_d->buttonModeRemoveGutter =
m_d->ui->optionButtonStripToolMode->addButton(
294 m_d->buttonModeAddGutter->setChecked(
true);
295 m_d->buttonModeAddGutter->setMinimumSize(QSize(20, 20));
296 m_d->buttonModeRemoveGutter->setMinimumSize(QSize(20, 20));
297 m_d->buttonModeAddGutter->setIconSize(QSize(16, 16));
298 m_d->buttonModeRemoveGutter->setIconSize(QSize(16, 16));
304 m_d->ui->unitsCombobox->addItem(i18n(
"Pixels"), QVariant(
"px"));
305 m_d->ui->unitsCombobox->addItem(i18n(
"Millimeters"), QVariant(
"mm"));
307 m_d->ui->automaticHorizontalCombobox->addItem(i18nc(
"Thick type of gutter (in comics); keep consistent with the label in the GUI",
"Thick"), QVariant(
KisToolKnifeOptionsWidget::Thick));
308 m_d->ui->automaticHorizontalCombobox->addItem(i18nc(
"Thin type of gutter (in comics); keep consistent with the label in the GUI",
"Thin"), QVariant(
KisToolKnifeOptionsWidget::Thin));
309 m_d->ui->automaticHorizontalCombobox->addItem(i18nc(
"Special type of gutter (in comics); keep consistent with the label in the GUI",
"Special"), QVariant(
KisToolKnifeOptionsWidget::Special));
312 m_d->ui->automaticVerticalCombobox->addItem(i18nc(
"Thick type of gutter (in comics); keep consistent with the label in the GUI",
"Thick"), QVariant(
KisToolKnifeOptionsWidget::Thick));
313 m_d->ui->automaticVerticalCombobox->addItem(i18nc(
"Thin type of gutter (in comics); keep consistent with the label in the GUI",
"Thin"), QVariant(
KisToolKnifeOptionsWidget::Thin));
314 m_d->ui->automaticVerticalCombobox->addItem(i18nc(
"Special type of gutter (in comics); keep consistent with the label in the GUI",
"Special"), QVariant(
KisToolKnifeOptionsWidget::Special));
317 m_d->ui->automaticDiagonalCombobox->addItem(i18nc(
"Thick type of gutter (in comics); keep consistent with the label in the GUI",
"Thick"), QVariant(
KisToolKnifeOptionsWidget::Thick));
318 m_d->ui->automaticDiagonalCombobox->addItem(i18nc(
"Thin type of gutter (in comics); keep consistent with the label in the GUI",
"Thin"), QVariant(
KisToolKnifeOptionsWidget::Thin));
319 m_d->ui->automaticDiagonalCombobox->addItem(i18nc(
"Special type of gutter (in comics); keep consistent with the label in the GUI",
"Special"), QVariant(
KisToolKnifeOptionsWidget::Special));
322 m_d->readFromConfig(toolId);
326 connect(
m_d->buttonModeAddGutter, SIGNAL(clicked()),
this, SLOT(
modeChanged()));
327 connect(
m_d->buttonModeRemoveGutter, SIGNAL(clicked()),
this, SLOT(
modeChanged()));
397 m_d->ui->automaticDiagonalCombobox->setEnabled(
false);
398 m_d->ui->automaticVerticalCombobox->setEnabled(
false);
399 m_d->ui->automaticHorizontalCombobox->setEnabled(
false);
400 m_d->ui->gutterWidthAngleSpinBox->setEnabled(
false);
401 m_d->ui->angleLabel->setEnabled(
false);
402 m_d->ui->horizontalLabel->setEnabled(
false);
403 m_d->ui->verticalLabel->setEnabled(
false);
404 m_d->ui->diagonalLabel->setEnabled(
false);
408 m_d->ui->automaticDiagonalCombobox->setEnabled(
true);
409 m_d->ui->automaticVerticalCombobox->setEnabled(
true);
410 m_d->ui->automaticHorizontalCombobox->setEnabled(
true);
411 m_d->ui->gutterWidthAngleSpinBox->setEnabled(
true);
412 m_d->ui->horizontalLabel->setEnabled(
true);
413 m_d->ui->verticalLabel->setEnabled(
true);
414 m_d->ui->diagonalLabel->setEnabled(
true);
415 m_d->ui->angleLabel->setEnabled(
true);