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
35 // Description: Header file for ecTemplatesDialog
42 //####DESCRIPTIONEND####
44 //===========================================================================
46 #ifndef _ECOS_TEMPLATESDLG_H_
47 #define _ECOS_TEMPLATESDLG_H_
50 #pragma interface "templatesdlg.cpp"
55 class ecTemplatesDialog : public ecDialog
59 ecTemplatesDialog(wxWindow* parent);
64 void OnOK(wxCommandEvent& event);
65 void OnCancel(wxCommandEvent& event);
66 void OnDetails(wxCommandEvent& event);
67 void OnSelHardwareTemplates(wxCommandEvent& event);
68 void OnSelPackageTemplates(wxCommandEvent& event);
69 void OnSelPackageVersion(wxCommandEvent& event);
71 void ShowDetails(bool show);
74 void CreateControls(wxWindow* parent);
75 void PopulateControls();
76 void UpdateVersionList(const wxString& defaultVersion);
80 wxString GetSelectedHardware () const { return m_hardware; }
81 wxString GetSelectedTemplate () const { return m_template; }
82 wxString GetSelectedTemplateVersion () const { return m_template_version; }
86 wxString m_template_version;
88 wxString m_strCdlHardwareDescription;
89 wxString m_strCdlTemplateDescription;
90 wxString m_strCdlTemplatePackages;
96 #define ecID_TEMPLATES_DIALOG_HARDWARE_TEMPLATES 10056
97 #define ecID_TEMPLATES_DIALOG_HARDWARE_DESCRIPTION 10057
98 #define ecID_TEMPLATES_DIALOG_PACKAGE_TEMPLATES 10058
99 #define ecID_TEMPLATES_DIALOG_VERSION 10059
100 #define ecID_TEMPLATES_DIALOG_PACKAGE_DESCRIPTION 10060
101 #define ecID_TEMPLATES_DIALOG_DETAILS 10061
102 #define ecID_TEMPLATES_DIALOG_PACKAGES_MSG 10062
103 #define ecID_TEMPLATES_DIALOG_PACKAGES 10063
106 // _ECOS_TEMPLATESDLG_H_