# Form implementation generated from reading ui file 'tip_dlg.ui'
#
# Created by: PyQt6 UI code generator 6.8.0
#
# 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 mnemosyne.libmnemosyne.gui_translator import _
from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_TipDlg(object):
    def setupUi(self, TipDlg):
        TipDlg.setObjectName("TipDlg")
        TipDlg.resize(435, 212)
        self.vboxlayout = QtWidgets.QVBoxLayout(TipDlg)
        self.vboxlayout.setContentsMargins(11, 11, 11, 11)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")
        self.vboxlayout1 = QtWidgets.QVBoxLayout()
        self.vboxlayout1.setContentsMargins(5, -1, 5, -1)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")
        self.watermark = QtWidgets.QLabel(parent=TipDlg)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.watermark.sizePolicy().hasHeightForWidth())
        self.watermark.setSizePolicy(sizePolicy)
        self.watermark.setPixmap(QtGui.QPixmap("image0"))
        self.watermark.setScaledContents(True)
        self.watermark.setWordWrap(False)
        self.watermark.setObjectName("watermark")
        self.hboxlayout.addWidget(self.watermark)
        self.vboxlayout2 = QtWidgets.QVBoxLayout()
        self.vboxlayout2.setSpacing(6)
        self.vboxlayout2.setObjectName("vboxlayout2")
        self.tip_label_2 = QtWidgets.QLabel(parent=TipDlg)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tip_label_2.sizePolicy().hasHeightForWidth())
        self.tip_label_2.setSizePolicy(sizePolicy)
        self.tip_label_2.setWordWrap(False)
        self.tip_label_2.setObjectName("tip_label_2")
        self.vboxlayout2.addWidget(self.tip_label_2)
        self.tip_label = QtWidgets.QLabel(parent=TipDlg)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tip_label.sizePolicy().hasHeightForWidth())
        self.tip_label.setSizePolicy(sizePolicy)
        self.tip_label.setText("")
        self.tip_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.tip_label.setWordWrap(True)
        self.tip_label.setOpenExternalLinks(True)
        self.tip_label.setObjectName("tip_label")
        self.vboxlayout2.addWidget(self.tip_label)
        self.hboxlayout.addLayout(self.vboxlayout2)
        self.vboxlayout1.addLayout(self.hboxlayout)
        self.line1 = QtWidgets.QFrame(parent=TipDlg)
        self.line1.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line1.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line1.setObjectName("line1")
        self.vboxlayout1.addWidget(self.line1)
        self.hboxlayout1 = QtWidgets.QHBoxLayout()
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.show_tips = QtWidgets.QCheckBox(parent=TipDlg)
        self.show_tips.setChecked(True)
        self.show_tips.setObjectName("show_tips")
        self.hboxlayout1.addWidget(self.show_tips)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.hboxlayout1.addItem(spacerItem)
        self.previous_button = QtWidgets.QPushButton(parent=TipDlg)
        self.previous_button.setObjectName("previous_button")
        self.hboxlayout1.addWidget(self.previous_button)
        self.next_button = QtWidgets.QPushButton(parent=TipDlg)
        self.next_button.setObjectName("next_button")
        self.hboxlayout1.addWidget(self.next_button)
        self.OK_button = QtWidgets.QPushButton(parent=TipDlg)
        self.OK_button.setDefault(True)
        self.OK_button.setObjectName("OK_button")
        self.hboxlayout1.addWidget(self.OK_button)
        self.vboxlayout1.addLayout(self.hboxlayout1)
        self.vboxlayout.addLayout(self.vboxlayout1)

        self.retranslateUi(TipDlg)
        self.OK_button.clicked.connect(TipDlg.close) # type: ignore
        self.previous_button.clicked.connect(TipDlg.previous) # type: ignore
        self.next_button.clicked.connect(TipDlg.next) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(TipDlg)

    def retranslateUi(self, TipDlg):
        _translate = QtCore.QCoreApplication.translate
        TipDlg.setWindowTitle(_('Tip of the day'))
        self.tip_label_2.setText(_('<b>Did you know...?</b>'))
        self.show_tips.setText(_('&Show tips on startup'))
        self.show_tips.setShortcut(_('Alt+S'))
        self.previous_button.setText(_('&Previous'))
        self.previous_button.setShortcut(_('Alt+P'))
        self.next_button.setText(_('&Next'))
        self.next_button.setShortcut(_('Alt+N'))
        self.OK_button.setText(_('&Close'))
        self.OK_button.setShortcut(_('Alt+C'))
