void AbstractDImageHistoryTest::applyFilters1() { ImageIface iface; BCGFilter filter1(iface.original(), this); filter1.startFilterDirectly(); iface.setOriginal(i18n("Brightness / Contrast / Gamma"), filter1.filterAction(), filter1.getTargetImage()); CurvesFilter filter2(iface.original(), this); filter2.startFilterDirectly(); iface.setOriginal("Curves", filter2.filterAction(), filter2.getTargetImage()); }
void InsertTextTool::finalRendering() { qApp->setOverrideCursor( Qt::WaitCursor ); ImageIface iface; DImg dest = d->previewWidget->makeInsertText(); FilterAction action(QLatin1String("digikam:insertTextTool"), 2); action.setDisplayableName(i18n("Insert Text Tool")); action.addParameter(QLatin1String("text"), d->textEdit->toPlainText()); action.addParameter(QLatin1String("textRotationIndex"), d->textRotation->currentIndex()); action.addParameter(QLatin1String("textFont"), d->textFont.toString()); action.addParameter(QLatin1String("colorR"), d->fontColorButton->color().red()); action.addParameter(QLatin1String("colorG"), d->fontColorButton->color().green()); action.addParameter(QLatin1String("colorB"), d->fontColorButton->color().blue()); action.addParameter(QLatin1String("colorA"), d->fontColorButton->color().alpha()); action.addParameter(QLatin1String("textOpacity"), d->textOpacity->value()); action.addParameter(QLatin1String("borderText"), d->borderText->isChecked()); action.addParameter(QLatin1String("transparentText"), d->transparentText->isChecked()); iface.setOriginal(i18n("Insert Text"), action, dest); qApp->restoreOverrideCursor(); }
void AbstractDImageHistoryTest::applyFilters4() { ImageIface iface; BlurFilter filter(iface.original(), this); filter.startFilterDirectly(); iface.setOriginal("", filter.filterAction(), filter.getTargetImage()); }
void LensAutoFixTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Lens Auto-Correction"), filter()->filterAction(), filter()->getTargetImage()); MetaEngineData data = iface.originalMetadata(); // Note: there are certain situations in the editor where these metadata changes may be undone. // Ignore for now, as they are not critical. LensFunFilter* const fltr = dynamic_cast<LensFunFilter*>(filter()); if (fltr) fltr->registerSettingsToXmp(data); iface.setOriginalMetadata(data); }
void BlurTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Gaussian Blur"), filter()->filterAction(), filter()->getTargetImage()); }
void ShearTool::setFinalImage() { ImageIface iface; DImg targetImage = filter()->getTargetImage(); iface.setOriginal(i18n("Shear Tool"), filter()->filterAction(), targetImage); }
void RestorationTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Restoration"), filter()->filterAction(), filter()->getTargetImage()); }
void FilmGrainTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Film Grain"), filter()->filterAction(), filter()->getTargetImage()); }
void WhiteBalanceTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("White Balance"), filter()->filterAction(), filter()->getTargetImage()); }
void BCGTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Brightness / Contrast / Gamma"), filter()->filterAction(), filter()->getTargetImage()); }
void BlurFXTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Blur Effects"), filter()->filterAction(), filter()->getTargetImage()); }
void CharcoalTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Charcoal"), filter()->filterAction(), filter()->getTargetImage()); }
void EmbossTool::setFinalImage() { ImageIface iface; iface.setOriginal(i18n("Emboss"), filter()->filterAction(), filter()->getTargetImage()); }
void ContentAwareResizeTool::setFinalImage() { ImageIface iface; DImg targetImage = filter()->getTargetImage(); iface.setOriginal(i18n("Liquid Rescale"), filter()->filterAction(), targetImage); }