mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
* use one central unified log with channels/priorities ad-hoc listener registration and de-registration * disable buffering by default * add multi-threaded ringbuffer implementation * use buffered listener for the gui (using the ringbuffer)
26 lines
405 B
C++
26 lines
405 B
C++
#pragma once
|
|
#include "Utilities/Log.h"
|
|
|
|
|
|
class LogFrame
|
|
: public wxPanel
|
|
{
|
|
std::shared_ptr<Log::LogListener> listener;
|
|
wxAuiNotebook m_tabs;
|
|
wxTextCtrl *m_log;
|
|
wxTextCtrl *m_tty;
|
|
|
|
public:
|
|
LogFrame(wxWindow* parent);
|
|
LogFrame(LogFrame &other) = delete;
|
|
~LogFrame();
|
|
|
|
bool Close(bool force = false);
|
|
|
|
private:
|
|
virtual void Task(){};
|
|
|
|
void OnQuit(wxCloseEvent& event);
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
}; |