1 |
26 |
unneback |
//####COPYRIGHTBEGIN####
|
2 |
|
|
//
|
3 |
|
|
// ----------------------------------------------------------------------------
|
4 |
|
|
// Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
|
5 |
|
|
//
|
6 |
|
|
// This program is part of the eCos host tools.
|
7 |
|
|
//
|
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)
|
11 |
|
|
// any later version.
|
12 |
|
|
//
|
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
|
16 |
|
|
// more details.
|
17 |
|
|
//
|
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.
|
21 |
|
|
//
|
22 |
|
|
// ----------------------------------------------------------------------------
|
23 |
|
|
//
|
24 |
|
|
//####COPYRIGHTEND####
|
25 |
|
|
#if !defined(AFX_CDLTEMPLATESDIALOG_H__D0F912EA_2D4C_11D3_BFFE_00A0C9554250__INCLUDED_)
|
26 |
|
|
#define AFX_CDLTEMPLATESDIALOG_H__D0F912EA_2D4C_11D3_BFFE_00A0C9554250__INCLUDED_
|
27 |
|
|
|
28 |
|
|
#if _MSC_VER > 1000
|
29 |
|
|
#pragma once
|
30 |
|
|
#endif // _MSC_VER > 1000
|
31 |
|
|
// CdlTemplatesDialog.h : header file
|
32 |
|
|
//
|
33 |
|
|
|
34 |
|
|
#define INCLUDEFILE <string>
|
35 |
|
|
#include "IncludeSTL.h"
|
36 |
|
|
|
37 |
|
|
/////////////////////////////////////////////////////////////////////////////
|
38 |
|
|
// CCdlTemplatesDialog dialog
|
39 |
|
|
|
40 |
|
|
#include "resource.h"
|
41 |
|
|
#include "eCosDialog.h"
|
42 |
|
|
|
43 |
|
|
class CCdlTemplatesDialog : public CeCosDialog
|
44 |
|
|
{
|
45 |
|
|
// Construction
|
46 |
|
|
public:
|
47 |
|
|
std::string GetSelectedHardware () const { return m_hardware; }
|
48 |
|
|
std::string GetSelectedTemplate () const { return m_template; }
|
49 |
|
|
std::string GetSelectedTemplateVersion () const { return m_template_version; }
|
50 |
|
|
CCdlTemplatesDialog(CWnd* pParent = NULL); // standard constructor
|
51 |
|
|
|
52 |
|
|
// Dialog Data
|
53 |
|
|
//{{AFX_DATA(CCdlTemplatesDialog)
|
54 |
|
|
enum { IDD = IDD_CDL_TEMPLATES };
|
55 |
|
|
CComboBox m_cboCdlTemplate;
|
56 |
|
|
CComboBox m_cboCdlTemplateVersion;
|
57 |
|
|
CComboBox m_cboCdlHardware;
|
58 |
|
|
CEdit m_edtCdlTemplatePackages;
|
59 |
|
|
CString m_strCdlHardwareDescription;
|
60 |
|
|
CString m_strCdlTemplateDescription;
|
61 |
|
|
CString m_strCdlTemplatePackages;
|
62 |
|
|
//}}AFX_DATA
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
// Overrides
|
66 |
|
|
// ClassWizard generated virtual function overrides
|
67 |
|
|
//{{AFX_VIRTUAL(CCdlTemplatesDialog)
|
68 |
|
|
protected:
|
69 |
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
70 |
|
|
//}}AFX_VIRTUAL
|
71 |
|
|
|
72 |
|
|
// Implementation
|
73 |
|
|
protected:
|
74 |
|
|
|
75 |
|
|
// Generated message map functions
|
76 |
|
|
//{{AFX_MSG(CCdlTemplatesDialog)
|
77 |
|
|
virtual BOOL OnInitDialog();
|
78 |
|
|
afx_msg void OnSelchangeCdlHardware();
|
79 |
|
|
afx_msg void OnSelchangeCdlTemplate();
|
80 |
|
|
afx_msg void OnSelchangeCdlTemplateVersion();
|
81 |
|
|
afx_msg void OnDetails();
|
82 |
|
|
//}}AFX_MSG
|
83 |
|
|
DECLARE_MESSAGE_MAP()
|
84 |
|
|
void UpdateVersionList (std::string default_version);
|
85 |
|
|
void UpdateDetails ();
|
86 |
|
|
private:
|
87 |
|
|
void ShowDetails (bool bShow);
|
88 |
|
|
std::string m_hardware;
|
89 |
|
|
std::string m_template;
|
90 |
|
|
std::string m_template_version;
|
91 |
|
|
};
|
92 |
|
|
|
93 |
|
|
//{{AFX_INSERT_LOCATION}}
|
94 |
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
95 |
|
|
|
96 |
|
|
#endif // !defined(AFX_CDLTEMPLATESDIALOG_H__D0F912EA_2D4C_11D3_BFFE_00A0C9554250__INCLUDED_)
|