blob: fda94c3fde6c932f682aef2e6a8a6c6715be9227 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef LOGVIEWFORM_H
#define LOGVIEWFORM_H
#include <QDialog>
#include <QCloseEvent>
#include <QTextStream>
#include "ui_logviewform.h"
class LogViewForm : public QDialog, protected Ui::LogViewForm
{
Q_OBJECT
private:
QFile* logfile;
QTextStream* logstream;
bool isOnBottom() const;
public slots:
void scrollToBottom();
public:
LogViewForm(QWidget* parent = 0);
~LogViewForm();
public slots:
void show();
void closeEvent(QCloseEvent* ev);
void update(bool log_zapped);
void clear();
};
#endif // LOGVIEWFORM_H
|