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_CDLPACKAGESDIALOG_H__A14A0BAF_2ECF_11D3_BFFE_00A0C9554250__INCLUDED_)
|
26 |
|
|
#define AFX_CDLPACKAGESDIALOG_H__A14A0BAF_2ECF_11D3_BFFE_00A0C9554250__INCLUDED_
|
27 |
|
|
|
28 |
|
|
#if _MSC_VER > 1000
|
29 |
|
|
#pragma once
|
30 |
|
|
#endif // _MSC_VER > 1000
|
31 |
|
|
// CdlPackagesDialog.h : header file
|
32 |
|
|
//
|
33 |
|
|
#include "AddRemoveDialog.h"
|
34 |
|
|
#include "resource.h"
|
35 |
|
|
/////////////////////////////////////////////////////////////////////////////
|
36 |
|
|
// CCdlPackagesDialog dialog
|
37 |
|
|
|
38 |
|
|
class CCdlPackagesDialog : public CAddRemoveDialog
|
39 |
|
|
{
|
40 |
|
|
// Construction
|
41 |
|
|
public:
|
42 |
|
|
CCdlPackagesDialog(CWnd* pParent = NULL); // standard constructor
|
43 |
|
|
|
44 |
|
|
// Dialog Data
|
45 |
|
|
//{{AFX_DATA(CCdlPackagesDialog)
|
46 |
|
|
enum { IDD = IDD_CDL_PACKAGES };
|
47 |
|
|
CComboBox m_cboPackageVersion;
|
48 |
|
|
CString m_strPackageDescription;
|
49 |
|
|
//}}AFX_DATA
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
// Overrides
|
53 |
|
|
// ClassWizard generated virtual function overrides
|
54 |
|
|
//{{AFX_VIRTUAL(CCdlPackagesDialog)
|
55 |
|
|
protected:
|
56 |
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
57 |
|
|
//}}AFX_VIRTUAL
|
58 |
|
|
|
59 |
|
|
// Implementation
|
60 |
|
|
public:
|
61 |
|
|
CString GetVersion (LPCTSTR pszItem);
|
62 |
|
|
void Insert (LPCTSTR pszItem, bool bAdded, LPCTSTR pszDesc = NULL, LPCTSTR pszVersion = NULL);
|
63 |
|
|
protected:
|
64 |
|
|
void HardwarePackageMessageBox();
|
65 |
|
|
void UpdateHardwareSelectionFlag();
|
66 |
|
|
bool m_bHardwarePackageSelected;
|
67 |
|
|
CStringArray m_arstrVersions;
|
68 |
|
|
void UpdatePackageDescription();
|
69 |
|
|
void UpdateVersionList();
|
70 |
|
|
|
71 |
|
|
// Generated message map functions
|
72 |
|
|
//{{AFX_MSG(CCdlPackagesDialog)
|
73 |
|
|
afx_msg void OnSelchangeList1();
|
74 |
|
|
afx_msg void OnSelchangeList2();
|
75 |
|
|
virtual BOOL OnInitDialog();
|
76 |
|
|
afx_msg void OnSelchangePackageVersion();
|
77 |
|
|
afx_msg void OnAdd();
|
78 |
|
|
afx_msg void OnRemove();
|
79 |
|
|
afx_msg void OnDblclkList1();
|
80 |
|
|
afx_msg void OnDblclkList2();
|
81 |
|
|
//}}AFX_MSG
|
82 |
|
|
DECLARE_MESSAGE_MAP()
|
83 |
|
|
};
|
84 |
|
|
|
85 |
|
|
//{{AFX_INSERT_LOCATION}}
|
86 |
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
87 |
|
|
|
88 |
|
|
#endif // !defined(AFX_CDLPACKAGESDIALOG_H__A14A0BAF_2ECF_11D3_BFFE_00A0C9554250__INCLUDED_)
|