mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 13:20:27 -06:00
GUI: Bugfixes, some bugs left
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4134 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -67,30 +67,20 @@ void CLogWindow::CreateGUIControls()
|
||||
// Left side: buttons (-submit), options, and log type selection
|
||||
wxStaticBoxSizer* sbLeftOptions = new wxStaticBoxSizer(wxVERTICAL, this, wxT("Options"));
|
||||
|
||||
// Verbosity
|
||||
wxArrayString wxLevels;
|
||||
for (int i = 1; i <= MAX_LOGLEVEL; ++i)
|
||||
wxLevels.Add(wxString::Format(wxT("%i"), i));
|
||||
for (int i = 1; i <= MAX_LOGLEVEL; ++i) wxLevels.Add(wxString::Format(wxT("%i"), i));
|
||||
m_verbosity = new wxRadioBox(this, IDM_VERBOSITY, wxT("Verbosity"), wxDefaultPosition, wxDefaultSize, wxLevels, 0, wxRA_SPECIFY_COLS, wxDefaultValidator);
|
||||
sbLeftOptions->Add(m_verbosity);
|
||||
|
||||
// Options
|
||||
m_writeFileCB = new wxCheckBox(this, IDM_WRITEFILE, wxT("Write to File"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
sbLeftOptions->Add(m_writeFileCB);
|
||||
|
||||
m_writeConsoleCB = new wxCheckBox(this, IDM_WRITECONSOLE, wxT("Write to Console"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
sbLeftOptions->Add(m_writeConsoleCB);
|
||||
|
||||
m_writeWindowCB = new wxCheckBox(this, IDM_WRITEWINDOW, wxT("Write to Window ->"), wxDefaultPosition, wxDefaultSize, 0);
|
||||
sbLeftOptions->Add(m_writeWindowCB);
|
||||
|
||||
sLeft->Add(sbLeftOptions, 0, wxEXPAND);
|
||||
|
||||
wxBoxSizer* sLogCtrl = new wxBoxSizer(wxHORIZONTAL);
|
||||
sLogCtrl->Add(new wxButton(this, IDM_TOGGLEALL, wxT("Toggle all"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT), 1);
|
||||
sLogCtrl->Add(new wxButton(this, IDM_CLEARLOG, wxT("Clear"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT), 1);
|
||||
sLeft->Add(sLogCtrl, 0, wxEXPAND);
|
||||
|
||||
m_checks = new wxCheckListBox(this, IDM_LOGCHECKS, wxDefaultPosition, wxDefaultSize);
|
||||
sLeft->Add(m_checks, 1, wxEXPAND);
|
||||
|
||||
// Right side: Log viewer and submit row
|
||||
m_log = new wxTextCtrl(this, IDM_LOG, wxEmptyString, wxDefaultPosition, wxDefaultSize,
|
||||
@ -103,6 +93,16 @@ void CLogWindow::CreateGUIControls()
|
||||
wxTE_PROCESS_ENTER | wxTE_PROCESS_TAB);
|
||||
//m_cmdline->SetFont(DebuggerFont);
|
||||
|
||||
// Sizers
|
||||
sbLeftOptions->Add(m_writeFileCB);
|
||||
sbLeftOptions->Add(m_writeConsoleCB);
|
||||
sbLeftOptions->Add(m_writeWindowCB);
|
||||
|
||||
sLeft->Add(m_verbosity, 0, wxEXPAND);
|
||||
sLeft->Add(sbLeftOptions, 0, wxEXPAND);
|
||||
sLeft->Add(sLogCtrl, 0, wxEXPAND);
|
||||
sLeft->Add(m_checks, 1, wxEXPAND);
|
||||
|
||||
sRightBottom->Add(m_cmdline, 1, wxEXPAND);
|
||||
sRight->Add(m_log, 1, wxEXPAND | wxSHRINK);
|
||||
sRight->Add(sRightBottom, 0, wxEXPAND);
|
||||
|
Reference in New Issue
Block a user