]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - tools/src/tools/configtool/common/win32/SectionRelocationPage.h
Initial revision
[karo-tx-redboot.git] / tools / src / tools / configtool / common / win32 / SectionRelocationPage.h
1 //####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 //        SectionRelocationPage.h
28 //
29 //        Memory Layout Tool section relocation 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 CeCosPropertyPage class for
40 //                relocation section property selection
41 // See also:      SectionRelocationPage.cpp
42 // Known bugs:    <UPDATE_ME_AT_RELEASE_TIME>
43 //
44 //####DESCRIPTIONEND####
45
46 #if !defined(AFX_SECTIONRELOCATIONPAGE_H__FA2F38F6_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_)
47 #define AFX_SECTIONRELOCATIONPAGE_H__FA2F38F6_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_
48
49 #if _MSC_VER >= 1000
50 #pragma once
51 #endif // _MSC_VER >= 1000
52 // SectionRelocationPage.h : header file
53 //
54
55 #include "resource.h"
56 #include "eCosPropertyPage.h"
57
58 /////////////////////////////////////////////////////////////////////////////
59 // CSectionRelocationPage dialog
60
61 class CSectionRelocationPage : public CeCosPropertyPage
62 {
63         DECLARE_DYNCREATE(CSectionRelocationPage)
64
65 // Construction
66 public:
67         CSectionRelocationPage();
68         ~CSectionRelocationPage();
69     BOOL m_bInitialAbsolute; // if initial location is an absolute location (not a relative location)
70     DWORD m_dwInitialAddress;
71     BOOL m_bNewSection;
72
73 // Dialog Data
74         //{{AFX_DATA(CSectionRelocationPage)
75         enum { IDD = IDD_SECTION_RELOCATION };
76         CButton m_btnRelocates;
77         CButton m_btnInitialRelative;
78         CButton m_btnInitialAbsolute;
79         CEdit   m_edtInitialAddress;
80         CComboBox       m_cboInitialRelativeName;
81         BOOL    m_bRelocates;
82         CString m_strInitialRelativeName;
83         CString m_strInitialAddress;
84         //}}AFX_DATA
85
86
87 // Overrides
88         // ClassWizard generate virtual function overrides
89         //{{AFX_VIRTUAL(CSectionRelocationPage)
90         public:
91         virtual BOOL OnKillActive();
92         virtual BOOL OnSetActive();
93         protected:
94         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
95         //}}AFX_VIRTUAL
96
97 // Implementation
98 protected:
99         // Generated message map functions
100         //{{AFX_MSG(CSectionRelocationPage)
101         afx_msg void OnSectionRelocationRelocates();
102         afx_msg void OnSectionRelocationInitialType();
103         virtual BOOL OnInitDialog();
104         //}}AFX_MSG
105         DECLARE_MESSAGE_MAP()
106
107 };
108
109 //{{AFX_INSERT_LOCATION}}
110 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
111
112 #endif // !defined(AFX_SECTIONRELOCATIONPAGE_H__FA2F38F6_1FA8_11D2_BFBB_00A0C9554250__INCLUDED_)