• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

digikam

adjustlevelstool.h

Go to the documentation of this file.
00001 /* ============================================================
00002  *
00003  * This file is a part of digiKam project
00004  * http://www.digikam.org
00005  *
00006  * Date        : 2004-07-20
00007  * Description : image histogram adjust levels.
00008  *
00009  * Copyright (C) 2004-2009 by Gilles Caulier <caulier dot gilles at gmail dot com>
00010  *
00011  * This program is free software; you can redistribute it
00012  * and/or modify it under the terms of the GNU General
00013  * Public License as published by the Free Software Foundation;
00014  * either version 2, or (at your option)
00015  * any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * ============================================================ */
00023 
00024 #ifndef ADJUSTLEVELSTOOL_H
00025 #define ADJUSTLEVELSTOOL_H
00026 
00027 // Local includes
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 }  // namespace DigikamAdjustLevelsImagesPlugin
00096 
00097 #endif /* ADJUSTLEVELSTOOL_H */

digikam

Skip menu "digikam"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

API Reference

Skip menu "API Reference"
  • digikam
Generated for API Reference by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal