OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [standalone/] [wxwin/] [settingsdlg.h] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
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
// settingsdlg.cpp :
23
//
24
//===========================================================================
25
//#####DESCRIPTIONBEGIN####
26
//
27
// Author(s):   julians
28
// Contact(s):  julians
29
// Date:        2000/09/11
30
// Version:     $Id: settingsdlg.h,v 1.7 2002/02/07 18:22:14 julians Exp $
31
// Purpose:
32
// Description: Header file for ecSettingsDialog
33
// Requires:
34
// Provides:
35
// See also:
36
// Known bugs:
37
// Usage:
38
//
39
//####DESCRIPTIONEND####
40
//
41
//===========================================================================
42
 
43
#ifndef _ECOS_SETTINGSDLG_H_
44
#define _ECOS_SETTINGSDLG_H_
45
 
46
#ifdef __GNUG__
47
    #pragma interface "settingsdlg.cpp"
48
#endif
49
 
50
class ecDisplayOptionsDialog; // Configuration Pane/Font
51
class ecViewerOptionsDialog;
52
class ecPathOptionsDialog;
53
class ecConflictResolutionOptionsDialog;
54
class ecRunOptionsDialog;
55
 
56
/*
57
 * ecSettingsDialog
58
 *
59
 * This the application settings dialog, containing
60
 * several further tabbed panels.
61
 *
62
 */
63
 
64
class ecSettingsDialog: public wxDialog
65
{
66
DECLARE_CLASS(ecSettingsDialog)
67
public:
68
    ecSettingsDialog(wxWindow* parent);
69
 
70
    void OnOK(wxCommandEvent& event);
71
    void OnHelp(wxCommandEvent& event);
72
    void OnPageChange(wxNotebookEvent& event);
73
 
74
    virtual bool TransferDataToWindow();
75
    virtual bool TransferDataFromWindow();
76
 
77
    inline wxNotebook* GetNotebook() const { return m_notebook; }
78
 
79
    void SetSelection(int sel);
80
 
81
protected:
82
 
83
    ecDisplayOptionsDialog*             m_displayOptions;
84
    ecViewerOptionsDialog*              m_viewerOptions;
85
    ecPathOptionsDialog*                m_pathOptions;
86
    ecConflictResolutionOptionsDialog*  m_conflictResolutionOptions;
87
    ecRunOptionsDialog*                 m_runOptions;
88
    wxNotebook*                         m_notebook;
89
 
90
DECLARE_EVENT_TABLE()
91
};
92
 
93
/* Display options dialog
94
 */
95
 
96
class ecDisplayOptionsDialog: public wxPanel
97
{
98
DECLARE_CLASS(ecDisplayOptionsDialog)
99
public:
100
    ecDisplayOptionsDialog(wxWindow* parent);
101
 
102
    void CreateControls( wxPanel *parent);
103
 
104
    void OnChangeFont(wxCommandEvent& event);
105
 
106
    virtual bool TransferDataToWindow();
107
    virtual bool TransferDataFromWindow();
108
 
109
DECLARE_EVENT_TABLE()
110
};
111
 
112
#define ecID_DISPLAY_OPTIONS_LABELS        10100
113
#define ecID_DISPLAY_OPTIONS_INTEGER_ITEMS 10101
114
#define ecID_DISPLAY_OPTIONS_FONT_CHOICE   10102
115
#define ecID_DISPLAY_OPTIONS_CHANGE_FONT   10103
116
#define ecID_DISPLAY_OPTIONS_SHOW_SPLASH   10104
117
 
118
/* Viewer options dialog
119
 */
120
 
121
class ecViewerOptionsDialog: public wxPanel
122
{
123
DECLARE_CLASS(ecViewerOptionsDialog)
124
public:
125
    ecViewerOptionsDialog(wxWindow* parent);
126
 
127
//// Operations
128
    void CreateControls( wxPanel *parent);
129
 
130
//// Overrides
131
    virtual bool TransferDataToWindow();
132
    virtual bool TransferDataFromWindow();
133
 
134
//// Event handlers
135
    void OnUpdateViewerText(wxUpdateUIEvent& event);
136
    void OnUpdateBrowserText(wxUpdateUIEvent& event);
137
    void OnBrowseForViewer(wxCommandEvent& event);
138
    void OnBrowseForBrowser(wxCommandEvent& event);
139
    void OnShowAssociatedViewerInfo(wxCommandEvent& event);
140
 
141
    DECLARE_EVENT_TABLE()
142
};
143
 
144
#define ecID_VIEWER_DIALOG_HEADER_ASSOCIATED 10008
145
#define ecID_VIEWER_DIALOG_HEADER_THIS 10009
146
#define ecID_VIEWER_DIALOG_BROWSE_HEADER 10010
147
#define ecID_VIEWER_DIALOG_HEADER_TEXT 10011
148
#define ecID_VIEWER_DIALOG_DOC_BUILTIN 10012
149
#define ecID_VIEWER_DIALOG_DOC_ASSOCIATED 10013
150
#define ecID_VIEWER_DIALOG_DOC_THIS 10014
151
#define ecID_VIEWER_DIALOG_BROWSE_DOC 10015
152
#define ecID_VIEWER_DIALOG_DOC_TEXT 10016
153
#define ecID_VIEWER_DIALOG_ASSOC_INFO 10017
154
 
155
/* Path options dialog
156
 */
157
 
158
class ecPathOptionsDialog: public wxPanel
159
{
160
DECLARE_CLASS(ecPathOptionsDialog)
161
public:
162
    ecPathOptionsDialog(wxWindow* parent);
163
 
164
    void CreateControls( wxPanel *parent);
165
 
166
    virtual bool TransferDataToWindow();
167
    virtual bool TransferDataFromWindow();
168
};
169
 
170
#define ecID_PATHS_BUILD_MSG 10019
171
#define ecID_PATHS_BUILD_COMBO 10020
172
#define ecID_PATHS_BUILD_BROWSE 10021
173
#define ecID_PATHS_USER_MSG 10022
174
#define ecID_PATHS_USER_COMBO 10023
175
#define ecID_PATHS_USER_BROWSE 10024
176
 
177
/* Conflict resolution options dialog
178
 */
179
 
180
class ecConflictResolutionOptionsDialog: public wxPanel
181
{
182
DECLARE_CLASS(ecConflictResolutionOptionsDialog)
183
public:
184
    ecConflictResolutionOptionsDialog(wxWindow* parent);
185
 
186
    void CreateControls( wxPanel *parent);
187
 
188
    virtual bool TransferDataToWindow();
189
    virtual bool TransferDataFromWindow();
190
 
191
    bool    m_suggestFixes;
192
    bool    m_immediate;
193
    bool    m_deferred;
194
};
195
 
196
#define ecID_CONFLICT_OPTIONS_AFTER_ITEM_CHANGED 10025
197
#define ecID_CONFLICT_OPTIONS_BEFORE_SAVING 10026
198
#define ecID_CONFLICT_OPTIONS_AUTOSUGGEST 10027
199
 
200
/* Run options dialog
201
 */
202
 
203
class ecRunOptionsDialog: public wxPanel
204
{
205
DECLARE_CLASS(ecRunOptionsDialog)
206
DECLARE_EVENT_TABLE()
207
public:
208
    ecRunOptionsDialog(wxWindow* parent);
209
 
210
    void CreateControls( wxPanel *parent);
211
 
212
    virtual bool TransferDataToWindow();
213
    virtual bool TransferDataFromWindow();
214
 
215
    void OnUpdateDownloadTimeout(wxUpdateUIEvent& event);
216
    void OnUpdateRuntimeTimeout(wxUpdateUIEvent& event);
217
    void OnUpdateSerial(wxUpdateUIEvent& event);
218
    void OnUpdateTCPIP(wxUpdateUIEvent& event);
219
 
220
    wxString    m_downloadTimeoutString;
221
    wxString    m_runtimeTimeoutString;
222
    wxString    m_baudString;
223
    bool        m_serialOn;
224
    bool        m_TCPIPOn;
225
};
226
 
227
#define ecID_RUN_PROPERTIES_PLATFORM 10077
228
#define ecID_RUN_PROPERTIES_DOWNLOAD_CHOICE 10078
229
#define ecID_RUN_PROPERTIES_DOWNLOAD_TIMEOUT 10079
230
#define ecID_RUN_PROPERTIES_RUNTIME_CHOICE 10080
231
#define ecID_RUN_PROPERTIES_RUNTIME_TIMEOUT 10081
232
#define ecID_RUN_PROPERTIES_SERIAL 10082
233
#define ecID_RUN_PROPERTIES_SERIAL_PORT_ADDR 10083
234
#define ecID_RUN_PROPERTIES_SERIAL_PORT_SPEED 10084
235
#define ecID_RUN_PROPERTIES_TCPIP 10085
236
#define ecID_RUN_PROPERTIES_TCPIP_HOST 10086
237
#define ecID_RUN_PROPERTIES_TCPIP_PORT 10087
238
 
239
#endif
240
    // _ECOS_SETTINGSDLG_H_

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.