1 #ifndef DLG_VIEWLOG_H
2 #define DLG_VIEWLOG_H
3 
4 #include <QCheckBox>
5 #include <QDialog>
6 
7 class QPlainTextEdit;
8 class QCloseEvent;
9 
10 class DlgViewLog : public QDialog
11 {
12     Q_OBJECT
13 public:
14     explicit DlgViewLog(QWidget *parent);
15 
16 protected:
17     void closeEvent(QCloseEvent *event) override;
18 
19 private:
20     QPlainTextEdit *logArea;
21     QCheckBox *coClearLog;
22 
23     void loadInitialLogBuffer();
24 private slots:
25     void logEntryAdded(QString message);
26     void actCheckBoxChanged(bool abNewValue);
27 };
28 
29 #endif