@ -22,14 +22,14 @@
*
* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
// Qt includes.
// T Qt includes.
# include < qcheckbox.h>
# include < qlabel.h>
# include < qlayout.h>
# include < qwhatsthis.h>
# include < qstring.h>
# include < qtooltip.h>
# include < t qcheckbox.h>
# include < t qlabel.h>
# include < t qlayout.h>
# include < t qwhatsthis.h>
# include < t qstring.h>
# include < t qtooltip.h>
// KDE includes.
@ -98,32 +98,32 @@ public:
inputColorSpaceComboBox = 0 ;
}
QWidget * demosaicingSettings ;
QWidget * whiteBalanceSettings ;
QWidget * correctionsSettings ;
QWidget * colormanSettings ;
QLabel * whiteBalanceLabel ;
QLabel * customWhiteBalanceLabel ;
QLabel * customWhiteBalanceGreenLabel ;
QLabel * brightnessLabel ;
QLabel * RAWQualityLabel ;
QLabel * NRThresholdLabel ;
QLabel * caRedMultLabel ;
QLabel * caBlueMultLabel ;
QLabel * unclipColorLabel ;
QLabel * reconstructLabel ;
QLabel * inputColorSpaceLabel ;
QLabel * outputColorSpaceLabel ;
QLabel * medianFilterPassesLabel ;
QCheckBox * blackPointCheckBox ;
QCheckBox * whitePointCheckBox ;
QCheckBox * sixteenBitsImage ;
QCheckBox * fourColorCheckBox ;
QCheckBox * dontStretchPixelsCheckBox ;
QCheckBox * enableNoiseReduction ;
QCheckBox * enableCACorrection ;
T QWidget * demosaicingSettings ;
T QWidget * whiteBalanceSettings ;
T QWidget * correctionsSettings ;
T QWidget * colormanSettings ;
T QLabel * whiteBalanceLabel ;
T QLabel * customWhiteBalanceLabel ;
T QLabel * customWhiteBalanceGreenLabel ;
T QLabel * brightnessLabel ;
T QLabel * RAWQualityLabel ;
T QLabel * NRThresholdLabel ;
T QLabel * caRedMultLabel ;
T QLabel * caBlueMultLabel ;
T QLabel * unclipColorLabel ;
T QLabel * reconstructLabel ;
T QLabel * inputColorSpaceLabel ;
T QLabel * outputColorSpaceLabel ;
T QLabel * medianFilterPassesLabel ;
T QCheckBox * blackPointCheckBox ;
T QCheckBox * whitePointCheckBox ;
T QCheckBox * sixteenBitsImage ;
T QCheckBox * fourColorCheckBox ;
T QCheckBox * dontStretchPixelsCheckBox ;
T QCheckBox * enableNoiseReduction ;
T QCheckBox * enableCACorrection ;
KURLRequester * inIccUrlEdit ;
KURLRequester * outIccUrlEdit ;
@ -147,16 +147,16 @@ public:
RDoubleNumInput * brightnessSpinBox ;
} ;
DcrawSettingsWidget : : DcrawSettingsWidget ( QWidget * parent, int advSettings )
: QToolBox( parent)
DcrawSettingsWidget : : DcrawSettingsWidget ( T QWidget * tq parent, int advSettings )
: T QToolBox( tq parent)
{
setup ( advSettings ) ;
}
DcrawSettingsWidget : : DcrawSettingsWidget ( QWidget * parent, bool sixteenBitsOption ,
DcrawSettingsWidget : : DcrawSettingsWidget ( T QWidget * tq parent, bool sixteenBitsOption ,
bool outputColorSpaceOption ,
bool postProcessingOptions )
: QToolBox( parent)
: T QToolBox( tq parent)
{
int advSettings = 0 ;
@ -175,13 +175,13 @@ void DcrawSettingsWidget::setup(int advSettings)
// ---------------------------------------------------------------
// DEMOSAICING Settings panel
d - > demosaicingSettings = new QWidget( this ) ;
QGridLayout* demosaicingLayout = new QGridLayout( d - > demosaicingSettings , 5 , 2 ) ;
d - > demosaicingSettings = new T QWidget( this ) ;
T QGridLayout* demosaicingLayout = new T QGridLayout( d - > demosaicingSettings , 5 , 2 ) ;
int line = 0 ;
d - > sixteenBitsImage = new QCheckBox( i18n ( " 16 bits color depth " ) , d - > demosaicingSettings ) ;
QWhatsThis: : add ( d - > sixteenBitsImage , i18n ( " <p>If enabled, all RAW files will be decoded in 16-bit "
d - > sixteenBitsImage = new T QCheckBox( i18n ( " 16 bits color depth " ) , d - > demosaicingSettings ) ;
T QWhatsThis: : add ( d - > sixteenBitsImage , i18n ( " <p>If enabled, all RAW files will be decoded in 16-bit "
" color depth using a linear gamma curve. To prevent dark "
" picture rendering in the editor, it is recommended to use "
" Color Management in this mode.<p> "
@ -200,8 +200,8 @@ void DcrawSettingsWidget::setup(int advSettings)
d - > sixteenBitsImage - > hide ( ) ;
}
d - > fourColorCheckBox = new QCheckBox( i18n ( " Interpolate RGB as four colors " ) , d - > demosaicingSettings ) ;
QWhatsThis: : add ( d - > fourColorCheckBox , i18n ( " <p><b>Interpolate RGB as four colors</b><p> "
d - > fourColorCheckBox = new T QCheckBox( i18n ( " Interpolate RGB as four colors " ) , d - > demosaicingSettings ) ;
T QWhatsThis: : add ( d - > fourColorCheckBox , i18n ( " <p><b>Interpolate RGB as four colors</b><p> "
" The default is to assume that all green "
" pixels are the same. If even-row green "
" pixels are more sensitive to ultraviolet light "
@ -215,14 +215,14 @@ void DcrawSettingsWidget::setup(int advSettings)
line + + ;
KURLLabel * dcrawVersion = new KURLLabel ( " http://www.libraw.org " , i18n ( " libraw %1 " )
. arg( KDcraw : : librawVersion ( ) ) , d - > demosaicingSettings ) ;
dcrawVersion - > setAlignment( Qt: : AlignRight ) ;
QToolTip: : add ( dcrawVersion , i18n ( " Visit dcraw project website " ) ) ;
. tq arg( KDcraw : : librawVersion ( ) ) , d - > demosaicingSettings ) ;
dcrawVersion - > tq setAlignment( T Qt: : AlignRight ) ;
T QToolTip: : add ( dcrawVersion , i18n ( " Visit dcraw project website " ) ) ;
demosaicingLayout - > addMultiCellWidget ( dcrawVersion , 0 , 0 , 2 , 2 ) ;
d - > dontStretchPixelsCheckBox = new QCheckBox( i18n ( " Do not stretch or rotate pixels " ) , d - > demosaicingSettings ) ;
QWhatsThis: : add ( d - > dontStretchPixelsCheckBox , i18n ( " <p><b>Do not stretch or rotate pixels</b><p> "
d - > dontStretchPixelsCheckBox = new T QCheckBox( i18n ( " Do not stretch or rotate pixels " ) , d - > demosaicingSettings ) ;
T QWhatsThis: : add ( d - > dontStretchPixelsCheckBox , i18n ( " <p><b>Do not stretch or rotate pixels</b><p> "
" For Fuji Super CCD cameras, show the image tilted 45 "
" degrees. For cameras with non-square pixels, do not "
" stretch the image to its correct aspect ratio. In any "
@ -232,14 +232,14 @@ void DcrawSettingsWidget::setup(int advSettings)
demosaicingLayout - > addMultiCellWidget ( d - > dontStretchPixelsCheckBox , line , line , 0 , 2 ) ;
line + + ;
d - > RAWQualityLabel = new QLabel( i18n ( " Quality: " ) , d - > demosaicingSettings ) ;
d - > RAWQualityLabel = new T QLabel( i18n ( " Quality: " ) , d - > demosaicingSettings ) ;
d - > RAWQualityComboBox = new RComboBox ( d - > demosaicingSettings ) ;
d - > RAWQualityComboBox - > insertItem ( i18n ( " Bilinear " ) , RawDecodingSettings : : BILINEAR ) ;
d - > RAWQualityComboBox - > insertItem ( i18n ( " VNG " ) , RawDecodingSettings : : VNG ) ;
d - > RAWQualityComboBox - > insertItem ( i18n ( " PPG " ) , RawDecodingSettings : : PPG ) ;
d - > RAWQualityComboBox - > insertItem ( i18n ( " AHD " ) , RawDecodingSettings : : AHD ) ;
d - > RAWQualityComboBox - > setDefaultItem ( RawDecodingSettings : : BILINEAR ) ;
QWhatsThis: : add ( d - > RAWQualityComboBox , i18n ( " <p><b>Quality (interpolation)</b><p> "
T QWhatsThis: : add ( d - > RAWQualityComboBox , i18n ( " <p><b>Quality (interpolation)</b><p> "
" Select here the demosaicing RAW images decoding "
" interpolation method. A demosaicing algorithm is a digital image process used to "
" interpolate a complete image from the partial raw data received from the color-filtered "
@ -269,8 +269,8 @@ void DcrawSettingsWidget::setup(int advSettings)
d - > medianFilterPassesSpinBox = new RIntNumInput ( d - > demosaicingSettings ) ;
d - > medianFilterPassesSpinBox - > setRange ( 0 , 10 , 1 ) ;
d - > medianFilterPassesSpinBox - > setDefaultValue ( 0 ) ;
d - > medianFilterPassesLabel = new QLabel( i18n ( " Filter: " ) , d - > demosaicingSettings ) ;
QWhatsThis: : add ( d - > medianFilterPassesSpinBox , i18n ( " <p><b>Median Filter</b><p> "
d - > medianFilterPassesLabel = new T QLabel( i18n ( " Filter: " ) , d - > demosaicingSettings ) ;
T QWhatsThis: : add ( d - > medianFilterPassesSpinBox , i18n ( " <p><b>Median Filter</b><p> "
" Set here the passes used by median filter applied after "
" interpolation to Red-Green and Blue-Green channels. " ) ) ;
demosaicingLayout - > addMultiCellWidget ( d - > medianFilterPassesLabel , line , line , 0 , 0 ) ;
@ -284,17 +284,17 @@ void DcrawSettingsWidget::setup(int advSettings)
// ---------------------------------------------------------------
// WHITE BALANCE Settings Panel
d - > whiteBalanceSettings = new QWidget( this ) ;
QGridLayout* whiteBalanceLayout = new QGridLayout( d - > whiteBalanceSettings , 7 , 2 ) ;
d - > whiteBalanceSettings = new T QWidget( this ) ;
T QGridLayout* whiteBalanceLayout = new T QGridLayout( d - > whiteBalanceSettings , 7 , 2 ) ;
d - > whiteBalanceLabel = new QLabel( i18n ( " Method: " ) , d - > whiteBalanceSettings ) ;
d - > whiteBalanceLabel = new T QLabel( i18n ( " Method: " ) , d - > whiteBalanceSettings ) ;
d - > whiteBalanceComboBox = new RComboBox ( d - > whiteBalanceSettings ) ;
d - > whiteBalanceComboBox - > insertItem ( i18n ( " Default D65 " ) , RawDecodingSettings : : NONE ) ;
d - > whiteBalanceComboBox - > insertItem ( i18n ( " Camera " ) , RawDecodingSettings : : CAMERA ) ;
d - > whiteBalanceComboBox - > insertItem ( i18n ( " Automatic " ) , RawDecodingSettings : : AUTO ) ;
d - > whiteBalanceComboBox - > insertItem ( i18n ( " Manual " ) , RawDecodingSettings : : CUSTOM ) ;
d - > whiteBalanceComboBox - > setDefaultItem ( RawDecodingSettings : : CAMERA ) ;
QWhatsThis: : add ( d - > whiteBalanceComboBox , i18n ( " <p><b>White Balance Method</b><p> "
T QWhatsThis: : add ( d - > whiteBalanceComboBox , i18n ( " <p><b>White Balance Method</b><p> "
" Configure the raw white balance :<p> "
" <b>Default D65</b>: Use a standard daylight D65 white balance (dcraw defaults)<p> "
" <b>Camera</b>: Use the white balance specified by the camera. "
@ -306,26 +306,26 @@ void DcrawSettingsWidget::setup(int advSettings)
d - > customWhiteBalanceSpinBox = new RIntNumInput ( d - > whiteBalanceSettings ) ;
d - > customWhiteBalanceSpinBox - > setRange ( 2000 , 12000 , 10 ) ;
d - > customWhiteBalanceSpinBox - > setDefaultValue ( 6500 ) ;
d - > customWhiteBalanceLabel = new QLabel( i18n ( " T(K): " ) , d - > whiteBalanceSettings ) ;
QWhatsThis: : add ( d - > customWhiteBalanceSpinBox , i18n ( " <p><b>Temperature</b><p> "
d - > customWhiteBalanceLabel = new T QLabel( i18n ( " T(K): " ) , d - > whiteBalanceSettings ) ;
T QWhatsThis: : add ( d - > customWhiteBalanceSpinBox , i18n ( " <p><b>Temperature</b><p> "
" Set here the color temperature in Kelvin. " ) ) ;
d - > customWhiteBalanceGreenSpinBox = new RDoubleNumInput ( d - > whiteBalanceSettings ) ;
d - > customWhiteBalanceGreenSpinBox - > setPrecision ( 2 ) ;
d - > customWhiteBalanceGreenSpinBox - > setRange ( 0.2 , 2.5 , 0.01 ) ;
d - > customWhiteBalanceGreenSpinBox - > setDefaultValue ( 1.0 ) ;
d - > customWhiteBalanceGreenLabel = new QLabel( i18n ( " Green: " ) , d - > whiteBalanceSettings ) ;
QWhatsThis: : add ( d - > customWhiteBalanceGreenSpinBox , i18n ( " <p>Set here the green component to set magenta color "
d - > customWhiteBalanceGreenLabel = new T QLabel( i18n ( " Green: " ) , d - > whiteBalanceSettings ) ;
T QWhatsThis: : add ( d - > customWhiteBalanceGreenSpinBox , i18n ( " <p>Set here the green component to set magenta color "
" cast removal level. " ) ) ;
d - > unclipColorLabel = new QLabel( i18n ( " Highlights: " ) , d - > whiteBalanceSettings ) ;
d - > unclipColorLabel = new T QLabel( i18n ( " Highlights: " ) , d - > whiteBalanceSettings ) ;
d - > unclipColorComboBox = new RComboBox ( d - > whiteBalanceSettings ) ;
d - > unclipColorComboBox - > insertItem ( i18n ( " Solid white " ) , 0 ) ;
d - > unclipColorComboBox - > insertItem ( i18n ( " Unclip " ) , 1 ) ;
d - > unclipColorComboBox - > insertItem ( i18n ( " Blend " ) , 2 ) ;
d - > unclipColorComboBox - > insertItem ( i18n ( " Rebuild " ) , 3 ) ;
d - > unclipColorComboBox - > setDefaultItem ( 0 ) ;
QWhatsThis: : add ( d - > unclipColorComboBox , i18n ( " <p><b>Highlights</b><p> "
T QWhatsThis: : add ( d - > unclipColorComboBox , i18n ( " <p><b>Highlights</b><p> "
" Select here the highlight clipping method:<p> "
" <b>Solid white</b>: clip all highlights to solid white<p> "
" <b>Unclip</b>: leave highlights unclipped in various "
@ -334,20 +334,20 @@ void DcrawSettingsWidget::setup(int advSettings)
" <b>Rebuild</b>: reconstruct highlights using a "
" level value " ) ) ;
d - > reconstructLabel = new QLabel( i18n ( " Level: " ) , d - > whiteBalanceSettings ) ;
d - > reconstructLabel = new T QLabel( i18n ( " Level: " ) , d - > whiteBalanceSettings ) ;
d - > reconstructSpinBox = new RIntNumInput ( d - > whiteBalanceSettings ) ;
d - > reconstructSpinBox - > setRange ( 0 , 6 , 1 ) ;
d - > reconstructSpinBox - > setDefaultValue ( 0 ) ;
QWhatsThis: : add ( d - > reconstructSpinBox , i18n ( " <p><b>Level</b><p> "
T QWhatsThis: : add ( d - > reconstructSpinBox , i18n ( " <p><b>Level</b><p> "
" Specify the reconstruct highlight level. "
" Low values favor whites and high values favor colors. " ) ) ;
d - > brightnessLabel = new QLabel( i18n ( " Brightness: " ) , d - > whiteBalanceSettings ) ;
d - > brightnessLabel = new T QLabel( i18n ( " Brightness: " ) , d - > whiteBalanceSettings ) ;
d - > brightnessSpinBox = new RDoubleNumInput ( d - > whiteBalanceSettings ) ;
d - > brightnessSpinBox - > setPrecision ( 2 ) ;
d - > brightnessSpinBox - > setRange ( 0.0 , 10.0 , 0.01 ) ;
d - > brightnessSpinBox - > setDefaultValue ( 1.0 ) ;
QWhatsThis: : add ( d - > brightnessSpinBox , i18n ( " <p><b>Brighness</b><p> "
T QWhatsThis: : add ( d - > brightnessSpinBox , i18n ( " <p><b>Brighness</b><p> "
" Specify the brightness level of output image. "
" The default value is 1.0 (works in 8-bit mode only).<p> " ) ) ;
@ -357,26 +357,26 @@ void DcrawSettingsWidget::setup(int advSettings)
d - > brightnessSpinBox - > hide ( ) ;
}
d - > blackPointCheckBox = new QCheckBox( i18n ( " Black: " ) , d - > whiteBalanceSettings ) ;
QWhatsThis: : add ( d - > blackPointCheckBox , i18n ( " <p><b>Black point</b><p> "
d - > blackPointCheckBox = new T QCheckBox( i18n ( " Black: " ) , d - > whiteBalanceSettings ) ;
T QWhatsThis: : add ( d - > blackPointCheckBox , i18n ( " <p><b>Black point</b><p> "
" Use a specific black point value to decode RAW pictures. "
" If you set this option to off, the Black Point value will be "
" automatically computed.<p> " ) ) ;
d - > blackPointSpinBox = new RIntNumInput ( d - > whiteBalanceSettings ) ;
d - > blackPointSpinBox - > setRange ( 0 , 1000 , 1 ) ;
d - > blackPointSpinBox - > setDefaultValue ( 0 ) ;
QWhatsThis: : add ( d - > blackPointSpinBox , i18n ( " <p><b>Black point value</b><p> "
T QWhatsThis: : add ( d - > blackPointSpinBox , i18n ( " <p><b>Black point value</b><p> "
" Specify specific black point value of the output image.<p> " ) ) ;
d - > whitePointCheckBox = new QCheckBox( i18n ( " White: " ) , d - > whiteBalanceSettings ) ;
QWhatsThis: : add ( d - > whitePointCheckBox , i18n ( " <p><b>White point</b><p> "
d - > whitePointCheckBox = new T QCheckBox( i18n ( " White: " ) , d - > whiteBalanceSettings ) ;
T QWhatsThis: : add ( d - > whitePointCheckBox , i18n ( " <p><b>White point</b><p> "
" Use a specific white point value to decode RAW pictures. "
" If you set this option to off, the White Point value will be "
" automatically computed.<p> " ) ) ;
d - > whitePointSpinBox = new RIntNumInput ( d - > whiteBalanceSettings ) ;
d - > whitePointSpinBox - > setRange ( 0 , 20000 , 1 ) ;
d - > whitePointSpinBox - > setDefaultValue ( 0 ) ;
QWhatsThis: : add ( d - > whitePointSpinBox , i18n ( " <p><b>White point value</b><p> "
T QWhatsThis: : add ( d - > whitePointSpinBox , i18n ( " <p><b>White point value</b><p> "
" Specify specific white point value of the output image.<p> " ) ) ;
if ( ! ( advSettings & BLACKWHITEPOINTS ) )
@ -411,39 +411,39 @@ void DcrawSettingsWidget::setup(int advSettings)
// ---------------------------------------------------------------
// CORRECTIONS Settings panel
d - > correctionsSettings = new QWidget( this ) ;
QGridLayout* correctionsLayout = new QGridLayout( d - > correctionsSettings , 5 , 2 ) ;
d - > correctionsSettings = new T QWidget( this ) ;
T QGridLayout* correctionsLayout = new T QGridLayout( d - > correctionsSettings , 5 , 2 ) ;
d - > enableNoiseReduction = new QCheckBox( i18n ( " Enable noise reduction " ) , d - > correctionsSettings ) ;
QWhatsThis: : add ( d - > enableNoiseReduction , i18n ( " <p><b>Enable Noise Reduction</b><p> "
d - > enableNoiseReduction = new T QCheckBox( i18n ( " Enable noise reduction " ) , d - > correctionsSettings ) ;
T QWhatsThis: : add ( d - > enableNoiseReduction , i18n ( " <p><b>Enable Noise Reduction</b><p> "
" Use wavelets to erase noise while preserving real detail.<p> " ) ) ;
d - > NRThresholdSpinBox = new RIntNumInput ( d - > correctionsSettings ) ;
d - > NRThresholdSpinBox - > setRange ( 10 , 1000 , 1 ) ;
d - > NRThresholdSpinBox - > setDefaultValue ( 100 ) ;
d - > NRThresholdLabel = new QLabel( i18n ( " Threshold: " ) , d - > correctionsSettings ) ;
QWhatsThis: : add ( d - > NRThresholdSpinBox , i18n ( " <p><b>Threshold</b><p> "
d - > NRThresholdLabel = new T QLabel( i18n ( " Threshold: " ) , d - > correctionsSettings ) ;
T QWhatsThis: : add ( d - > NRThresholdSpinBox , i18n ( " <p><b>Threshold</b><p> "
" Set here the noise reduction threshold value to use. " ) ) ;
d - > enableCACorrection = new QCheckBox( i18n ( " Enable Chromatic Aberration correction " ) , d - > correctionsSettings ) ;
QWhatsThis: : add ( d - > enableCACorrection , i18n ( " <p><b>Enable Chromatic Aberration correction</b><p> "
d - > enableCACorrection = new T QCheckBox( i18n ( " Enable Chromatic Aberration correction " ) , d - > correctionsSettings ) ;
T QWhatsThis: : add ( d - > enableCACorrection , i18n ( " <p><b>Enable Chromatic Aberration correction</b><p> "
" Enlarge the raw red and blue layers by the given factors, "
" typically 0.999 to 1.001, to correct chromatic aberration.<p> " ) ) ;
d - > caRedMultLabel = new QLabel( i18n ( " Red: " ) , d - > correctionsSettings ) ;
d - > caRedMultLabel = new T QLabel( i18n ( " Red: " ) , d - > correctionsSettings ) ;
d - > caRedMultSpinBox = new RDoubleNumInput ( d - > correctionsSettings ) ;
d - > caRedMultSpinBox - > setPrecision ( 5 ) ;
d - > caRedMultSpinBox - > setRange ( 0.00001 , 2.0 , 0.001 ) ;
d - > caRedMultSpinBox - > setDefaultValue ( 1.0 ) ;
QWhatsThis: : add ( d - > caRedMultSpinBox , i18n ( " <p><b>Red multiplier</b><p> "
T QWhatsThis: : add ( d - > caRedMultSpinBox , i18n ( " <p><b>Red multiplier</b><p> "
" Set here the magnification factor of the red layer " ) ) ;
d - > caBlueMultLabel = new QLabel( i18n ( " Blue: " ) , d - > correctionsSettings ) ;
d - > caBlueMultLabel = new T QLabel( i18n ( " Blue: " ) , d - > correctionsSettings ) ;
d - > caBlueMultSpinBox = new RDoubleNumInput ( d - > correctionsSettings ) ;
d - > caBlueMultSpinBox - > setPrecision ( 5 ) ;
d - > caBlueMultSpinBox - > setRange ( 0.00001 , 2.0 , 0.001 ) ;
d - > caBlueMultSpinBox - > setDefaultValue ( 1.0 ) ;
QWhatsThis: : add ( d - > caBlueMultSpinBox , i18n ( " <p><b>Blue multiplier</b><p> "
T QWhatsThis: : add ( d - > caBlueMultSpinBox , i18n ( " <p><b>Blue multiplier</b><p> "
" Set here the magnification factor of the blue layer " ) ) ;
correctionsLayout - > addMultiCellWidget ( d - > enableNoiseReduction , 0 , 0 , 0 , 2 ) ;
@ -463,16 +463,16 @@ void DcrawSettingsWidget::setup(int advSettings)
// ---------------------------------------------------------------
// COLOR MANAGEMENT Settings panel
d - > colormanSettings = new QWidget( this ) ;
QGridLayout* colormanLayout = new QGridLayout( d - > colormanSettings , 4 , 2 ) ;
d - > colormanSettings = new T QWidget( this ) ;
T QGridLayout* colormanLayout = new T QGridLayout( d - > colormanSettings , 4 , 2 ) ;
d - > inputColorSpaceLabel = new QLabel( i18n ( " Camera Profile: " ) , d - > colormanSettings ) ;
d - > inputColorSpaceLabel = new T QLabel( i18n ( " Camera Profile: " ) , d - > colormanSettings ) ;
d - > inputColorSpaceComboBox = new RComboBox ( d - > colormanSettings ) ;
d - > inputColorSpaceComboBox - > insertItem ( i18n ( " None " ) , RawDecodingSettings : : NOINPUTCS ) ;
d - > inputColorSpaceComboBox - > insertItem ( i18n ( " Embedded " ) , RawDecodingSettings : : EMBEDDED ) ;
d - > inputColorSpaceComboBox - > insertItem ( i18n ( " Custom " ) , RawDecodingSettings : : CUSTOMINPUTCS ) ;
d - > inputColorSpaceComboBox - > setDefaultItem ( RawDecodingSettings : : NOINPUTCS ) ;
QWhatsThis: : add ( d - > inputColorSpaceComboBox , i18n ( " <p><b>Camera Profile</b><p> "
T QWhatsThis: : add ( d - > inputColorSpaceComboBox , i18n ( " <p><b>Camera Profile</b><p> "
" Select here the input color space used to decode RAW data.<p> "
" <b>None</b>: no input color profile is used during RAW decoding.<p> "
" <b>Embedded</b>: use embedded color profile from RAW file if exist.<p> "
@ -482,7 +482,7 @@ void DcrawSettingsWidget::setup(int advSettings)
d - > inIccUrlEdit - > setMode ( KFile : : LocalOnly | KFile : : File | KFile : : ExistingOnly ) ;
d - > inIccUrlEdit - > setFilter ( " *.icc *.icm| " + i18n ( " ICC Files (*.icc; *.icm) " ) ) ;
d - > outputColorSpaceLabel = new QLabel( i18n ( " Workspace: " ) , d - > colormanSettings ) ;
d - > outputColorSpaceLabel = new T QLabel( i18n ( " Workspace: " ) , d - > colormanSettings ) ;
d - > outputColorSpaceComboBox = new RComboBox ( d - > colormanSettings ) ;
d - > outputColorSpaceComboBox - > insertItem ( i18n ( " Raw (linear) " ) , RawDecodingSettings : : RAWCOLOR ) ;
d - > outputColorSpaceComboBox - > insertItem ( i18n ( " sRGB " ) , RawDecodingSettings : : SRGB ) ;
@ -491,7 +491,7 @@ void DcrawSettingsWidget::setup(int advSettings)
d - > outputColorSpaceComboBox - > insertItem ( i18n ( " Pro-Photo " ) , RawDecodingSettings : : PROPHOTO ) ;
d - > outputColorSpaceComboBox - > insertItem ( i18n ( " Custom " ) , RawDecodingSettings : : CUSTOMOUTPUTCS ) ;
d - > outputColorSpaceComboBox - > setDefaultItem ( RawDecodingSettings : : SRGB ) ;
QWhatsThis: : add ( d - > outputColorSpaceComboBox , i18n ( " <p><b>Workspace</b><p> "
T QWhatsThis: : add ( d - > outputColorSpaceComboBox , i18n ( " <p><b>Workspace</b><p> "
" Select here the output color space used to decode RAW data.<p> "
" <b>Raw (linear)</b>: in this mode, no output color space is used "
" during RAW decoding.<p> "
@ -538,109 +538,109 @@ void DcrawSettingsWidget::setup(int advSettings)
// ---------------------------------------------------------------
connect ( d - > unclipColorComboBox , SIGNAL( activated ( int ) ) ,
this , SLOT( slotUnclipColorActivated ( int ) ) ) ;
connect ( d - > unclipColorComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SLOT( slotUnclipColorActivated ( int ) ) ) ;
connect ( d - > whiteBalanceComboBox , SIGNAL( activated ( int ) ) ,
this , SLOT( slotWhiteBalanceToggled ( int ) ) ) ;
connect ( d - > whiteBalanceComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SLOT( slotWhiteBalanceToggled ( int ) ) ) ;
connect ( d - > enableNoiseReduction , SIGNAL( toggled ( bool ) ) ,
this , SLOT( slotNoiseReductionToggled ( bool ) ) ) ;
connect ( d - > enableNoiseReduction , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SLOT( slotNoiseReductionToggled ( bool ) ) ) ;
connect ( d - > enableCACorrection , SIGNAL( toggled ( bool ) ) ,
this , SLOT( slotCACorrectionToggled ( bool ) ) ) ;
connect ( d - > enableCACorrection , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SLOT( slotCACorrectionToggled ( bool ) ) ) ;
connect ( d - > blackPointCheckBox , SIGNAL( toggled ( bool ) ) ,
d - > blackPointSpinBox , SLOT( setEnabled ( bool ) ) ) ;
connect ( d - > blackPointCheckBox , TQT_ SIGNAL( toggled ( bool ) ) ,
d - > blackPointSpinBox , TQT_ SLOT( setEnabled ( bool ) ) ) ;
connect ( d - > whitePointCheckBox , SIGNAL( toggled ( bool ) ) ,
d - > whitePointSpinBox , SLOT( setEnabled ( bool ) ) ) ;
connect ( d - > whitePointCheckBox , TQT_ SIGNAL( toggled ( bool ) ) ,
d - > whitePointSpinBox , TQT_ SLOT( setEnabled ( bool ) ) ) ;
connect ( d - > sixteenBitsImage , SIGNAL( toggled ( bool ) ) ,
this , SLOT( slotsixteenBitsImageToggled ( bool ) ) ) ;
connect ( d - > sixteenBitsImage , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SLOT( slotsixteenBitsImageToggled ( bool ) ) ) ;
connect ( dcrawVersion , SIGNAL( leftClickedURL ( const QString& ) ) ,
this , SLOT( processDcrawURL ( const QString& ) ) ) ;
connect ( dcrawVersion , TQT_ SIGNAL( leftClickedURL ( const T QString& ) ) ,
this , TQT_ SLOT( processDcrawURL ( const T QString& ) ) ) ;
connect ( d - > inputColorSpaceComboBox , SIGNAL( activated ( int ) ) ,
this , SLOT( slotInputColorSpaceChanged ( int ) ) ) ;
connect ( d - > inputColorSpaceComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SLOT( slotInputColorSpaceChanged ( int ) ) ) ;
connect ( d - > outputColorSpaceComboBox , SIGNAL( activated ( int ) ) ,
this , SLOT( slotOutputColorSpaceChanged ( int ) ) ) ;
connect ( d - > outputColorSpaceComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SLOT( slotOutputColorSpaceChanged ( int ) ) ) ;
// Wrapper to emit signal when something is changed in settings.
connect ( d - > inIccUrlEdit , SIGNAL( urlSelected ( const QString& ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > inIccUrlEdit , TQT_ SIGNAL( urlSelected ( const T QString& ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > outIccUrlEdit , SIGNAL( urlSelected ( const QString& ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > outIccUrlEdit , TQT_ SIGNAL( urlSelected ( const T QString& ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > whiteBalanceComboBox , SIGNAL( activated ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > whiteBalanceComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > RAWQualityComboBox , SIGNAL( activated ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > RAWQualityComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > unclipColorComboBox , SIGNAL( activated ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > unclipColorComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > inputColorSpaceComboBox , SIGNAL( activated ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > inputColorSpaceComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > outputColorSpaceComboBox , SIGNAL( activated ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > outputColorSpaceComboBox , TQT_ SIGNAL( activated ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > blackPointCheckBox , SIGNAL( toggled ( bool ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > blackPointCheckBox , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > whitePointCheckBox , SIGNAL( toggled ( bool ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > whitePointCheckBox , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > sixteenBitsImage , SIGNAL( toggled ( bool ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > sixteenBitsImage , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > fourColorCheckBox , SIGNAL( toggled ( bool ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > fourColorCheckBox , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > dontStretchPixelsCheckBox , SIGNAL( toggled ( bool ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > dontStretchPixelsCheckBox , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > enableNoiseReduction , SIGNAL( toggled ( bool ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > enableNoiseReduction , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > enableCACorrection , SIGNAL( toggled ( bool ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > enableCACorrection , TQT_ SIGNAL( toggled ( bool ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > customWhiteBalanceSpinBox , SIGNAL( valueChanged ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > customWhiteBalanceSpinBox , TQT_ SIGNAL( valueChanged ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > reconstructSpinBox , SIGNAL( valueChanged ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > reconstructSpinBox , TQT_ SIGNAL( valueChanged ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > blackPointSpinBox , SIGNAL( valueChanged ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > blackPointSpinBox , TQT_ SIGNAL( valueChanged ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > whitePointSpinBox , SIGNAL( valueChanged ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > whitePointSpinBox , TQT_ SIGNAL( valueChanged ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > NRThresholdSpinBox , SIGNAL( valueChanged ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > NRThresholdSpinBox , TQT_ SIGNAL( valueChanged ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > medianFilterPassesSpinBox , SIGNAL( valueChanged ( int ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > medianFilterPassesSpinBox , TQT_ SIGNAL( valueChanged ( int ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > customWhiteBalanceGreenSpinBox , SIGNAL( valueChanged ( double ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > customWhiteBalanceGreenSpinBox , TQT_ SIGNAL( valueChanged ( double ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > caRedMultSpinBox , SIGNAL( valueChanged ( double ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > caRedMultSpinBox , TQT_ SIGNAL( valueChanged ( double ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > caBlueMultSpinBox , SIGNAL( valueChanged ( double ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > caBlueMultSpinBox , TQT_ SIGNAL( valueChanged ( double ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > brightnessSpinBox , SIGNAL( valueChanged ( double ) ) ,
this , SIGNAL( signalSettingsChanged ( ) ) ) ;
connect ( d - > brightnessSpinBox , TQT_ SIGNAL( valueChanged ( double ) ) ,
this , TQT_ SIGNAL( signalSettingsChanged ( ) ) ) ;
}
DcrawSettingsWidget : : ~ DcrawSettingsWidget ( )
@ -658,7 +658,7 @@ void DcrawSettingsWidget::updateMinimumWidth()
setMinimumWidth ( width ) ;
}
void DcrawSettingsWidget : : processDcrawURL ( const QString& url )
void DcrawSettingsWidget : : processDcrawURL ( const T QString& url )
{
KApplication : : kApplication ( ) - > invokeBrowser ( url ) ;
}
@ -1120,24 +1120,24 @@ void DcrawSettingsWidget::setcaBlueMultiplier(double b)
// ---------------------------------------------------------------
QString DcrawSettingsWidget : : inputColorProfile ( )
T QString DcrawSettingsWidget : : inputColorProfile ( )
{
return d - > inIccUrlEdit - > url ( ) ;
}
void DcrawSettingsWidget : : setInputColorProfile ( const QString& path )
void DcrawSettingsWidget : : setInputColorProfile ( const T QString& path )
{
d - > inIccUrlEdit - > setURL ( path ) ;
}
// ---------------------------------------------------------------
QString DcrawSettingsWidget : : outputColorProfile ( )
T QString DcrawSettingsWidget : : outputColorProfile ( )
{
return d - > outIccUrlEdit - > url ( ) ;
}
void DcrawSettingsWidget : : setOutputColorProfile ( const QString& path )
void DcrawSettingsWidget : : setOutputColorProfile ( const T QString& path )
{
d - > outIccUrlEdit - > setURL ( path ) ;
}