digikam
adjustlevelstool.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ADJUSTLEVELSTOOL_H
00025 #define ADJUSTLEVELSTOOL_H
00026
00027
00028
00029 #include "editortool.h"
00030
00031 namespace Digikam
00032 {
00033 class DColor;
00034 }
00035
00036 namespace DigikamAdjustLevelsImagesPlugin
00037 {
00038
00039 class AdjustLevelsToolPriv;
00040
00041 class AdjustLevelsTool : public Digikam::EditorTool
00042 {
00043 Q_OBJECT
00044
00045 public:
00046
00047 AdjustLevelsTool(QObject *parent);
00048 ~AdjustLevelsTool();
00049
00050 private:
00051
00052 void readSettings();
00053 void writeSettings();
00054 void finalRendering();
00055 void adjustSliders(int minIn, double gamIn, int maxIn, int minOut, int maxOut);
00056 void adjustSlidersAndSpinboxes(int minIn, double gamIn, int maxIn, int minOut, int maxOut);
00057 bool eventFilter(QObject*, QEvent*);
00058
00059 private Q_SLOTS:
00060
00061 void slotSaveAsSettings();
00062 void slotLoadSettings();
00063 void slotResetSettings();
00064 void slotEffect();
00065 void slotResetCurrentChannel();
00066 void slotAutoLevels();
00067 void slotChannelChanged();
00068 void slotScaleChanged();
00069 void slotAdjustSliders();
00070 void slotGammaInputchanged(double val);
00071 void slotAdjustMinInputSpinBox(double val);
00072 void slotAdjustMaxInputSpinBox(double val);
00073 void slotAdjustMinOutputSpinBox(double val);
00074 void slotAdjustMaxOutputSpinBox(double val);
00075 void slotSpotColorChanged(const Digikam::DColor& color);
00076 void slotColorSelectedFromTarget(const Digikam::DColor& color);
00077 void slotPickerColorButtonActived();
00078 void slotShowInputHistogramGuide(double v);
00079 void slotShowOutputHistogramGuide(double v);
00080
00081 private:
00082
00083 enum ColorPicker
00084 {
00085 BlackTonal=0,
00086 GrayTonal,
00087 WhiteTonal
00088 };
00089
00090 private:
00091
00092 AdjustLevelsToolPriv* const d;
00093 };
00094
00095 }
00096
00097 #endif