1 |
786 |
skrzyp |
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####
|
2 |
|
|
// -------------------------------------------
|
3 |
|
|
// This file is part of the eCos host tools.
|
4 |
|
|
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
|
5 |
|
|
//
|
6 |
|
|
// This program is free software; you can redistribute it and/or modify
|
7 |
|
|
// it under the terms of the GNU General Public License as published by
|
8 |
|
|
// the Free Software Foundation; either version 2 or (at your option) any
|
9 |
|
|
// later version.
|
10 |
|
|
//
|
11 |
|
|
// This program is distributed in the hope that it will be useful, but
|
12 |
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14 |
|
|
// General Public License for more details.
|
15 |
|
|
//
|
16 |
|
|
// You should have received a copy of the GNU General Public License
|
17 |
|
|
// along with this program; if not, write to the
|
18 |
|
|
// Free Software Foundation, Inc., 51 Franklin Street,
|
19 |
|
|
// Fifth Floor, Boston, MA 02110-1301, USA.
|
20 |
|
|
// -------------------------------------------
|
21 |
|
|
// ####ECOSHOSTGPLCOPYRIGHTEND####
|
22 |
|
|
// templatesdlg.h :
|
23 |
|
|
//
|
24 |
|
|
//===========================================================================
|
25 |
|
|
//#####DESCRIPTIONBEGIN####
|
26 |
|
|
//
|
27 |
|
|
// Author(s): julians
|
28 |
|
|
// Contact(s): julians
|
29 |
|
|
// Date: 2000/09/27
|
30 |
|
|
// Version: $Id: templatesdlg.h,v 1.2 2001/03/23 13:38:04 julians Exp $
|
31 |
|
|
// Purpose:
|
32 |
|
|
// Description: Header file for ecTemplatesDialog
|
33 |
|
|
// Requires:
|
34 |
|
|
// Provides:
|
35 |
|
|
// See also:
|
36 |
|
|
// Known bugs:
|
37 |
|
|
// Usage:
|
38 |
|
|
//
|
39 |
|
|
//####DESCRIPTIONEND####
|
40 |
|
|
//
|
41 |
|
|
//===========================================================================
|
42 |
|
|
|
43 |
|
|
#ifndef _ECOS_TEMPLATESDLG_H_
|
44 |
|
|
#define _ECOS_TEMPLATESDLG_H_
|
45 |
|
|
|
46 |
|
|
#ifdef __GNUG__
|
47 |
|
|
#pragma interface "templatesdlg.cpp"
|
48 |
|
|
#endif
|
49 |
|
|
|
50 |
|
|
#include "ecutils.h"
|
51 |
|
|
|
52 |
|
|
class ecTemplatesDialog : public ecDialog
|
53 |
|
|
{
|
54 |
|
|
public:
|
55 |
|
|
// Ctor(s)
|
56 |
|
|
ecTemplatesDialog(wxWindow* parent);
|
57 |
|
|
~ecTemplatesDialog();
|
58 |
|
|
|
59 |
|
|
//// Event handlers
|
60 |
|
|
|
61 |
|
|
void OnOK(wxCommandEvent& event);
|
62 |
|
|
void OnCancel(wxCommandEvent& event);
|
63 |
|
|
void OnDetails(wxCommandEvent& event);
|
64 |
|
|
void OnSelHardwareTemplates(wxCommandEvent& event);
|
65 |
|
|
void OnSelPackageTemplates(wxCommandEvent& event);
|
66 |
|
|
void OnSelPackageVersion(wxCommandEvent& event);
|
67 |
|
|
|
68 |
|
|
void ShowDetails(bool show);
|
69 |
|
|
|
70 |
|
|
//// Operations
|
71 |
|
|
void CreateControls(wxWindow* parent);
|
72 |
|
|
void PopulateControls();
|
73 |
|
|
void UpdateVersionList(const wxString& defaultVersion);
|
74 |
|
|
void UpdateDetails();
|
75 |
|
|
|
76 |
|
|
//// Accesors
|
77 |
|
|
wxString GetSelectedHardware () const { return m_hardware; }
|
78 |
|
|
wxString GetSelectedTemplate () const { return m_template; }
|
79 |
|
|
wxString GetSelectedTemplateVersion () const { return m_template_version; }
|
80 |
|
|
protected:
|
81 |
|
|
wxString m_hardware;
|
82 |
|
|
wxString m_template;
|
83 |
|
|
wxString m_template_version;
|
84 |
|
|
|
85 |
|
|
wxString m_strCdlHardwareDescription;
|
86 |
|
|
wxString m_strCdlTemplateDescription;
|
87 |
|
|
wxString m_strCdlTemplatePackages;
|
88 |
|
|
|
89 |
|
|
private:
|
90 |
|
|
DECLARE_EVENT_TABLE()
|
91 |
|
|
};
|
92 |
|
|
|
93 |
|
|
#define ecID_TEMPLATES_DIALOG_HARDWARE_TEMPLATES 10056
|
94 |
|
|
#define ecID_TEMPLATES_DIALOG_HARDWARE_DESCRIPTION 10057
|
95 |
|
|
#define ecID_TEMPLATES_DIALOG_PACKAGE_TEMPLATES 10058
|
96 |
|
|
#define ecID_TEMPLATES_DIALOG_VERSION 10059
|
97 |
|
|
#define ecID_TEMPLATES_DIALOG_PACKAGE_DESCRIPTION 10060
|
98 |
|
|
#define ecID_TEMPLATES_DIALOG_DETAILS 10061
|
99 |
|
|
#define ecID_TEMPLATES_DIALOG_PACKAGES_MSG 10062
|
100 |
|
|
#define ecID_TEMPLATES_DIALOG_PACKAGES 10063
|
101 |
|
|
|
102 |
|
|
#endif
|
103 |
|
|
// _ECOS_TEMPLATESDLG_H_
|