# Form implementation generated from reading ui file 'import_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_ImportDlg(object):
    def setupUi(self, ImportDlg):
        ImportDlg.setObjectName("ImportDlg")
        ImportDlg.resize(251, 185)
        self.gridLayout = QtWidgets.QGridLayout(ImportDlg)
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.vboxlayout = QtWidgets.QVBoxLayout()
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")
        self.textLabel_5 = QtWidgets.QLabel(parent=ImportDlg)
        self.textLabel_5.setWordWrap(False)
        self.textLabel_5.setObjectName("textLabel_5")
        self.vboxlayout.addWidget(self.textLabel_5)
        self.file_formats = QtWidgets.QComboBox(parent=ImportDlg)
        self.file_formats.setEditable(False)
        self.file_formats.setDuplicatesEnabled(False)
        self.file_formats.setObjectName("file_formats")
        self.vboxlayout.addWidget(self.file_formats)
        self.textLabel1 = QtWidgets.QLabel(parent=ImportDlg)
        self.textLabel1.setWordWrap(False)
        self.textLabel1.setObjectName("textLabel1")
        self.vboxlayout.addWidget(self.textLabel1)
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName("hboxlayout")
        self.filename_box = QtWidgets.QLineEdit(parent=ImportDlg)
        self.filename_box.setObjectName("filename_box")
        self.hboxlayout.addWidget(self.filename_box)
        self.browse_button = QtWidgets.QPushButton(parent=ImportDlg)
        self.browse_button.setObjectName("browse_button")
        self.hboxlayout.addWidget(self.browse_button)
        self.vboxlayout.addLayout(self.hboxlayout)
        self.textLabel2 = QtWidgets.QLabel(parent=ImportDlg)
        self.textLabel2.setWordWrap(False)
        self.textLabel2.setObjectName("textLabel2")
        self.vboxlayout.addWidget(self.textLabel2)
        self.tags = QtWidgets.QComboBox(parent=ImportDlg)
        self.tags.setEditable(True)
        self.tags.setDuplicatesEnabled(False)
        self.tags.setObjectName("tags")
        self.vboxlayout.addWidget(self.tags)
        self.hboxlayout1 = QtWidgets.QHBoxLayout()
        self.hboxlayout1.setSpacing(6)
        self.hboxlayout1.setObjectName("hboxlayout1")
        self.ok_button = QtWidgets.QPushButton(parent=ImportDlg)
        self.ok_button.setDefault(True)
        self.ok_button.setObjectName("ok_button")
        self.hboxlayout1.addWidget(self.ok_button)
        spacerItem = QtWidgets.QSpacerItem(201, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.hboxlayout1.addItem(spacerItem)
        self.cancel_button = QtWidgets.QPushButton(parent=ImportDlg)
        self.cancel_button.setDefault(False)
        self.cancel_button.setObjectName("cancel_button")
        self.hboxlayout1.addWidget(self.cancel_button)
        self.vboxlayout.addLayout(self.hboxlayout1)
        self.gridLayout.addLayout(self.vboxlayout, 0, 0, 1, 1)

        self.retranslateUi(ImportDlg)
        self.cancel_button.clicked.connect(ImportDlg.reject) # type: ignore
        self.browse_button.clicked.connect(ImportDlg.browse) # type: ignore
        self.ok_button.clicked.connect(ImportDlg.accept) # type: ignore
        self.file_formats.currentIndexChanged['int'].connect(ImportDlg.file_format_changed) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(ImportDlg)
        ImportDlg.setTabOrder(self.filename_box, self.browse_button)
        ImportDlg.setTabOrder(self.browse_button, self.file_formats)
        ImportDlg.setTabOrder(self.file_formats, self.tags)
        ImportDlg.setTabOrder(self.tags, self.ok_button)
        ImportDlg.setTabOrder(self.ok_button, self.cancel_button)

    def retranslateUi(self, ImportDlg):
        _translate = QtCore.QCoreApplication.translate
        ImportDlg.setWindowTitle(_('Import from file'))
        self.textLabel_5.setText(_('File format:'))
        self.textLabel1.setText(_('File to import from:'))
        self.browse_button.setText(_('&Browse'))
        self.textLabel2.setText(_('Add additional tag(s) to cards:'))
        self.ok_button.setText(_('&OK'))
        self.ok_button.setShortcut(_('Alt+O'))
        self.cancel_button.setText(_('&Cancel'))
