mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
37 lines
734 B
C++
37 lines
734 B
C++
#pragma once
|
|
|
|
class LogFrame : public wxPanel
|
|
{
|
|
fs::file m_log_file;
|
|
fs::file m_tty_file;
|
|
|
|
_log::level m_level{ _log::level::always }; // current log level
|
|
wxColour m_color{ 0, 255, 255 }; // current log color
|
|
|
|
wxAuiNotebook m_tabs;
|
|
wxTextCtrl *m_log;
|
|
wxTextCtrl *m_tty;
|
|
|
|
//Copy Action in Context Menu
|
|
wxTextDataObject* m_tdo;
|
|
|
|
wxTimer m_timer;
|
|
|
|
public:
|
|
LogFrame(wxWindow* parent);
|
|
LogFrame(LogFrame &other) = delete;
|
|
~LogFrame();
|
|
|
|
bool Close(bool force = false);
|
|
|
|
private:
|
|
virtual void Task(){};
|
|
|
|
void OnQuit(wxCloseEvent& event);
|
|
void OnRightClick(wxMouseEvent& event); // Show context menu
|
|
void OnContextMenu(wxCommandEvent& event); // After select
|
|
void OnTimer(wxTimerEvent& event);
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|