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

dlggoto.h

00001 /***************************************************************************
00002                            dlggoto.h
00003                            -------------------
00004     begin                : 2004-06-05 20:00
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 DLGGOTO_H
00026 #define DLGGOTO_H
00027 
00028 #include "global.h"
00029 #include <wx/listctrl.h>
00030 #include <wx/statline.h>
00031 
00032 namespace WDS
00033 {
00034 
00052 class CDlgGoTo : public wxDialog
00053 {
00054 public:
00055     CDlgGoTo( wxWindow *pParent );
00056     ~CDlgGoTo();
00057 
00058     void OnClose( wxCommandEvent &event );
00059     void OnGoTo ( wxCommandEvent &event );
00060     void OnPaste( wxCommandEvent& event );
00061 
00062     int GetX() { return m_x; }
00063     int GetY() { return m_y; }
00064 
00065 protected:
00066     void FillListBoxes( );
00067     void OnActivateBookmarkItem( wxListEvent& event );
00068     void OnActivateRecentItem  ( wxListEvent& event );
00069     void OnDeleteBookmarks     ( wxCommandEvent &event );
00070     void OnDeleteRecents       ( wxCommandEvent &event );
00071     void OnSelectedBookmarkItem( wxCommandEvent &event );
00072     void OnSelectedRecentItem  ( wxCommandEvent &event );
00073 
00074 private:
00075     wxTextCtrl*   m_pEdtPosX;
00076     wxTextCtrl*   m_pEdtPosY;
00077 
00078     wxListCtrl*   m_pLstBookmarks;
00079     wxListCtrl*   m_pLstRecents;
00080 
00081     int m_x;
00082     int m_y;
00083 
00084     enum
00085     {
00086         IDC_EDT_X,
00087         IDC_EDT_Y,
00088         IDC_LIST_BOOKMARKS,
00089         IDC_LIST_RECENTS,
00090         IDC_REMOVE_BOOKMARKS,
00091         IDC_REMOVE_RECENTS
00092     };
00093 
00094     DECLARE_EVENT_TABLE()
00095 };
00096 
00097 }
00098 
00099 #endif // DLGGOTO_H
00100 
00101 // 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