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

dlgfind.h

00001 /***************************************************************************
00002                            dlgfind.h
00003                            -------------------
00004     begin                : 2004-06-07 21:46
00005     copyright            : (C) 2004-2005 by Michael Menne
00006     email                : menne@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 DLGFIND_H
00026 #define DLGFIND_H
00027 
00028 #include "global.h"
00029 #include <wx/listctrl.h>
00030 #include <wx/statline.h>
00031 #include "map.h"
00032 
00033 namespace WDS
00034 {
00035 
00036 // Forward declaration:
00037 class CGLCanvas;
00038 
00050 class CDlgFind : public wxDialog
00051 {
00052 typedef vector<CTown> TownArray;
00053 public:
00054     CDlgFind( wxWindow *pParent );
00055     virtual ~CDlgFind();
00056 
00057 protected:
00058     wxStaticText   *m_pTxtName;
00059     wxStaticText   *m_pTxtGilde;
00060     wxStaticText   *m_pTxtStadt;
00061 
00062     wxTextCtrl   *m_pEdtName;
00063     wxTextCtrl   *m_pEdtGilde;
00064     wxTextCtrl   *m_pEdtStadt;
00065 
00066     wxButton     *m_pBtnFind;
00067     wxButton     *m_pBtnClear;
00068 
00069     wxStaticLine *m_pLine;
00070 
00071     wxListCtrl   *m_pLstResults;
00072 
00073     TownArray m_aSelected;
00074 
00075     void FillListBox();
00076 
00077     void OnEditUpdate( wxEvent &event );
00078     void OnBtnFind( wxEvent &event );
00079     void OnBtnClear( wxEvent &event );
00080     void OnActivateItem( wxListEvent& event );
00081 
00082     //static int wxCALLBACK CbSort( long item1, long item2, long sortData );
00083 
00084     CMap* GetMap();
00085     CGLCanvas* GetCanvas();
00086 
00087     enum
00088     {
00089         IDC_EDT_NAME,
00090         IDC_EDT_GILDE,
00091         IDC_EDT_STADT,
00092         IDC_BTN_FIND,
00093         IDC_BTN_CLEAR,
00094         IDC_LST_RESULTS
00095     };
00096 
00097     DECLARE_EVENT_TABLE()
00098 };
00099 
00100 }
00101 
00102 #endif // DLGFIND_H
00103 
00104 // 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