# Form implementation generated from reading ui file '/home/alexander/GitHub/SemesterapparatsManager/src/ui/dialogs/dialog_sources/settings.ui'
#
# Created by: PyQt6 UI code generator 6.6.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtWidgets


class Ui_Dialog(object):
    def setupUi(self, Dialog):
        # Dialog.setObjectName("Dialog")
        Dialog.resize(743, 576)

        self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
        self.buttonBox.setGeometry(QtCore.QRect(120, 540, 621, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(
            QtWidgets.QDialogButtonBox.StandardButton.Cancel
            | QtWidgets.QDialogButtonBox.StandardButton.Ok
        )
        self.buttonBox.setObjectName("buttonBox")
        self.frame = QtWidgets.QFrame(parent=Dialog)
        self.frame.setGeometry(QtCore.QRect(0, 0, 741, 541))
        self.frame.setFrameShape(QtWidgets.QFrame.Shape.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
        self.frame.setObjectName("frame")
        self.label_2 = QtWidgets.QLabel(parent=self.frame)
        self.label_2.setGeometry(QtCore.QRect(10, 20, 161, 21))
        self.label_2.setObjectName("label_2")
        self.formLayoutWidget = QtWidgets.QWidget(parent=self.frame)
        self.formLayoutWidget.setGeometry(QtCore.QRect(10, 40, 361, 491))
        self.formLayoutWidget.setObjectName("formLayoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.formLayoutWidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.tb_select_db = QtWidgets.QToolButton(parent=self.formLayoutWidget)
        self.tb_select_db.setObjectName("tb_select_db")
        self.gridLayout.addWidget(self.tb_select_db, 0, 2, 1, 1)
        self.db_path = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
        self.db_path.setEnabled(False)
        self.db_path.setObjectName("db_path")
        self.gridLayout.addWidget(self.db_path, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(parent=self.formLayoutWidget)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 0, 0, 1, 1)
        self.db_name = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
        self.db_name.setObjectName("db_name")
        self.gridLayout.addWidget(self.db_name, 0, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(parent=self.formLayoutWidget)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.save_path = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
        self.save_path.setObjectName("save_path")
        self.gridLayout.addWidget(self.save_path, 2, 1, 1, 1)
        self.tb_set_save_path = QtWidgets.QToolButton(parent=self.formLayoutWidget)
        self.tb_set_save_path.setObjectName("tb_set_save_path")
        self.gridLayout.addWidget(self.tb_set_save_path, 2, 2, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(
            20,
            40,
            QtWidgets.QSizePolicy.Policy.Minimum,
            QtWidgets.QSizePolicy.Policy.Expanding,
        )
        self.gridLayout.addItem(spacerItem, 3, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(parent=self.formLayoutWidget)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1)
        self.email_settings = QtWidgets.QTabWidget(parent=self.frame)
        self.email_settings.setGeometry(QtCore.QRect(390, 40, 341, 491))
        self.email_settings.setObjectName("email_settings")
        self.email_settingsPage1_2 = QtWidgets.QWidget()
        self.email_settingsPage1_2.setObjectName("email_settingsPage1_2")
        self.formLayoutWidget_2 = QtWidgets.QWidget(parent=self.email_settingsPage1_2)
        self.formLayoutWidget_2.setGeometry(QtCore.QRect(10, 30, 321, 381))
        self.formLayoutWidget_2.setObjectName("formLayoutWidget_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.formLayoutWidget_2)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.smtp_address = QtWidgets.QLineEdit(parent=self.formLayoutWidget_2)
        self.smtp_address.setClearButtonEnabled(True)
        self.smtp_address.setObjectName("smtp_address")
        self.gridLayout_2.addWidget(self.smtp_address, 0, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(parent=self.formLayoutWidget_2)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 3, 0, 1, 1)
        self.use_username_smtp_login = QtWidgets.QCheckBox(
            parent=self.formLayoutWidget_2
        )
        self.use_username_smtp_login.setTristate(False)
        self.use_username_smtp_login.setObjectName("use_username_smtp_login")
        self.gridLayout_2.addWidget(self.use_username_smtp_login, 4, 1, 1, 1)
        self.mail_username = QtWidgets.QLineEdit(parent=self.formLayoutWidget_2)
        self.mail_username.setClearButtonEnabled(True)
        self.mail_username.setObjectName("mail_username")
        self.gridLayout_2.addWidget(self.mail_username, 3, 1, 1, 1)
        self.smtp_port = QtWidgets.QLineEdit(parent=self.formLayoutWidget_2)
        self.smtp_port.setInputMethodHints(
            QtCore.Qt.InputMethodHint.ImhDigitsOnly
            | QtCore.Qt.InputMethodHint.ImhPreferNumbers
        )
        self.smtp_port.setClearButtonEnabled(True)
        self.smtp_port.setObjectName("smtp_port")
        self.gridLayout_2.addWidget(self.smtp_port, 1, 1, 1, 1)
        self.label_10 = QtWidgets.QLabel(parent=self.formLayoutWidget_2)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 5, 0, 1, 1)
        self.label_7 = QtWidgets.QLabel(parent=self.formLayoutWidget_2)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 2, 0, 1, 1)
        self.label_9 = QtWidgets.QLabel(parent=self.formLayoutWidget_2)
        self.label_9.setText("")
        self.label_9.setObjectName("label_9")
        self.gridLayout_2.addWidget(self.label_9, 6, 0, 1, 1)
        self.sender_email = QtWidgets.QLineEdit(parent=self.formLayoutWidget_2)
        self.sender_email.setInputMethodHints(
            QtCore.Qt.InputMethodHint.ImhEmailCharactersOnly
        )
        self.sender_email.setClearButtonEnabled(True)
        self.sender_email.setObjectName("sender_email")
        self.gridLayout_2.addWidget(self.sender_email, 2, 1, 1, 1)
        self.label = QtWidgets.QLabel(parent=self.formLayoutWidget_2)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.password = QtWidgets.QLineEdit(parent=self.formLayoutWidget_2)
        self.password.setInputMethodHints(
            QtCore.Qt.InputMethodHint.ImhHiddenText
            | QtCore.Qt.InputMethodHint.ImhSensitiveData
        )
        self.password.setClearButtonEnabled(True)
        self.password.setObjectName("password")
        self.gridLayout_2.addWidget(self.password, 5, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(parent=self.formLayoutWidget_2)
        self.label_6.setObjectName("label_6")
        self.gridLayout_2.addWidget(self.label_6, 1, 0, 1, 1)
        self.togglePassword = QtWidgets.QPushButton(parent=self.formLayoutWidget_2)
        self.togglePassword.setText("")
        self.togglePassword.setObjectName("togglePassword")
        self.gridLayout_2.addWidget(self.togglePassword, 5, 2, 1, 1)
        self.email_settings.addTab(self.email_settingsPage1_2, "")
        self.email_settingsPage2_2 = QtWidgets.QWidget()
        self.email_settingsPage2_2.setObjectName("email_settingsPage2_2")
        self.verticalLayoutWidget = QtWidgets.QWidget(parent=self.email_settingsPage2_2)
        self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 0, 401, 71))
        self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        spacerItem1 = QtWidgets.QSpacerItem(
            40,
            20,
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Minimum,
        )
        self.horizontalLayout_3.addItem(spacerItem1)
        self.bold = QtWidgets.QPushButton(parent=self.verticalLayoutWidget)
        self.bold.setCheckable(True)
        self.bold.setObjectName("bold")
        self.horizontalLayout_3.addWidget(self.bold)
        self.italic = QtWidgets.QPushButton(parent=self.verticalLayoutWidget)
        self.italic.setCheckable(True)
        self.italic.setObjectName("italic")
        self.horizontalLayout_3.addWidget(self.italic)
        self.underscore = QtWidgets.QPushButton(parent=self.verticalLayoutWidget)
        self.underscore.setCheckable(True)
        self.underscore.setObjectName("underscore")
        self.horizontalLayout_3.addWidget(self.underscore)
        spacerItem2 = QtWidgets.QSpacerItem(
            40,
            20,
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Minimum,
        )
        self.horizontalLayout_3.addItem(spacerItem2)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.fontComboBox = QtWidgets.QFontComboBox(parent=self.verticalLayoutWidget)
        self.fontComboBox.setObjectName("fontComboBox")
        self.horizontalLayout.addWidget(self.fontComboBox)
        self.font_size = QtWidgets.QComboBox(parent=self.verticalLayoutWidget)
        self.font_size.setObjectName("font_size")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.font_size.addItem("")
        self.horizontalLayout.addWidget(self.font_size)
        spacerItem3 = QtWidgets.QSpacerItem(
            40,
            20,
            QtWidgets.QSizePolicy.Policy.Expanding,
            QtWidgets.QSizePolicy.Policy.Minimum,
        )
        self.horizontalLayout.addItem(spacerItem3)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.editSignature = QtWidgets.QTextEdit(parent=self.email_settingsPage2_2)
        self.editSignature.setGeometry(QtCore.QRect(10, 80, 321, 301))
        self.editSignature.setObjectName("editSignature")
        self.debug = QtWidgets.QPushButton(parent=self.email_settingsPage2_2)
        self.debug.setGeometry(QtCore.QRect(30, 430, 75, 24))
        self.debug.setObjectName("debug")
        self.email_settings.addTab(self.email_settingsPage2_2, "")
        self.label_3.setBuddy(self.db_name)
        self.label_4.setBuddy(self.db_path)
        self.label_5.setBuddy(self.save_path)

        self.retranslateUi(Dialog)
        self.email_settings.setCurrentIndex(0)
        self.buttonBox.accepted.connect(Dialog.accept)  # type: ignore
        self.buttonBox.rejected.connect(Dialog.reject)  # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Dialog)
        Dialog.setTabOrder(self.db_name, self.db_path)
        Dialog.setTabOrder(self.db_path, self.save_path)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.label_2.setText(_translate("Dialog", "Allgemeine Einstellungen"))
        self.tb_select_db.setText(_translate("Dialog", "..."))
        self.label_3.setToolTip(
            _translate(
                "Dialog",
                '<html><head/><body><p>Name der Datenbank, welche verwendet werden soll. <span style=" font-weight:600;">Muss</span> auf .db enden</p></body></html>',
            )
        )
        self.label_3.setText(_translate("Dialog", "Datenbankname"))
        self.db_name.setText(_translate("Dialog", "sap.db"))
        self.label_4.setText(_translate("Dialog", "Datenbankpfad"))
        self.tb_set_save_path.setText(_translate("Dialog", "..."))
        self.label_5.setToolTip(
            _translate(
                "Dialog",
                "Pfad, an dem heruntergeladene Dateien gespeichert werden sollen",
            )
        )
        self.label_5.setText(_translate("Dialog", "Temporäre Dateien"))
        self.label_8.setText(_translate("Dialog", "Nutzername"))
        self.use_username_smtp_login.setStatusTip(
            _translate(
                "Dialog",
                "Anklicken, wenn Nutzername benötigt wird, um sich beim Server anzumelden",
            )
        )
        self.use_username_smtp_login.setText(
            _translate("Dialog", "Nutzername zum\n Anmelden verwenden")
        )
        self.mail_username.setStatusTip(
            _translate("Dialog", "Kürzel, von der Hochschule vergeben, bsp: Aky547")
        )
        self.label_10.setText(_translate("Dialog", "Passwort"))
        self.label_7.setText(_translate("Dialog", "Sender-eMail"))
        self.label.setText(_translate("Dialog", "SMTP-Server"))
        self.label_6.setText(_translate("Dialog", "Port"))
        self.email_settings.setTabText(
            self.email_settings.indexOf(self.email_settingsPage1_2),
            _translate("Dialog", "Allgemeines"),
        )
        self.bold.setText(_translate("Dialog", "Fett"))
        self.italic.setText(_translate("Dialog", "Kursiv"))
        self.underscore.setText(_translate("Dialog", "Unterstrichen"))
        self.font_size.setItemText(0, _translate("Dialog", "8"))
        self.font_size.setItemText(1, _translate("Dialog", "9"))
        self.font_size.setItemText(2, _translate("Dialog", "11"))
        self.font_size.setItemText(3, _translate("Dialog", "12"))
        self.font_size.setItemText(4, _translate("Dialog", "14"))
        self.font_size.setItemText(5, _translate("Dialog", "16"))
        self.font_size.setItemText(6, _translate("Dialog", "18"))
        self.font_size.setItemText(7, _translate("Dialog", "20"))
        self.font_size.setItemText(8, _translate("Dialog", "22"))
        self.font_size.setItemText(9, _translate("Dialog", "24"))
        self.font_size.setItemText(10, _translate("Dialog", "26"))
        self.font_size.setItemText(11, _translate("Dialog", "28"))
        self.font_size.setItemText(12, _translate("Dialog", "36"))
        self.font_size.setItemText(13, _translate("Dialog", "48"))
        self.font_size.setItemText(14, _translate("Dialog", "72"))
        self.debug.setText(_translate("Dialog", "Debug"))
        self.email_settings.setTabText(
            self.email_settings.indexOf(self.email_settingsPage2_2),
            _translate("Dialog", "Signatur"),
        )
