Small progress with ui.

2.0
castano 17 years ago
parent 2b716b62da
commit f3a73e3de5

@ -54,6 +54,9 @@ void ConfigDialog::init()
connect(ui.blueSpinBox, SIGNAL(valueChanged(double)), this, SLOT(colorWeightChanged()));
connect(ui.uniformButton, SIGNAL(toggled(bool)), this, SLOT(uniformWeightToggled(bool)));
connect(ui.luminanceButton, SIGNAL(toggled(bool)), this, SLOT(luminanceWeightToggled(bool)));
//connect(ui.rgbMapRadioButton, SIGNAL(toggled(bool)), this, SLOT(colorModeChanged()));
connect(ui.normalMapRadioButton, SIGNAL(toggled(bool)), this, SLOT(normalMapModeChanged(bool)));
}
@ -124,7 +127,14 @@ void ConfigDialog::luminanceWeightToggled(bool checked)
}
}
void ConfigDialog::normalMapModeChanged(bool checked)
{
ui.alphaModeGroupBox->setEnabled(!checked);
ui.inputGammaSpinBox->setEnabled(!checked);
ui.inputGammaLabel->setEnabled(!checked);
ui.outputGammaSpinBox->setEnabled(!checked);
ui.outputGammaLabel->setEnabled(!checked);
}
bool ConfigDialog::open(QString fileName)

@ -48,6 +48,7 @@ protected slots:
void uniformWeightToggled(bool checked);
void luminanceWeightToggled(bool checked);
void normalMapModeChanged(bool checked);
bool open(QString fileName);

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save