2020-05-15 14:34:54 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QDialog>
|
2022-02-21 12:23:52 +01:00
|
|
|
#include <QPlainTextEdit>
|
2020-05-15 14:34:54 +02:00
|
|
|
#include "obs-app.hpp"
|
|
|
|
|
2022-02-27 10:42:18 +01:00
|
|
|
#include "ui_OBSLogViewer.h"
|
|
|
|
|
2020-05-15 14:34:54 +02:00
|
|
|
class OBSLogViewer : public QDialog {
|
|
|
|
Q_OBJECT
|
|
|
|
|
2022-02-27 10:42:18 +01:00
|
|
|
std::unique_ptr<Ui::OBSLogViewer> ui;
|
2020-05-15 14:34:54 +02:00
|
|
|
|
|
|
|
void InitLog();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void AddLine(int type, const QString &text);
|
2022-02-27 10:42:18 +01:00
|
|
|
void on_openButton_clicked();
|
|
|
|
void on_showStartup_clicked(bool checked);
|
2020-05-15 14:34:54 +02:00
|
|
|
|
|
|
|
public:
|
|
|
|
OBSLogViewer(QWidget *parent = 0);
|
|
|
|
~OBSLogViewer();
|
|
|
|
};
|