Cemu/src/gui/wxgui/LoggingWindow.h
SSimco 67de63bed6
Some checks are pending
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Waiting to run
UI+build: Isolate wxWidgets code from non-GUI code (#1633)
2025-07-15 04:28:41 +02:00

30 lines
684 B
C++

#pragma once
#include "Cemu/Logging/CemuLogging.h"
#include <wx/frame.h>
#include <wx/listbox.h>
#include <wx/combobox.h>
#include "wxgui/components/wxLogCtrl.h"
class wxLogEvent;
class LoggingWindow : public wxFrame, public LoggingCallbacks
{
public:
LoggingWindow(wxFrame* parent);
~LoggingWindow();
void Log(std::string_view filter, std::string_view message) override;
void Log(std::string_view filter, std::wstring_view message) override;
private:
void OnLogMessage(wxLogEvent& event);
void OnFilterChange(wxCommandEvent& event);
void OnFilterMessageChange(wxCommandEvent& event);
wxComboBox* m_filter;
wxLogCtrl* m_log_list;
wxCheckBox* m_filter_message;
};