1
/* ============================================================
2
* Authors: Gilles Caulier <caulier dot gilles at free.fr>
4
* Description : Auto-Color correction tool.
6
* Copyright 2005 by Gilles Caulier
8
* This program is free software; you can redistribute it
9
* and/or modify it under the terms of the GNU General
10
* Public License as published by the Free Software Foundation;
11
* either version 2, or (at your option)
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* ============================================================ */
21
#ifndef IMAGEEFFECT_AUTOCORRECTION_H
22
#define IMAGEEFFECT_AUTOCORRECTION_H
31
#include <kdialogbase.h>
41
class ImageEffect_AutoCorrection : public KDialogBase
47
ImageEffect_AutoCorrection(QWidget *parent);
48
~ImageEffect_AutoCorrection();
52
enum AutoCorrectionType
54
AutoLevelsCorrection=0,
57
StretchContrastCorrection
62
void closeEvent(QCloseEvent *e);
70
Digikam::ImageWidget *m_previewWidget;
72
void autoCorrection(uint *data, int w, int h, int type);
73
QPixmap previewEffectPic(QString name);
81
#endif /* IMAGEEFFECT_AUTOCORRECTION_H */