Main Page | Class List | File List | Class Members | Related Pages

WDS::CDlgPath Class Reference

#include <dlgpath.h>

List of all members.

Public Member Functions

 CDlgPath (int sx, int sy, int ex, int ey, int nElapsedTime, float fCost, const wxString &strPath, wxWindow *pParent)
void UpdateValues (int sx, int sy, int ex, int ey, int nElapsedTime, float fCost, const wxString &strPath)
void OnOK (wxCommandEvent &event)
 close dialog
void OnCopy (wxCommandEvent &event)
 copy way to clipboard
void OnSpeedChanged (wxCommandEvent &event)
 speed changed
void UpdateSpeed (int speed)


Detailed Description

The class CDlgPath shows the found path with some nice infos like path length, time needed etc. The user can copy the path to the clipboard.

Example:
 CDlgPath dlg( n_sx, n_sy, n_ex, n_ey, n_time, f_cost, str_path, parent );
 dlg.Center();
 // ...
 dlg.UpdateValues( n_sx, n_sy, n_ex, n_ey, n_time, f_cost, str_path );

Definition at line 46 of file dlgpath.h.


Constructor & Destructor Documentation

WDS::CDlgPath::CDlgPath int  sx,
int  sy,
int  ex,
int  ey,
int  nElapsedTime,
float  fCost,
const wxString &  strPath,
wxWindow *  pParent
 

Constructor.

Parameters:
sx start coordinate x
sy start coordinate y
ex end coordinate x
ey end coordinate y
nElapsedTime timespan in seconds
fCost cost of way
strPath path as string
pParent parent window

Definition at line 39 of file dlgpath.cpp.


Member Function Documentation

void WDS::CDlgPath::UpdateSpeed int  speed  ) 
 

update speed label

Parameters:
speed new speed

Definition at line 118 of file dlgpath.cpp.

Referenced by OnSpeedChanged(), and UpdateValues().

void WDS::CDlgPath::UpdateValues int  sx,
int  sy,
int  ex,
int  ey,
int  nElapsedTime,
float  fCost,
const wxString &  strPath
 

update values, parameters see constructor

Definition at line 99 of file dlgpath.cpp.

References UpdateSpeed().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Sun Jan 16 18:20:27 2005 for WDSMap by  doxygen 1.3.9.1