# Form implementation generated from reading ui file 'pronouncer_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_PronouncerDlg(object):
    def setupUi(self, PronouncerDlg):
        PronouncerDlg.setObjectName("PronouncerDlg")
        PronouncerDlg.resize(455, 255)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(PronouncerDlg)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(parent=PronouncerDlg)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.foreign_text = QtWidgets.QTextEdit(parent=PronouncerDlg)
        self.foreign_text.setAcceptRichText(False)
        self.foreign_text.setObjectName("foreign_text")
        self.verticalLayout.addWidget(self.foreign_text)
        self.sublanguages_label = QtWidgets.QLabel(parent=PronouncerDlg)
        self.sublanguages_label.setObjectName("sublanguages_label")
        self.verticalLayout.addWidget(self.sublanguages_label)
        self.sublanguages = QtWidgets.QComboBox(parent=PronouncerDlg)
        self.sublanguages.setObjectName("sublanguages")
        self.verticalLayout.addWidget(self.sublanguages)
        self.label_2 = QtWidgets.QLabel(parent=PronouncerDlg)
        self.label_2.setObjectName("label_2")
        self.verticalLayout.addWidget(self.label_2)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.filename_box = QtWidgets.QLineEdit(parent=PronouncerDlg)
        self.filename_box.setObjectName("filename_box")
        self.horizontalLayout.addWidget(self.filename_box)
        self.browse_button = QtWidgets.QPushButton(parent=PronouncerDlg)
        self.browse_button.setObjectName("browse_button")
        self.horizontalLayout.addWidget(self.browse_button)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.preview_button = QtWidgets.QPushButton(parent=PronouncerDlg)
        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=PronouncerDlg)
        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=PronouncerDlg)
        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(PronouncerDlg)
        self.insert_button.clicked.connect(PronouncerDlg.accept) # type: ignore
        self.cancel_button.clicked.connect(PronouncerDlg.reject) # type: ignore
        self.preview_button.clicked.connect(PronouncerDlg.preview) # type: ignore
        self.browse_button.clicked.connect(PronouncerDlg.browse) # type: ignore
        self.foreign_text.textChanged.connect(PronouncerDlg.foreign_text_changed) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(PronouncerDlg)

    def retranslateUi(self, PronouncerDlg):
        _translate = QtCore.QCoreApplication.translate
        PronouncerDlg.setWindowTitle(_('Text-to-speech'))
        self.label.setText(_('Foreign text to pronounce:'))
        self.sublanguages_label.setText(_('Language variant:'))
        self.label_2.setText(_('Filename to save to:'))
        self.browse_button.setText(_('Browse'))
        self.preview_button.setText(_('Preview'))
        self.insert_button.setText(_('Insert'))
        self.cancel_button.setText(_('Cancel'))
