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

# Form implementation generated from reading ui file 'Qt/settings.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 PyQt5 import QtCore, QtGui, QtWidgets
from ..core import speak

n = 0


class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(757, 449)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setObjectName("gridLayout")
        self.scrollArea = QtWidgets.QScrollArea(Dialog)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 737, 412))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.scrollAreaWidgetContents)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.wikiSpin = QtWidgets.QSpinBox(self.scrollAreaWidgetContents)
        self.wikiSpin.setMinimum(1)
        self.wikiSpin.setMaximum(20)
        self.wikiSpin.setProperty("value", 4)
        self.wikiSpin.setObjectName("wikiSpin")
        self.gridLayout_2.addWidget(self.wikiSpin, 3, 1, 1, 2)
        self.speedLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.speedLabel.setObjectName("speedLabel")
        self.gridLayout_2.addWidget(self.speedLabel, 1, 0, 1, 1)
        self.toLangLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.toLangLabel.setObjectName("toLangLabel")
        self.gridLayout_2.addWidget(self.toLangLabel, 6, 0, 1, 1)
        self.voiceBox = QtWidgets.QComboBox(self.scrollAreaWidgetContents)
        self.voiceBox.setToolTip("")
        self.voiceBox.setToolTipDuration(-1)
        self.voiceBox.setObjectName("voiceBox")
        for voice in speak.tts_d.list_synthesis_voices():
            if voice[1] == "ru":
                self.voiceBox.addItem("")
        self.gridLayout_2.addWidget(self.voiceBox, 0, 1, 1, 2)
        self.toLangCombo = QtWidgets.QComboBox(self.scrollAreaWidgetContents)
        self.toLangCombo.setObjectName("toLangCombo")
        self.toLangCombo.addItem("")
        self.toLangCombo.addItem("")
        self.toLangCombo.addItem("")
        self.toLangCombo.addItem("")
        self.toLangCombo.addItem("")
        self.toLangCombo.addItem("")
        self.toLangCombo.addItem("")
        self.toLangCombo.addItem("")
        self.gridLayout_2.addWidget(self.toLangCombo, 6, 1, 1, 2)
        self.speedSlider = QtWidgets.QSlider(self.scrollAreaWidgetContents)
        self.speedSlider.setToolTip("")
        self.speedSlider.setProperty("value", 30)
        self.speedSlider.setOrientation(QtCore.Qt.Horizontal)
        self.speedSlider.setObjectName("speedSlider")
        self.gridLayout_2.addWidget(self.speedSlider, 1, 1, 1, 2)
        self.weatherApi = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
        self.weatherApi.setEnabled(True)
        self.weatherApi.setPlaceholderText("")
        self.weatherApi.setObjectName("weatherApi")
        self.gridLayout_2.addWidget(self.weatherApi, 8, 1, 1, 2)
        self.fromLangLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.fromLangLabel.setObjectName("fromLangLabel")
        self.gridLayout_2.addWidget(self.fromLangLabel, 7, 0, 1, 1)
        self.musicLoc = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
        self.musicLoc.setClearButtonEnabled(False)
        self.musicLoc.setObjectName("musicLoc")
        self.gridLayout_2.addWidget(self.musicLoc, 4, 1, 1, 1)
        self.themeLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.themeLabel.setObjectName("themeLabel")
        self.gridLayout_2.addWidget(self.themeLabel, 5, 0, 1, 1)
        self.pitchLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.pitchLabel.setObjectName("pitchLabel")
        self.gridLayout_2.addWidget(self.pitchLabel, 2, 0, 1, 1)
        self.pitchSlider = QtWidgets.QSlider(self.scrollAreaWidgetContents)
        self.pitchSlider.setOrientation(QtCore.Qt.Horizontal)
        self.pitchSlider.setObjectName("pitchSlider")
        self.gridLayout_2.addWidget(self.pitchSlider, 2, 1, 1, 2)
        self.musicDir = QtWidgets.QToolButton(self.scrollAreaWidgetContents)
        self.musicDir.setObjectName("musicDir")
        self.gridLayout_2.addWidget(self.musicDir, 4, 2, 1, 1)
        self.voiceLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.voiceLabel.setObjectName("voiceLabel")
        self.gridLayout_2.addWidget(self.voiceLabel, 0, 0, 1, 1)
        self.musicLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.musicLabel.setObjectName("musicLabel")
        self.gridLayout_2.addWidget(self.musicLabel, 4, 0, 1, 1)
        self.wikiLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.wikiLabel.setWordWrap(True)
        self.wikiLabel.setObjectName("wikiLabel")
        self.gridLayout_2.addWidget(self.wikiLabel, 3, 0, 1, 1)
        self.fromLangCombo = QtWidgets.QComboBox(self.scrollAreaWidgetContents)
        self.fromLangCombo.setObjectName("fromLangCombo")
        self.fromLangCombo.addItem("")
        self.fromLangCombo.addItem("")
        self.fromLangCombo.addItem("")
        self.fromLangCombo.addItem("")
        self.fromLangCombo.addItem("")
        self.fromLangCombo.addItem("")
        self.fromLangCombo.addItem("")
        self.fromLangCombo.addItem("")
        self.gridLayout_2.addWidget(self.fromLangCombo, 7, 1, 1, 2)
        self.themeCombo = QtWidgets.QComboBox(self.scrollAreaWidgetContents)
        self.themeCombo.setObjectName("themeCombo")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.addItem("")
        self.themeCombo.setItemText(19, "")
        self.gridLayout_2.addWidget(self.themeCombo, 5, 1, 1, 2)
        self.weatherCityLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.weatherCityLabel.setObjectName("weatherCityLabel")
        self.gridLayout_2.addWidget(self.weatherCityLabel, 9, 0, 1, 1)
        self.weatherCity = QtWidgets.QLineEdit(self.scrollAreaWidgetContents)
        self.weatherCity.setObjectName("weatherCity")
        self.gridLayout_2.addWidget(self.weatherCity, 9, 1, 1, 2)
        self.weatherApiLabel = QtWidgets.QLabel(self.scrollAreaWidgetContents)
        self.weatherApiLabel.setObjectName("weatherApiLabel")
        self.gridLayout_2.addWidget(self.weatherApiLabel, 8, 0, 1, 1)
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout.addWidget(self.scrollArea, 0, 1, 1, 2)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 1, 1, 1, 2)

        self.retranslateUi(Dialog)
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        global n
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Настройки"))
        self.speedLabel.setText(_translate("Dialog", "Скорость речи:"))
        self.toLangLabel.setText(_translate("Dialog", "Переводимый язык по умолчанию:"))
        for voice in speak.tts_d.list_synthesis_voices():
            if voice[1] == "ru":
                self.voiceBox.setItemText(n, _translate("Dialog", voice[0]))
                n += 1
        self.toLangCombo.setItemText(0, _translate("Dialog", "en"))
        self.toLangCombo.setItemText(1, _translate("Dialog", "ru"))
        self.toLangCombo.setItemText(2, _translate("Dialog", "it"))
        self.toLangCombo.setItemText(3, _translate("Dialog", "pt"))
        self.toLangCombo.setItemText(4, _translate("Dialog", "uk"))
        self.toLangCombo.setItemText(5, _translate("Dialog", "es"))
        self.toLangCombo.setItemText(6, _translate("Dialog", "de"))
        self.toLangCombo.setItemText(7, _translate("Dialog", "fr"))
        self.fromLangLabel.setText(_translate("Dialog", "С какого языка переводить по умолчанию:"))
        self.themeLabel.setText(_translate("Dialog", "Тема приложения:"))
        self.pitchLabel.setText(_translate("Dialog", "Pitch речи:"))
        self.musicDir.setText(_translate("Dialog", "..."))
        self.voiceLabel.setText(_translate("Dialog", "Голос синтезатора речи:"))
        self.musicLabel.setText(_translate("Dialog", "Папка с музыкой:"))
        self.wikiLabel.setText(_translate("Dialog", "Количество озвучиваемых предложений из статей на Wikipedia:"))
        self.fromLangCombo.setItemText(0, _translate("Dialog", "ru"))
        self.fromLangCombo.setItemText(1, _translate("Dialog", "en"))
        self.fromLangCombo.setItemText(2, _translate("Dialog", "es"))
        self.fromLangCombo.setItemText(3, _translate("Dialog", "it"))
        self.fromLangCombo.setItemText(4, _translate("Dialog", "uk"))
        self.fromLangCombo.setItemText(5, _translate("Dialog", "pt"))
        self.fromLangCombo.setItemText(6, _translate("Dialog", "fr"))
        self.fromLangCombo.setItemText(7, _translate("Dialog", "de"))
        self.themeCombo.setItemText(0, _translate("Dialog", "Dark Red"))
        self.themeCombo.setItemText(1, _translate("Dialog", "System"))
        self.themeCombo.setItemText(2, _translate("Dialog", "Dark Amber"))
        self.themeCombo.setItemText(3, _translate("Dialog", "Dark Blue"))
        self.themeCombo.setItemText(4, _translate("Dialog", "Dark Cyan"))
        self.themeCombo.setItemText(5, _translate("Dialog", "Dark Lightgreen"))
        self.themeCombo.setItemText(6, _translate("Dialog", "Dark Pink"))
        self.themeCombo.setItemText(7, _translate("Dialog", "Dark Purple"))
        self.themeCombo.setItemText(8, _translate("Dialog", "Dark Teal"))
        self.themeCombo.setItemText(9, _translate("Dialog", "Dark Yellow"))
        self.themeCombo.setItemText(10, _translate("Dialog", "Light Amber"))
        self.themeCombo.setItemText(11, _translate("Dialog", "Light Blue"))
        self.themeCombo.setItemText(12, _translate("Dialog", "Light Cyan"))
        self.themeCombo.setItemText(13, _translate("Dialog", "Light Lightgreen"))
        self.themeCombo.setItemText(14, _translate("Dialog", "Light Pink"))
        self.themeCombo.setItemText(15, _translate("Dialog", "Light Purple"))
        self.themeCombo.setItemText(16, _translate("Dialog", "Light Red"))
        self.themeCombo.setItemText(17, _translate("Dialog", "Light Teal"))
        self.themeCombo.setItemText(18, _translate("Dialog", "Light Yellow"))
        self.weatherCityLabel.setText(_translate("Dialog", "Город по умолчанию для навыка Погоды"))
        self.weatherCity.setText(_translate("Dialog", "Лондон"))
        self.weatherApiLabel.setText(_translate("Dialog", "API ключ OpenWeatherMap"))
