MapFrame Class Reference
[Roadnav Window Classes]

Main frame of Roadnav. More...

#include <Frame.h>

Inheritance diagram for MapFrame:

Inheritance graph
[legend]
Collaboration diagram for MapFrame:

Collaboration graph
[legend]

List of all members.

Public Member Functions

void RedrawMap (wxCommandEvent &event)
 Cause the map to be redrawn.
MapControl * GetMapControl ()
 Returns a pointer to the map control object.
ITTSGetTTS ()
EToolMode GetToolMode () const
 Determine whether the mouse is in measure, zoom, or neither mode.
void SetToolMode (EToolMode mode)
 Put the mouse into measure, zoom, or neither mode.
void SetVariable (wxString strName, wxString strValue)
 Update a variable in the skin and LCD output.
MapAppearanceSettings & GetMapAppearanceSettings ()
 Provides access the MapAppearanceSettings object.
IMapData & GetMapData ()
 Provides access to the MapData object.
void SetFullScreenMode (bool bFullScreen)
 Enables/disables full screen mode.
Construction/destruction
 MapFrame (wxString title)
 ~MapFrame ()
 MapFrame destructor.
Event handlers
void OnGPSUpdate (const wxGPSEvent &evGPS)
 Called to process a wxGPSEvent object.
void OnGPSUpdateIdle (const wxGPSEvent &evGPS)
 Called when new GPS coordinates have been received.
void OnGPSUpdateIdleSpeedControlledZooming (const wxGPSEvent &evGPS)
 Handle speed controlled zooming.
void OnGPSUpdateIdleRoadTypeZooming (const wxGPSEvent &evGPS)
 Handle zooming based on road type.
void OnGPSUpdateIdleKeepGPSOnScreen (const wxGPSEvent &evGPS)
 Repositions the center of the map so that the current GPS coordinates are on the screen.
void OnGPSUpdateIdlePointGPSHeadingUp (const wxGPSEvent &evGPS)
 Adjust the angle of the map so the heading is pointing up.
void OnGPSUpdateIdleUpdateGPSTrack (const wxGPSEvent &evGPS)
 Appends the current GPS coordinates to the GPS history track.
void OnGPSWindowHiding ()
 Users wants to close the GPS window - uncheck the View->GPS Window menu item and set registry entry GPSWindowVisible to 0.
void OnDirectionsWindowHiding ()
 Users wants to close the directions window - uncheck the Map->Get Directions menu item.
void OnWhatsNearByWindowHiding ()
 Users wants to close the what's nearby window - uncheck the View->What's Nearby Window menu item.
void OnDownloadCounty (wxCommandEvent &ev)
 User has right clicked on the map control - download the county under the cursor.
virtual long MSWWindowProc (WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
 Catches the WM_TIMECHANGE Windows message.

Public Attributes

Address m_adrGPS
Point m_ptGPS
 Current GPS coordinates.
double m_fGPSHeading
 Current GPS heading.
double m_fGPSSpeed
 Current GPS speed (MPH).

Protected Member Functions

virtual int MapNameToID (wxString strName)
 Converts an ID from text form to numerical form.
virtual void CreateNamedControl (wxString strName)
 Creates the control named strName and make it available to the skin using AddNamedControl.
virtual void DeleteNamedControl (wxString strName, wxControl *pControl)
 Deletes a control that had been created in CreateNamedControl.

Private Member Functions

void ApplyPreferences ()
 Called during start up and after the user presses Ok in the preferences dialog to apply settings from the preferences dialog.
void SaveMarkers ()
 Save all markers to the registry.
void UpdateSkinState ()
 Updates the active state of all of the skin buttons.
void InitializeThemes ()
void UpdateTheme ()
 Select the appropriate theme for the current time.
File menu handlers
void OnFileRunScript (wxCommandEvent &event)
 Handles running a script.
void OnFileSaveAs (wxCommandEvent &event)
 Handles saving the shown map to a PNG file.
void OnFilePrint (wxCommandEvent &event)
 Prints the map.
void OnFilePrintPreview (wxCommandEvent &event)
 Brings up a print preview dialog box.
void OnFileExit (wxCommandEvent &event)
 File->Exit selected, close the application.
View menu handlers
void OnViewCompass (wxCommandEvent &event)
 View->Compass selected, show/hide the compass.
void OnViewAerialPhotos (wxCommandEvent &event)
 View->Aerial Photos selected, show/hide the photographic background.
void OnView3DMode (wxCommandEvent &event)
 View->3D Mode selected, enable/disable 3D mode.
void OnViewScale (wxCommandEvent &event)
 View->Scale selected, show/hide the scale key.
void OnViewGPSHistory (wxCommandEvent &event)
 View->GPS History toggled.
void OnViewZoomLevel (wxCommandEvent &event)
 Zoom to a specified zoom level.
void OnViewZoomIn (wxCommandEvent &event)
 View->Zoom In selected, increase the detail level.
void OnViewZoomOut (wxCommandEvent &event)
 View->Zoom Out selected, decrease the detail level.
void OnViewZoomMax (wxCommandEvent &event)
 View->Zoom All selected.
void OnViewZoomMin (wxCommandEvent &event)
 View->Zoom None selected.
void OnViewGPSMarker (wxCommandEvent &event)
 Show/hide the marker indicating the current GPS coordinates.
void OnViewGPSMarkerToggle (wxCommandEvent &event)
 Toggle the marker indicating the current GPS coordinates.
void OnViewGPSWindow (wxCommandEvent &event)
 Show/hides the GPS status window.
void OnViewWhatsNearByWindow (wxCommandEvent &event)
 Show/hides the What's Nearby window.
void OnViewFullScreen (wxCommandEvent &event)
 Enters/exits full screen mode.
Map menu handlers
void OnMapSetAddress (wxCommandEvent &event)
 Map->Set Address selected.
void OnMapWaypoints (wxCommandEvent &event)
 Map->Waypoints selected.
void OnMapSetAngle (wxCommandEvent &event)
 Map->Set Angle selected.
void OnMapGetDirections (wxCommandEvent &event)
 Map->Get Directions selected.
void OnMapGetDirectionsAccel (wxCommandEvent &event)
 One of the get directions accelerators has been pressed.
void OnMapMoveCenterLeft (wxCommandEvent &event)
 User pressed left arrow key - move map to the left.
void OnMapMoveCenterRight (wxCommandEvent &event)
 User pressed right arrow key - move map to the right.
void OnMapMoveCenterUp (wxCommandEvent &event)
 User pressed up arrow key - move map to the up.
void OnMapMoveCenterDown (wxCommandEvent &event)
 User pressed down arrow key - move map to the down.
Tools menu handlers
void OnToolsMeasure (wxCommandEvent &event)
 Tools->Measure selected.
void OnUpdateToolsMeasure (wxUpdateUIEvent &event)
 Updates the check mark next to Tools->Measure.
void OnToolsZoom (wxCommandEvent &event)
 Tools->Zoom selected.
void OnUpdateToolsZoom (wxUpdateUIEvent &event)
 Updates the check mark next to Tools->Zoom.
void OnToolsDownloadTIGERLineMaps (wxCommandEvent &event)
 Tools->Download Maps selected.
void OnToolsDownloadOSMMaps (wxCommandEvent &event)
 Tools->Download OSM Maps handler - download maps and import them.
void OnToolsImportOSMMaps (wxCommandEvent &event)
 Tools->Import OSM Maps handler - import existing OSM files.
void OnToolsImportGPXData (wxCommandEvent &event)
 Tools->Import GPS Data handler - import existing GPX files.
void OnToolsPreferences (wxCommandEvent &event)
 Open the preferences dialog box.
Help menu handlers
void OnHelpAbout (wxCommandEvent &event)
 Help->About selected.
Misc events
void OnMapRecentered (wxCommandEvent &event)
 The center of the map has been changed somehow.
void OnWhatsNearbyDoubleClick (wxCommandEvent &event)
 Handle the list in the Whats Nearby miniframe being double clicked by centering the map on those coordinates.
void OnClose (wxCloseEvent &event)
 Handles the application being closed.
void OnIdle (wxIdleEvent &event)
 Idle handler - update the status bar as necessary.
void OnSolarEvent (SolarEvent &event)
 EVT_SOLAR handler - handle transition to daytime/nighttime.
void OnEscapeKey (wxCommandEvent &event)
 Escape key pressed.
void OnSolarTimerTest (wxCommandEvent &event)
 Used to test the solar timer (ctrl-t to activate).
void OnTimerInit (wxTimerEvent &event)
 Initialization function called 1ms after MapFrame is created.
void OnTimerScripting (wxTimerEvent &event)
 0.5 second timer function that pumps the scripting engine.
void OnTimerConfigFlush (wxTimerEvent &event)
 Periodically flush all settings to disk.

Private Attributes

MapControl * m_ctlMap
 The map control in the main window.
wxMenu * m_menuMap
 Map menu.
MapAppearanceSettings m_MapAppearanceSettings
ThemeManager m_ThemeManager
int m_iSpeedControlledDetailLevelOffset
 Speed controlled detail level offset.
std::vector< double > m_vSpeedControlledDetailLevelCutoffs
 Speed controlled detail level cutoffs - each time the velocity exceeds one of these cutoffs, the map will zoom out one level.
wxMenu * m_menuView
 View menu.
wxPrintData * m_pdData
 wxPrintData structure
bool m_bScreenTracksGPS
 Boolean - should the screen track the GPS marker coordinates?
GPSFramem_pfrmGPS
 Pointer to GPS status window.
CompassControlm_pctlCompass
DirectionsFramem_pfrmDirections
WhatsNearByFramem_pfrmWhatsNearBy
 Pointer to Whats Nearby window.
GPSMonitorThreadm_GPSMonitorThread
 Pointer to GPS monitor thread.
DownloadThread * m_DownloadThread
 Thread responsible for background downloads.
bool m_bNorthAlwaysUp
EToolMode m_ToolMode
SolarTimer m_SolarTimer
MapData_Tiles m_cRecords
wxTimer * m_ptmrInit
wxTimer * m_ptmrConfigFlush
bool m_bOnGPSInProgress
wxGPSEvent m_evGPS
bool m_bNewGPSData
wxMutex m_mtxGPS
bool m_bGPSJustRun
wxDateTime m_tLastRoadTypeZoomingCheck
int m_iRoadTypeZoomingCountdown
ERecordType m_eRoadTypeZoomingCurrentType
ERecordType m_eRoadTypeZoomingNextType
int m_ariRoadTypeZoomingDetailLevels [(int) LAST_RECORD_TYPE+1]
bool m_bShowPopupGPSErrors
Scriptingm_pScripting
wxTimer * m_ptmrScripting
ITTSm_pcTTS


Detailed Description

Main frame of Roadnav.

Definition at line 55 of file Frame.h.


Constructor & Destructor Documentation

MapFrame::MapFrame ( wxString  title  ) 

MapFrame::~MapFrame (  ) 

MapFrame destructor.

Definition at line 738 of file Frame.cpp.


Member Function Documentation

void MapFrame::RedrawMap ( wxCommandEvent &  event  ) 

Cause the map to be redrawn.

Definition at line 2569 of file Frame.cpp.

MapControl * MapFrame::GetMapControl (  ) 

Returns a pointer to the map control object.

Definition at line 2579 of file Frame.cpp.

ITTS * MapFrame::GetTTS (  ) 

Definition at line 3063 of file Frame.cpp.

void MapFrame::OnGPSUpdate ( const wxGPSEvent evGPS  ) 

Called to process a wxGPSEvent object.

This just saves the object and lets it get processed in the idle handler.

Definition at line 976 of file Frame.cpp.

void MapFrame::OnGPSUpdateIdle ( const wxGPSEvent evGPS  ) 

Called when new GPS coordinates have been received.

Moves the marker to indicate where the GPS says we are

Definition at line 1215 of file Frame.cpp.

void MapFrame::OnGPSUpdateIdleSpeedControlledZooming ( const wxGPSEvent evGPS  ) 

Handle speed controlled zooming.

Definition at line 989 of file Frame.cpp.

void MapFrame::OnGPSUpdateIdleRoadTypeZooming ( const wxGPSEvent evGPS  ) 

Handle zooming based on road type.

Definition at line 1047 of file Frame.cpp.

void MapFrame::OnGPSUpdateIdleKeepGPSOnScreen ( const wxGPSEvent evGPS  ) 

Repositions the center of the map so that the current GPS coordinates are on the screen.

Definition at line 1095 of file Frame.cpp.

void MapFrame::OnGPSUpdateIdlePointGPSHeadingUp ( const wxGPSEvent evGPS  ) 

Adjust the angle of the map so the heading is pointing up.

Definition at line 1161 of file Frame.cpp.

void MapFrame::OnGPSUpdateIdleUpdateGPSTrack ( const wxGPSEvent evGPS  ) 

Appends the current GPS coordinates to the GPS history track.

Definition at line 1183 of file Frame.cpp.

void MapFrame::OnGPSWindowHiding (  ) 

Users wants to close the GPS window - uncheck the View->GPS Window menu item and set registry entry GPSWindowVisible to 0.

Definition at line 2476 of file Frame.cpp.

void MapFrame::OnDirectionsWindowHiding (  ) 

Users wants to close the directions window - uncheck the Map->Get Directions menu item.

Definition at line 2489 of file Frame.cpp.

void MapFrame::OnWhatsNearByWindowHiding (  ) 

Users wants to close the what's nearby window - uncheck the View->What's Nearby Window menu item.

Definition at line 2500 of file Frame.cpp.

void MapFrame::OnDownloadCounty ( wxCommandEvent &  ev  ) 

User has right clicked on the map control - download the county under the cursor.

Definition at line 2988 of file Frame.cpp.

long MapFrame::MSWWindowProc ( WXUINT  nMsg,
WXWPARAM  wParam,
WXLPARAM  lParam 
) [virtual]

Catches the WM_TIMECHANGE Windows message.

wxWidgets does not support the WM_TIMECHANGE event so we will add it here in a non-portable way

Definition at line 956 of file Frame.cpp.

EToolMode MapFrame::GetToolMode (  )  const

Determine whether the mouse is in measure, zoom, or neither mode.

Definition at line 752 of file Frame.cpp.

void MapFrame::SetToolMode ( EToolMode  mode  ) 

Put the mouse into measure, zoom, or neither mode.

Definition at line 762 of file Frame.cpp.

void MapFrame::SetVariable ( wxString  strName,
wxString  strValue 
)

Update a variable in the skin and LCD output.

Definition at line 3037 of file Frame.cpp.

MapAppearanceSettings & MapFrame::GetMapAppearanceSettings (  ) 

Provides access the MapAppearanceSettings object.

Definition at line 782 of file Frame.cpp.

IMapData & MapFrame::GetMapData (  ) 

Provides access to the MapData object.

Definition at line 772 of file Frame.cpp.

void MapFrame::SetFullScreenMode ( bool  bFullScreen  ) 

Enables/disables full screen mode.

Definition at line 1847 of file Frame.cpp.

int MapFrame::MapNameToID ( wxString  strName  )  [protected, virtual]

Converts an ID from text form to numerical form.

Implements wxSkinnableFrame.

Definition at line 2842 of file Frame.cpp.

void MapFrame::CreateNamedControl ( wxString  strName  )  [protected, virtual]

Creates the control named strName and make it available to the skin using AddNamedControl.

Reimplemented from wxSkinnableFrame.

Definition at line 2954 of file Frame.cpp.

void MapFrame::DeleteNamedControl ( wxString  strName,
wxControl *  pControl 
) [protected, virtual]

Deletes a control that had been created in CreateNamedControl.

Reimplemented from wxSkinnableFrame.

Definition at line 2968 of file Frame.cpp.

void MapFrame::ApplyPreferences (  )  [private]

Called during start up and after the user presses Ok in the preferences dialog to apply settings from the preferences dialog.

Definition at line 2683 of file Frame.cpp.

void MapFrame::SaveMarkers (  )  [private]

Save all markers to the registry.

Definition at line 1388 of file Frame.cpp.

void MapFrame::OnFileRunScript ( wxCommandEvent &  event  )  [private]

Handles running a script.

Definition at line 1487 of file Frame.cpp.

void MapFrame::OnFileSaveAs ( wxCommandEvent &  event  )  [private]

Handles saving the shown map to a PNG file.

Definition at line 1520 of file Frame.cpp.

void MapFrame::OnFilePrint ( wxCommandEvent &  event  )  [private]

Prints the map.

Definition at line 1555 of file Frame.cpp.

void MapFrame::OnFilePrintPreview ( wxCommandEvent &  event  )  [private]

Brings up a print preview dialog box.

Definition at line 1599 of file Frame.cpp.

void MapFrame::OnFileExit ( wxCommandEvent &  event  )  [private]

File->Exit selected, close the application.

Definition at line 1641 of file Frame.cpp.

void MapFrame::OnViewCompass ( wxCommandEvent &  event  )  [private]

View->Compass selected, show/hide the compass.

Definition at line 1651 of file Frame.cpp.

void MapFrame::OnViewAerialPhotos ( wxCommandEvent &  event  )  [private]

View->Aerial Photos selected, show/hide the photographic background.

Definition at line 1661 of file Frame.cpp.

void MapFrame::OnView3DMode ( wxCommandEvent &  event  )  [private]

View->3D Mode selected, enable/disable 3D mode.

Definition at line 1685 of file Frame.cpp.

void MapFrame::OnViewScale ( wxCommandEvent &  event  )  [private]

View->Scale selected, show/hide the scale key.

Definition at line 1708 of file Frame.cpp.

void MapFrame::OnViewGPSHistory ( wxCommandEvent &  event  )  [private]

View->GPS History toggled.

Definition at line 1718 of file Frame.cpp.

void MapFrame::OnViewZoomLevel ( wxCommandEvent &  event  )  [private]

Zoom to a specified zoom level.

Definition at line 1734 of file Frame.cpp.

void MapFrame::OnViewZoomIn ( wxCommandEvent &  event  )  [private]

View->Zoom In selected, increase the detail level.

Definition at line 1744 of file Frame.cpp.

void MapFrame::OnViewZoomOut ( wxCommandEvent &  event  )  [private]

View->Zoom Out selected, decrease the detail level.

Definition at line 1754 of file Frame.cpp.

void MapFrame::OnViewZoomMax ( wxCommandEvent &  event  )  [private]

View->Zoom All selected.

Definition at line 1764 of file Frame.cpp.

void MapFrame::OnViewZoomMin ( wxCommandEvent &  event  )  [private]

View->Zoom None selected.

Definition at line 1774 of file Frame.cpp.

void MapFrame::OnViewGPSMarker ( wxCommandEvent &  event  )  [private]

Show/hide the marker indicating the current GPS coordinates.

Definition at line 1784 of file Frame.cpp.

void MapFrame::OnViewGPSMarkerToggle ( wxCommandEvent &  event  )  [private]

Toggle the marker indicating the current GPS coordinates.

Definition at line 1795 of file Frame.cpp.

void MapFrame::OnViewGPSWindow ( wxCommandEvent &  event  )  [private]

Show/hides the GPS status window.

Definition at line 1807 of file Frame.cpp.

void MapFrame::OnViewWhatsNearByWindow ( wxCommandEvent &  event  )  [private]

Show/hides the What's Nearby window.

Definition at line 1826 of file Frame.cpp.

void MapFrame::OnViewFullScreen ( wxCommandEvent &  event  )  [private]

Enters/exits full screen mode.

Definition at line 1858 of file Frame.cpp.

void MapFrame::OnMapSetAddress ( wxCommandEvent &  event  )  [private]

Map->Set Address selected.

Bring up a dialog box asking the user for an address. Center the map on that address.

Definition at line 1871 of file Frame.cpp.

void MapFrame::OnMapWaypoints ( wxCommandEvent &  event  )  [private]

Map->Waypoints selected.

Bring up the LocationDialog box, allowing the user to add/update/delete waypoints.

Definition at line 1933 of file Frame.cpp.

void MapFrame::OnMapSetAngle ( wxCommandEvent &  event  )  [private]

Map->Set Angle selected.

Bring up a dialog box asking the user to enter the orientation of the map.

Definition at line 1899 of file Frame.cpp.

void MapFrame::OnMapGetDirections ( wxCommandEvent &  event  )  [private]

Map->Get Directions selected.

Ask the user for two addresses and figure out the best way to get from the first address to the second. Results are shown in the directions miniframe.

Definition at line 1953 of file Frame.cpp.

void MapFrame::OnMapGetDirectionsAccel ( wxCommandEvent &  event  )  [private]

One of the get directions accelerators has been pressed.

Toggle the map directions off, then on

Definition at line 1974 of file Frame.cpp.

void MapFrame::OnMapMoveCenterLeft ( wxCommandEvent &  event  )  [private]

User pressed left arrow key - move map to the left.

Definition at line 1993 of file Frame.cpp.

void MapFrame::OnMapMoveCenterRight ( wxCommandEvent &  event  )  [private]

User pressed right arrow key - move map to the right.

Definition at line 2003 of file Frame.cpp.

void MapFrame::OnMapMoveCenterUp ( wxCommandEvent &  event  )  [private]

User pressed up arrow key - move map to the up.

Definition at line 2013 of file Frame.cpp.

void MapFrame::OnMapMoveCenterDown ( wxCommandEvent &  event  )  [private]

User pressed down arrow key - move map to the down.

Definition at line 2023 of file Frame.cpp.

void MapFrame::OnToolsMeasure ( wxCommandEvent &  event  )  [private]

Tools->Measure selected.

Enables/Disables Measure mode

Definition at line 2033 of file Frame.cpp.

void MapFrame::OnUpdateToolsMeasure ( wxUpdateUIEvent &  event  )  [private]

Updates the check mark next to Tools->Measure.

Definition at line 2049 of file Frame.cpp.

void MapFrame::OnToolsZoom ( wxCommandEvent &  event  )  [private]

Tools->Zoom selected.

Enables/disables zoom mode.

Definition at line 2059 of file Frame.cpp.

void MapFrame::OnUpdateToolsZoom ( wxUpdateUIEvent &  event  )  [private]

Updates the check mark next to Tools->Zoom.

Definition at line 2075 of file Frame.cpp.

void MapFrame::OnToolsDownloadTIGERLineMaps ( wxCommandEvent &  event  )  [private]

Tools->Download Maps selected.

Bring up a dialog box listing the counties, and download the Tiger/Line files for the counties the user selects. Files are pulled directly from the Census Bureau web site.

Definition at line 2089 of file Frame.cpp.

void MapFrame::OnToolsDownloadOSMMaps ( wxCommandEvent &  event  )  [private]

Tools->Download OSM Maps handler - download maps and import them.

Definition at line 2187 of file Frame.cpp.

void MapFrame::OnToolsImportOSMMaps ( wxCommandEvent &  event  )  [private]

Tools->Import OSM Maps handler - import existing OSM files.

Definition at line 2249 of file Frame.cpp.

void MapFrame::OnToolsImportGPXData ( wxCommandEvent &  event  )  [private]

Tools->Import GPS Data handler - import existing GPX files.

Definition at line 2284 of file Frame.cpp.

void MapFrame::OnToolsPreferences ( wxCommandEvent &  event  )  [private]

Open the preferences dialog box.

This function also restarts the GPS monitor thread, and reloads the map settings if the user clicks Ok in the preferences dialog.

Definition at line 2341 of file Frame.cpp.

void MapFrame::OnHelpAbout ( wxCommandEvent &  event  )  [private]

Help->About selected.

Show the about box.

Definition at line 2365 of file Frame.cpp.

void MapFrame::OnMapRecentered ( wxCommandEvent &  event  )  [private]

The center of the map has been changed somehow.

Update the Whats Nearby window, if it's visible.

Definition at line 2513 of file Frame.cpp.

void MapFrame::OnWhatsNearbyDoubleClick ( wxCommandEvent &  event  )  [private]

Handle the list in the Whats Nearby miniframe being double clicked by centering the map on those coordinates.

Definition at line 2554 of file Frame.cpp.

void MapFrame::OnClose ( wxCloseEvent &  event  )  [private]

Handles the application being closed.

Terminates worker threads, saves config settings

Definition at line 1409 of file Frame.cpp.

void MapFrame::OnIdle ( wxIdleEvent &  event  )  [private]

Idle handler - update the status bar as necessary.

Definition at line 792 of file Frame.cpp.

void MapFrame::OnSolarEvent ( SolarEvent event  )  [private]

EVT_SOLAR handler - handle transition to daytime/nighttime.

Definition at line 844 of file Frame.cpp.

void MapFrame::OnEscapeKey ( wxCommandEvent &  event  )  [private]

Escape key pressed.

Exit full screen mode if FS mode active, otherwise, do nothing.

Definition at line 2940 of file Frame.cpp.

void MapFrame::OnSolarTimerTest ( wxCommandEvent &  event  )  [private]

Used to test the solar timer (ctrl-t to activate).

Definition at line 2454 of file Frame.cpp.

void MapFrame::OnTimerInit ( wxTimerEvent &  event  )  [private]

Initialization function called 1ms after MapFrame is created.

This function just calls MapInit after MapFrame has finished initializing. It can't be called earlier due to some wxMSW sockets glitches that occasionally cause a hang in wxURL when wxURL is used before a wxFrame is fully initialized.

Definition at line 702 of file Frame.cpp.

void MapFrame::OnTimerScripting ( wxTimerEvent &  event  )  [private]

0.5 second timer function that pumps the scripting engine.

Definition at line 727 of file Frame.cpp.

void MapFrame::OnTimerConfigFlush ( wxTimerEvent &  event  )  [private]

Periodically flush all settings to disk.

Definition at line 684 of file Frame.cpp.

void MapFrame::UpdateSkinState (  )  [private]

Updates the active state of all of the skin buttons.

Definition at line 3048 of file Frame.cpp.

void MapFrame::InitializeThemes (  )  [private]

Definition at line 2584 of file Frame.cpp.

void MapFrame::UpdateTheme (  )  [private]

Select the appropriate theme for the current time.

Definition at line 855 of file Frame.cpp.


Member Data Documentation

Definition at line 105 of file Frame.h.

Current GPS coordinates.

Definition at line 108 of file Frame.h.

Current GPS heading.

Definition at line 111 of file Frame.h.

Current GPS speed (MPH).

Definition at line 114 of file Frame.h.

MapControl* MapFrame::m_ctlMap [private]

The map control in the main window.

Definition at line 224 of file Frame.h.

wxMenu* MapFrame::m_menuMap [private]

Map menu.

Definition at line 227 of file Frame.h.

MapAppearanceSettings MapFrame::m_MapAppearanceSettings [private]

Definition at line 230 of file Frame.h.

Definition at line 232 of file Frame.h.

Speed controlled detail level offset.

Definition at line 236 of file Frame.h.

std::vector<double> MapFrame::m_vSpeedControlledDetailLevelCutoffs [private]

Speed controlled detail level cutoffs - each time the velocity exceeds one of these cutoffs, the map will zoom out one level.

Definition at line 240 of file Frame.h.

wxMenu* MapFrame::m_menuView [private]

View menu.

Definition at line 243 of file Frame.h.

wxPrintData* MapFrame::m_pdData [private]

wxPrintData structure

Definition at line 246 of file Frame.h.

Boolean - should the screen track the GPS marker coordinates?

Definition at line 249 of file Frame.h.

Pointer to GPS status window.

Definition at line 252 of file Frame.h.

Definition at line 254 of file Frame.h.

Definition at line 256 of file Frame.h.

Pointer to Whats Nearby window.

Definition at line 259 of file Frame.h.

Pointer to GPS monitor thread.

Definition at line 262 of file Frame.h.

DownloadThread* MapFrame::m_DownloadThread [private]

Thread responsible for background downloads.

Definition at line 265 of file Frame.h.

Definition at line 267 of file Frame.h.

Definition at line 269 of file Frame.h.

Definition at line 271 of file Frame.h.

MapData_Tiles MapFrame::m_cRecords [private]

Definition at line 274 of file Frame.h.

wxTimer* MapFrame::m_ptmrInit [private]

Definition at line 276 of file Frame.h.

wxTimer* MapFrame::m_ptmrConfigFlush [private]

Definition at line 278 of file Frame.h.

Definition at line 280 of file Frame.h.

Definition at line 282 of file Frame.h.

bool MapFrame::m_bNewGPSData [private]

Definition at line 283 of file Frame.h.

wxMutex MapFrame::m_mtxGPS [private]

Definition at line 284 of file Frame.h.

bool MapFrame::m_bGPSJustRun [private]

Definition at line 285 of file Frame.h.

Definition at line 287 of file Frame.h.

Definition at line 288 of file Frame.h.

Definition at line 289 of file Frame.h.

ERecordType MapFrame::m_eRoadTypeZoomingNextType [private]

Definition at line 290 of file Frame.h.

int MapFrame::m_ariRoadTypeZoomingDetailLevels[(int) LAST_RECORD_TYPE+1] [private]

Definition at line 291 of file Frame.h.

Definition at line 293 of file Frame.h.

Definition at line 296 of file Frame.h.

wxTimer* MapFrame::m_ptmrScripting [private]

Definition at line 297 of file Frame.h.

ITTS* MapFrame::m_pcTTS [private]

Definition at line 300 of file Frame.h.


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

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