GCompris-qt
#include <ApplicationSettings.h>
Inherits QObject.
Public Member Functions | |
Q_INVOKABLE QVariantMap | loadActivityConfiguration (const QString &activity) |
Q_INVOKABLE void | saveActivityConfiguration (const QString &activity, const QVariantMap &data) |
Properties | |
int | baseFontSize |
int | baseFontSizeMax |
int | baseFontSizeMin |
QString | downloadServerUrl |
quint32 | exeCount |
quint32 | filterLevelMax |
quint32 | filterLevelMin |
QString | font |
quint32 | fontCapitalization |
bool | isAudioEffectsEnabled |
bool | isAudioVoicesEnabled |
bool | isAutomaticDownloadsEnabled |
bool | isBarHidden |
bool | isDemoMode |
bool | isEmbeddedFont |
bool | isFullscreen |
bool | isKioskMode |
bool | isVirtualKeyboard |
QString | locale |
bool | sectionVisible |
bool | showLockedActivities |
Detailed Description
Singleton that contains GCompris' persistent settings.
Settings are persisted using QSettings, which stores them in platform specific locations.
The settings are subdivided in different groups of settings.
[General] settings are mostly changeable by users in the DialogConfig dialog.
[Admin] and [Internal] settings are not changeable by the user and used for internal purposes. Should only be changed if you really know what you are doing.
The [Favorite] group is auto-generated from the favorite activities selected by a user.
Besides these global settings there is one group for each activity that stores persistent settings.
Settings defaults are defined in the source code.
- See also
- DialogActivityConfig
Definition at line 63 of file ApplicationSettings.h.
Member Function Documentation
QVariantMap ApplicationSettings::loadActivityConfiguration | ( | const QString & | activity | ) |
Loads per-activity configuration data for activity
.
- Parameters
-
activity Name of the activity that wants to persist settings.
- Returns
- Map of configuration items.
Definition at line 320 of file ApplicationSettings.cpp.
void ApplicationSettings::saveActivityConfiguration | ( | const QString & | activity, |
const QVariantMap & | data | ||
) |
Stores per-activity configuration data
for activity
.
- Parameters
-
activity Name of the activity that wants to persist settings. data Map of configuration data so save.
Definition at line 310 of file ApplicationSettings.cpp.
Property Documentation
|
readwrite |
Current base font-size used for font scaling.
This setting is the basis for application-wide font-scaling. A value of 0 means to use the font-size as set by the application. Other values between baseFontSizeMin and baseFontSizeMax enforce font-scaling.
Definition at line 166 of file ApplicationSettings.h.
|
read |
Maximum allowed value for font-scaling.
Constant value: +7
Definition at line 180 of file ApplicationSettings.h.
|
read |
Minimum allowed value for font-scaling.
Constant value: -7
Definition at line 173 of file ApplicationSettings.h.
|
readwrite |
Base-URL for resource downloads.
- See also
- DownloadManager
Definition at line 189 of file ApplicationSettings.h.
|
readwrite |
Maximum value for difficulty level filter.
Definition at line 139 of file ApplicationSettings.h.
|
readwrite |
Minimum value for difficulty level filter.
Definition at line 134 of file ApplicationSettings.h.
|
readwrite |
Currently selected font.
Definition at line 104 of file ApplicationSettings.h.
|
readwrite |
Font Capitalization.
Force all texts to be rendered in UpperCase, LowerCase or MixedCase (default)
- See also
- font
Definition at line 120 of file ApplicationSettings.h.
|
readwrite |
Whether audio effects should be enabled.
Definition at line 83 of file ApplicationSettings.h.
|
readwrite |
Whether audio voices/speech should be enabled.
Definition at line 78 of file ApplicationSettings.h.
|
readwrite |
Whether downloads/updates of resource files should be done automatically, without user-interaction.
Note, that on Android GCompris currently can't distinguish Wifi from mobile data connections (cf. Qt ticket #30394).
Definition at line 129 of file ApplicationSettings.h.
|
readwrite |
Whether in demo mode.
Definition at line 144 of file ApplicationSettings.h.
|
readwrite |
Whether currently active font is a shipped font (or a system font).
Updated automatically.
- See also
- font
Definition at line 112 of file ApplicationSettings.h.
|
readwrite |
Whether GCompris should run in fullscreen mode.
Definition at line 88 of file ApplicationSettings.h.
|
readwrite |
Whether kiosk mode is currently active.
Definition at line 149 of file ApplicationSettings.h.
|
readwrite |
Whether on-screen keyboard should be enabled per default in activities that use it.
Definition at line 94 of file ApplicationSettings.h.
|
readwrite |
Locale string for currently active language.
Definition at line 99 of file ApplicationSettings.h.
|
readwrite |
Whether the section selection row is visible in the menu view.
Definition at line 154 of file ApplicationSettings.h.
|
readwrite |
Whether to show locked activities.
False if in Demo mode, true otherwise.
Definition at line 73 of file ApplicationSettings.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2015 The KDE developers.
Generated on Tue Jun 2 2015 21:47:48 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.