33#include <boost/format.hpp>
58 wxDialog(parent, -1, _T(
""),
60 wxSize(400, 150), wxRESIZE_BORDER), context_(context) {
67 infoList_->InsertColumn(0, _T(
""), wxLIST_FORMAT_LEFT,
69 infoList_->InsertColumn(1, _T(
""), wxLIST_FORMAT_LEFT,
123 return wxWindow::TransferDataToWindow();
197 wxBoxSizer *item0 =
new wxBoxSizer( wxVERTICAL );
199 wxListCtrl *item1 =
new wxListCtrl( parent,
ID_LISTCTRL, wxDefaultPosition, wxSize(160,120), wxLC_REPORT|wxLC_NO_HEADER|wxSUNKEN_BORDER );
200 item0->Add( item1, 1, wxGROW|wxALL, 5 );
204 parent->SetSizer( item0 );
206 item0->SetSizeHints( parent );
static void setPosition(Dialogs dialog, wxPoint point)
@ DIALOG_SIMULATION_INFO
Simulation info dialog.
static SimValue & instance()
static const int DEFAULT_COLUMN_WIDTH
Default column width.
static OSEdTextGenerator & instance()
@ TXT_LABEL_SYS_CALL_NUMBER
Sys call number label.
@ TXT_LABEL_RA
Return address label.
@ TXT_LABEL_PC
Program counter label.
@ TXT_LABEL_SYS_CALL_HANDLER
Sys call handler label.
@ TXT_SIMULATION_INFO_DIALOG_TITLE
Simulation info dialog title.
SimValue & returnAddress()
InstructionAddress & programCounter()
UIntWord uIntWordValue() const
std::string formattedValue(SimValue *value)
OperationContext * context_
Operation context for retrieving simulation data.
SimulationInfoDialog(wxWindow *parent, OperationContext *context)
wxListCtrl * infoList_
List for showing simulation statistics.
virtual ~SimulationInfoDialog()
virtual void handleEvent(OSEdInformer::EventId id)
wxSizer * createContents(wxWindow *parent, bool call_fit, bool set_sizer)
SimulateDialog * parent_
Parent window.
virtual bool TransferDataToWindow()
virtual boost::format text(int textId)
static wxString toWxString(const std::string &source)