Krita Source Code Documentation
Loading...
Searching...
No Matches
thememanager.h
Go to the documentation of this file.
1/* ============================================================
2 *
3 * This file is a part of digiKam project
4 * https://www.digikam.org
5 *
6 * Date : 2004-08-02
7 * Description : theme manager
8 *
9 * SPDX-FileCopyrightText: 2006-2011 Gilles Caulier <caulier dot gilles at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#ifndef THEMEMANAGER_H
16#define THEMEMANAGER_H
17
18// Qt includes
19
20#include <QObject>
21#include <QPixmap>
22#include <QString>
23
24// KDE includes
25
26#include <ksharedconfig.h>
27
29class KActionMenu;
30
31namespace Digikam
32{
33
34
35class ThemeManager : public QObject
36{
37 Q_OBJECT
38
39public:
40
46 explicit ThemeManager(const QString &theme = "", QObject *parent = 0);
47 ~ThemeManager() override;
48
49 QString currentThemeName() const;
50 void setCurrentTheme(const QString& name);
51
52 void setThemeMenuAction(KActionMenu* const action);
53 void registerThemeActions(KisKActionCollection *actionCollection);
54
55Q_SIGNALS:
56
58
59private Q_SLOTS:
60
61 void slotChangePalette();
62
63private:
64 void populateThemeMap();
65 void populateThemeMenu();
66 QPixmap createSchemePreviewIcon(const KSharedConfigPtr& config);
67
68private:
69
70 class ThemeManagerPriv;
72};
73
74} // namespace Digikam
75
76#endif /* THEMEMANAGER_H */
ThemeManagerPriv *const d
void setThemeMenuAction(KActionMenu *const action)
void setCurrentTheme(const QString &name)
QPixmap createSchemePreviewIcon(const KSharedConfigPtr &config)
QString currentThemeName() const
ThemeManager(const QString &theme="", QObject *parent=0)
ThemeManager.
void registerThemeActions(KisKActionCollection *actionCollection)
A container for a set of QAction objects.