"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "gmic-qt/src/MainWindow.cpp" between
gmic_2.8.1.tar.gz and gmic_2.8.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

MainWindow.cpp  (gmic_2.8.1):MainWindow.cpp  (gmic_2.8.2)
skipping to change at line 805 skipping to change at line 805
void MainWindow::onUpdateFiltersClicked() void MainWindow::onUpdateFiltersClicked()
{ {
ui->tbUpdateFilters->setEnabled(false); ui->tbUpdateFilters->setEnabled(false);
updateFiltersFromSources(0, ui->cbInternetUpdate->isChecked()); updateFiltersFromSources(0, ui->cbInternetUpdate->isChecked());
} }
void MainWindow::saveCurrentParameters() void MainWindow::saveCurrentParameters()
{ {
QString hash = ui->filterParams->filterHash(); QString hash = ui->filterParams->filterHash();
if (!hash.isEmpty() && (hash == ui->filterParams->filterHash())) { if (!hash.isEmpty()) {
ParametersCache::setValues(hash, ui->filterParams->valueStringList()); ParametersCache::setValues(hash, ui->filterParams->valueStringList());
ParametersCache::setVisibilityStates(hash, ui->filterParams->visibilityState s()); ParametersCache::setVisibilityStates(hash, ui->filterParams->visibilityState s());
ParametersCache::setInputOutputState(hash, ui->inOutSelector->state()); ParametersCache::setInputOutputState(hash, ui->inOutSelector->state(), _filt ersPresenter->currentFilter().defaultInputMode);
} }
} }
void MainWindow::saveSettings() void MainWindow::saveSettings()
{ {
QSettings settings; QSettings settings;
_filtersPresenter->saveSettings(settings); _filtersPresenter->saveSettings(settings);
// Cleanup obsolete keys // Cleanup obsolete keys
skipping to change at line 1024 skipping to change at line 1024
} }
if (!ui->filterParams->build(filter.name, filter.hash, filter.parameters, sa vedValues, savedVisibilityStates)) { if (!ui->filterParams->build(filter.name, filter.hash, filter.parameters, sa vedValues, savedVisibilityStates)) {
_filtersPresenter->setInvalidFilter(); _filtersPresenter->setInvalidFilter();
ui->previewWidget->setKeypoints(KeypointList()); ui->previewWidget->setKeypoints(KeypointList());
} else { } else {
ui->previewWidget->setKeypoints(ui->filterParams->keypoints()); ui->previewWidget->setKeypoints(ui->filterParams->keypoints());
} }
ui->filterName->setText(QString("<b>%1</b>").arg(filter.name)); ui->filterName->setText(QString("<b>%1</b>").arg(filter.name));
ui->inOutSelector->enable(); ui->inOutSelector->enable();
ui->inOutSelector->show(); ui->inOutSelector->show();
ui->inOutSelector->setState(ParametersCache::getInputOutputState(filter.hash
), false); GmicQt::InputOutputState inOutState = ParametersCache::getInputOutputState(f
ilter.hash);
if (inOutState.inputMode == GmicQt::UnspecifiedInputMode) {
if ((filter.defaultInputMode != GmicQt::UnspecifiedInputMode)) {
inOutState.inputMode = filter.defaultInputMode;
} else {
inOutState.inputMode = GmicQt::DefaultInputMode;
}
}
ui->inOutSelector->setState(inOutState, false);
ui->previewWidget->updateFullImageSizeIfDifferent(LayersExtentProxy::getExte nt(ui->inOutSelector->inputMode())); ui->previewWidget->updateFullImageSizeIfDifferent(LayersExtentProxy::getExte nt(ui->inOutSelector->inputMode()));
ui->filterName->setVisible(true); ui->filterName->setVisible(true);
ui->tbAddFave->setEnabled(true); ui->tbAddFave->setEnabled(true);
ui->previewWidget->setPreviewFactor(filter.previewFactor, resetZoom); ui->previewWidget->setPreviewFactor(filter.previewFactor, resetZoom);
setZoomConstraint(); setZoomConstraint();
_okButtonShouldApply = true; _okButtonShouldApply = true;
ui->tbResetParameters->setVisible(true); ui->tbResetParameters->setVisible(true);
ui->tbRemoveFave->setEnabled(filter.isAFave); ui->tbRemoveFave->setEnabled(filter.isAFave);
ui->tbRenameFave->setEnabled(filter.isAFave); ui->tbRenameFave->setEnabled(filter.isAFave);
} }
 End of changes. 3 change blocks. 
4 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)