| 77 | END_EVENT_TABLE() |
| 78 | |
| 79 | CallstackView::CallstackView(wxWindow *parent,Database *_database) |
| 80 | : wxWindow(parent,-1), database(_database), callstackActive(0), currSymbol(NULL), itemSelected(~0u) |
| 81 | { |
| 82 | listCtrl = new wxListCtrl(this,LIST_CTRL,wxDefaultPosition,wxDefaultSize,wxLC_REPORT); |
| 83 | setupColumn(COL_NAME, 170, _T("Name")); |
| 84 | setupColumn(COL_MODULE, 70, _T("Module")); |
| 85 | setupColumn(COL_SOURCEFILE, 270, _T("Source File")); |
| 86 | setupColumn(COL_SOURCELINE, 40, _T("Source Line")); |
| 87 | setupColumn(COL_ADDRESS, 100, _T("Address")); |
| 88 | |
| 89 | toolBar = new wxAuiToolBar(this,-1); |
| 90 | toolBar->AddTool(TOOL_PREV,"-",LoadPngResource(L"button_prev", this),_T("Previous")); |
| 91 | toolBar->AddTool(TOOL_NEXT,"+",LoadPngResource(L"button_next", this),_T("Next")); |
| 92 | toolBar->AddTool(TOOL_EXPORT_CSV,"CSV",LoadPngResource(L"button_exportcsv", this),_T("Export as CSV")); |
| 93 | toolRange = new wxStaticTextTransparent(toolBar,-1); |
| 94 | toolBar->AddControl(toolRange); |
| 95 | |
| 96 | toolBar->Realize(); |
| 97 | |
| 98 | wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL ); |
| 99 | sizer->Add(toolBar,wxSizerFlags(0).Expand()); |
| 100 | sizer->Add(listCtrl,wxSizerFlags(1).Expand()); |
| 101 | SetSizer(sizer); |
| 102 | sizer->SetSizeHints(this); |
| 103 | } |
| 104 | |
| 105 | void CallstackView::OnSelected(wxListEvent& event) |
| 106 | { |
nothing calls this directly
no test coverage detected