# -*- coding: utf-8 -*-

################################################################################
## Form generated from reading UI file 'PostgreSqlConfigDialog.ui'
##
## Created by: Qt User Interface Compiler version 6.10.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
    QMetaObject, QObject, QPoint, QRect,
    QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
    QFont, QFontDatabase, QGradient, QIcon,
    QImage, QKeySequence, QLinearGradient, QPainter,
    QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QComboBox, QDialog,
    QDialogButtonBox, QFormLayout, QLabel, QLineEdit,
    QPushButton, QSizePolicy, QSpinBox, QVBoxLayout,
    QWidget)

class Ui_PostgreSqlConfigDialog(object):
    def setupUi(self, PostgreSqlConfigDialog):
        if not PostgreSqlConfigDialog.objectName():
            PostgreSqlConfigDialog.setObjectName(u"PostgreSqlConfigDialog")
        PostgreSqlConfigDialog.resize(397, 268)
        PostgreSqlConfigDialog.setModal(True)
        self.verticalLayout = QVBoxLayout(PostgreSqlConfigDialog)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.formLayout = QFormLayout()
        self.formLayout.setObjectName(u"formLayout")
        self.nameLabel = QLabel(PostgreSqlConfigDialog)
        self.nameLabel.setObjectName(u"nameLabel")

        self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.nameLabel)

        self.nameEdit = QLineEdit(PostgreSqlConfigDialog)
        self.nameEdit.setObjectName(u"nameEdit")

        self.formLayout.setWidget(0, QFormLayout.ItemRole.FieldRole, self.nameEdit)

        self.hostLabel = QLabel(PostgreSqlConfigDialog)
        self.hostLabel.setObjectName(u"hostLabel")

        self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.hostLabel)

        self.hostEdit = QLineEdit(PostgreSqlConfigDialog)
        self.hostEdit.setObjectName(u"hostEdit")

        self.formLayout.setWidget(1, QFormLayout.ItemRole.FieldRole, self.hostEdit)

        self.portLabel = QLabel(PostgreSqlConfigDialog)
        self.portLabel.setObjectName(u"portLabel")

        self.formLayout.setWidget(2, QFormLayout.ItemRole.LabelRole, self.portLabel)

        self.portSpinBox = QSpinBox(PostgreSqlConfigDialog)
        self.portSpinBox.setObjectName(u"portSpinBox")
        self.portSpinBox.setMinimum(1)
        self.portSpinBox.setMaximum(65535)
        self.portSpinBox.setValue(5432)

        self.formLayout.setWidget(2, QFormLayout.ItemRole.FieldRole, self.portSpinBox)

        self.databaseLabel = QLabel(PostgreSqlConfigDialog)
        self.databaseLabel.setObjectName(u"databaseLabel")

        self.formLayout.setWidget(3, QFormLayout.ItemRole.LabelRole, self.databaseLabel)

        self.databaseEdit = QLineEdit(PostgreSqlConfigDialog)
        self.databaseEdit.setObjectName(u"databaseEdit")

        self.formLayout.setWidget(3, QFormLayout.ItemRole.FieldRole, self.databaseEdit)

        self.usernameLabel = QLabel(PostgreSqlConfigDialog)
        self.usernameLabel.setObjectName(u"usernameLabel")

        self.formLayout.setWidget(4, QFormLayout.ItemRole.LabelRole, self.usernameLabel)

        self.usernameEdit = QLineEdit(PostgreSqlConfigDialog)
        self.usernameEdit.setObjectName(u"usernameEdit")

        self.formLayout.setWidget(4, QFormLayout.ItemRole.FieldRole, self.usernameEdit)

        self.passwordLabel = QLabel(PostgreSqlConfigDialog)
        self.passwordLabel.setObjectName(u"passwordLabel")

        self.formLayout.setWidget(5, QFormLayout.ItemRole.LabelRole, self.passwordLabel)

        self.passwordEdit = QLineEdit(PostgreSqlConfigDialog)
        self.passwordEdit.setObjectName(u"passwordEdit")
        self.passwordEdit.setEchoMode(QLineEdit.EchoMode.Password)

        self.formLayout.setWidget(5, QFormLayout.ItemRole.FieldRole, self.passwordEdit)

        self.sslModeLabel = QLabel(PostgreSqlConfigDialog)
        self.sslModeLabel.setObjectName(u"sslModeLabel")

        self.formLayout.setWidget(6, QFormLayout.ItemRole.LabelRole, self.sslModeLabel)

        self.sslModeComboBox = QComboBox(PostgreSqlConfigDialog)
        self.sslModeComboBox.addItem("")
        self.sslModeComboBox.addItem("")
        self.sslModeComboBox.addItem("")
        self.sslModeComboBox.addItem("")
        self.sslModeComboBox.addItem("")
        self.sslModeComboBox.addItem("")
        self.sslModeComboBox.setObjectName(u"sslModeComboBox")

        self.formLayout.setWidget(6, QFormLayout.ItemRole.FieldRole, self.sslModeComboBox)

        self.timeoutLabel = QLabel(PostgreSqlConfigDialog)
        self.timeoutLabel.setObjectName(u"timeoutLabel")

        self.formLayout.setWidget(7, QFormLayout.ItemRole.LabelRole, self.timeoutLabel)

        self.timeoutSpinBox = QSpinBox(PostgreSqlConfigDialog)
        self.timeoutSpinBox.setObjectName(u"timeoutSpinBox")
        self.timeoutSpinBox.setMinimum(1)
        self.timeoutSpinBox.setMaximum(300)
        self.timeoutSpinBox.setValue(10)

        self.formLayout.setWidget(7, QFormLayout.ItemRole.FieldRole, self.timeoutSpinBox)

        self.testConnectionButton = QPushButton(PostgreSqlConfigDialog)
        self.testConnectionButton.setObjectName(u"testConnectionButton")

        self.formLayout.setWidget(8, QFormLayout.ItemRole.FieldRole, self.testConnectionButton)


        self.verticalLayout.addLayout(self.formLayout)

        self.buttonBox = QDialogButtonBox(PostgreSqlConfigDialog)
        self.buttonBox.setObjectName(u"buttonBox")
        self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)
        self.buttonBox.setCenterButtons(True)

        self.verticalLayout.addWidget(self.buttonBox)


        self.retranslateUi(PostgreSqlConfigDialog)
        self.buttonBox.accepted.connect(PostgreSqlConfigDialog.accept)
        self.buttonBox.rejected.connect(PostgreSqlConfigDialog.reject)

        QMetaObject.connectSlotsByName(PostgreSqlConfigDialog)
    # setupUi

    def retranslateUi(self, PostgreSqlConfigDialog):
        PostgreSqlConfigDialog.setWindowTitle(QCoreApplication.translate("PostgreSqlConfigDialog", u"PostgreSQL Datenbank Konfiguration", None))
        self.nameLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Name:", None))
        self.hostLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Host:", None))
        self.hostEdit.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"localhost", None))
        self.portLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Port:", None))
        self.databaseLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Datenbank:", None))
        self.usernameLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Benutzername:", None))
        self.passwordLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Passwort:", None))
        self.sslModeLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"SSL-Modus:", None))
        self.sslModeComboBox.setItemText(0, QCoreApplication.translate("PostgreSqlConfigDialog", u"disable", None))
        self.sslModeComboBox.setItemText(1, QCoreApplication.translate("PostgreSqlConfigDialog", u"allow", None))
        self.sslModeComboBox.setItemText(2, QCoreApplication.translate("PostgreSqlConfigDialog", u"prefer", None))
        self.sslModeComboBox.setItemText(3, QCoreApplication.translate("PostgreSqlConfigDialog", u"require", None))
        self.sslModeComboBox.setItemText(4, QCoreApplication.translate("PostgreSqlConfigDialog", u"verify-ca", None))
        self.sslModeComboBox.setItemText(5, QCoreApplication.translate("PostgreSqlConfigDialog", u"verify-full", None))

        self.timeoutLabel.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Timeout (s):", None))
        self.testConnectionButton.setText(QCoreApplication.translate("PostgreSqlConfigDialog", u"Verbindung testen", None))
    # retranslateUi

