debugger:linux: Fix list view sizing

The breakpoints, threads and stack frames list view sizing now works
properly on wx3.0.

It's still completely broken on wx2.8. Oh well.
This commit is contained in:
Jonathan Li 2015-11-28 08:45:39 +00:00
parent cfc8fc4e9b
commit 609442318a
1 changed files with 1 additions and 15 deletions

View File

@ -73,6 +73,7 @@ void GenericListView::resizeColumns(int totalWidth)
void GenericListView::sizeEvent(wxSizeEvent& evt)
{
resizeColumns(GetClientSize().x);
evt.Skip();
}
void GenericListView::keydownEvent(wxKeyEvent& evt)
@ -178,11 +179,6 @@ GenericListViewColumn breakpointColumns[BPL_COLUMNCOUNT] = {
BreakpointList::BreakpointList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly)
: GenericListView(parent,breakpointColumns,BPL_COLUMNCOUNT), cpu(_cpu),disasm(_disassembly)
{
#ifdef __linux__
// On linux wx failed to resize properly the page. I don't know why so for the moment I just create a static size page
// Far from ideal but at least I can use the memory window!
this->SetSize(wxSize(1000, 200));
#endif
}
int BreakpointList::getRowCount()
@ -513,11 +509,6 @@ GenericListViewColumn threadColumns[TL_COLUMNCOUNT] = {
ThreadList::ThreadList(wxWindow* parent, DebugInterface* _cpu)
: GenericListView(parent,threadColumns,TL_COLUMNCOUNT), cpu(_cpu)
{
#ifdef __linux__
// On linux wx failed to resize properly the page. I don't know why so for the moment I just create a static size page
// Far from ideal but at least I can use the memory window!
this->SetSize(wxSize(1000, 200));
#endif
}
void ThreadList::reloadThreads()
@ -658,11 +649,6 @@ GenericListViewColumn stackFrameolumns[SF_COLUMNCOUNT] = {
StackFramesList::StackFramesList(wxWindow* parent, DebugInterface* _cpu, CtrlDisassemblyView* _disassembly)
: GenericListView(parent,stackFrameolumns,SF_COLUMNCOUNT), cpu(_cpu), disassembly(_disassembly)
{
#ifdef __linux__
// On linux wx failed to resize properly the page. I don't know why so for the moment I just create a static size page
// Far from ideal but at least I can use the memory window!
this->SetSize(wxSize(1000, 200));
#endif
}
void StackFramesList::loadStackFrames(EEThread& currentThread)