1180 wxFlexGridSizer *item0 =
new wxFlexGridSizer( 2, 0, 0 );
1182 wxBoxSizer *item1 =
new wxBoxSizer( wxVERTICAL );
1184 wxStaticBox *item3 =
new wxStaticBox( parent, -1, wxT(
"Bus:") );
1185 wxStaticBoxSizer *item2 =
new wxStaticBoxSizer( item3, wxVERTICAL );
1188 wxBoxSizer *item4 =
new wxBoxSizer( wxHORIZONTAL );
1190 wxStaticText *item5 =
new wxStaticText( parent,
ID_LABEL_BUS_NAME, wxT(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
1191 item4->Add( item5, 0, wxALIGN_CENTER|wxALL, 5 );
1193 wxTextCtrl *item6 =
new wxTextCtrl( parent,
ID_BUS_NAME, wxT(
""), wxDefaultPosition, wxSize(200,-1), 0 );
1194 item4->Add( item6, 0, wxALIGN_CENTER|wxALL, 5 );
1196 item2->Add( item4, 0, wxGROW|wxALL, 5 );
1198 wxBoxSizer *item7 =
new wxBoxSizer( wxHORIZONTAL );
1200 wxStaticText *item8 =
new wxStaticText( parent,
ID_LABEL_BUS_WIDTH, wxT(
"Width:"), wxDefaultPosition, wxDefaultSize, 0 );
1201 item7->Add( item8, 0, wxALIGN_CENTER|wxALL, 5 );
1203 wxSpinCtrl *item9 =
new wxSpinCtrl( parent,
ID_BUS_WIDTH, wxT(
"1"), wxDefaultPosition, wxSize(-1,-1), 0, 1, 1024, 1 );
1204 item7->Add( item9, 0, wxALIGN_CENTER|wxALL, 5 );
1206 item2->Add( item7, 0, wxGROW|wxALL, 5 );
1208 item0->Add( item2, 0, wxGROW|wxALL, 5 );
1211 wxStaticBox *item11 =
new wxStaticBox( parent, -1, wxT(
"Short Immediate:") );
1212 wxStaticBoxSizer *item10 =
new wxStaticBoxSizer( item11, wxVERTICAL );
1215 wxBoxSizer *item12 =
new wxBoxSizer( wxHORIZONTAL );
1217 wxStaticText *item13 =
new wxStaticText( parent,
ID_LABEL_SI_WIDTH, wxT(
"Width:"), wxDefaultPosition, wxDefaultSize, 0 );
1218 item12->Add( item13, 0, wxALIGN_CENTER|wxALL, 5 );
1220 wxSpinCtrl *item14 =
new wxSpinCtrl( parent,
ID_SI_WIDTH, wxT(
"0"), wxDefaultPosition, wxSize(-1,-1), 0, 0, 1000, 0 );
1221 item12->Add( item14, 0, wxALIGN_CENTER|wxALL, 5 );
1223 item10->Add( item12, 0, wxGROW|wxALL, 5 );
1230 wxRadioBox *item15 =
new wxRadioBox( parent,
ID_SI_EXTENSION, wxT(
"Extension"), wxDefaultPosition, wxDefaultSize, 2, strs15, 1, wxRA_SPECIFY_ROWS );
1231 item10->Add( item15, 0, wxALL, 5 );
1233 item0->Add( item10, 0, wxGROW|wxALL, 5 );
1236 wxCheckBox *item16 =
new wxCheckBox( parent,
ID_TRUE_GUARD, wxT(
"Always true guard"), wxDefaultPosition, wxDefaultSize, 0 );
1237 item1->Add( item16, 0, wxALL, 5 );
1239 wxCheckBox *item17 =
new wxCheckBox( parent,
ID_FALSE_GUARD, wxT(
"Always false guard"), wxDefaultPosition, wxDefaultSize, 0 );
1240 item1->Add( item17, 0, wxALL, 5 );
1242 item0->Add( item1, 0, wxGROW|wxALL, 5 );
1244 wxStaticBox *item19 =
new wxStaticBox( parent, -1, wxT(
"Segements:") );
1245 wxStaticBoxSizer *item18 =
new wxStaticBoxSizer( item19, wxVERTICAL );
1248 wxListCtrl *item20 =
new wxListCtrl( parent,
ID_SEGMENT_LIST, wxDefaultPosition, wxSize(300,160), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
1249 item18->Add( item20, 0, wxALIGN_CENTER|wxALL, 5 );
1251 wxBoxSizer *item21 =
new wxBoxSizer( wxHORIZONTAL );
1253 wxStaticText *item22 =
new wxStaticText( parent,
ID_LABEL_SEGMENT_NAME, wxT(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
1254 item21->Add( item22, 0, wxALIGN_CENTER|wxALL, 5 );
1256 wxTextCtrl *item23 =
new wxTextCtrl( parent,
ID_SEGMENT_NAME, wxT(
""), wxDefaultPosition, wxSize(100,-1), 0 );
1257 item21->Add( item23, 0, wxALIGN_CENTER|wxALL, 5 );
1259 wxBoxSizer *item24 =
new wxBoxSizer( wxHORIZONTAL );
1261 wxButton *item25 =
new wxButton( parent,
ID_SEGMENT_UP, wxT(
"Up"), wxDefaultPosition, wxSize(40,-1), 0 );
1262 item24->Add( item25, 0, wxALIGN_CENTER|wxALL, 5 );
1264 wxButton *item26 =
new wxButton( parent,
ID_SEGMENT_DOWN, wxT(
"Down"), wxDefaultPosition, wxSize(50,-1), 0 );
1265 item24->Add( item26, 0, wxALIGN_CENTER|wxALL, 5 );
1267 item21->Add( item24, 0, wxALL, 5 );
1269 item18->Add( item21, 0, wxGROW|wxALL, 5 );
1271 wxBoxSizer *item27 =
new wxBoxSizer( wxHORIZONTAL );
1273 wxButton *item28 =
new wxButton( parent,
ID_ADD_SEGMENT, wxT(
"Add"), wxDefaultPosition, wxDefaultSize, 0 );
1274 item27->Add( item28, 0, wxALIGN_CENTER|wxALL, 5 );
1276 item27->Add( 20, 20, 0, wxALIGN_CENTER|wxALL, 5 );
1278 wxButton *item29 =
new wxButton( parent,
ID_DELETE_SEGMENT, wxT(
"Delete"), wxDefaultPosition, wxDefaultSize, 0 );
1279 item27->Add( item29, 0, wxALIGN_CENTER|wxALL, 5 );
1281 item18->Add( item27, 0, wxALIGN_CENTER|wxALL, 5 );
1283 item0->Add( item18, 0, wxALL, 5 );
1285 wxStaticBox *item31 =
new wxStaticBox( parent, -1, wxT(
"Register File Guards:") );
1286 wxStaticBoxSizer *item30 =
new wxStaticBoxSizer( item31, wxVERTICAL );
1289 wxListCtrl *item32 =
new wxListCtrl( parent,
ID_RF_GUARD_LIST, wxDefaultPosition, wxSize(300,120), wxLC_REPORT|wxSUNKEN_BORDER );
1290 item30->Add( item32, 0, wxALIGN_CENTER|wxALL, 5 );
1292 wxBoxSizer *item33 =
new wxBoxSizer( wxHORIZONTAL );
1294 wxButton *item34 =
new wxButton( parent,
ID_ADD_RF_GUARD, wxT(
"Add..."), wxDefaultPosition, wxDefaultSize, 0 );
1295 item33->Add( item34, 0, wxALIGN_CENTER|wxALL, 5 );
1297 wxButton *item35 =
new wxButton( parent,
ID_EDIT_RF_GUARD, wxT(
"Edit..."), wxDefaultPosition, wxDefaultSize, 0 );
1298 item35->Enable(
false );
1299 item33->Add( item35, 0, wxALIGN_CENTER|wxALL, 5 );
1301 wxButton *item36 =
new wxButton( parent,
ID_DELETE_RF_GUARD, wxT(
"Delete"), wxDefaultPosition, wxDefaultSize, 0 );
1302 item36->Enable(
false );
1303 item33->Add( item36, 0, wxALIGN_CENTER|wxALL, 5 );
1305 item30->Add( item33, 0, wxALIGN_CENTER|wxALL, 5 );
1307 item0->Add( item30, 0, wxGROW|wxALL, 5 );
1309 wxStaticBox *item38 =
new wxStaticBox( parent, -1, wxT(
"Function Unit Guards") );
1310 wxStaticBoxSizer *item37 =
new wxStaticBoxSizer( item38, wxVERTICAL );
1313 wxListCtrl *item39 =
new wxListCtrl( parent,
ID_FU_GUARD_LIST, wxDefaultPosition, wxSize(300,120), wxLC_REPORT|wxLC_SINGLE_SEL|wxSUNKEN_BORDER );
1314 item37->Add( item39, 0, wxALIGN_CENTER|wxALL, 5 );
1316 wxBoxSizer *item40 =
new wxBoxSizer( wxHORIZONTAL );
1318 wxButton *item41 =
new wxButton( parent,
ID_ADD_FU_GUARD, wxT(
"Add..."), wxDefaultPosition, wxDefaultSize, 0 );
1319 item40->Add( item41, 0, wxALIGN_CENTER|wxALL, 5 );
1321 wxButton *item42 =
new wxButton( parent,
ID_EDIT_FU_GUARD, wxT(
"Edit..."), wxDefaultPosition, wxDefaultSize, 0 );
1322 item42->Enable(
false );
1323 item40->Add( item42, 0, wxALIGN_CENTER|wxALL, 5 );
1325 wxButton *item43 =
new wxButton( parent,
ID_DELETE_FU_GUARD, wxT(
"Delete"), wxDefaultPosition, wxDefaultSize, 0 );
1326 item43->Enable(
false );
1327 item40->Add( item43, 0, wxALIGN_CENTER|wxALL, 5 );
1329 item37->Add( item40, 0, wxALIGN_CENTER|wxALL, 5 );
1331 item0->Add( item37, 0, wxGROW|wxALL, 5 );
1333 wxButton *item44 =
new wxButton( parent,
ID_HELP, wxT(
"&Help"), wxDefaultPosition, wxDefaultSize, 0 );
1334 item0->Add( item44, 0, wxALL, 5 );
1336 wxBoxSizer *item45 =
new wxBoxSizer( wxHORIZONTAL );
1338 wxButton *item46 =
new wxButton( parent, wxID_OK, wxT(
"&OK"), wxDefaultPosition, wxDefaultSize, 0 );
1339 item45->Add( item46, 0, wxALIGN_CENTER|wxALL, 5 );
1341 wxButton *item47 =
new wxButton( parent, wxID_CANCEL, wxT(
"&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
1342 item45->Add( item47, 0, wxALIGN_CENTER|wxALL, 5 );
1344 item0->Add( item45, 0, wxALL, 5 );
1348 parent->SetSizer( item0 );
1350 item0->SetSizeHints( parent );