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