~ubuntu-branches/ubuntu/saucy/digikam/saucy

« back to all changes in this revision

Viewing changes to imageplugins/color/whitebalancetool.h

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2010-04-09 21:30:01 UTC
  • mfrom: (1.2.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100409213001-4bfyibrd359rn7o3
Tags: 2:1.2.0-0ubuntu1
* New upstream release (LP: #560576)
* Remove all patches, fixed upstream
  - Remove quilt build-depend

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 *
 
3
 * This file is a part of digiKam project
 
4
 * http://www.digikam.org
 
5
 *
 
6
 * Date        : 2005-03-11
 
7
 * Description : a digiKam image editor plugin to correct
 
8
 *               image white balance
 
9
 *
 
10
 * Copyright (C) 2008-2009 by Guillaume Castagnino <casta at xwing dot info>
 
11
 * Copyright (C) 2005-2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
12
 *
 
13
 * This program is free software; you can redistribute it
 
14
 * and/or modify it under the terms of the GNU General
 
15
 * Public License as published by the Free Software Foundation;
 
16
 * either version 2, or (at your option)
 
17
 * any later version.
 
18
 *
 
19
 * This program is distributed in the hope that it will be useful,
 
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
22
 * GNU General Public License for more details.
 
23
 *
 
24
 * ============================================================ */
 
25
 
 
26
#ifndef WHITEBALANCETOOL_H
 
27
#define WHITEBALANCETOOL_H
 
28
 
 
29
// Local includes
 
30
 
 
31
#include "editortool.h"
 
32
 
 
33
namespace Digikam
 
34
{
 
35
class DColor;
 
36
}
 
37
 
 
38
using namespace Digikam;
 
39
 
 
40
namespace DigikamColorImagePlugin
 
41
{
 
42
 
 
43
class WhiteBalanceToolPriv;
 
44
 
 
45
class WhiteBalanceTool : public EditorToolThreaded
 
46
{
 
47
    Q_OBJECT
 
48
 
 
49
public:
 
50
 
 
51
    WhiteBalanceTool(QObject* parent);
 
52
    ~WhiteBalanceTool();
 
53
 
 
54
private Q_SLOTS:
 
55
 
 
56
    void slotSaveAsSettings();
 
57
    void slotLoadSettings();
 
58
    void slotResetSettings();
 
59
    void slotPickerColorButtonActived();
 
60
    void slotColorSelectedFromOriginal(const Digikam::DColor&);
 
61
    void slotColorSelectedFromTarget(const Digikam::DColor&);
 
62
    void slotAutoAdjustExposure();
 
63
 
 
64
private:
 
65
 
 
66
    void readSettings();
 
67
    void writeSettings();
 
68
    void prepareEffect();
 
69
    void prepareFinal();
 
70
    void putPreviewData();
 
71
    void putFinalData();
 
72
    void renderingFinished();
 
73
 
 
74
private:
 
75
 
 
76
    WhiteBalanceToolPriv* const d;
 
77
};
 
78
 
 
79
}  // namespace DigikamColorImagePlugin
 
80
 
 
81
#endif /* WHITEBALANCETOOL_H */