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####
27 //===========================================================================
28 //#####DESCRIPTIONBEGIN####
31 // Contact(s): julians
35 // Description: Header file for ecSectionDialog
42 //####DESCRIPTIONEND####
44 //===========================================================================
46 #ifndef _ECOS_SECTIONDLG_H_
47 #define _ECOS_SECTIONDLG_H_
50 #pragma interface "sectiondlg.cpp"
53 #include "wx/notebook.h"
55 //----------------------------------------------------------------------------
57 //----------------------------------------------------------------------------
59 class ecSectionGeneralDialog;
60 class ecSectionRelocationDialog;
61 class ecSectionNoteDialog;
63 class ecSectionDialog: public wxDialog
65 DECLARE_CLASS(ecSectionDialog)
67 ecSectionDialog(wxWindow* parent);
69 void OnOK(wxCommandEvent& event);
70 void OnCancel(wxCommandEvent& event);
71 void OnHelp(wxCommandEvent& event);
72 void OnApply(wxCommandEvent& event);
73 void OnPageChange(wxNotebookEvent& event);
75 virtual bool TransferDataToWindow();
76 virtual bool TransferDataFromWindow();
78 inline wxNotebook* GetNotebook() const { return m_notebook; }
82 ecSectionGeneralDialog* m_general;
83 ecSectionRelocationDialog* m_relocation;
84 ecSectionNoteDialog* m_note;
85 wxNotebook* m_notebook;
93 class ecSectionGeneralDialog: public wxPanel
95 DECLARE_CLASS(ecSectionGeneralDialog)
97 ecSectionGeneralDialog(wxWindow* parent);
99 void CreateControls( wxPanel *parent);
101 virtual bool TransferDataToWindow();
102 virtual bool TransferDataFromWindow();
105 #define ecID_SECTION_GENERAL_LINKER 10037
106 #define ecID_SECTION_GENERAL_USER 10038
107 #define ecID_SECTION_GENERAL_LINKER_TEXT 10039
108 #define ecID_SECTION_GENERAL_USER_TEXT 10040
109 #define ecID_SECTION_GENERAL_KNOWN_SIZE 10041
110 #define ecID_SECTION_GENERAL_KNOWN_SIZE_CHOICE 10042
111 #define ecID_SECTION_GENERAL_ABSOLUTE 10043
112 #define ecID_SECTION_GENERAL_FOLLOWING 10044
113 #define ecID_SECTION_GENERAL_ABSOLUTE_TEXT 10045
114 #define ecID_SECTION_GENERAL_FOLLOWING_TEXT 10046
115 #define ecID_SECTION_GENERAL_ALIGNMENT 10047
120 class ecSectionRelocationDialog: public wxPanel
122 DECLARE_CLASS(ecSectionRelocationDialog)
124 ecSectionRelocationDialog(wxWindow* parent);
126 void CreateControls( wxPanel *parent);
128 virtual bool TransferDataToWindow();
129 virtual bool TransferDataFromWindow();
132 #define ecID_SECTION_RELOCATION_RELOCATE 10048
133 #define ecID_SECTION_RELOCATION_ABSOLUTE 10049
134 #define ecID_SECTION_RELOCATION_ABSOLUTE_TEXT 10050
135 #define ecID_SECTION_RELOCATION_FOLLOWING 10051
136 #define ecID_SECTION_RELOCATION_FOLLOWING_CHOICE 10052
141 class ecSectionNoteDialog: public wxPanel
143 DECLARE_CLASS(ecSectionNoteDialog)
145 ecSectionNoteDialog(wxWindow* parent);
147 void CreateControls( wxPanel *parent);
149 virtual bool TransferDataToWindow();
150 virtual bool TransferDataFromWindow();
153 #define ecID_SECTION_NOTE_TEXT 10053
156 // _ECOS_SECTIONDLG_H_