~ubuntu-branches/ubuntu/intrepid/digikam/intrepid

« back to all changes in this revision

Viewing changes to digikam/libs/themeengine/themeengine.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Purcell
  • Date: 2008-07-17 20:25:39 UTC
  • mfrom: (1.2.15 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080717202539-6n7dtirbkoo7qvhd
Tags: 2:0.9.4-1
* New upstream release
  - digiKam 0.9.4 Release Plan (KDE3) ~ 13 July 08 (Closes: #490144)
* DEB_CONFIGURE_EXTRA_FLAGS := --without-included-sqlite3
* Debhelper compatibility level V7
* Install pixmaps in debian/*.install
* Add debian/digikam.lintian-overrides

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Description : theme engine methods
8
8
 * 
9
9
 * Copyright (C) 2004-2005 by Renchi Raju <renchi@pooh.tam.uiuc.edu>
10
 
 * Copyright (C) 2006-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
 
10
 * Copyright (C) 2006-2008 by Gilles Caulier <caulier dot gilles at gmail dot com>
11
11
 *
12
12
 * This program is free software; you can redistribute it
13
13
 * and/or modify it under the terms of the GNU General
46
46
class DIGIKAM_EXPORT ThemeEngine : public QObject
47
47
{
48
48
    Q_OBJECT
49
 
    
 
49
 
50
50
public:
51
51
 
52
52
    ~ThemeEngine();
55
55
    void        scanThemes();
56
56
    QStringList themeNames() const;
57
57
    bool        saveTheme();
58
 
    
 
58
 
59
59
    void    setCurrentTheme(const QString& name);
60
60
    void    setCurrentTheme(const Theme& theme, const QString& name,
61
61
                            bool loadFromDisk=false);
62
 
    Theme*  getCurrentTheme();
 
62
 
 
63
    Theme*  getCurrentTheme() const;
 
64
    QString getCurrentThemeName() const;
63
65
 
64
66
    QColor  baseColor()     const;
65
67
    QColor  thumbSelColor() const;
75
77
    QPixmap thumbSelPixmap(int w, int h);
76
78
    QPixmap listRegPixmap(int w, int h);
77
79
    QPixmap listSelPixmap(int w, int h);
78
 
    
 
80
 
79
81
private:
80
82
 
81
83
    ThemeEngine();
83
85
 
84
86
    void    buildDefaultTheme();
85
87
    bool    loadTheme();
 
88
    void    changePalette();
86
89
    QString resourceValue(const QDomElement &rootElem, const QString& key);
87
 
    
 
90
 
88
91
signals:
89
92
 
90
93
    void signalThemeChanged();
94
97
    void slotChangeTheme(const QString& name);
95
98
 
96
99
private:
97
 
    
 
100
 
98
101
    ThemeEnginePriv* d;
99
102
};
100
103