418 wxWindow *parent,
bool call_fit,
bool set_sizer) {
420 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
422 wxBoxSizer *item1 =
new wxBoxSizer( wxHORIZONTAL );
424 wxStaticBox *item3 =
new wxStaticBox( parent, -1, wxT(
"Instruction OTAFormats:") );
425 wxStaticBoxSizer *item2 =
new wxStaticBoxSizer( item3, wxVERTICAL );
428 wxListCtrl *item4 =
new wxListCtrl( parent,
ID_OTA_FORMAT_LIST, wxDefaultPosition, wxSize(160,200), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
429 item2->Add( item4, 0, wxGROW|wxALL, 5 );
431 wxBoxSizer *item5 =
new wxBoxSizer( wxHORIZONTAL );
433 wxStaticText *item6 =
new wxStaticText( parent,
ID_LABEL_NAME, wxT(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
434 item5->Add( item6, 0, wxALIGN_CENTER|wxALL, 5 );
436 wxTextCtrl *item7 =
new wxTextCtrl( parent,
ID_NAME, wxT(
""), wxDefaultPosition, wxSize(120,-1), 0 );
437 item5->Add( item7, 0, wxALIGN_CENTER|wxALL, 5 );
439 item2->Add( item5, 0, wxGROW|wxALL, 5 );
441 wxBoxSizer *item8 =
new wxBoxSizer( wxHORIZONTAL );
443 wxButton *item9 =
new wxButton( parent,
ID_ADD_OTA_FORMAT, wxT(
"Add"), wxDefaultPosition, wxDefaultSize, 0 );
444 item8->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
446 wxButton *item10 =
new wxButton( parent,
ID_DELETE_OTA_FORMAT, wxT(
"Delete"), wxDefaultPosition, wxDefaultSize, 0 );
447 item8->Add( item10, 0, wxALIGN_CENTER|wxALL, 5 );
449 item2->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
451 item1->Add( item2, 0, wxGROW|wxALL, 5 );
453 wxStaticBox *item12 =
new wxStaticBox( parent, -1, wxT(
"OTAFormat Operations:") );
454 wxStaticBoxSizer *item11 =
new wxStaticBoxSizer( item12, wxVERTICAL );
457 wxListCtrl *item13 =
new wxListCtrl( parent,
ID_OPERATION_LIST, wxDefaultPosition, wxSize(250,245), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
458 item11->Add( item13, 0, wxGROW|wxALL, 5 );
460 wxBoxSizer *item14 =
new wxBoxSizer( wxHORIZONTAL );
462 wxButton *item15 =
new wxButton( parent,
ID_ADD_OPERATION, wxT(
"Add..."), wxDefaultPosition, wxDefaultSize, 0 );
463 item14->Add( item15, 0, wxALIGN_CENTER|wxALL, 5 );
465 wxButton *item17 =
new wxButton( parent,
ID_DELETE_OPERATION, wxT(
"Delete"), wxDefaultPosition, wxDefaultSize, 0 );
466 item14->Add( item17, 0, wxALIGN_CENTER|wxALL, 5 );
468 item11->Add( item14, 0, wxALIGN_CENTER|wxALL, 5 );
470 item1->Add( item11, 0, wxGROW|wxALL, 5 );
472 item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
474 wxStaticLine *item18 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
475 item0->Add( item18, 0, wxGROW|wxALL, 5 );
477 wxGridSizer *item19 =
new wxGridSizer( 2, 0, 0 );
479 wxButton *item20 =
new wxButton( parent,
ID_HELP, wxT(
"&Help"), wxDefaultPosition, wxDefaultSize, 0 );
480 item19->Add( item20, 0, wxALL, 5 );
482 wxBoxSizer *item21 =
new wxBoxSizer( wxHORIZONTAL );
484 wxButton *item22 =
new wxButton( parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
485 item21->Add( item22, 0, wxALIGN_CENTER|wxALL, 5 );
487 wxButton *item23 =
new wxButton( parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
488 item21->Add( item23, 0, wxALIGN_CENTER|wxALL, 5 );
490 item19->Add( item21, 0, wxALL, 5 );
492 item0->Add( item19, 0, wxGROW, 5 );
496 parent->SetSizer( item0 );
498 item0->SetSizeHints( parent );