2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2011 Dolphin Emulator Project
|
2015-05-17 23:08:10 +00:00
|
|
|
// Licensed under GPLv2+
|
2013-04-18 03:43:35 +00:00
|
|
|
// Refer to the license.txt file included.
|
2011-02-18 12:34:24 +00:00
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
2011-02-18 12:34:24 +00:00
|
|
|
|
2014-02-22 22:36:30 +00:00
|
|
|
#include <wx/panel.h>
|
2011-02-18 12:34:24 +00:00
|
|
|
|
|
|
|
class LogManager;
|
2014-02-22 22:36:30 +00:00
|
|
|
class wxCheckBox;
|
|
|
|
class wxCheckListBox;
|
|
|
|
class wxRadioBox;
|
2011-02-18 12:34:24 +00:00
|
|
|
|
2011-02-21 15:01:00 +00:00
|
|
|
class LogConfigWindow : public wxPanel
|
2011-02-18 12:34:24 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
LogConfigWindow(wxWindow* parent, wxWindowID id = wxID_ANY);
|
2016-10-04 09:02:07 +00:00
|
|
|
~LogConfigWindow();
|
2011-02-18 12:34:24 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
void SaveSettings();
|
|
|
|
void LoadSettings();
|
2011-02-18 12:34:24 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-24 08:43:46 +00:00
|
|
|
LogManager* m_LogManager;
|
|
|
|
bool enableAll;
|
|
|
|
|
|
|
|
// Controls
|
|
|
|
wxCheckBox *m_writeFileCB, *m_writeConsoleCB, *m_writeWindowCB;
|
|
|
|
wxCheckListBox* m_checks;
|
|
|
|
wxRadioBox* m_verbosity;
|
|
|
|
|
|
|
|
void CreateGUIControls();
|
|
|
|
void OnVerbosityChange(wxCommandEvent& event);
|
|
|
|
void OnWriteFileChecked(wxCommandEvent& event);
|
|
|
|
void OnWriteConsoleChecked(wxCommandEvent& event);
|
|
|
|
void OnWriteWindowChecked(wxCommandEvent& event);
|
|
|
|
void OnToggleAll(wxCommandEvent& event);
|
|
|
|
void ToggleLog(int _logType, bool enable);
|
|
|
|
void OnLogCheck(wxCommandEvent& event);
|
2011-02-18 12:34:24 +00:00
|
|
|
};
|