1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
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)
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
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.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 //=================================================================
27 // SectionGeneralPage.h
29 // Memory Layout Tool section general property page interface
31 //=================================================================
32 //=================================================================
33 //#####DESCRIPTIONBEGIN####
35 // Author(s): John Dallaway
37 // Date: 1998/07/29 $RcsDate$ {or whatever}
38 // Version: 0.00+ $RcsVersion$ {or whatever}
39 // Purpose: Provides a derivation of the MFC CeCosPropertyPage class for
40 // general section property selection
41 // See also: SectionGeneralPage.cpp
42 // Known bugs: <UPDATE_ME_AT_RELEASE_TIME>
44 //####DESCRIPTIONEND####
46 #if !defined(AFX_SECTIONGENERALPAGE_H__FA2F38F5_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_)
47 #define AFX_SECTIONGENERALPAGE_H__FA2F38F5_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_
51 #endif // _MSC_VER >= 1000
52 // SectionGeneralPage.h : header file
56 #include "eCosPropertyPage.h"
58 /////////////////////////////////////////////////////////////////////////////
59 // CSectionGeneralPage dialog
61 class CSectionGeneralPage : public CeCosPropertyPage
63 DECLARE_DYNCREATE(CSectionGeneralPage)
67 CSectionGeneralPage();
68 ~CSectionGeneralPage();
69 bool m_bFinalAbsolute; // if final location is an absolute location (not a relative location)
70 bool m_bNameLinkerDefined; // if the section is linker-defined (not user-defined)
71 DWORD m_dwAlignment; // the section alignment
72 DWORD m_dwFinalAddress; // the final section address
73 DWORD m_dwSectionSize; // the section size (0 == unknown)
76 //{{AFX_DATA(CSectionGeneralPage)
77 enum { IDD = IDD_SECTION_GENERAL };
78 CComboBox m_cboAlignment;
80 CComboBox m_cboNameLinker;
81 CEdit m_edtFinalAddress;
82 CComboBox m_cboFinalRelativeName;
83 CButton m_btnSectionSizeKnown;
84 CEdit m_edtSectionSize;
85 CButton m_btnFinalRelative;
86 CButton m_btnFinalAbsolute;
87 CButton m_btnNameLinkerDefined;
88 CButton m_btnNameUserDefined;
89 CString m_strFinalRelativeName;
90 CString m_strNameUser;
91 CString m_strNameLinker;
93 CString m_strFinalAddress;
94 CString m_strSectionSize;
98 // ClassWizard generate virtual function overrides
99 //{{AFX_VIRTUAL(CSectionGeneralPage)
101 virtual BOOL OnKillActive();
102 virtual BOOL OnSetActive();
104 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
109 // Generated message map functions
110 //{{AFX_MSG(CSectionGeneralPage)
111 afx_msg void OnSectionSizeKnown();
112 afx_msg void OnSectionGeneralFinalType();
113 virtual BOOL OnInitDialog();
114 afx_msg void OnSectionGeneralNameType();
116 DECLARE_MESSAGE_MAP()
120 //{{AFX_INSERT_LOCATION}}
121 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
123 #endif // !defined(AFX_SECTIONGENERALPAGE_H__FA2F38F5_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_)