2016-01-19 04:26:01 -06:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2020-01-02 08:43:50 -06:00
|
|
|
// Copyright (C) 2013 - 2020, The pgAdmin Development Team
|
2016-01-19 04:26:01 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
// ConfigWindow.h - Configuration window
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef CONFIGWINDOW_H
|
|
|
|
#define CONFIGWINDOW_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class ConfigWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigWindow : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2018-12-06 04:40:49 -06:00
|
|
|
explicit ConfigWindow(QWidget *parent = Q_NULLPTR);
|
2020-09-08 01:30:24 -05:00
|
|
|
void setConfigValues();
|
2016-01-19 04:26:01 -06:00
|
|
|
|
2020-07-28 05:43:05 -05:00
|
|
|
signals:
|
|
|
|
void accepted(bool needRestart);
|
|
|
|
void closing(bool accepted);
|
2016-01-19 04:26:01 -06:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_buttonBox_rejected();
|
2018-07-19 06:54:53 -05:00
|
|
|
void on_chkFixedPort_stateChanged(int state);
|
2016-01-19 04:26:01 -06:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::ConfigWindow *ui;
|
2020-07-28 05:43:05 -05:00
|
|
|
bool m_needRestart;
|
|
|
|
|
2020-06-16 04:23:40 -05:00
|
|
|
void initConfigWindow();
|
2020-09-08 01:30:24 -05:00
|
|
|
bool isPortInUse(const quint16 port) const;
|
2016-01-19 04:26:01 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CONFIGWINDOW_H
|