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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [standalone/] [wxwin/] [settingsdlg.h] - Blame information for rev 574

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

Line No. Rev Author Line
1 26 unneback
//####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
// settingsdlg.cpp :
26
//
27
//===========================================================================
28
//#####DESCRIPTIONBEGIN####
29
//
30
// Author(s):   julians
31
// Contact(s):  julians
32
// Date:        2000/09/11
33
// Version:     $Id: settingsdlg.h,v 1.1.1.1 2004-02-14 13:28:48 phoenix Exp $
34
// Purpose:
35
// Description: Header file for ecSettingsDialog
36
// Requires:
37
// Provides:
38
// See also:
39
// Known bugs:
40
// Usage:
41
//
42
//####DESCRIPTIONEND####
43
//
44
//===========================================================================
45
 
46
#ifndef _ECOS_SETTINGSDLG_H_
47
#define _ECOS_SETTINGSDLG_H_
48
 
49
#ifdef __GNUG__
50
    #pragma interface "settingsdlg.cpp"
51
#endif
52
 
53
class ecDisplayOptionsDialog; // Configuration Pane/Font
54
class ecViewerOptionsDialog;
55
class ecPathOptionsDialog;
56
class ecConflictResolutionOptionsDialog;
57
class ecRunOptionsDialog;
58
 
59
/*
60
 * ecSettingsDialog
61
 *
62
 * This the application settings dialog, containing
63
 * several further tabbed panels.
64
 *
65
 */
66
 
67
class ecSettingsDialog: public wxDialog
68
{
69
DECLARE_CLASS(ecSettingsDialog)
70
public:
71
    ecSettingsDialog(wxWindow* parent);
72
 
73
    void OnOK(wxCommandEvent& event);
74
    void OnHelp(wxCommandEvent& event);
75
    void OnPageChange(wxNotebookEvent& event);
76
 
77
    virtual bool TransferDataToWindow();
78
    virtual bool TransferDataFromWindow();
79
 
80
    inline wxNotebook* GetNotebook() const { return m_notebook; }
81
 
82
    void SetSelection(int sel);
83
 
84
protected:
85
 
86
    ecDisplayOptionsDialog*             m_displayOptions;
87
    ecViewerOptionsDialog*              m_viewerOptions;
88
    ecPathOptionsDialog*                m_pathOptions;
89
    ecConflictResolutionOptionsDialog*  m_conflictResolutionOptions;
90
    ecRunOptionsDialog*                 m_runOptions;
91
    wxNotebook*                         m_notebook;
92
 
93
DECLARE_EVENT_TABLE()
94
};
95
 
96
/* Display options dialog
97
 */
98
 
99
class ecDisplayOptionsDialog: public wxPanel
100
{
101
DECLARE_CLASS(ecDisplayOptionsDialog)
102
public:
103
    ecDisplayOptionsDialog(wxWindow* parent);
104
 
105
    void CreateControls( wxPanel *parent);
106
 
107
    void OnChangeFont(wxCommandEvent& event);
108
 
109
    virtual bool TransferDataToWindow();
110
    virtual bool TransferDataFromWindow();
111
 
112
DECLARE_EVENT_TABLE()
113
};
114
 
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
120
 
121
/* Viewer options dialog
122
 */
123
 
124
class ecViewerOptionsDialog: public wxPanel
125
{
126
DECLARE_CLASS(ecViewerOptionsDialog)
127
public:
128
    ecViewerOptionsDialog(wxWindow* parent);
129
 
130
//// Operations
131
    void CreateControls( wxPanel *parent);
132
 
133
//// Overrides
134
    virtual bool TransferDataToWindow();
135
    virtual bool TransferDataFromWindow();
136
 
137
//// Event handlers
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);
143
 
144
    DECLARE_EVENT_TABLE()
145
};
146
 
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
157
 
158
/* Path options dialog
159
 */
160
 
161
class ecPathOptionsDialog: public wxPanel
162
{
163
DECLARE_CLASS(ecPathOptionsDialog)
164
public:
165
    ecPathOptionsDialog(wxWindow* parent);
166
 
167
    void CreateControls( wxPanel *parent);
168
 
169
    virtual bool TransferDataToWindow();
170
    virtual bool TransferDataFromWindow();
171
};
172
 
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
179
 
180
/* Conflict resolution options dialog
181
 */
182
 
183
class ecConflictResolutionOptionsDialog: public wxPanel
184
{
185
DECLARE_CLASS(ecConflictResolutionOptionsDialog)
186
public:
187
    ecConflictResolutionOptionsDialog(wxWindow* parent);
188
 
189
    void CreateControls( wxPanel *parent);
190
 
191
    virtual bool TransferDataToWindow();
192
    virtual bool TransferDataFromWindow();
193
 
194
    bool    m_suggestFixes;
195
    bool    m_immediate;
196
    bool    m_deferred;
197
};
198
 
199
#define ecID_CONFLICT_OPTIONS_AFTER_ITEM_CHANGED 10025
200
#define ecID_CONFLICT_OPTIONS_BEFORE_SAVING 10026
201
#define ecID_CONFLICT_OPTIONS_AUTOSUGGEST 10027
202
 
203
/* Run options dialog
204
 */
205
 
206
class ecRunOptionsDialog: public wxPanel
207
{
208
DECLARE_CLASS(ecRunOptionsDialog)
209
DECLARE_EVENT_TABLE()
210
public:
211
    ecRunOptionsDialog(wxWindow* parent);
212
 
213
    void CreateControls( wxPanel *parent);
214
 
215
    virtual bool TransferDataToWindow();
216
    virtual bool TransferDataFromWindow();
217
 
218
    void OnUpdateDownloadTimeout(wxUpdateUIEvent& event);
219
    void OnUpdateRuntimeTimeout(wxUpdateUIEvent& event);
220
    void OnUpdateSerial(wxUpdateUIEvent& event);
221
    void OnUpdateTCPIP(wxUpdateUIEvent& event);
222
 
223
    wxString    m_downloadTimeoutString;
224
    wxString    m_runtimeTimeoutString;
225
    wxString    m_baudString;
226
    bool        m_serialOn;
227
    bool        m_TCPIPOn;
228
};
229
 
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
241
 
242
#endif
243
    // _ECOS_SETTINGSDLG_H_

powered by: WebSVN 2.1.0

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