app_settings.cpp¶
file src/app/app_settings.cpp · Applications
Implementation of AppSettings: the QSettings keys and the default values read back when a key was never written.
Source src/app/app_settings.cpp
The keys are grouped by the part of the application they belong to (profile/, window/, simulation/, map/, appearance/), which becomes a section of the INI file on Linux and a sub-key of the registry key on Windows. They are part of the user's saved state: renaming one loses what earlier versions stored under it.
Namespaces¶
| Namespace | Description |
|---|---|
nmeasim::app |
The Qt Widgets desktop application: the main window, its dock panels, the map, the instruments and the settings dialog, built on nmeasim::io. |
Summary¶
File-local variables
| Name | Description |
|---|---|
kLastProfile |
Key of the profile reopened at the next start; see AppSettings::last_profile_path. |
kGeometry |
Key of the window size and position; see AppSettings::window_geometry. |
kState |
Key of the toolbar and dock layout; see AppSettings::window_state. |
kAutostart |
Key of the start-on-launch flag; see AppSettings::autostart. |
kMapOnline |
Key of the tile download flag; see AppSettings::map_online. |
kMapTileUrl |
Key of the tile server URL template; see AppSettings::map_tile_url. |
kMapTileAttribution |
Key of the attribution drawn for the tile server; see AppSettings::map_tile_attribution. |
kMapZoom |
Key of the last map zoom level; see AppSettings::map_zoom. |
kMapCacheDirectory |
Key of the directory that holds the tile cache; see AppSettings::map_cache_directory. |
kTheme |
Key of the look chosen under View → Theme; see AppSettings::theme. |
File-local variables¶
kLastProfile¶
const auto kLastProfile= QStringLiteral("profile/last_path")
Key of the profile reopened at the next start; see AppSettings::last_profile_path.
Declared in src/app/app_settings.cpp:24
kGeometry¶
const auto kGeometry= QStringLiteral("window/geometry")
Key of the window size and position; see AppSettings::window_geometry.
Declared in src/app/app_settings.cpp:26
kState¶
const auto kState= QStringLiteral("window/state")
Key of the toolbar and dock layout; see AppSettings::window_state.
Declared in src/app/app_settings.cpp:28
kAutostart¶
const auto kAutostart= QStringLiteral("simulation/autostart")
Key of the start-on-launch flag; see AppSettings::autostart.
Declared in src/app/app_settings.cpp:30
kMapOnline¶
const auto kMapOnline= QStringLiteral("map/online")
Key of the tile download flag; see AppSettings::map_online.
Declared in src/app/app_settings.cpp:32
kMapTileUrl¶
const auto kMapTileUrl= QStringLiteral("map/tile_url")
Key of the tile server URL template; see AppSettings::map_tile_url.
Declared in src/app/app_settings.cpp:34
kMapTileAttribution¶
const auto kMapTileAttribution= QStringLiteral("map/tile_attribution")
Key of the attribution drawn for the tile server; see AppSettings::map_tile_attribution.
Declared in src/app/app_settings.cpp:36
kMapZoom¶
const auto kMapZoom= QStringLiteral("map/zoom")
Key of the last map zoom level; see AppSettings::map_zoom.
Declared in src/app/app_settings.cpp:38
kMapCacheDirectory¶
const auto kMapCacheDirectory= QStringLiteral("map/cache_directory")
Key of the directory that holds the tile cache; see AppSettings::map_cache_directory.
Declared in src/app/app_settings.cpp:40
kTheme¶
const auto kTheme= QStringLiteral("appearance/theme")
Key of the look chosen under View → Theme; see AppSettings::theme.
Declared in src/app/app_settings.cpp:42