mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-28 11:33:53 -06:00
46ba0310fa
Major refactoring of the runtime code, Specifically: - Move the bulk of the core code from main() into a new Runtime class. - Break up the mass of code that was main() into a number of relatively simple functions. - Make the Configuration dialog synchronous so the Log dialog can be properly viewed. - Enable/disable menu options at the right time. - Remove support for Qt < 5.0. - Remove the application name constant and hardcode the name to simplify the code. - Improve log messages. - Replace the sdbm hashing with Qt's MD5 hashing.
41 lines
781 B
C++
41 lines
781 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2020, 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
|