# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'manage_card_types_dlg.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!

from mnemosyne.libmnemosyne.translator import _
from PyQt5 import QtCore, QtGui, QtWidgets

class Ui_ManageCardTypesDlg(object):
    def setupUi(self, ManageCardTypesDlg):
        ManageCardTypesDlg.setObjectName("ManageCardTypesDlg")
        ManageCardTypesDlg.resize(389, 389)
        ManageCardTypesDlg.setMinimumSize(QtCore.QSize(300, 240))
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(ManageCardTypesDlg)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.cloned_card_types_box = QtWidgets.QGroupBox(ManageCardTypesDlg)
        self.cloned_card_types_box.setObjectName("cloned_card_types_box")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.cloned_card_types_box)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.cloned_card_types = QtWidgets.QListWidget(self.cloned_card_types_box)
        self.cloned_card_types.setObjectName("cloned_card_types")
        self.verticalLayout_2.addWidget(self.cloned_card_types)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.clone_button = QtWidgets.QPushButton(self.cloned_card_types_box)
        self.clone_button.setObjectName("clone_button")
        self.horizontalLayout_3.addWidget(self.clone_button)
        self.rename_clone_button = QtWidgets.QPushButton(self.cloned_card_types_box)
        self.rename_clone_button.setObjectName("rename_clone_button")
        self.horizontalLayout_3.addWidget(self.rename_clone_button)
        self.delete_clone_button = QtWidgets.QPushButton(self.cloned_card_types_box)
        self.delete_clone_button.setObjectName("delete_clone_button")
        self.horizontalLayout_3.addWidget(self.delete_clone_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.verticalLayout_3.addWidget(self.cloned_card_types_box)
        self.M_sided_card_types_box = QtWidgets.QGroupBox(ManageCardTypesDlg)
        self.M_sided_card_types_box.setObjectName("M_sided_card_types_box")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.M_sided_card_types_box)
        self.verticalLayout.setObjectName("verticalLayout")
        self.M_sided_card_types = QtWidgets.QListWidget(self.M_sided_card_types_box)
        self.M_sided_card_types.setObjectName("M_sided_card_types")
        self.verticalLayout.addWidget(self.M_sided_card_types)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.edit_M_sided_button = QtWidgets.QPushButton(self.M_sided_card_types_box)
        self.edit_M_sided_button.setObjectName("edit_M_sided_button")
        self.horizontalLayout.addWidget(self.edit_M_sided_button)
        self.rename_M_sided_button = QtWidgets.QPushButton(self.M_sided_card_types_box)
        self.rename_M_sided_button.setObjectName("rename_M_sided_button")
        self.horizontalLayout.addWidget(self.rename_M_sided_button)
        self.delete_M_sided_button = QtWidgets.QPushButton(self.M_sided_card_types_box)
        self.delete_M_sided_button.setObjectName("delete_M_sided_button")
        self.horizontalLayout.addWidget(self.delete_M_sided_button)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.verticalLayout_3.addWidget(self.M_sided_card_types_box)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.exit_button = QtWidgets.QPushButton(ManageCardTypesDlg)
        self.exit_button.setDefault(True)
        self.exit_button.setObjectName("exit_button")
        self.horizontalLayout_2.addWidget(self.exit_button)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.verticalLayout_4.addLayout(self.verticalLayout_3)

        self.retranslateUi(ManageCardTypesDlg)
        self.exit_button.clicked.connect(ManageCardTypesDlg.reject)
        self.clone_button.clicked.connect(ManageCardTypesDlg.clone_card_type)
        self.rename_clone_button.clicked.connect(ManageCardTypesDlg.rename_cloned_card_type)
        self.delete_clone_button.clicked.connect(ManageCardTypesDlg.delete_cloned_card_type)
        self.delete_M_sided_button.clicked.connect(ManageCardTypesDlg.delete_M_sided_card_type)
        self.rename_M_sided_button.clicked.connect(ManageCardTypesDlg.rename_M_sided_card_type)
        self.edit_M_sided_button.clicked.connect(ManageCardTypesDlg.edit_M_sided_card_type)
        self.cloned_card_types.itemClicked.connect(ManageCardTypesDlg.activate_cloned_card_type)
        self.M_sided_card_types.itemClicked.connect(ManageCardTypesDlg.activate_M_sided_card_type)
        QtCore.QMetaObject.connectSlotsByName(ManageCardTypesDlg)

    def retranslateUi(self, ManageCardTypesDlg):
        _translate = QtCore.QCoreApplication.translate
        ManageCardTypesDlg.setWindowTitle(_('Card type manager'))
        self.cloned_card_types_box.setTitle(_('Cloned card types'))
        self.clone_button.setText(_('&New clone'))
        self.rename_clone_button.setText(_('&Rename'))
        self.delete_clone_button.setText(_('&Delete'))
        self.M_sided_card_types_box.setTitle(_('M-sided card types'))
        self.edit_M_sided_button.setText(_('&Edit'))
        self.rename_M_sided_button.setText(_('&Rename'))
        self.delete_M_sided_button.setText(_('&Delete'))
        self.exit_button.setText(_('E&xit'))

