QGIS API Documentation
4.3.0-Master (1c7cf7431bd)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
qgsapplicationthemeregistry.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsapplicationthemeregistry.h
3
------------------------
4
begin : January 2026
5
copyright : (C) 2026 by Mathieu Pellerin
6
email : mathieu at opengis dot ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSUSERINTERFACETHEMEREGISTRY_H
19
#define QGSUSERINTERFACETHEMEREGISTRY_H
20
21
#include "qgis_core.h"
22
23
#include <QHash>
24
#include <QList>
25
36
class
CORE_EXPORT
QgsApplicationThemeRegistry
37
{
38
public
:
42
QgsApplicationThemeRegistry
();
43
44
~QgsApplicationThemeRegistry
() =
default
;
45
53
bool
addTheme
(
const
QString &name,
const
QString &folder );
54
61
bool
removeTheme
(
const
QString &name );
62
66
QStringList
themes
()
const
;
67
71
QString
themeFolder
(
const
QString &name )
const
;
72
76
QHash<QString, QString>
themeFolders
()
const
;
77
78
private
:
82
void
addApplicationThemes();
83
84
QHash<QString, QString> mThemes;
85
};
86
87
#endif
QgsApplicationThemeRegistry::themeFolders
QHash< QString, QString > themeFolders() const
Returns a map of user interface theme names and folders.
Definition
qgsapplicationthemeregistry.cpp:94
QgsApplicationThemeRegistry::QgsApplicationThemeRegistry
QgsApplicationThemeRegistry()
Constructor for an empty user interface theme registry.
Definition
qgsapplicationthemeregistry.cpp:27
QgsApplicationThemeRegistry::themes
QStringList themes() const
Returns the list of available user interface themes.
Definition
qgsapplicationthemeregistry.cpp:84
QgsApplicationThemeRegistry::themeFolder
QString themeFolder(const QString &name) const
Returns the user interface theme folder for a matching name.
Definition
qgsapplicationthemeregistry.cpp:89
QgsApplicationThemeRegistry::addTheme
bool addTheme(const QString &name, const QString &folder)
Adds a user interface theme into the registry.
Definition
qgsapplicationthemeregistry.cpp:50
QgsApplicationThemeRegistry::removeTheme
bool removeTheme(const QString &name)
Removes a user interface theme with a matching name from the registry.
Definition
qgsapplicationthemeregistry.cpp:73
QgsApplicationThemeRegistry::~QgsApplicationThemeRegistry
~QgsApplicationThemeRegistry()=default
Generated on
for QGIS API Documentation by
1.17.0