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

# Form implementation generated from reading ui file 'pronouncer_dlg.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from mnemosyne.libmnemosyne.gui_translator import _
from PyQt5 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(PronouncerDlg)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.foreign_text = QtWidgets.QTextEdit(PronouncerDlg)
        self.foreign_text.setAcceptRichText(False)
        self.foreign_text.setObjectName("foreign_text")
        self.verticalLayout.addWidget(self.foreign_text)
        self.sublanguages_label = QtWidgets.QLabel(PronouncerDlg)
        self.sublanguages_label.setObjectName("sublanguages_label")
        self.verticalLayout.addWidget(self.sublanguages_label)
        self.sublanguages = QtWidgets.QComboBox(PronouncerDlg)
        self.sublanguages.setObjectName("sublanguages")
        self.verticalLayout.addWidget(self.sublanguages)
        self.label_2 = QtWidgets.QLabel(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(PronouncerDlg)
        self.filename_box.setObjectName("filename_box")
        self.horizontalLayout.addWidget(self.filename_box)
        self.browse_button = QtWidgets.QPushButton(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(PronouncerDlg)
        self.preview_button.setObjectName("preview_button")
        self.horizontalLayout_2.addWidget(self.preview_button)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.insert_button = QtWidgets.QPushButton(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.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem1)
        self.cancel_button = QtWidgets.QPushButton(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)
        self.cancel_button.clicked.connect(PronouncerDlg.reject)
        self.preview_button.clicked.connect(PronouncerDlg.preview)
        self.browse_button.clicked.connect(PronouncerDlg.browse)
        self.foreign_text.textChanged.connect(PronouncerDlg.foreign_text_changed)
        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'))
