log-viewer.hpp 390 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include <QDialog>
  3. #include <QPlainTextEdit>
  4. #include "obs-app.hpp"
  5. class OBSLogViewer : public QDialog {
  6. Q_OBJECT
  7. QPointer<QPlainTextEdit> textArea;
  8. void InitLog();
  9. private slots:
  10. void AddLine(int type, const QString &text);
  11. void ClearText();
  12. void ToggleShowStartup(bool checked);
  13. void OpenFile();
  14. public:
  15. OBSLogViewer(QWidget *parent = 0);
  16. ~OBSLogViewer();
  17. };