00001 /*************************************************************************** 00002 dlgprofilemanager.h 00003 ------------------- 00004 begin : 2004-10-01 22:37 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 DLGPROFILEMANAGER_H 00026 #define DLGPROFILEMANAGER_H 00027 00028 #include "global.h" 00029 //#include <wx/statline.h> 00030 #include <wx/listctrl.h> 00031 00032 namespace WDS 00033 { 00034 class CProfile; 00035 00053 class CDlgProfileManager : public wxDialog 00054 { 00055 public: 00056 CDlgProfileManager( wxWindow *pParent ); 00057 ~CDlgProfileManager(); 00058 00059 protected: 00060 void OnOK ( wxCommandEvent &event ); 00061 void OnLoad ( wxCommandEvent &event ); 00062 void OnAdd ( wxCommandEvent &event ); 00063 void OnDelete( wxCommandEvent &event ); 00064 void OnEdit ( wxCommandEvent &event ); 00065 00067 void FillListBox(); 00068 00070 void EditProfile( CProfile* profile ); 00071 00073 void OnActivateItem( wxListEvent& event ); 00074 00075 private: 00076 enum { 00077 IDC_LST_RESULTS, 00078 IDC_BTN_ADD, 00079 IDC_BTN_EDIT, 00080 IDC_BTN_DELETE, 00081 IDC_BTN_LOAD 00082 }; 00083 00084 private: 00085 wxListCtrl *m_plvProfiles; 00086 00087 DECLARE_EVENT_TABLE() 00088 }; 00089 00090 } 00091 00092 #endif // DLGPROFILEMANAGER_H 00093 00094 // kate: space-indent off; tab-width 4; replace-tabs off;