WhatsNearByFrame Class Reference
[Roadnav Window Classes]

The what's nearby miniframe shows a list of landmarks that are near the current coordinates. More...

#include <WhatsNearByFrame.h>

Collaboration diagram for WhatsNearByFrame:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 WhatsNearByFrame (class MapFrame *parent, wxWindowID id, IMapData *pcMapData)
 ~WhatsNearByFrame ()
 WhatsNearByFrame destructor - delete map control data.
void SetCenter (Point ptCenter)
 Changes the center coordinates.
Point GetCenter ()
 Retrieves the center coordinates.
Point GetSelectedCoordinates ()
 Retrieves the g_cRecords record number of the focused item.
IMapData * GetMapData ()
 Fetch the map control data associated with this window.
virtual bool SetBackgroundColour (const wxColour &colour)
 Propagates SetBackgroundColour calls down to m_pctlList.
virtual bool SetForegroundColour (const wxColour &colour)
 Propagates SetForegroundColour calls down to m_pctlList.
virtual bool SetFont (const wxFont &font)
 Propagates SetFont calls down to m_pctlList.

Public Attributes

class MapFramem_pfrmMap
 Pointer to parent.

Private Member Functions

void OnClose (wxCloseEvent &event)
 Program shutting down - close Whats Nearby window and save position+size.
void OnListDoubleClick (wxListEvent &event)
 User double clicked an item - notify parent.
void UpdateList ()
 Update the what's nearby list.
void SetItemText (int iRow, int iCol, wxString strText)
 Set the text in the specified row + col.

Private Attributes

wxListCtrl * m_pctlList
 List control with all of the nearby landmarks.
Point m_ptCenter
 Center coordinates.
double m_fMaxDistance
 Maximum distance in miles from center coordinates to show landmarks from.
IMapData * m_pcMapData


Detailed Description

The what's nearby miniframe shows a list of landmarks that are near the current coordinates.

Definition at line 21 of file MainPage.txt.


Constructor & Destructor Documentation

WhatsNearByFrame::WhatsNearByFrame ( class MapFrame parent,
wxWindowID  id,
IMapData *  pcMapData 
)

WhatsNearByFrame::~WhatsNearByFrame (  ) 

WhatsNearByFrame destructor - delete map control data.

Definition at line 135 of file WhatsNearByFrame.cpp.


Member Function Documentation

void WhatsNearByFrame::SetCenter ( Point  ptCenter  ) 

Changes the center coordinates.

Definition at line 198 of file WhatsNearByFrame.cpp.

Point WhatsNearByFrame::GetCenter (  ) 

Retrieves the center coordinates.

Definition at line 223 of file WhatsNearByFrame.cpp.

Point WhatsNearByFrame::GetSelectedCoordinates (  ) 

Retrieves the g_cRecords record number of the focused item.

Definition at line 309 of file WhatsNearByFrame.cpp.

IMapData * WhatsNearByFrame::GetMapData (  ) 

Fetch the map control data associated with this window.

Definition at line 340 of file WhatsNearByFrame.cpp.

bool WhatsNearByFrame::SetBackgroundColour ( const wxColour &  colour  )  [virtual]

Propagates SetBackgroundColour calls down to m_pctlList.

Definition at line 145 of file WhatsNearByFrame.cpp.

bool WhatsNearByFrame::SetForegroundColour ( const wxColour &  colour  )  [virtual]

Propagates SetForegroundColour calls down to m_pctlList.

Definition at line 156 of file WhatsNearByFrame.cpp.

bool WhatsNearByFrame::SetFont ( const wxFont &  font  )  [virtual]

Propagates SetFont calls down to m_pctlList.

Definition at line 167 of file WhatsNearByFrame.cpp.

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

Program shutting down - close Whats Nearby window and save position+size.

Definition at line 329 of file WhatsNearByFrame.cpp.

void WhatsNearByFrame::OnListDoubleClick ( wxListEvent &  event  )  [private]

User double clicked an item - notify parent.

Definition at line 296 of file WhatsNearByFrame.cpp.

void WhatsNearByFrame::UpdateList (  )  [private]

Update the what's nearby list.

Definition at line 257 of file WhatsNearByFrame.cpp.

void WhatsNearByFrame::SetItemText ( int  iRow,
int  iCol,
wxString  strText 
) [private]

Set the text in the specified row + col.

Definition at line 178 of file WhatsNearByFrame.cpp.


Member Data Documentation

Pointer to parent.

Definition at line 60 of file WhatsNearByFrame.h.

wxListCtrl* WhatsNearByFrame::m_pctlList [private]

List control with all of the nearby landmarks.

Definition at line 70 of file WhatsNearByFrame.h.

Center coordinates.

Definition at line 73 of file WhatsNearByFrame.h.

Maximum distance in miles from center coordinates to show landmarks from.

Definition at line 77 of file WhatsNearByFrame.h.

IMapData* WhatsNearByFrame::m_pcMapData [private]

Definition at line 79 of file WhatsNearByFrame.h.


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

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