forked from shumatech/BOSSA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBossaForm.cpp
527 lines (346 loc) · 23.4 KB
/
BossaForm.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Nov 17 2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "BossaForm.h"
///////////////////////////////////////////////////////////////////////////
MainFrame::MainFrame( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxFrame( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) );
wxBoxSizer* _topBoxSizer;
_topBoxSizer = new wxBoxSizer( wxVERTICAL );
wxBoxSizer* _titleBoxSizer;
_titleBoxSizer = new wxBoxSizer( wxHORIZONTAL );
_bossaBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
_titleBoxSizer->Add( _bossaBitmap, 0, wxALIGN_BOTTOM|wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_titleText = new wxStaticText( this, wxID_ANY, wxT("Flash Programmer for Atmel SAM Devices"), wxDefaultPosition, wxDefaultSize, 0 );
_titleText->Wrap( -1 );
_titleBoxSizer->Add( _titleText, 0, wxALL|wxALIGN_BOTTOM, 5 );
_titleBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_aboutButton = new wxButton( this, wxID_ANY, wxT("About"), wxDefaultPosition, wxDefaultSize, 0 );
_aboutButton->SetToolTip( wxT("Display information about BOSSA") );
_titleBoxSizer->Add( _aboutButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_topBoxSizer->Add( _titleBoxSizer, 0, wxALL|wxEXPAND, 5 );
wxStaticBoxSizer* _portBoxSizer;
_portBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Serial Port") ), wxHORIZONTAL );
_portComboBox = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
_portBoxSizer->Add( _portComboBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_refreshButton = new wxButton( this, wxID_ANY, wxT("Refresh"), wxDefaultPosition, wxDefaultSize, 0 );
_refreshButton->SetToolTip( wxT("Refresh the list of available serial ports") );
_portBoxSizer->Add( _refreshButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_portBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_autoScanButton = new wxButton( this, wxID_ANY, wxT("Auto-Scan"), wxDefaultPosition, wxDefaultSize, 0 );
_autoScanButton->SetToolTip( wxT("Scan all serial ports for a processor") );
_portBoxSizer->Add( _autoScanButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_topBoxSizer->Add( _portBoxSizer, 3, wxALL|wxEXPAND, 5 );
wxStaticBoxSizer* _fileBoxSizer;
_fileBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("File") ), wxHORIZONTAL );
_filePicker = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, wxT("Select a file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_OPEN|wxFLP_USE_TEXTCTRL );
_filePicker->SetToolTip( wxT("Select the file to use for write/verify/read operations") );
_fileBoxSizer->Add( _filePicker, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_topBoxSizer->Add( _fileBoxSizer, 3, wxALL|wxEXPAND, 5 );
wxBoxSizer* _optionsBoxSizer;
_optionsBoxSizer = new wxBoxSizer( wxHORIZONTAL );
wxStaticBoxSizer* _writeBoxSizer;
_writeBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Write Options") ), wxHORIZONTAL );
wxGridSizer* _writeGridSizer;
_writeGridSizer = new wxGridSizer( 2, 3, 0, 0 );
_eraseCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Erase all"), wxDefaultPosition, wxDefaultSize, 0 );
_eraseCheckBox->SetValue(true);
_eraseCheckBox->SetToolTip( wxT("Erase entire flash before writing (recommended)") );
_writeGridSizer->Add( _eraseCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_bodCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Brownout detect"), wxDefaultPosition, wxDefaultSize, 0 );
_bodCheckBox->SetToolTip( wxT("Enable the brownout detection circuitry") );
_writeGridSizer->Add( _bodCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_lockCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Lock"), wxDefaultPosition, wxDefaultSize, 0 );
_lockCheckBox->SetToolTip( wxT("Lock access to the flash") );
_writeGridSizer->Add( _lockCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_bootCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Boot to flash"), wxDefaultPosition, wxDefaultSize, 0 );
_bootCheckBox->SetValue(true);
_bootCheckBox->SetToolTip( wxT("Boot processor to flash instead of SAM-BA (if supported)") );
_writeGridSizer->Add( _bootCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_borCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Brownout reset"), wxDefaultPosition, wxDefaultSize, 0 );
_borCheckBox->SetToolTip( wxT("Enable processor reset on brownout detect") );
_writeGridSizer->Add( _borCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_securityCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Security"), wxDefaultPosition, wxDefaultSize, 0 );
_securityCheckBox->SetToolTip( wxT("Set the security bit") );
_writeGridSizer->Add( _securityCheckBox, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_writeBoxSizer->Add( _writeGridSizer, 1, wxEXPAND, 5 );
_optionsBoxSizer->Add( _writeBoxSizer, 1, wxALL|wxEXPAND, 5 );
wxStaticBoxSizer* _readBoxSizer;
_readBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Read Options") ), wxVERTICAL );
wxBoxSizer* _sizeBoxSizer;
_sizeBoxSizer = new wxBoxSizer( wxVERTICAL );
_sizeStaticText = new wxStaticText( this, wxID_ANY, wxT("Size:"), wxDefaultPosition, wxDefaultSize, 0 );
_sizeStaticText->Wrap( -1 );
_sizeBoxSizer->Add( _sizeStaticText, 0, wxALL, 5 );
_sizeTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
_sizeTextCtrl->SetToolTip( wxT("Specify the amount of flash to read") );
_sizeBoxSizer->Add( _sizeTextCtrl, 0, wxALL, 5 );
_readBoxSizer->Add( _sizeBoxSizer, 1, wxEXPAND, 5 );
_optionsBoxSizer->Add( _readBoxSizer, 0, wxALL|wxEXPAND, 5 );
_topBoxSizer->Add( _optionsBoxSizer, 4, wxEXPAND, 5 );
wxBoxSizer* _buttonBoxSizer;
_buttonBoxSizer = new wxBoxSizer( wxHORIZONTAL );
_buttonBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_writeButton = new wxButton( this, wxID_ANY, wxT("Write"), wxDefaultPosition, wxDefaultSize, 0 );
_writeButton->SetToolTip( wxT("Write the flash with the file above") );
_buttonBoxSizer->Add( _writeButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_buttonBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_verifyButton = new wxButton( this, wxID_ANY, wxT("Verify"), wxDefaultPosition, wxDefaultSize, 0 );
_verifyButton->SetToolTip( wxT("Verify the flash matches the file above") );
_buttonBoxSizer->Add( _verifyButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_buttonBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_readButton = new wxButton( this, wxID_ANY, wxT("Read"), wxDefaultPosition, wxDefaultSize, 0 );
_readButton->SetToolTip( wxT("Read the flash into the file above") );
_buttonBoxSizer->Add( _readButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_buttonBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_infoButton = new wxButton( this, wxID_ANY, wxT("Info"), wxDefaultPosition, wxDefaultSize, 0 );
_infoButton->SetToolTip( wxT("Display inforamtion aboth the connected processor") );
_buttonBoxSizer->Add( _infoButton, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_buttonBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_exitButton = new wxButton( this, wxID_ANY, wxT("Exit"), wxDefaultPosition, wxDefaultSize, 0 );
_exitButton->SetToolTip( wxT("Exit and close BOSSA") );
_buttonBoxSizer->Add( _exitButton, 0, wxALL, 5 );
_buttonBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_topBoxSizer->Add( _buttonBoxSizer, 0, wxALL|wxEXPAND, 5 );
this->SetSizer( _topBoxSizer );
this->Layout();
_statusBar = this->CreateStatusBar( 2, wxST_SIZEGRIP, wxID_ANY );
this->Centre( wxBOTH );
}
MainFrame::~MainFrame()
{
}
ProgressDialog::ProgressDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) );
wxBoxSizer* _progressBoxSizer;
_progressBoxSizer = new wxBoxSizer( wxVERTICAL );
_progressBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_infoStaticText = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
_infoStaticText->Wrap( -1 );
_progressBoxSizer->Add( _infoStaticText, 0, wxALIGN_CENTER|wxALL|wxEXPAND, 5 );
_statusGauge = new wxGauge( this, wxID_ANY, 100, wxDefaultPosition, wxDefaultSize, wxGA_HORIZONTAL );
_statusGauge->SetValue( 0 );
_progressBoxSizer->Add( _statusGauge, 0, wxALL|wxEXPAND, 5 );
_progressBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
_sdbSizer = new wxStdDialogButtonSizer();
_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
_sdbSizer->AddButton( _sdbSizerCancel );
_sdbSizer->Realize();
_progressBoxSizer->Add( _sdbSizer, 0, wxALIGN_CENTER|wxALL, 5 );
_progressBoxSizer->Add( 0, 0, 1, wxEXPAND, 5 );
this->SetSizer( _progressBoxSizer );
this->Layout();
this->Centre( wxBOTH );
}
ProgressDialog::~ProgressDialog()
{
}
AboutDialog::AboutDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) );
wxBoxSizer* _topBoxSizer;
_topBoxSizer = new wxBoxSizer( wxVERTICAL );
_bossaBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
_topBoxSizer->Add( _bossaBitmap, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
_titleStaticText = new wxStaticText( this, wxID_ANY, wxT("Basic Open Source SAM-BA Application"), wxDefaultPosition, wxDefaultSize, 0 );
_titleStaticText->Wrap( -1 );
_topBoxSizer->Add( _titleStaticText, 0, wxALL, 5 );
_versionStaticText = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
_versionStaticText->Wrap( -1 );
_topBoxSizer->Add( _versionStaticText, 0, wxALL, 5 );
_wxStaticText = new wxStaticText( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
_wxStaticText->Wrap( -1 );
_topBoxSizer->Add( _wxStaticText, 0, wxALL, 5 );
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
_topBoxSizer->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );
_shumatechBitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
_topBoxSizer->Add( _shumatechBitmap, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
_copyrightStaticText = new wxStaticText( this, wxID_ANY, wxT("(c) 2011-2012 ShumaTech. All rights reserved."), wxDefaultPosition, wxDefaultSize, 0 );
_copyrightStaticText->Wrap( -1 );
_topBoxSizer->Add( _copyrightStaticText, 0, wxALL, 5 );
_shumatechHyperlink = new wxHyperlinkCtrl( this, wxID_ANY, wxT("http://www.shumatech.com"), wxT("http://www.shumatech.com"), wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
_topBoxSizer->Add( _shumatechHyperlink, 0, wxALL, 5 );
m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
_topBoxSizer->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
m_disclaimerStaticText = new wxStaticText( this, wxID_ANY, wxT("This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."), wxDefaultPosition, wxDefaultSize, 0 );
m_disclaimerStaticText->Wrap( 280 );
_topBoxSizer->Add( m_disclaimerStaticText, 0, wxALL, 5 );
m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
_topBoxSizer->Add( m_staticline3, 0, wxEXPAND | wxALL, 5 );
_sdbSizer = new wxStdDialogButtonSizer();
_sdbSizerOK = new wxButton( this, wxID_OK );
_sdbSizer->AddButton( _sdbSizerOK );
_sdbSizer->Realize();
_topBoxSizer->Add( _sdbSizer, 1, wxALL|wxEXPAND, 10 );
this->SetSizer( _topBoxSizer );
this->Layout();
this->Centre( wxBOTH );
}
AboutDialog::~AboutDialog()
{
}
InfoDialog::InfoDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxDefaultSize, wxDefaultSize );
this->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_3DLIGHT ) );
wxBoxSizer* _topBoxSizer;
_topBoxSizer = new wxBoxSizer( wxVERTICAL );
wxBoxSizer* _deviceBoxSizer;
_deviceBoxSizer = new wxBoxSizer( wxHORIZONTAL );
_deviceStaticText = new wxStaticText( this, wxID_ANY, wxT("Device:"), wxDefaultPosition, wxDefaultSize, 0 );
_deviceStaticText->Wrap( -1 );
_deviceBoxSizer->Add( _deviceStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_deviceTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
_deviceBoxSizer->Add( _deviceTextCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_chipIdStaticText = new wxStaticText( this, wxID_ANY, wxT("Chip ID:"), wxDefaultPosition, wxDefaultSize, 0 );
_chipIdStaticText->Wrap( -1 );
_deviceBoxSizer->Add( _chipIdStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_chipIdTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
_deviceBoxSizer->Add( _chipIdTextCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_topBoxSizer->Add( _deviceBoxSizer, 0, wxALL|wxEXPAND, 5 );
wxBoxSizer* _versionBoxSizer;
_versionBoxSizer = new wxBoxSizer( wxHORIZONTAL );
_versionStaticText = new wxStaticText( this, wxID_ANY, wxT("Version:"), wxDefaultPosition, wxDefaultSize, 0 );
_versionStaticText->Wrap( -1 );
_versionBoxSizer->Add( _versionStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_versionTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
_versionBoxSizer->Add( _versionTextCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_topBoxSizer->Add( _versionBoxSizer, 0, wxALL|wxEXPAND, 5 );
wxBoxSizer* _middleBoxSizer;
_middleBoxSizer = new wxBoxSizer( wxHORIZONTAL );
wxStaticBoxSizer* _flashBoxSizer;
_flashBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Flash") ), wxVERTICAL );
wxFlexGridSizer* _flashGridSizer;
_flashGridSizer = new wxFlexGridSizer( 2, 2, 0, 0 );
_flashGridSizer->SetFlexibleDirection( wxBOTH );
_flashGridSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
_pagesStaticText = new wxStaticText( this, wxID_ANY, wxT("Pages:"), wxDefaultPosition, wxDefaultSize, 0 );
_pagesStaticText->Wrap( -1 );
_flashGridSizer->Add( _pagesStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_pagesTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
_flashGridSizer->Add( _pagesTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_pageSizeStaticText = new wxStaticText( this, wxID_ANY, wxT("Page Size:"), wxDefaultPosition, wxDefaultSize, 0 );
_pageSizeStaticText->Wrap( -1 );
_flashGridSizer->Add( _pageSizeStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_pageSizeTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
_flashGridSizer->Add( _pageSizeTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_totalSizeStaticText = new wxStaticText( this, wxID_ANY, wxT("Total Size:"), wxDefaultPosition, wxDefaultSize, 0 );
_totalSizeStaticText->Wrap( -1 );
_flashGridSizer->Add( _totalSizeStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_totalSizeTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
_flashGridSizer->Add( _totalSizeTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_planesStaticText = new wxStaticText( this, wxID_ANY, wxT("Planes:"), wxDefaultPosition, wxDefaultSize, 0 );
_planesStaticText->Wrap( -1 );
_flashGridSizer->Add( _planesStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_planesTextCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
_flashGridSizer->Add( _planesTextCtrl, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_flashBoxSizer->Add( _flashGridSizer, 1, wxEXPAND, 5 );
_middleBoxSizer->Add( _flashBoxSizer, 0, wxALL|wxEXPAND, 5 );
wxStaticBoxSizer* _optionsBoxSizer;
_optionsBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, wxT("Options") ), wxVERTICAL );
wxFlexGridSizer* _gpnvGridSizer;
_gpnvGridSizer = new wxFlexGridSizer( 2, 2, 0, 0 );
_gpnvGridSizer->SetFlexibleDirection( wxBOTH );
_gpnvGridSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
_bootCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Boot to flash"), wxDefaultPosition, wxDefaultSize, 0 );
_gpnvGridSizer->Add( _bootCheckBox, 0, wxALL, 5 );
_bodCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Brownout detect"), wxDefaultPosition, wxDefaultSize, 0 );
_gpnvGridSizer->Add( _bodCheckBox, 0, wxALL, 5 );
_securityCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Security"), wxDefaultPosition, wxDefaultSize, 0 );
_gpnvGridSizer->Add( _securityCheckBox, 0, wxALL, 5 );
_borCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Brownout reset"), wxDefaultPosition, wxDefaultSize, 0 );
_gpnvGridSizer->Add( _borCheckBox, 0, wxALL, 5 );
_lockStaticText = new wxStaticText( this, wxID_ANY, wxT("Lock Regions:"), wxDefaultPosition, wxDefaultSize, 0 );
_lockStaticText->Wrap( -1 );
_gpnvGridSizer->Add( _lockStaticText, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
_optionsBoxSizer->Add( _gpnvGridSizer, 0, wxEXPAND, 5 );
wxGridSizer* _lockGridSizer;
_lockGridSizer = new wxGridSizer( 8, 4, 0, 0 );
_lockCheckBox0 = new wxCheckBox( this, wxID_ANY, wxT("0"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox0, 0, 0, 5 );
_lockCheckBox1 = new wxCheckBox( this, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox1, 0, 0, 5 );
_lockCheckBox2 = new wxCheckBox( this, wxID_ANY, wxT("2"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox2, 0, 0, 5 );
_lockCheckBox3 = new wxCheckBox( this, wxID_ANY, wxT("3"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox3, 0, 0, 5 );
_lockCheckBox4 = new wxCheckBox( this, wxID_ANY, wxT("4"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox4, 0, 0, 5 );
_lockCheckBox5 = new wxCheckBox( this, wxID_ANY, wxT("5"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox5, 0, 0, 5 );
_lockCheckBox6 = new wxCheckBox( this, wxID_ANY, wxT("6"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox6, 0, 0, 5 );
_lockCheckBox7 = new wxCheckBox( this, wxID_ANY, wxT("7"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox7, 0, 0, 5 );
_lockCheckBox8 = new wxCheckBox( this, wxID_ANY, wxT("8"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox8, 0, 0, 5 );
_lockCheckBox9 = new wxCheckBox( this, wxID_ANY, wxT("9"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox9, 0, 0, 5 );
_lockCheckBox10 = new wxCheckBox( this, wxID_ANY, wxT("10"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox10, 0, 0, 5 );
_lockCheckBox11 = new wxCheckBox( this, wxID_ANY, wxT("11"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox11, 0, 0, 5 );
_lockCheckBox12 = new wxCheckBox( this, wxID_ANY, wxT("12"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox12, 0, 0, 5 );
_lockCheckBox13 = new wxCheckBox( this, wxID_ANY, wxT("13"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox13, 0, 0, 5 );
_lockCheckBox14 = new wxCheckBox( this, wxID_ANY, wxT("14"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox14, 0, 0, 5 );
_lockCheckBox15 = new wxCheckBox( this, wxID_ANY, wxT("15"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox15, 0, 0, 5 );
_lockCheckBox16 = new wxCheckBox( this, wxID_ANY, wxT("16"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox16, 0, 0, 5 );
_lockCheckBox17 = new wxCheckBox( this, wxID_ANY, wxT("17"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox17, 0, 0, 5 );
_lockCheckBox18 = new wxCheckBox( this, wxID_ANY, wxT("18"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox18, 0, 0, 5 );
_lockCheckBox19 = new wxCheckBox( this, wxID_ANY, wxT("19"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox19, 0, 0, 5 );
_lockCheckBox20 = new wxCheckBox( this, wxID_ANY, wxT("20"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox20, 0, 0, 5 );
_lockCheckBox21 = new wxCheckBox( this, wxID_ANY, wxT("21"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox21, 0, 0, 5 );
_lockCheckBox22 = new wxCheckBox( this, wxID_ANY, wxT("22"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox22, 0, 0, 5 );
_lockCheckBox23 = new wxCheckBox( this, wxID_ANY, wxT("23"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox23, 0, 0, 5 );
_lockCheckBox24 = new wxCheckBox( this, wxID_ANY, wxT("24"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox24, 0, 0, 5 );
_lockCheckBox25 = new wxCheckBox( this, wxID_ANY, wxT("25"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox25, 0, 0, 5 );
_lockCheckBox26 = new wxCheckBox( this, wxID_ANY, wxT("26"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox26, 0, 0, 5 );
_lockCheckBox27 = new wxCheckBox( this, wxID_ANY, wxT("27"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox27, 0, 0, 5 );
_lockCheckBox28 = new wxCheckBox( this, wxID_ANY, wxT("28"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox28, 0, 0, 5 );
_lockCheckBox29 = new wxCheckBox( this, wxID_ANY, wxT("29"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox29, 0, 0, 5 );
_lockCheckBox30 = new wxCheckBox( this, wxID_ANY, wxT("30"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox30, 0, 0, 5 );
_lockCheckBox31 = new wxCheckBox( this, wxID_ANY, wxT("31"), wxDefaultPosition, wxDefaultSize, 0 );
_lockGridSizer->Add( _lockCheckBox31, 0, 0, 5 );
_optionsBoxSizer->Add( _lockGridSizer, 1, wxALL|wxEXPAND, 5 );
_middleBoxSizer->Add( _optionsBoxSizer, 0, wxALL|wxEXPAND, 5 );
_topBoxSizer->Add( _middleBoxSizer, 0, wxEXPAND, 5 );
_sdbSizer = new wxStdDialogButtonSizer();
_sdbSizerOK = new wxButton( this, wxID_OK );
_sdbSizer->AddButton( _sdbSizerOK );
_sdbSizer->Realize();
_topBoxSizer->Add( _sdbSizer, 1, wxALL|wxEXPAND, 10 );
this->SetSizer( _topBoxSizer );
this->Layout();
_topBoxSizer->Fit( this );
this->Centre( wxBOTH );
}
InfoDialog::~InfoDialog()
{
}