You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
3.3 KiB
115 lines
3.3 KiB
/* ============================================================
|
|
*
|
|
* This file is a part of kipi-plugins project
|
|
* http://www.kipi-plugins.org
|
|
*
|
|
* Date : 2006-09-13
|
|
* Description : dcraw settings widgets
|
|
*
|
|
* Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
|
|
* Copyright (C) 2006-2008 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
|
|
* Copyright (C) 2007-2008 by Guillaume Castagnino <casta at xwing dot info>
|
|
*
|
|
* This program is free software; you can redistribute it
|
|
* and/or modify it under the terms of the GNU General
|
|
* Public License as published by the Free Software Foundation;
|
|
* either version 2, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* ============================================================ */
|
|
|
|
#ifndef DCRAW_SETTINGS_WIDGET_H
|
|
#define DCRAW_SETTINGS_WIDGET_H
|
|
|
|
// KDE includes.
|
|
|
|
#include <ktabwidget.h>
|
|
|
|
// Local Includes.
|
|
|
|
#include "libkdcraw_export.h"
|
|
#include "rawdecodingsettings.h"
|
|
|
|
namespace KDcrawIface
|
|
{
|
|
|
|
class DcrawSettingsWidgetPriv;
|
|
|
|
class LIBKDCRAW_EXPORT DcrawSettingsWidget : public KTabWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
DcrawSettingsWidget(QWidget *parent,
|
|
bool sixteenBitsOption=false,
|
|
bool outputColorSpaceOption=true,
|
|
bool showAdvancedOptions=false);
|
|
virtual ~DcrawSettingsWidget();
|
|
|
|
bool sixteenBits();
|
|
int customWhiteBalance();
|
|
double customWhiteBalanceGreen();
|
|
bool useFourColor();
|
|
bool useDontStretchPixels();
|
|
bool useNoiseReduction();
|
|
bool useCACorrection();
|
|
bool useBlackPoint();
|
|
int unclipColor();
|
|
double brightness();
|
|
int blackPoint();
|
|
int NRThreshold();
|
|
double caRedMultiplier();
|
|
double caBlueMultiplier();
|
|
|
|
RawDecodingSettings::WhiteBalance whiteBalance();
|
|
RawDecodingSettings::DecodingQuality quality();
|
|
RawDecodingSettings::OutputColorSpace outputColorSpace();
|
|
|
|
void setSixteenBits(bool b);
|
|
void setCameraWB(bool b);
|
|
void setWhiteBalance(RawDecodingSettings::WhiteBalance v);
|
|
void setCustomWhiteBalance(int v);
|
|
void setCustomWhiteBalanceGreen(double v);
|
|
void setFourColor(bool b);
|
|
void setDontStretchPixels(bool b);
|
|
void setNoiseReduction(bool b);
|
|
void setUseCACorrection(bool b);
|
|
void setUseBlackPoint(bool b);
|
|
void setUnclipColor(int v);
|
|
void setBrightness(double b);
|
|
void setBlackPoint(int b);
|
|
void setNRThreshold(int b);
|
|
void setcaRedMultiplier(double b);
|
|
void setcaBlueMultiplier(double b);
|
|
void setQuality(RawDecodingSettings::DecodingQuality q);
|
|
void setOutputColorSpace(RawDecodingSettings::OutputColorSpace c);
|
|
|
|
void setDefaultSettings();
|
|
|
|
signals:
|
|
|
|
void signalSixteenBitsImageToggled(bool);
|
|
|
|
private slots:
|
|
|
|
void slotWhiteBalanceToggled(int);
|
|
void slotsixteenBitsImageToggled(bool);
|
|
void slotUnclipColorActivated(int);
|
|
void slotNoiseReductionToggled(bool);
|
|
void slotCACorrectionToggled(bool);
|
|
void processDcrawURL(const QString&);
|
|
|
|
private:
|
|
|
|
DcrawSettingsWidgetPriv* d;
|
|
};
|
|
|
|
} // NameSpace KDcrawIface
|
|
|
|
#endif /* DCRAW_SETTINGS_WIDGET_H */
|