mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 15:26:46 -06:00
41 lines
781 B
C++
41 lines
781 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
// LogWindow.h - Log viewer window
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef LOGWINDOW_H
|
|
#define LOGWINDOW_H
|
|
|
|
#include <QDialog>
|
|
#include <QPlainTextEdit>
|
|
|
|
namespace Ui {
|
|
class LogWindow;
|
|
}
|
|
|
|
class LogWindow : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LogWindow(QWidget *parent = Q_NULLPTR);
|
|
void LoadLog();
|
|
|
|
private slots:
|
|
void reload();
|
|
|
|
private:
|
|
Ui::LogWindow *ui;
|
|
|
|
void initLogWindow();
|
|
int readLog(QString logFile, QPlainTextEdit *logWidget);
|
|
};
|
|
|
|
#endif // LOGWINDOW_H
|