mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-29 12:03:52 -06:00
76b0e3e9f7
refs #5751
47 lines
983 B
C++
47 lines
983 B
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2020, The pgAdmin Development Team
|
|
// 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:
|
|
explicit ConfigWindow(QWidget *parent = Q_NULLPTR);
|
|
void setConfigValues();
|
|
|
|
signals:
|
|
void accepted(bool needRestart);
|
|
void closing(bool accepted);
|
|
|
|
private slots:
|
|
void on_buttonBox_accepted();
|
|
void on_buttonBox_rejected();
|
|
void on_chkFixedPort_stateChanged(int state);
|
|
|
|
private:
|
|
Ui::ConfigWindow *ui;
|
|
bool m_needRestart;
|
|
|
|
void initConfigWindow();
|
|
bool isPortInUse(const quint16 port) const;
|
|
};
|
|
|
|
#endif // CONFIGWINDOW_H
|