495 wxWindow *parent,
bool call_fit,
bool set_sizer) {
497 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
499 wxFlexGridSizer *item1 =
new wxFlexGridSizer( 2, 0, 0 );
501 wxStaticBox *item3 =
new wxStaticBox( parent, -1, wxT(
"Name:") );
502 wxStaticBoxSizer *item2 =
new wxStaticBoxSizer( item3, wxVERTICAL );
505 wxTextCtrl *item4 =
new wxTextCtrl(parent,
ID_NAME, wxT(
""), wxDefaultPosition, wxSize(160,-1), 0);
506 item2->Add( item4, 0, wxGROW|wxALL, 5 );
508 item1->Add( item2, 0, wxGROW|wxALL, 5 );
510 wxStaticBox *item6 =
new wxStaticBox( parent, -1, wxT(
"Min-Address") );
511 wxStaticBoxSizer *item5 =
new wxStaticBoxSizer( item6, wxVERTICAL );
516 item5->Add( item7, 0, wxALIGN_CENTER|wxALL, 5 );
518 item1->Add( item5, 0, wxGROW|wxALL, 5 );
520 wxStaticBox *item9 =
new wxStaticBox( parent, -1, wxT(
"Width:") );
521 wxStaticBoxSizer *item8 =
new wxStaticBoxSizer( item9, wxVERTICAL );
524 wxSpinCtrl *item10 =
new wxSpinCtrl(parent,
ID_WIDTH, wxT(
"1"), wxDefaultPosition, wxSize(-1,-1), 0, 1, 10000, 1, wxT(
"Spin"));
525 item8->Add( item10, 0, wxGROW|wxALL, 5 );
527 item1->Add( item8, 0, wxGROW|wxALL, 5 );
529 wxStaticBox *item12 =
new wxStaticBox( parent, -1, wxT(
"Max-Address") );
530 wxStaticBoxSizer *item11 =
new wxStaticBoxSizer( item12, wxVERTICAL );
535 item11->Add( item13, 0, wxALIGN_CENTER|wxALL, 5 );
537 wxBoxSizer *bitSizer =
new wxBoxSizer(wxHORIZONTAL);
539 wxStaticText *bitText =
new wxStaticText(parent, -1, wxT(
"Bits:"));
540 bitSizer->Add( bitText, 0, wxGROW|wxALL, 5 );
542 wxSpinCtrl *bitWidth =
new wxSpinCtrl( parent,
ID_BIT_WIDTH, wxT(
"1"), wxDefaultPosition, wxSize(-1,-1), 0, 1, 10000, 1);
543 bitSizer->Add( bitWidth, 0, wxGROW|wxALL, 5 );
545 item11->Add( bitSizer, 0, wxGROW|wxALL, 5 );
547 item1->Add( item11, 0, wxGROW|wxALL, 5 );
550 wxStaticBox *itemIdBox =
new wxStaticBox(parent, -1, wxT(
"ID number:"));
551 wxStaticBoxSizer *itemIdSizer =
new wxStaticBoxSizer(itemIdBox,
555 wxListCtrl *itemIdListCtrl =
new wxListCtrl( parent,
ID_ID_LIST,
558 wxLC_REPORT|wxSUNKEN_BORDER );
559 idSizer_->Add( itemIdListCtrl, 0, wxALIGN_CENTER|wxALL, 5 );
563 wxBoxSizer *sizerOnRight =
new wxBoxSizer(wxVERTICAL);
565 wxSpinCtrl *itemIdSpinCtrl =
new wxSpinCtrl( parent,
ID_SPIN_ID, wxT(
"0"), wxDefaultPosition, wxSize(-1,-1), 0, 0, 2147483647, 1, wxT(
"Spin") );
566 sizerOnRight->Add( itemIdSpinCtrl, 0, wxGROW|wxALL, 5 );
569 wxButton *addButton =
new wxButton( parent,
ID_ADD_ID, wxT(
"Add"), wxDefaultPosition, wxDefaultSize, 0 );
570 sizerOnRight->Add( addButton, 0, wxALIGN_CENTER|wxALL, 5 );
572 wxButton *deleteButton =
new wxButton( parent,
ID_DELETE_ID, wxT(
"Delete"), wxDefaultPosition, wxDefaultSize, 0 );
573 sizerOnRight->Add( deleteButton, 0, wxALIGN_CENTER|wxALL, 5 );
575 idSizer_->Add( sizerOnRight, 0, wxALIGN_CENTER|wxALL, 5 );
576 item1->Add(
idSizer_, 0, wxGROW|wxALL, 5 );
583 item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
585 wxStaticLine *item14 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
586 item0->Add( item14, 0, wxGROW|wxALL, 5 );
588 wxGridSizer *item15 =
new wxGridSizer( 2, 0, 0 );
590 wxButton *item16 =
new wxButton( parent,
ID_HELP, wxT(
"&Help"), wxDefaultPosition, wxDefaultSize, 0 );
591 item15->Add( item16, 0, wxALL, 5 );
593 wxBoxSizer *item17 =
new wxBoxSizer( wxHORIZONTAL );
595 wxButton *item18 =
new wxButton( parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
596 item17->Add( item18, 0, wxALIGN_CENTER, 5 );
598 wxButton *item19 =
new wxButton( parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
599 item17->Add( item19, 0, wxALIGN_CENTER|wxALL, 5 );
601 item15->Add( item17, 0, wxALL, 5 );
603 item0->Add( item15, 0, wxGROW, 5 );
607 parent->SetSizer( item0 );
609 item0->SetSizeHints( parent );