# Form implementation generated from reading ui file 'c:\Users\aky547\GitHub\SemesterapparatsManager\src\ui\dialogs\reminder.ui'
#
# Created by: PySide6 UI code generator 6.3.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 PySide6 import QtCore, QtGui, QtWidgets


class Ui_Dialog(object):
    def setupUi(self, Erinnerung):
        Erinnerung.setObjectName("Erinnerung")
        Erinnerung.resize(369, 308)
        self.buttonBox = QtWidgets.QDialogButtonBox(Erinnerung)
        self.buttonBox.setGeometry(QtCore.QRect(190, 270, 161, 32))
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(
            QtWidgets.QDialogButtonBox.StandardButton.Cancel
            | QtWidgets.QDialogButtonBox.StandardButton.Ok
        )
        self.buttonBox.setObjectName("buttonBox")
        self.message_box = QtWidgets.QTextEdit(Erinnerung)
        self.message_box.setGeometry(QtCore.QRect(10, 60, 341, 201))
        self.message_box.setObjectName("message_box")
        self.label = QtWidgets.QLabel(Erinnerung)
        self.label.setGeometry(QtCore.QRect(10, 30, 61, 21))
        self.label.setObjectName("label")
        self.label_2 = QtWidgets.QLabel(Erinnerung)
        self.label_2.setGeometry(QtCore.QRect(150, 30, 81, 21))
        self.label_2.setObjectName("label_2")
        self.dateEdit = QtWidgets.QDateEdit(Erinnerung)
        self.dateEdit.setGeometry(QtCore.QRect(240, 30, 110, 22))
        self.dateEdit.setObjectName("dateEdit")
        self.dateEdit.setDate(QtCore.QDate.currentDate())
        self.retranslateUi(Erinnerung)
        self.buttonBox.accepted.connect(Erinnerung.accept)  # type: ignore
        self.buttonBox.rejected.connect(Erinnerung.reject)  # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Erinnerung)

    def retranslateUi(self, Erinnerung):
        _translate = QtCore.QCoreApplication.translate
        Erinnerung.setWindowTitle(_translate("Erinnerung", "Dialog"))
        self.label.setText(_translate("Erinnerung", "Nachricht:"))
        self.label_2.setText(_translate("Erinnerung", "Erinnerung am:"))

    def return_message(self) -> dict:
        return {
            "message": self.message_box.toPlainText(),
            "remind_at": self.dateEdit.date().toString("yyyy-MM-dd"),
        }
