ThemeManager Class Reference
[Roadnav Theme Related Classes]

#include <ThemeManager.h>

List of all members.

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


Detailed Description

Definition at line 62 of file MainPage.txt.


Member Enumeration Documentation

Enumerator:
AutoSwap 
Night 
Day 

Definition at line 37 of file ThemeManager.h.


Constructor & Destructor Documentation

ThemeManager::ThemeManager (  ) 

Default constructor.

Definition at line 45 of file ThemeManager.cpp.


Member Function Documentation

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 
)

Updates a theme.

Definition at line 68 of file ThemeManager.cpp.

const MapAppearanceSettings & ThemeManager::GetTheme ( const wxString &  strTheme  )  const

Returns a constant reference to a theme.

Definition at line 78 of file ThemeManager.cpp.

MapAppearanceSettings & ThemeManager::GetTheme ( const wxString &  strTheme  ) 

Returns a reference to a theme.

Definition at line 91 of file ThemeManager.cpp.

void ThemeManager::RemoveTheme ( const wxString &  strTheme  ) 

Removes a theme.

Definition at line 104 of file ThemeManager.cpp.

wxInt16 ThemeManager::GetThemeCount (  )  const

Returns the number of themes.

Definition at line 117 of file ThemeManager.cpp.

void ThemeManager::RenameTheme ( const wxString &  strOldName,
const wxString &  strNewName 
)

Renames a theme.

Definition at line 127 of file ThemeManager.cpp.

void ThemeManager::SetThemeUsage ( ThemeManager::ThemeUsage  usage  ) 

Sets the theme usage.

Definition at line 156 of file ThemeManager.cpp.

ThemeManager::ThemeUsage ThemeManager::GetThemeUsage (  )  const

Returns theme usage.

Definition at line 166 of file ThemeManager.cpp.

wxArrayString ThemeManager::GetThemeNames (  )  const

Returns an array of theme names.

Definition at line 139 of file ThemeManager.cpp.

void ThemeManager::SetNightTheme ( const wxString &  strTheme  ) 

Sets the name of the nighttime theme.

Definition at line 176 of file ThemeManager.cpp.

wxString ThemeManager::GetNightThemeName (  )  const

Returns the name of the nighttime theme.

Definition at line 186 of file ThemeManager.cpp.

const MapAppearanceSettings & ThemeManager::GetNightTheme (  )  const

Returns the nighttime theme.

Definition at line 196 of file ThemeManager.cpp.

void ThemeManager::SetDayTheme ( const wxString &  strTheme  ) 

Sets the name of the daytime theme.

Definition at line 206 of file ThemeManager.cpp.

wxString ThemeManager::GetDayThemeName (  )  const

Returns the name of the daytime theme.

Definition at line 216 of file ThemeManager.cpp.

const MapAppearanceSettings & ThemeManager::GetDayTheme (  )  const

Returns the daytime theme.

Definition at line 226 of file ThemeManager.cpp.

void ThemeManager::SetPhotoTheme ( const wxString &  strTheme  ) 

Sets the name of the photo theme.

Definition at line 236 of file ThemeManager.cpp.

wxString ThemeManager::GetPhotoThemeName (  )  const

Returns the name of the photo theme.

Definition at line 246 of file ThemeManager.cpp.

const MapAppearanceSettings & ThemeManager::GetPhotoTheme (  )  const

Returns the photo theme.

Definition at line 256 of file ThemeManager.cpp.

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.


Member Data Documentation

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.

Definition at line 74 of file ThemeManager.h.


The documentation for this class was generated from the following files:

Generated on Sun Jul 27 17:26:16 2008 for Roadnav by  doxygen 1.5.5