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

« back to all changes in this revision

Viewing changes to libs/dimg/filters/icc/iccprofilesettings.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-02-17
 
7
 * Description : Icc profile settings view.
 
8
 *
 
9
 * Copyright (C) 2010 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 *
 
11
 * This program is free software; you can redistribute it
 
12
 * and/or modify it under the terms of the GNU General
 
13
 * Public License as published by the Free Software Foundation;
 
14
 * either version 2, or (at your option)
 
15
 * any later version.
 
16
 *
 
17
 * This program is distributed in the hope that it will be useful,
 
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20
 * GNU General Public License for more details.
 
21
 *
 
22
 * ============================================================ */
 
23
 
 
24
#ifndef ICCPROFILESETTINGS_H
 
25
#define ICCPROFILESETTINGS_H
 
26
 
 
27
// Local includes
 
28
 
 
29
#include <QWidget>
 
30
 
 
31
// KDE includes
 
32
 
 
33
#include <kconfig.h>
 
34
#include <kvbox.h>
 
35
 
 
36
// Local includes
 
37
 
 
38
#include "digikam_export.h"
 
39
#include "iccprofile.h"
 
40
 
 
41
namespace Digikam
 
42
{
 
43
 
 
44
class IccProfilesSettingsPriv;
 
45
 
 
46
class DIGIKAM_EXPORT IccProfilesSettings : public KVBox
 
47
{
 
48
    Q_OBJECT
 
49
 
 
50
public:
 
51
 
 
52
    IccProfilesSettings(QWidget* parent=0);
 
53
    ~IccProfilesSettings();
 
54
 
 
55
    IccProfile defaultProfile() const;
 
56
    void resetToDefault();
 
57
 
 
58
    IccProfile currentProfile() const;
 
59
    void setCurrentProfile(const IccProfile& prof);
 
60
 
 
61
    void readSettings(KConfigGroup& group);
 
62
    void writeSettings(KConfigGroup& group);
 
63
    
 
64
    static QStringList favoriteProfiles(KConfigGroup& group);
 
65
 
 
66
Q_SIGNALS:
 
67
 
 
68
    void signalSettingsChanged();
 
69
 
 
70
private Q_SLOTS:
 
71
  
 
72
    void slotNewProfInfo();
 
73
    void slotProfileChanged();
 
74
    
 
75
private:
 
76
 
 
77
    IccProfilesSettingsPriv* const d;
 
78
};
 
79
 
 
80
}  // namespace Digikam
 
81
 
 
82
#endif /* ICCPROFILESETTINGS_H */