2018-02-05 09:32:14 -06:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2021-01-04 04:04:45 -06:00
|
|
|
// Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
2018-02-05 09:32:14 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
// LogWindow.h - Log viewer window
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef LOGWINDOW_H
|
|
|
|
#define LOGWINDOW_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
2020-05-07 05:01:02 -05:00
|
|
|
#include <QPlainTextEdit>
|
2018-02-05 09:32:14 -06:00
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class LogWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LogWindow : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-07-28 05:43:05 -05:00
|
|
|
explicit LogWindow(QWidget *parent = Q_NULLPTR);
|
2020-05-07 05:01:02 -05:00
|
|
|
void LoadLog();
|
2018-02-05 09:32:14 -06:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void reload();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::LogWindow *ui;
|
|
|
|
|
2020-06-16 04:23:40 -05:00
|
|
|
void initLogWindow();
|
2020-05-07 05:01:02 -05:00
|
|
|
int readLog(QString logFile, QPlainTextEdit *logWidget);
|
2018-02-05 09:32:14 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LOGWINDOW_H
|