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

dlgpath.h

00001 /***************************************************************************
00002                            dlgpath.h
00003                            -------------------
00004     begin                : 2004-08-11
00005     copyright            : (C) 2004-2005 by Dominik Haumann
00006     email                : dhaumann@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  This program is free software; you can redistribute it and/or
00011  modify it under the terms of the GNU General Public License
00012  as published by the Free Software Foundation; either version 2
00013  of the License, or (at your option) any later version.
00014 
00015  This program is distributed in the hope that it will be useful,
00016  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  GNU General Public License for more details.
00019 
00020  You should have received a copy of the GNU General Public License
00021  along with this program; if not, write to the Free Software
00022  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023  ***************************************************************************/
00024 
00025 #ifndef DLGPATH_H
00026 #define DLGPATH_H
00027 
00028 #include "global.h"
00029 #include <wx/statline.h>
00030 
00031 namespace WDS
00032 {
00033 
00046 class CDlgPath : public wxDialog
00047 {
00048 public:
00060     CDlgPath( int sx, int sy, int ex, int ey, int nElapsedTime,
00061               float fCost, const wxString& strPath, wxWindow *pParent );
00062 
00063     ~CDlgPath();
00064 
00068     void UpdateValues( int sx, int sy, int ex, int ey, int nElapsedTime,
00069                        float fCost, const wxString& strPath );
00070 
00072     void OnOK(wxCommandEvent &event);
00073 
00075     void OnCopy(wxCommandEvent &event);
00076 
00078     void OnSpeedChanged(wxCommandEvent &event);
00079 
00082     void UpdateSpeed(int speed);
00083 
00084 private:
00085     wxStaticText* pTxtFound;
00086     wxStaticText* pTxtLength;
00087     wxTextCtrl* pTxtCtrl;
00088     wxTextCtrl* pSpeedCtrl;
00089     wxStaticText* pTxtDuration;
00090     double pathlength;
00091 
00092     enum {
00093         IDC_COPY,
00094         IDC_SPEED
00095     };
00096 
00097     DECLARE_EVENT_TABLE()
00098 };
00099 
00100 }
00101 
00102 #endif // DLGPATH_H
00103 // kate: space-indent off; tab-width 4; replace-tabs off;

Generated on Sun Jan 16 18:20:26 2005 for WDSMap by  doxygen 1.3.9.1