# Form implementation generated from reading ui file 'activate_cards_dlg.ui'
#
# Created by: PyQt6 UI code generator 6.10.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_ActivateCardsDlg(object):
    def setupUi(self, ActivateCardsDlg):
        ActivateCardsDlg.setObjectName("ActivateCardsDlg")
        ActivateCardsDlg.resize(593, 156)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(ActivateCardsDlg)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.splitter = QtWidgets.QSplitter(parent=ActivateCardsDlg)
        self.splitter.setOrientation(QtCore.Qt.Orientation.Vertical)
        self.splitter.setObjectName("splitter")
        self.layoutWidget = QtWidgets.QWidget(parent=self.splitter)
        self.layoutWidget.setObjectName("layoutWidget")
        self.saved_sets_layout = QtWidgets.QVBoxLayout(self.layoutWidget)
        self.saved_sets_layout.setContentsMargins(0, 0, 0, 0)
        self.saved_sets_layout.setObjectName("saved_sets_layout")
        self.saved_sets_label = QtWidgets.QLabel(parent=self.layoutWidget)
        self.saved_sets_label.setObjectName("saved_sets_label")
        self.saved_sets_layout.addWidget(self.saved_sets_label)
        self.saved_sets = QtWidgets.QListWidget(parent=self.layoutWidget)
        self.saved_sets.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.CustomContextMenu)
        self.saved_sets.setObjectName("saved_sets")
        self.saved_sets_layout.addWidget(self.saved_sets)
        self.layoutWidget1 = QtWidgets.QWidget(parent=self.splitter)
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.criterion_layout = QtWidgets.QVBoxLayout(self.layoutWidget1)
        self.criterion_layout.setContentsMargins(0, 0, 0, 0)
        self.criterion_layout.setObjectName("criterion_layout")
        self.tab_widget = QtWidgets.QTabWidget(parent=self.layoutWidget1)
        self.tab_widget.setObjectName("tab_widget")
        self.criterion_layout.addWidget(self.tab_widget)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.ok_button = QtWidgets.QPushButton(parent=self.layoutWidget1)
        self.ok_button.setAutoDefault(True)
        self.ok_button.setDefault(True)
        self.ok_button.setObjectName("ok_button")
        self.horizontalLayout_3.addWidget(self.ok_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.save_button = QtWidgets.QPushButton(parent=self.layoutWidget1)
        self.save_button.setAutoDefault(True)
        self.save_button.setObjectName("save_button")
        self.horizontalLayout_3.addWidget(self.save_button)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.cancel_button = QtWidgets.QPushButton(parent=self.layoutWidget1)
        self.cancel_button.setObjectName("cancel_button")
        self.horizontalLayout_3.addWidget(self.cancel_button)
        self.criterion_layout.addLayout(self.horizontalLayout_3)
        self.verticalLayout_3.addWidget(self.splitter)

        self.retranslateUi(ActivateCardsDlg)
        self.tab_widget.setCurrentIndex(-1)
        self.ok_button.clicked.connect(ActivateCardsDlg.accept) # type: ignore
        self.save_button.clicked.connect(ActivateCardsDlg.save_set) # type: ignore
        self.cancel_button.clicked.connect(ActivateCardsDlg.reject) # type: ignore
        self.saved_sets.itemActivated['QListWidgetItem*'].connect(ActivateCardsDlg.load_set) # type: ignore
        self.saved_sets.customContextMenuRequested['QPoint'].connect(ActivateCardsDlg.saved_sets_custom_menu) # type: ignore
        self.tab_widget.currentChanged['int'].connect(ActivateCardsDlg.change_widget) # type: ignore
        self.saved_sets.currentItemChanged['QListWidgetItem*','QListWidgetItem*'].connect(ActivateCardsDlg.change_set) # type: ignore
        self.saved_sets.itemDoubleClicked['QListWidgetItem*'].connect(ActivateCardsDlg.select_set_and_close) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(ActivateCardsDlg)

    def retranslateUi(self, ActivateCardsDlg):
        _translate = QtCore.QCoreApplication.translate
        ActivateCardsDlg.setWindowTitle(_('(De)activate cards'))
        self.saved_sets_label.setText(_('Saved sets:'))
        self.ok_button.setText(_('&OK'))
        self.save_button.setText(_('&Save this set for later use'))
        self.cancel_button.setText(_('&Cancel'))
