blob: 3c69b643feb709b535f8090b60f41de701da2abb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
/* ============================================================
*
* 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 */
|