178 wxWindow *parent,
bool call_fit,
bool set_sizer) {
180 wxFlexGridSizer *item0 =
new wxFlexGridSizer( 1, 0, 0 );
181 item0->AddGrowableCol( 0 );
182 item0->AddGrowableRow( 0 );
184 wxString *strs1 = (wxString*) NULL;
185 wxListBox *item1 =
new wxListBox( parent,
ID_LIST, wxDefaultPosition, wxSize(300,300), 0, strs1, wxLB_SINGLE );
186 item0->Add( item1, 0, wxGROW|wxALL, 5 );
188 wxStaticLine *item2 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(20,-1), wxLI_HORIZONTAL );
189 item0->Add( item2, 0, wxGROW|wxALL, 5 );
191 wxBoxSizer *item3 =
new wxBoxSizer( wxHORIZONTAL );
193 wxButton *item4 =
new wxButton( parent,
ID_SAVE, wxT(
"&Save"), wxDefaultPosition, wxDefaultSize, 0 );
194 item3->Add( item4, 0, wxALIGN_CENTER|wxALL, 5 );
196 wxStaticLine *item5 =
new wxStaticLine( parent,
ID_LINE, wxDefaultPosition, wxSize(-1,20), wxLI_VERTICAL );
197 item3->Add( item5, 0, wxGROW|wxALL, 5 );
199 wxButton *item6 =
new wxButton( parent,
ID_CLOSE, wxT(
"&Close"), wxDefaultPosition, wxDefaultSize, 0 );
200 item3->Add( item6, 0, wxALIGN_CENTER|wxALL, 5 );
202 item0->Add( item3, 0, wxALIGN_CENTER|wxALL, 5 );
206 parent->SetSizer( item0 );
208 item0->SetSizeHints( parent );
void onCommandDClick(wxCommandEvent &event)
wxSizer * createContents(wxWindow *parent, bool set_sizer, bool call_fit)
wxListBox * cmdList_
ListBox widget displaying the command history.
void onSave(wxCommandEvent &event)
virtual ~ProximCmdHistoryWindow()
ProximLineReader & lineReader_
Line reader storing the command history.
void onClose(wxCommandEvent &event)
void onSimulatorCommand(SimulatorEvent &event)