EditThemeDialog Class Reference

Implements a dialog box used to edit a specific theme. More...

#include <EditThemeDialog.h>

Collaboration diagram for EditThemeDialog:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 EditThemeDialog (wxWindow *pParent, const wxString &strTheme, const MapAppearanceSettings &cTheme, IMapData *pMapData)
MapAppearanceSettings GetTheme ()
 Returns the theme object.
wxString GetThemeName ()
 Returns the theme name.

Private Member Functions

void RecordSettings ()
 Save the active settings to m_Theme.
wxArrayString GetRecordTypeNames ()
 Creates a wxArrayString of record type names.
void OnCheckBox (wxEvent &event)
 Triggered when a checkbox is selected or deselected.
void OnOk (wxCommandEvent &event)
 Ok button pressed - save settings.
void OnRecordTypeChange (wxCommandEvent &event)
 User changed feature types.
void OnDetailLevelChange (wxCommandEvent &event)
 User changed detail level.

Private Attributes

IMapData * m_pMapData
 Map control data - mostly used to figure out what the detail levels are called.
int m_iLastRecordType
 last record type that was selected
MapAppearanceSettings m_Theme
 Theme being edited.
wxString m_strTheme
 Name of theme being edited.
wxTextCtrl * m_pctlThemeName
 Control containing name of theme being edited.
wxComboBox * m_pctlRecordType
 Contains which setting is being changed.
ColorPickerControlm_pctlLabelColor [EDITTHEMEDIALOG_MAX_DETAILLEVELS]
 Label color selected.
ColorPickerControlm_pctlLineColor [EDITTHEMEDIALOG_MAX_DETAILLEVELS]
 Line color selected.
wxCheckBox * m_pctlLabelVisible [EDITTHEMEDIALOG_MAX_DETAILLEVELS]
 Label visible checkbox.
wxTextCtrl * m_pctlLabelFontSize [EDITTHEMEDIALOG_MAX_DETAILLEVELS]
 Label font size text control.
wxCheckBox * m_pctlLineVisible [EDITTHEMEDIALOG_MAX_DETAILLEVELS]
 Line visible checkbox.
wxTextCtrl * m_pctlLineWidth [EDITTHEMEDIALOG_MAX_DETAILLEVELS]
 Line width text control.


Detailed Description

Implements a dialog box used to edit a specific theme.

Definition at line 45 of file EditThemeDialog.h.


Constructor & Destructor Documentation

EditThemeDialog::EditThemeDialog ( wxWindow *  pParent,
const wxString &  strTheme,
const MapAppearanceSettings &  cTheme,
IMapData *  pMapData 
)


Member Function Documentation

MapAppearanceSettings EditThemeDialog::GetTheme (  ) 

Returns the theme object.

Definition at line 475 of file EditThemeDialog.cpp.

wxString EditThemeDialog::GetThemeName (  ) 

Returns the theme name.

Definition at line 485 of file EditThemeDialog.cpp.

void EditThemeDialog::RecordSettings (  )  [private]

Save the active settings to m_Theme.

Definition at line 330 of file EditThemeDialog.cpp.

wxArrayString EditThemeDialog::GetRecordTypeNames (  )  [private]

Creates a wxArrayString of record type names.

Definition at line 453 of file EditThemeDialog.cpp.

void EditThemeDialog::OnCheckBox ( wxEvent &  event  )  [private]

Triggered when a checkbox is selected or deselected.

Enable/disable the appropriate text box

Definition at line 497 of file EditThemeDialog.cpp.

void EditThemeDialog::OnOk ( wxCommandEvent &  event  )  [private]

Ok button pressed - save settings.

Definition at line 318 of file EditThemeDialog.cpp.

void EditThemeDialog::OnRecordTypeChange ( wxCommandEvent &  event  )  [private]

User changed feature types.

Definition at line 371 of file EditThemeDialog.cpp.

void EditThemeDialog::OnDetailLevelChange ( wxCommandEvent &  event  )  [private]

User changed detail level.

Definition at line 443 of file EditThemeDialog.cpp.


Member Data Documentation

IMapData* EditThemeDialog::m_pMapData [private]

Map control data - mostly used to figure out what the detail levels are called.

Definition at line 63 of file EditThemeDialog.h.

last record type that was selected

Definition at line 66 of file EditThemeDialog.h.

MapAppearanceSettings EditThemeDialog::m_Theme [private]

Theme being edited.

Definition at line 69 of file EditThemeDialog.h.

wxString EditThemeDialog::m_strTheme [private]

Name of theme being edited.

Definition at line 72 of file EditThemeDialog.h.

wxTextCtrl* EditThemeDialog::m_pctlThemeName [private]

Control containing name of theme being edited.

Definition at line 75 of file EditThemeDialog.h.

wxComboBox* EditThemeDialog::m_pctlRecordType [private]

Contains which setting is being changed.

Definition at line 78 of file EditThemeDialog.h.

ColorPickerControl* EditThemeDialog::m_pctlLabelColor[EDITTHEMEDIALOG_MAX_DETAILLEVELS] [private]

Label color selected.

Definition at line 81 of file EditThemeDialog.h.

ColorPickerControl* EditThemeDialog::m_pctlLineColor[EDITTHEMEDIALOG_MAX_DETAILLEVELS] [private]

Line color selected.

Definition at line 84 of file EditThemeDialog.h.

wxCheckBox* EditThemeDialog::m_pctlLabelVisible[EDITTHEMEDIALOG_MAX_DETAILLEVELS] [private]

Label visible checkbox.

Definition at line 87 of file EditThemeDialog.h.

wxTextCtrl* EditThemeDialog::m_pctlLabelFontSize[EDITTHEMEDIALOG_MAX_DETAILLEVELS] [private]

Label font size text control.

Definition at line 90 of file EditThemeDialog.h.

wxCheckBox* EditThemeDialog::m_pctlLineVisible[EDITTHEMEDIALOG_MAX_DETAILLEVELS] [private]

Line visible checkbox.

Definition at line 93 of file EditThemeDialog.h.

wxTextCtrl* EditThemeDialog::m_pctlLineWidth[EDITTHEMEDIALOG_MAX_DETAILLEVELS] [private]

Line width text control.

Definition at line 96 of file EditThemeDialog.h.


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

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