1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
8 // This program is free software; you can redistribute it and/or modify it
9 // under the terms of the GNU General Public License as published by the Free
10 // Software Foundation; either version 2 of the License, or (at your option)
13 // This program is distributed in the hope that it will be useful, but WITHOUT
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc.,
20 // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
27 //===========================================================================
28 //#####DESCRIPTIONBEGIN####
31 // Contact(s): julians
33 // Version: $Id: platformsdlg.h,v 1.2 2001/03/23 13:38:04 julians Exp $
35 // Description: Header file for ecPlatformsDialog
42 //####DESCRIPTIONEND####
44 //===========================================================================
46 #ifndef _ECOS_PLATFORMSDLG_H_
47 #define _ECOS_PLATFORMSDLG_H_
50 #pragma interface "platformsdlg.cpp"
54 #include "wx/listctrl.h"
62 * A list control for the platforms dialog
65 class ecPlatformsListCtrl : public wxListCtrl
69 ecPlatformsListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style);
72 void OnChar(wxKeyEvent& event);
73 void OnDoubleLClick(wxMouseEvent& event);
80 DECLARE_CLASS(ecPlatformsListCtrl)
88 class ecPlatformsDialog : public ecDialog
92 ecPlatformsDialog(wxWindow* parent);
97 void OnModify(wxCommandEvent& event);
98 void OnAdd(wxCommandEvent& event);
99 void OnDelete(wxCommandEvent& event);
100 void OnOK(wxCommandEvent& event);
101 void OnCancel(wxCommandEvent& event);
102 void OnUpdateAny(wxUpdateUIEvent& event);
103 void OnDoubleLClick();
107 void CreateControls(wxWindow* parent);
109 CeCosTestPlatform *Platform (int i) { return (CeCosTestPlatform *) m_arTargetInfo[i]; }
110 unsigned int PlatformCount() const { return m_arTargetInfo.Number(); }
111 void Add(const CeCosTestPlatform &ti);
116 ecPlatformsListCtrl* m_listCtrl;
117 wxList m_arTargetInfo;
118 static const wxChar* sm_arpszTypes[];
121 DECLARE_EVENT_TABLE()
124 #define ecID_PLATFORMS_ADD 4001
125 #define ecID_PLATFORMS_DELETE 4002
126 #define ecID_PLATFORMS_MODIFY 4003
127 #define ecID_PLATFORMS_LIST 4004
131 // _ECOS_PLATFORMSDLG_H_