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

« back to all changes in this revision

Viewing changes to libs/dimg/filters/lc/localcontrastsettings.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        : 2010-03-09
 
7
 * Description : Local Contrast settings view.
 
8
 *               LDR ToneMapper <http://zynaddsubfx.sourceforge.net/other/tonemapping>
 
9
 *
 
10
 * Copyright (C) 2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
11
 *
 
12
 * This program is free software; you can redistribute it
 
13
 * and/or modify it under the terms of the GNU General
 
14
 * Public License as published by the Free Software Foundation;
 
15
 * either version 2, or (at your option)
 
16
 * any later version.
 
17
 *
 
18
 * This program is distributed in the hope that it will be useful,
 
19
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
21
 * GNU General Public License for more details.
 
22
 *
 
23
 * ============================================================ */
 
24
 
 
25
#ifndef LOCALCONTRASTSETTINGS_H
 
26
#define LOCALCONTRASTSETTINGS_H
 
27
 
 
28
// Local includes
 
29
 
 
30
#include <QWidget>
 
31
 
 
32
// KDE includes
 
33
 
 
34
#include <kconfig.h>
 
35
 
 
36
// Local includes
 
37
 
 
38
#include "digikam_export.h"
 
39
#include "localcontrastcontainer.h"
 
40
 
 
41
namespace Digikam
 
42
{
 
43
 
 
44
class LocalContrastSettingsPriv;
 
45
 
 
46
class DIGIKAM_EXPORT LocalContrastSettings : public QWidget
 
47
{
 
48
    Q_OBJECT
 
49
 
 
50
public:
 
51
 
 
52
    LocalContrastSettings(QWidget* parent);
 
53
    ~LocalContrastSettings();
 
54
 
 
55
    LocalContrastContainer defaultSettings() const;
 
56
    void resetToDefault();
 
57
 
 
58
    LocalContrastContainer settings() const;
 
59
    void setSettings(const LocalContrastContainer& settings);
 
60
 
 
61
    void readSettings(KConfigGroup& group);
 
62
    void writeSettings(KConfigGroup& group);
 
63
 
 
64
    void loadSettings();
 
65
    void saveAsSettings();
 
66
 
 
67
Q_SIGNALS:
 
68
 
 
69
    void signalSettingsChanged();
 
70
 
 
71
private Q_SLOTS:
 
72
 
 
73
    void slotStage1Enabled(bool);
 
74
    void slotStage2Enabled(bool);
 
75
    void slotStage3Enabled(bool);
 
76
    void slotStage4Enabled(bool);
 
77
 
 
78
private:
 
79
 
 
80
    LocalContrastSettingsPriv* const d;
 
81
};
 
82
 
 
83
}  // namespace Digikam
 
84
 
 
85
#endif /* LOCALCONTRASTSETTINGS_H */