Main frame of Roadnav.
|
Public Member Functions |
| void | RedrawMap (wxCommandEvent &event) |
| | Cause the map to be redrawn.
|
| MapControl * | GetMapControl () |
| | Returns a pointer to the map control object.
|
| ITTS * | GetTTS () |
| 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.
|
|
| | MapFrame (wxString title) |
| | ~MapFrame () |
| | MapFrame destructor.
|
|
| 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.
|
|
| 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.
|
|
| 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.
|
|
| 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.
|
|
| 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.
|
|
| void | OnHelpAbout (wxCommandEvent &event) |
| | Help->About selected.
|
|
| 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?
|
| GPSFrame * | m_pfrmGPS |
| | Pointer to GPS status window.
|
| CompassControl * | m_pctlCompass |
| DirectionsFrame * | m_pfrmDirections |
| WhatsNearByFrame * | m_pfrmWhatsNearBy |
| | Pointer to Whats Nearby window.
|
| GPSMonitorThread * | m_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 |
| Scripting * | m_pScripting |
| wxTimer * | m_ptmrScripting |
| ITTS * | m_pcTTS |
Main frame of Roadnav.