2020-05-15 07:34:54 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
2022-02-21 22:23:52 +11:00
|
|
|
#include <QPlainTextEdit>
|
2020-05-15 07:34:54 -05:00
|
|
|
#include "obs-app.hpp"
|
|
|
|
|
|
|
|
class OBSLogViewer : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
2022-02-21 22:23:52 +11:00
|
|
|
QPointer<QPlainTextEdit> textArea;
|
2020-05-15 07:34:54 -05:00
|
|
|
|
|
|
|
void InitLog();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void AddLine(int type, const QString &text);
|
|
|
|
void ClearText();
|
|
|
|
void ToggleShowStartup(bool checked);
|
2020-08-15 15:20:38 +10:00
|
|
|
void OpenFile();
|
2020-05-15 07:34:54 -05:00
|
|
|
|
|
|
|
public:
|
|
|
|
OBSLogViewer(QWidget *parent = 0);
|
|
|
|
~OBSLogViewer();
|
|
|
|
};
|