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
33 // Version: $Id: settingsdlg.h,v 1.7 2002/02/07 18:22:14 julians Exp $
35 // Description: Header file for ecSettingsDialog
42 //####DESCRIPTIONEND####
44 //===========================================================================
46 #ifndef _ECOS_SETTINGSDLG_H_
47 #define _ECOS_SETTINGSDLG_H_
50 #pragma interface "settingsdlg.cpp"
53 class ecDisplayOptionsDialog; // Configuration Pane/Font
54 class ecViewerOptionsDialog;
55 class ecPathOptionsDialog;
56 class ecConflictResolutionOptionsDialog;
57 class ecRunOptionsDialog;
62 * This the application settings dialog, containing
63 * several further tabbed panels.
67 class ecSettingsDialog: public wxDialog
69 DECLARE_CLASS(ecSettingsDialog)
71 ecSettingsDialog(wxWindow* parent);
73 void OnOK(wxCommandEvent& event);
74 void OnHelp(wxCommandEvent& event);
75 void OnPageChange(wxNotebookEvent& event);
77 virtual bool TransferDataToWindow();
78 virtual bool TransferDataFromWindow();
80 inline wxNotebook* GetNotebook() const { return m_notebook; }
82 void SetSelection(int sel);
86 ecDisplayOptionsDialog* m_displayOptions;
87 ecViewerOptionsDialog* m_viewerOptions;
88 ecPathOptionsDialog* m_pathOptions;
89 ecConflictResolutionOptionsDialog* m_conflictResolutionOptions;
90 ecRunOptionsDialog* m_runOptions;
91 wxNotebook* m_notebook;
96 /* Display options dialog
99 class ecDisplayOptionsDialog: public wxPanel
101 DECLARE_CLASS(ecDisplayOptionsDialog)
103 ecDisplayOptionsDialog(wxWindow* parent);
105 void CreateControls( wxPanel *parent);
107 void OnChangeFont(wxCommandEvent& event);
109 virtual bool TransferDataToWindow();
110 virtual bool TransferDataFromWindow();
112 DECLARE_EVENT_TABLE()
115 #define ecID_DISPLAY_OPTIONS_LABELS 10100
116 #define ecID_DISPLAY_OPTIONS_INTEGER_ITEMS 10101
117 #define ecID_DISPLAY_OPTIONS_FONT_CHOICE 10102
118 #define ecID_DISPLAY_OPTIONS_CHANGE_FONT 10103
119 #define ecID_DISPLAY_OPTIONS_SHOW_SPLASH 10104
121 /* Viewer options dialog
124 class ecViewerOptionsDialog: public wxPanel
126 DECLARE_CLASS(ecViewerOptionsDialog)
128 ecViewerOptionsDialog(wxWindow* parent);
131 void CreateControls( wxPanel *parent);
134 virtual bool TransferDataToWindow();
135 virtual bool TransferDataFromWindow();
138 void OnUpdateViewerText(wxUpdateUIEvent& event);
139 void OnUpdateBrowserText(wxUpdateUIEvent& event);
140 void OnBrowseForViewer(wxCommandEvent& event);
141 void OnBrowseForBrowser(wxCommandEvent& event);
142 void OnShowAssociatedViewerInfo(wxCommandEvent& event);
144 DECLARE_EVENT_TABLE()
147 #define ecID_VIEWER_DIALOG_HEADER_ASSOCIATED 10008
148 #define ecID_VIEWER_DIALOG_HEADER_THIS 10009
149 #define ecID_VIEWER_DIALOG_BROWSE_HEADER 10010
150 #define ecID_VIEWER_DIALOG_HEADER_TEXT 10011
151 #define ecID_VIEWER_DIALOG_DOC_BUILTIN 10012
152 #define ecID_VIEWER_DIALOG_DOC_ASSOCIATED 10013
153 #define ecID_VIEWER_DIALOG_DOC_THIS 10014
154 #define ecID_VIEWER_DIALOG_BROWSE_DOC 10015
155 #define ecID_VIEWER_DIALOG_DOC_TEXT 10016
156 #define ecID_VIEWER_DIALOG_ASSOC_INFO 10017
158 /* Path options dialog
161 class ecPathOptionsDialog: public wxPanel
163 DECLARE_CLASS(ecPathOptionsDialog)
165 ecPathOptionsDialog(wxWindow* parent);
167 void CreateControls( wxPanel *parent);
169 virtual bool TransferDataToWindow();
170 virtual bool TransferDataFromWindow();
173 #define ecID_PATHS_BUILD_MSG 10019
174 #define ecID_PATHS_BUILD_COMBO 10020
175 #define ecID_PATHS_BUILD_BROWSE 10021
176 #define ecID_PATHS_USER_MSG 10022
177 #define ecID_PATHS_USER_COMBO 10023
178 #define ecID_PATHS_USER_BROWSE 10024
180 /* Conflict resolution options dialog
183 class ecConflictResolutionOptionsDialog: public wxPanel
185 DECLARE_CLASS(ecConflictResolutionOptionsDialog)
187 ecConflictResolutionOptionsDialog(wxWindow* parent);
189 void CreateControls( wxPanel *parent);
191 virtual bool TransferDataToWindow();
192 virtual bool TransferDataFromWindow();
199 #define ecID_CONFLICT_OPTIONS_AFTER_ITEM_CHANGED 10025
200 #define ecID_CONFLICT_OPTIONS_BEFORE_SAVING 10026
201 #define ecID_CONFLICT_OPTIONS_AUTOSUGGEST 10027
203 /* Run options dialog
206 class ecRunOptionsDialog: public wxPanel
208 DECLARE_CLASS(ecRunOptionsDialog)
209 DECLARE_EVENT_TABLE()
211 ecRunOptionsDialog(wxWindow* parent);
213 void CreateControls( wxPanel *parent);
215 virtual bool TransferDataToWindow();
216 virtual bool TransferDataFromWindow();
218 void OnUpdateDownloadTimeout(wxUpdateUIEvent& event);
219 void OnUpdateRuntimeTimeout(wxUpdateUIEvent& event);
220 void OnUpdateSerial(wxUpdateUIEvent& event);
221 void OnUpdateTCPIP(wxUpdateUIEvent& event);
223 wxString m_downloadTimeoutString;
224 wxString m_runtimeTimeoutString;
225 wxString m_baudString;
230 #define ecID_RUN_PROPERTIES_PLATFORM 10077
231 #define ecID_RUN_PROPERTIES_DOWNLOAD_CHOICE 10078
232 #define ecID_RUN_PROPERTIES_DOWNLOAD_TIMEOUT 10079
233 #define ecID_RUN_PROPERTIES_RUNTIME_CHOICE 10080
234 #define ecID_RUN_PROPERTIES_RUNTIME_TIMEOUT 10081
235 #define ecID_RUN_PROPERTIES_SERIAL 10082
236 #define ecID_RUN_PROPERTIES_SERIAL_PORT_ADDR 10083
237 #define ecID_RUN_PROPERTIES_SERIAL_PORT_SPEED 10084
238 #define ecID_RUN_PROPERTIES_TCPIP 10085
239 #define ecID_RUN_PROPERTIES_TCPIP_HOST 10086
240 #define ecID_RUN_PROPERTIES_TCPIP_PORT 10087
243 // _ECOS_SETTINGSDLG_H_