#include <ThemeManager.h>
Public Types | |
| enum | ThemeUsage { AutoSwap, Night, Day } |
Public Member Functions | |
| ThemeManager () | |
| Default constructor. | |
| void | AddTheme (const wxString &strTheme, MapAppearanceSettings &theme) |
| Adds a new theme and associates it with map control data. | |
| void | UpdateTheme (const wxString &strTheme, MapAppearanceSettings &theme) |
| Updates a theme. | |
| const MapAppearanceSettings & | GetTheme (const wxString &strTheme) const |
| Returns a constant reference to a theme. | |
| MapAppearanceSettings & | GetTheme (const wxString &strTheme) |
| Returns a reference to a theme. | |
| void | RemoveTheme (const wxString &strTheme) |
| Removes a theme. | |
| wxInt16 | GetThemeCount () const |
| Returns the number of themes. | |
| void | RenameTheme (const wxString &strOldName, const wxString &strNewName) |
| Renames a theme. | |
| void | SetThemeUsage (ThemeUsage usage) |
| Sets the theme usage. | |
| ThemeUsage | GetThemeUsage () const |
| Returns theme usage. | |
| wxArrayString | GetThemeNames () const |
| Returns an array of theme names. | |
| void | SetNightTheme (const wxString &strTheme) |
| Sets the name of the nighttime theme. | |
| wxString | GetNightThemeName () const |
| Returns the name of the nighttime theme. | |
| const MapAppearanceSettings & | GetNightTheme () const |
| Returns the nighttime theme. | |
| void | SetDayTheme (const wxString &strTheme) |
| Sets the name of the daytime theme. | |
| wxString | GetDayThemeName () const |
| Returns the name of the daytime theme. | |
| const MapAppearanceSettings & | GetDayTheme () const |
| Returns the daytime theme. | |
| void | SetPhotoTheme (const wxString &strTheme) |
| Sets the name of the photo theme. | |
| wxString | GetPhotoThemeName () const |
| Returns the name of the photo theme. | |
| const MapAppearanceSettings & | GetPhotoTheme () const |
| Returns the photo theme. | |
| void | Load (wxConfigBase *pConfig) |
| Loads the theme settings from the registry/config file. | |
| void | Save (wxConfigBase *pConfig) const |
| Saves the theme settings to the registry/config file. | |
Private Attributes | |
| std::map< wxString, MapAppearanceSettings > | m_mapThemes |
| wxString | m_strNightTheme |
| wxString | m_strDayTheme |
| wxString | m_strPhotoTheme |
| ThemeUsage | m_ThemeUsage |
Definition at line 62 of file MainPage.txt.
| ThemeManager::ThemeManager | ( | ) |
| void ThemeManager::AddTheme | ( | const wxString & | strTheme, | |
| MapAppearanceSettings & | theme | |||
| ) |
Adds a new theme and associates it with map control data.
Definition at line 55 of file ThemeManager.cpp.
| void ThemeManager::UpdateTheme | ( | const wxString & | strTheme, | |
| MapAppearanceSettings & | theme | |||
| ) |
| const MapAppearanceSettings & ThemeManager::GetTheme | ( | const wxString & | strTheme | ) | const |
| MapAppearanceSettings & ThemeManager::GetTheme | ( | const wxString & | strTheme | ) |
| void ThemeManager::RemoveTheme | ( | const wxString & | strTheme | ) |
| wxInt16 ThemeManager::GetThemeCount | ( | ) | const |
| void ThemeManager::RenameTheme | ( | const wxString & | strOldName, | |
| const wxString & | strNewName | |||
| ) |
| void ThemeManager::SetThemeUsage | ( | ThemeManager::ThemeUsage | usage | ) |
| ThemeManager::ThemeUsage ThemeManager::GetThemeUsage | ( | ) | const |
| wxArrayString ThemeManager::GetThemeNames | ( | ) | const |
| void ThemeManager::SetNightTheme | ( | const wxString & | strTheme | ) |
| wxString ThemeManager::GetNightThemeName | ( | ) | const |
| const MapAppearanceSettings & ThemeManager::GetNightTheme | ( | ) | const |
| void ThemeManager::SetDayTheme | ( | const wxString & | strTheme | ) |
| wxString ThemeManager::GetDayThemeName | ( | ) | const |
| const MapAppearanceSettings & ThemeManager::GetDayTheme | ( | ) | const |
| void ThemeManager::SetPhotoTheme | ( | const wxString & | strTheme | ) |
| wxString ThemeManager::GetPhotoThemeName | ( | ) | const |
| const MapAppearanceSettings & ThemeManager::GetPhotoTheme | ( | ) | const |
| void ThemeManager::Load | ( | wxConfigBase * | pConfig | ) |
Loads the theme settings from the registry/config file.
Definition at line 266 of file ThemeManager.cpp.
| void ThemeManager::Save | ( | wxConfigBase * | pConfig | ) | const |
Saves the theme settings to the registry/config file.
Definition at line 303 of file ThemeManager.cpp.
std::map<wxString,MapAppearanceSettings> ThemeManager::m_mapThemes [private] |
Definition at line 70 of file ThemeManager.h.
wxString ThemeManager::m_strNightTheme [private] |
Definition at line 71 of file ThemeManager.h.
wxString ThemeManager::m_strDayTheme [private] |
Definition at line 72 of file ThemeManager.h.
wxString ThemeManager::m_strPhotoTheme [private] |
Definition at line 73 of file ThemeManager.h.
ThemeUsage ThemeManager::m_ThemeUsage [private] |
Definition at line 74 of file ThemeManager.h.
1.5.5