# Form implementation generated from reading ui file 'card_set_name_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_CardSetNameDlg(object):
    def setupUi(self, CardSetNameDlg):
        CardSetNameDlg.setObjectName("CardSetNameDlg")
        CardSetNameDlg.resize(312, 36)
        self.verticalLayout = QtWidgets.QVBoxLayout(CardSetNameDlg)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(parent=CardSetNameDlg)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.set_name = QtWidgets.QComboBox(parent=CardSetNameDlg)
        self.set_name.setEditable(True)
        self.set_name.setObjectName("set_name")
        self.horizontalLayout.addWidget(self.set_name)
        self.ok_button = QtWidgets.QPushButton(parent=CardSetNameDlg)
        self.ok_button.setDefault(True)
        self.ok_button.setObjectName("ok_button")
        self.horizontalLayout.addWidget(self.ok_button)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(CardSetNameDlg)
        self.ok_button.clicked.connect(CardSetNameDlg.accept) # type: ignore
        self.set_name.editTextChanged['QString'].connect(CardSetNameDlg.text_changed) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(CardSetNameDlg)

    def retranslateUi(self, CardSetNameDlg):
        _translate = QtCore.QCoreApplication.translate
        CardSetNameDlg.setWindowTitle(_('Card set name'))
        self.label.setText(_('Card set name:'))
        self.ok_button.setText(_('&OK'))
