mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
rename even more members and clean headers adjust some more connects move some function bodies to cpp
63 lines
1.2 KiB
C++
63 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "Utilities/File.h"
|
|
#include "Utilities/Log.h"
|
|
|
|
#include "gui_settings.h"
|
|
|
|
#include <memory>
|
|
|
|
#include <QDockWidget>
|
|
#include <QTabWidget>
|
|
#include <QTextEdit>
|
|
#include <QActionGroup>
|
|
#include <QTimer>
|
|
|
|
class log_frame : public QDockWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit log_frame(std::shared_ptr<gui_settings> guiSettings, QWidget *parent = nullptr);
|
|
|
|
/** Loads from settings. Public so that main_window can call this easily. */
|
|
void LoadSettings();
|
|
Q_SIGNALS:
|
|
void LogFrameClosed();
|
|
protected:
|
|
/** Override inherited method from Qt to allow signalling when close happened.*/
|
|
void closeEvent(QCloseEvent* event);
|
|
private Q_SLOTS:
|
|
void UpdateUI();
|
|
private:
|
|
void SetLogLevel(logs::level lev);
|
|
void SetTTYLogging(bool val);
|
|
|
|
void CreateAndConnectActions();
|
|
|
|
QTextEdit *m_log;
|
|
QTextEdit *m_tty;
|
|
QString m_old_text;
|
|
ullong m_log_counter;
|
|
bool m_stack_log;
|
|
|
|
fs::file m_tty_file;
|
|
|
|
QAction* m_clearAct;
|
|
|
|
QActionGroup* m_logLevels;
|
|
QAction* m_nothingAct;
|
|
QAction* m_fatalAct;
|
|
QAction* m_errorAct;
|
|
QAction* m_todoAct;
|
|
QAction* m_successAct;
|
|
QAction* m_warningAct;
|
|
QAction* m_noticeAct;
|
|
QAction* m_traceAct;
|
|
|
|
QAction* m_stackAct;
|
|
|
|
QAction* m_TTYAct;
|
|
|
|
std::shared_ptr<gui_settings> xgui_settings;
|
|
};
|