# Form implementation generated from reading ui file 'add_tags_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_AddTagsDlg(object):
    def setupUi(self, AddTagsDlg):
        AddTagsDlg.setObjectName("AddTagsDlg")
        AddTagsDlg.resize(274, 65)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(AddTagsDlg)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label = QtWidgets.QLabel(parent=AddTagsDlg)
        self.label.setObjectName("label")
        self.horizontalLayout.addWidget(self.label)
        self.tags = CompletionComboBox(parent=AddTagsDlg)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.MinimumExpanding, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tags.sizePolicy().hasHeightForWidth())
        self.tags.setSizePolicy(sizePolicy)
        self.tags.setEditable(True)
        self.tags.setObjectName("tags")
        self.horizontalLayout.addWidget(self.tags)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.hboxlayout = QtWidgets.QHBoxLayout()
        self.hboxlayout.setObjectName("hboxlayout")
        self.ok_button = QtWidgets.QPushButton(parent=AddTagsDlg)
        self.ok_button.setAutoDefault(True)
        self.ok_button.setDefault(True)
        self.ok_button.setObjectName("ok_button")
        self.hboxlayout.addWidget(self.ok_button)
        spacerItem = QtWidgets.QSpacerItem(101, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.hboxlayout.addItem(spacerItem)
        self.cancel_button = QtWidgets.QPushButton(parent=AddTagsDlg)
        self.cancel_button.setAutoDefault(False)
        self.cancel_button.setObjectName("cancel_button")
        self.hboxlayout.addWidget(self.cancel_button)
        self.verticalLayout.addLayout(self.hboxlayout)
        self.verticalLayout_2.addLayout(self.verticalLayout)

        self.retranslateUi(AddTagsDlg)
        self.cancel_button.clicked.connect(AddTagsDlg.reject) # type: ignore
        self.ok_button.clicked.connect(AddTagsDlg.accept) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(AddTagsDlg)

    def retranslateUi(self, AddTagsDlg):
        _translate = QtCore.QCoreApplication.translate
        AddTagsDlg.setWindowTitle(_('Add tags'))
        self.label.setText(_('Tags:'))
        self.ok_button.setText(_('&OK'))
        self.cancel_button.setText(_('&Cancel'))
from mnemosyne.pyqt_ui.completion_combo_box import CompletionComboBox
