35 #include <wx/statline.h>
36 #include <wx/listctrl.h>
73 createContents(
this,
true,
true);
75 simulator_ = wxGetApp().simulation()->frontend();
77 unitChoice_ =
dynamic_cast<wxChoice*
>(
FindWindow(ID_UNIT_CHOICE));
78 modeChoice_ =
dynamic_cast<wxChoice*
>(
FindWindow(ID_MODE_CHOICE));
79 valueList_ =
dynamic_cast<wxListCtrl*
>(
FindWindow(ID_VALUE_LIST));
81 modeChoice_->Append(MODE_INT);
82 modeChoice_->Append(MODE_UNSIGNED);
83 modeChoice_->Append(MODE_HEX);
84 modeChoice_->Append(MODE_BIN);
85 modeChoice_->SetSelection(0);
150 wxFrame* parent =
dynamic_cast<wxFrame*
>(GetParent());
151 if (parent != NULL) {
170 wxWindow* parent,
bool call_fit,
bool set_sizer) {
172 wxFlexGridSizer *item0 =
new wxFlexGridSizer( 1, 0, 0 );
173 item0->AddGrowableCol( 0 );
174 item0->AddGrowableRow( 2 );
176 wxGridSizer *item1 =
new wxGridSizer( 2, 0, 0 );
178 wxString *strs2 = (wxString*) NULL;
179 wxChoice *item2 =
new wxChoice( parent,
ID_UNIT_CHOICE, wxDefaultPosition, wxSize(120,-1), 0, strs2, 0 );
180 item1->Add( item2, 0, wxGROW|wxALL, 5 );
182 wxString *strs3 = (wxString*) NULL;
183 wxChoice *item3 =
new wxChoice( parent,
ID_MODE_CHOICE, wxDefaultPosition, wxSize(120,-1), 0, strs3, 0 );
184 item1->Add( item3, 0, wxGROW|wxALL, 5 );
186 item0->Add( item1, 0, wxGROW|wxALL, 5 );
188 wxStaticLine *item4 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
189 item0->Add( item4, 0, wxGROW|wxALL, 5 );
191 wxListCtrl *item5 =
new wxListCtrl( parent,
ID_VALUE_LIST, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxSUNKEN_BORDER );
192 item0->Add( item5, 0, wxGROW|wxALL, 5 );
194 wxStaticLine *item6 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
195 item0->Add( item6, 0, wxGROW|wxALL, 5 );
197 wxGridSizer *item7 =
new wxGridSizer( 2, 0, 0 );
199 wxButton *item8 =
new wxButton( parent,
ID_HELP, wxT(
"&Help"), wxDefaultPosition, wxDefaultSize, 0 );
200 item7->Add( item8, 0, wxALIGN_CENTER_VERTICAL, 5 );
202 wxButton *item9 =
new wxButton( parent,
ID_CLOSE, wxT(
"&Close"), wxDefaultPosition, wxDefaultSize, 0 );
203 item7->Add( item9, 0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL, 5 );
205 item0->Add( item7, 0, wxGROW|wxALL, 5 );
209 parent->SetSizer( item0 );
211 item0->SetSizeHints( parent );