568 wxWindow *parent,
bool call_fit,
bool set_sizer) {
570 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
572 wxGridSizer *item1 =
new wxGridSizer( 2, 0, 0 );
574 wxBoxSizer *item2 =
new wxBoxSizer( wxHORIZONTAL );
576 wxStaticText *item3 =
new wxStaticText( parent,
ID_LABEL_NAME, wxT(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
577 item2->Add( item3, 0, wxALIGN_CENTER|wxALL, 5 );
579 wxTextCtrl *item4 =
new wxTextCtrl( parent,
ID_NAME, wxT(
""), wxDefaultPosition, wxSize(120,-1), 0 );
580 item2->Add( item4, 0, wxALIGN_CENTER|wxALL, 5 );
582 item1->Add( item2, 0, wxGROW|wxALL, 5 );
589 wxRadioBox *item5 =
new wxRadioBox( parent,
ID_DIRECTION, wxT(
"Direction:"), wxDefaultPosition, wxDefaultSize, 2, strs5, 1, wxRA_SPECIFY_COLS );
590 item1->Add( item5, 0, wxGROW|wxALL, 5 );
592 item0->Add( item1, 0, wxGROW|wxALL, 5 );
594 wxBoxSizer *item6 =
new wxBoxSizer( wxHORIZONTAL );
596 wxStaticBox *item8 =
new wxStaticBox( parent, -1, wxT(
"Attached buses:") );
597 wxStaticBoxSizer *item7 =
new wxStaticBoxSizer( item8, wxVERTICAL );
600 wxListCtrl *item9 =
new wxListCtrl( parent,
ID_ATTACHED_LIST, wxDefaultPosition, wxSize(200,120), wxLC_REPORT|wxSUNKEN_BORDER );
601 item7->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
603 item6->Add( item7, 0, wxALIGN_CENTER|wxALL, 5 );
605 wxBoxSizer *item10 =
new wxBoxSizer( wxVERTICAL );
607 wxButton *item11 =
new wxButton( parent,
ID_ATTACH, wxT(
"&Attach"), wxDefaultPosition, wxDefaultSize, 0 );
608 item10->Add( item11, 0, wxALIGN_CENTER|wxALL, 5 );
610 wxButton *item12 =
new wxButton( parent,
ID_DETACH, wxT(
"&Detach"), wxDefaultPosition, wxDefaultSize, 0 );
611 item10->Add( item12, 0, wxALIGN_CENTER|wxALL, 5 );
613 item6->Add( item10, 0, wxALIGN_CENTER|wxALL, 5 );
615 wxStaticBox *item14 =
new wxStaticBox( parent, -1, wxT(
"Detached buses:") );
616 wxStaticBoxSizer *item13 =
new wxStaticBoxSizer( item14, wxVERTICAL );
619 wxListCtrl *item15 =
new wxListCtrl( parent,
ID_DETACHED_LIST, wxDefaultPosition, wxSize(200,120), wxLC_REPORT|wxSUNKEN_BORDER );
620 item13->Add( item15, 0, wxALIGN_CENTER|wxALL, 5 );
622 item6->Add( item13, 0, wxALIGN_CENTER|wxALL, 5 );
624 item0->Add( item6, 0, wxALIGN_CENTER, 5 );
626 wxStaticLine *item16 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
627 item0->Add( item16, 0, wxGROW|wxALL, 5 );
629 wxGridSizer *item17 =
new wxGridSizer( 2, 0, 0 );
631 wxButton *item18 =
new wxButton( parent,
ID_HELP, wxT(
"&Help"), wxDefaultPosition, wxDefaultSize, 0 );
632 item17->Add( item18, 0, wxALL, 5 );
634 wxBoxSizer *item19 =
new wxBoxSizer( wxHORIZONTAL );
636 wxButton *item20 =
new wxButton( parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
637 item19->Add( item20, 0, wxALIGN_CENTER|wxALL, 5 );
639 wxButton *item21 =
new wxButton( parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
640 item19->Add( item21, 0, wxALIGN_CENTER|wxALL, 5 );
642 item17->Add( item19, 0, wxALL, 5 );
644 item0->Add( item17, 0, wxGROW|wxALL, 5 );
648 parent->SetSizer( item0 );
650 item0->SetSizeHints( parent );