rpcsx/rpcs3/Gui/ConLogFrame.h

39 lines
687 B
C
Raw Normal View History

#pragma once
class LogFrame : public wxPanel
2014-08-22 17:33:01 +02:00
{
fs::file m_tty_file;
wxAuiNotebook m_tabs;
wxTextCtrl *m_log;
wxTextCtrl *m_tty;
//Copy Action in Context Menu
wxTextDataObject* m_tdo;
2016-02-01 22:46:27 +01:00
YAML::Node m_cfg_level;
YAML::Node m_cfg_tty;
logs::level get_cfg_level() const
{
return static_cast<logs::level>(m_cfg_level.as<uint>(4));
}
bool get_cfg_tty() const
{
return m_cfg_tty.as<bool>(true);
}
2016-02-01 22:46:27 +01:00
public:
LogFrame(wxWindow* parent);
LogFrame(LogFrame &other) = delete;
~LogFrame();
bool Close(bool force = false);
void UpdateUI();
private:
void OnRightClick(wxMouseEvent& event); // Show context menu
void OnContextMenu(wxCommandEvent& event); // After select
2016-01-06 00:52:48 +01:00
};