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 |
|
|
//=================================================================
|
26 |
|
|
//
|
27 |
|
|
// RegionGeneralPage.h
|
28 |
|
|
//
|
29 |
|
|
// Memory Layout Tool region general property page interface
|
30 |
|
|
//
|
31 |
|
|
//=================================================================
|
32 |
|
|
//=================================================================
|
33 |
|
|
//#####DESCRIPTIONBEGIN####
|
34 |
|
|
//
|
35 |
|
|
// Author(s): John Dallaway
|
36 |
|
|
// Contact(s): jld
|
37 |
|
|
// Date: 1998/07/29 $RcsDate$ {or whatever}
|
38 |
|
|
// Version: 0.00+ $RcsVersion$ {or whatever}
|
39 |
|
|
// Purpose: Provides a derivation of the MFC CPropertyPage class for
|
40 |
|
|
// general region property selection
|
41 |
|
|
// See also: RegionGeneralPage.cpp
|
42 |
|
|
// Known bugs: <UPDATE_ME_AT_RELEASE_TIME>
|
43 |
|
|
//
|
44 |
|
|
//####DESCRIPTIONEND####
|
45 |
|
|
|
46 |
|
|
#if !defined(AFX_REGIONGENERALPAGE_H__FA2F38F3_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_)
|
47 |
|
|
#define AFX_REGIONGENERALPAGE_H__FA2F38F3_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_
|
48 |
|
|
|
49 |
|
|
#if _MSC_VER >= 1000
|
50 |
|
|
#pragma once
|
51 |
|
|
#endif // _MSC_VER >= 1000
|
52 |
|
|
// RegionGeneralPage.h : header file
|
53 |
|
|
//
|
54 |
|
|
|
55 |
|
|
#include "resource.h"
|
56 |
|
|
#include "eCosPropertyPage.h"
|
57 |
|
|
|
58 |
|
|
/////////////////////////////////////////////////////////////////////////////
|
59 |
|
|
// CRegionGeneralPage dialog
|
60 |
|
|
|
61 |
|
|
class CRegionGeneralPage : public CeCosPropertyPage
|
62 |
|
|
{
|
63 |
|
|
DECLARE_DYNCREATE(CRegionGeneralPage)
|
64 |
|
|
|
65 |
|
|
// Construction
|
66 |
|
|
public:
|
67 |
|
|
CRegionGeneralPage();
|
68 |
|
|
~CRegionGeneralPage();
|
69 |
|
|
DWORD m_dwRegionSize;
|
70 |
|
|
DWORD m_dwRegionStartAddress;
|
71 |
|
|
|
72 |
|
|
// Dialog Data
|
73 |
|
|
//{{AFX_DATA(CRegionGeneralPage)
|
74 |
|
|
enum { IDD = IDD_REGION_GENERAL };
|
75 |
|
|
CEdit m_edtRegionSize;
|
76 |
|
|
CEdit m_edtRegionStartAddress;
|
77 |
|
|
CEdit m_edtRegionName;
|
78 |
|
|
CString m_strRegionName;
|
79 |
|
|
BOOL m_bRegionReadOnly;
|
80 |
|
|
CString m_strRegionStartAddress;
|
81 |
|
|
CString m_strRegionSize;
|
82 |
|
|
//}}AFX_DATA
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
// Overrides
|
86 |
|
|
// ClassWizard generate virtual function overrides
|
87 |
|
|
//{{AFX_VIRTUAL(CRegionGeneralPage)
|
88 |
|
|
public:
|
89 |
|
|
virtual BOOL OnKillActive();
|
90 |
|
|
virtual BOOL OnSetActive();
|
91 |
|
|
protected:
|
92 |
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
93 |
|
|
//}}AFX_VIRTUAL
|
94 |
|
|
|
95 |
|
|
// Implementation
|
96 |
|
|
protected:
|
97 |
|
|
// Generated message map functions
|
98 |
|
|
//{{AFX_MSG(CRegionGeneralPage)
|
99 |
|
|
// NOTE: the ClassWizard will add member functions here
|
100 |
|
|
//}}AFX_MSG
|
101 |
|
|
DECLARE_MESSAGE_MAP()
|
102 |
|
|
|
103 |
|
|
};
|
104 |
|
|
|
105 |
|
|
//{{AFX_INSERT_LOCATION}}
|
106 |
|
|
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
|
107 |
|
|
|
108 |
|
|
#endif // !defined(AFX_REGIONGENERALPAGE_H__FA2F38F3_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_)
|