Creates the dialog contents.
Creates the dialog contents.
131 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
133 wxBoxSizer *item1 =
new wxBoxSizer( wxHORIZONTAL );
135 wxFlexGridSizer *item2 =
new wxFlexGridSizer( 2, 0, 0 );
137 wxStaticText *item3 =
new wxStaticText( parent,
ID_LABEL_NAME, wxT(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
138 item2->Add( item3, 0, wxALL, 5 );
140 wxTextCtrl *item4 =
new wxTextCtrl( parent,
ID_NAME, wxT(
""), wxDefaultPosition, wxSize(200,-1), 0 );
141 item2->Add( item4, 0, wxALIGN_CENTER|wxALL, 5 );
143 wxStaticText *item5 =
new wxStaticText( parent,
ID_LABEL_LOAD_PORT, wxT(
"Load port:"), wxDefaultPosition, wxDefaultSize, 0 );
144 item2->Add( item5, 0, wxALL, 5 );
146 wxTextCtrl *item6 =
new wxTextCtrl( parent,
ID_LOAD_PORT, wxT(
""), wxDefaultPosition, wxSize(200,-1), 0 );
147 item2->Add( item6, 0, wxGROW|wxALL, 5 );
149 wxStaticText *item7 =
new wxStaticText( parent,
ID_LABEL_OPCODE_PORT, wxT(
"Opcode port:"), wxDefaultPosition, wxDefaultSize, 0 );
150 item2->Add( item7, 0, wxALL, 5 );
152 wxTextCtrl *item8 =
new wxTextCtrl( parent,
ID_OPCODE_PORT, wxT(
""), wxDefaultPosition, wxSize(200,-1), 0 );
153 item2->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
155 wxStaticText *item9 =
new wxStaticText( parent,
ID_LABEL_OPCODE_PORT_WIDTH, wxT(
"Opcode port width formula:"), wxDefaultPosition, wxDefaultSize, 0 );
156 item2->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
158 wxTextCtrl *item10 =
new wxTextCtrl( parent,
ID_OPCODE_PORT_WIDTH, wxT(
""), wxDefaultPosition, wxSize(80,-1), 0 );
159 item2->Add( item10, 0, wxGROW|wxALL, 5 );
161 item1->Add( item2, 0, wxGROW|wxALL, 5 );
169 wxRadioBox *item11 =
new wxRadioBox( parent,
ID_DIRECTION, wxT(
"Direction:"), wxDefaultPosition, wxDefaultSize, 3, strs11, 1, wxRA_SPECIFY_COLS );
170 item1->Add( item11, 0, wxGROW|wxALL, 5 );
172 item0->Add( item1, 0, wxALIGN_CENTER|wxALL, 5 );
174 wxStaticLine *item12 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
175 item0->Add( item12, 0, wxGROW|wxALL, 5 );
177 wxBoxSizer *item13 =
new wxBoxSizer( wxHORIZONTAL );
179 wxButton *item14 =
new wxButton( parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
180 item13->Add( item14, 0, wxALIGN_CENTER|wxALL, 5 );
182 wxButton *item15 =
new wxButton( parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
183 item13->Add( item15, 0, wxALIGN_CENTER|wxALL, 5 );
185 item0->Add( item13, 0, wxALL, 5 );
189 parent->SetSizer( item0 );
191 item0->SetSizeHints( parent );