# Form implementation generated from reading ui file 'translator_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_TranslatorDlg(object):
    def setupUi(self, TranslatorDlg):
        TranslatorDlg.setObjectName("TranslatorDlg")
        TranslatorDlg.resize(455, 311)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(TranslatorDlg)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(parent=TranslatorDlg)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.foreign_text = QtWidgets.QTextEdit(parent=TranslatorDlg)
        self.foreign_text.setAcceptRichText(False)
        self.foreign_text.setObjectName("foreign_text")
        self.verticalLayout.addWidget(self.foreign_text)
        self.target_label = QtWidgets.QLabel(parent=TranslatorDlg)
        self.target_label.setObjectName("target_label")
        self.verticalLayout.addWidget(self.target_label)
        self.target_languages = QtWidgets.QComboBox(parent=TranslatorDlg)
        self.target_languages.setObjectName("target_languages")
        self.verticalLayout.addWidget(self.target_languages)
        self.label_2 = QtWidgets.QLabel(parent=TranslatorDlg)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.translated_text = QtWidgets.QTextEdit(parent=TranslatorDlg)
        self.translated_text.setObjectName("translated_text")
        self.verticalLayout.addWidget(self.translated_text)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.preview_button = QtWidgets.QPushButton(parent=TranslatorDlg)
        self.preview_button.setObjectName("preview_button")
        self.horizontalLayout_2.addWidget(self.preview_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.insert_button = QtWidgets.QPushButton(parent=TranslatorDlg)
        self.insert_button.setDefault(True)
        self.insert_button.setObjectName("insert_button")
        self.horizontalLayout_2.addWidget(self.insert_button)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.cancel_button = QtWidgets.QPushButton(parent=TranslatorDlg)
        self.cancel_button.setObjectName("cancel_button")
        self.horizontalLayout_2.addWidget(self.cancel_button)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.verticalLayout_2.addLayout(self.verticalLayout)

        self.retranslateUi(TranslatorDlg)
        self.insert_button.clicked.connect(TranslatorDlg.accept) # type: ignore
        self.cancel_button.clicked.connect(TranslatorDlg.reject) # type: ignore
        self.preview_button.clicked.connect(TranslatorDlg.preview) # type: ignore
        self.foreign_text.textChanged.connect(TranslatorDlg.foreign_text_changed) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(TranslatorDlg)

    def retranslateUi(self, TranslatorDlg):
        _translate = QtCore.QCoreApplication.translate
        TranslatorDlg.setWindowTitle(_('Translate'))
        self.label.setText(_('Foreign text to translate:'))
        self.target_label.setText(_('Target language:'))
        self.label_2.setText(_('Translation:'))
        self.preview_button.setText(_('Preview'))
        self.insert_button.setText(_('Insert'))
        self.cancel_button.setText(_('Cancel'))
