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

# Form implementation generated from reading ui file 'tikka/slots/pyqt/resources/gui/windows/vault_import_by_mnemonic.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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


class Ui_VaultImportByMnemonicDialog(object):
    def setupUi(self, VaultImportByMnemonicDialog):
        VaultImportByMnemonicDialog.setObjectName("VaultImportByMnemonicDialog")
        VaultImportByMnemonicDialog.resize(1186, 515)
        self.verticalLayout = QtWidgets.QVBoxLayout(VaultImportByMnemonicDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.imagelabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.imagelabel.sizePolicy().hasHeightForWidth())
        self.imagelabel.setSizePolicy(sizePolicy)
        self.imagelabel.setMinimumSize(QtCore.QSize(0, 0))
        self.imagelabel.setMaximumSize(QtCore.QSize(200, 200))
        self.imagelabel.setSizeIncrement(QtCore.QSize(0, 0))
        self.imagelabel.setBaseSize(QtCore.QSize(0, 0))
        self.imagelabel.setText("")
        self.imagelabel.setPixmap(QtGui.QPixmap(":/images/safe_background"))
        self.imagelabel.setScaledContents(True)
        self.imagelabel.setAlignment(QtCore.Qt.AlignCenter)
        self.imagelabel.setObjectName("imagelabel")
        self.verticalLayout.addWidget(self.imagelabel, 0, QtCore.Qt.AlignHCenter)
        self.helpLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        font = QtGui.QFont()
        font.setItalic(True)
        self.helpLabel.setFont(font)
        self.helpLabel.setObjectName("helpLabel")
        self.verticalLayout.addWidget(self.helpLabel, 0, QtCore.Qt.AlignHCenter)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.mnemonicLanguageValueLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        self.mnemonicLanguageValueLabel.setText("")
        self.mnemonicLanguageValueLabel.setObjectName("mnemonicLanguageValueLabel")
        self.gridLayout.addWidget(self.mnemonicLanguageValueLabel, 2, 1, 1, 1)
        self.mnemonicLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.mnemonicLabel.setFont(font)
        self.mnemonicLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.mnemonicLabel.setObjectName("mnemonicLabel")
        self.gridLayout.addWidget(self.mnemonicLabel, 1, 0, 1, 1)
        self.mnemonicLineEdit = QtWidgets.QLineEdit(VaultImportByMnemonicDialog)
        self.mnemonicLineEdit.setText("")
        self.mnemonicLineEdit.setEchoMode(QtWidgets.QLineEdit.Password)
        self.mnemonicLineEdit.setReadOnly(False)
        self.mnemonicLineEdit.setObjectName("mnemonicLineEdit")
        self.gridLayout.addWidget(self.mnemonicLineEdit, 1, 1, 1, 1)
        self.showButton = QtWidgets.QPushButton(VaultImportByMnemonicDialog)
        self.showButton.setObjectName("showButton")
        self.gridLayout.addWidget(self.showButton, 1, 2, 1, 1)
        self.nameLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.nameLabel.setFont(font)
        self.nameLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.nameLabel.setObjectName("nameLabel")
        self.gridLayout.addWidget(self.nameLabel, 5, 0, 1, 1)
        self.addressValueLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        self.addressValueLabel.setText("")
        self.addressValueLabel.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
        self.addressValueLabel.setObjectName("addressValueLabel")
        self.gridLayout.addWidget(self.addressValueLabel, 4, 1, 1, 1)
        self.mnemonicLanguageLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setItalic(False)
        font.setWeight(75)
        self.mnemonicLanguageLabel.setFont(font)
        self.mnemonicLanguageLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.mnemonicLanguageLabel.setObjectName("mnemonicLanguageLabel")
        self.gridLayout.addWidget(self.mnemonicLanguageLabel, 2, 0, 1, 1)
        self.addressLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.addressLabel.setFont(font)
        self.addressLabel.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.addressLabel.setObjectName("addressLabel")
        self.gridLayout.addWidget(self.addressLabel, 4, 0, 1, 1)
        self.nameLineEdit = QtWidgets.QLineEdit(VaultImportByMnemonicDialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.nameLineEdit.sizePolicy().hasHeightForWidth())
        self.nameLineEdit.setSizePolicy(sizePolicy)
        self.nameLineEdit.setObjectName("nameLineEdit")
        self.gridLayout.addWidget(self.nameLineEdit, 5, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.errorLabel = QtWidgets.QLabel(VaultImportByMnemonicDialog)
        self.errorLabel.setStyleSheet("color: red")
        self.errorLabel.setText("")
        self.errorLabel.setAlignment(QtCore.Qt.AlignCenter)
        self.errorLabel.setObjectName("errorLabel")
        self.verticalLayout.addWidget(self.errorLabel)
        self.storedPasswordFrame = QtWidgets.QFrame(VaultImportByMnemonicDialog)
        self.storedPasswordFrame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.storedPasswordFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.storedPasswordFrame.setObjectName("storedPasswordFrame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.storedPasswordFrame)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.storedPasswordLabel = QtWidgets.QLabel(self.storedPasswordFrame)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.storedPasswordLabel.setFont(font)
        self.storedPasswordLabel.setObjectName("storedPasswordLabel")
        self.horizontalLayout.addWidget(self.storedPasswordLabel, 0, QtCore.Qt.AlignRight)
        self.storedpasswordLineEdit = QtWidgets.QLineEdit(self.storedPasswordFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.storedpasswordLineEdit.sizePolicy().hasHeightForWidth())
        self.storedpasswordLineEdit.setSizePolicy(sizePolicy)
        self.storedpasswordLineEdit.setMaxLength(20)
        self.storedpasswordLineEdit.setEchoMode(QtWidgets.QLineEdit.Password)
        self.storedpasswordLineEdit.setAlignment(QtCore.Qt.AlignCenter)
        self.storedpasswordLineEdit.setReadOnly(True)
        self.storedpasswordLineEdit.setObjectName("storedpasswordLineEdit")
        self.horizontalLayout.addWidget(self.storedpasswordLineEdit, 0, QtCore.Qt.AlignHCenter)
        self.storedPasswordHintLabel = QtWidgets.QLabel(self.storedPasswordFrame)
        font = QtGui.QFont()
        font.setItalic(True)
        self.storedPasswordHintLabel.setFont(font)
        self.storedPasswordHintLabel.setObjectName("storedPasswordHintLabel")
        self.horizontalLayout.addWidget(self.storedPasswordHintLabel, 0, QtCore.Qt.AlignLeft)
        self.verticalLayout.addWidget(self.storedPasswordFrame)
        self.passwordFrame = QtWidgets.QFrame(VaultImportByMnemonicDialog)
        self.passwordFrame.setObjectName("passwordFrame")
        self.passwordlLayout = QtWidgets.QHBoxLayout(self.passwordFrame)
        self.passwordlLayout.setObjectName("passwordlLayout")
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.passwordlLayout.addItem(spacerItem1)
        self.passwordLabel = QtWidgets.QLabel(self.passwordFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.passwordLabel.sizePolicy().hasHeightForWidth())
        self.passwordLabel.setSizePolicy(sizePolicy)
        self.passwordLabel.setSizeIncrement(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.passwordLabel.setFont(font)
        self.passwordLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
        self.passwordLabel.setObjectName("passwordLabel")
        self.passwordlLayout.addWidget(self.passwordLabel)
        self.passwordLineEdit = QtWidgets.QLineEdit(self.passwordFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.passwordLineEdit.sizePolicy().hasHeightForWidth())
        self.passwordLineEdit.setSizePolicy(sizePolicy)
        self.passwordLineEdit.setMaxLength(20)
        self.passwordLineEdit.setAlignment(QtCore.Qt.AlignCenter)
        self.passwordLineEdit.setReadOnly(True)
        self.passwordLineEdit.setObjectName("passwordLineEdit")
        self.passwordlLayout.addWidget(self.passwordLineEdit)
        self.passwordChangeButton = QtWidgets.QPushButton(self.passwordFrame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.passwordChangeButton.sizePolicy().hasHeightForWidth())
        self.passwordChangeButton.setSizePolicy(sizePolicy)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/refresh_icon"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.passwordChangeButton.setIcon(icon)
        self.passwordChangeButton.setObjectName("passwordChangeButton")
        self.passwordlLayout.addWidget(self.passwordChangeButton)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.passwordlLayout.addItem(spacerItem2)
        self.verticalLayout.addWidget(self.passwordFrame)
        self.buttonBox = QtWidgets.QDialogButtonBox(VaultImportByMnemonicDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox, 0, QtCore.Qt.AlignHCenter)

        self.retranslateUi(VaultImportByMnemonicDialog)
        self.buttonBox.accepted.connect(VaultImportByMnemonicDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(VaultImportByMnemonicDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(VaultImportByMnemonicDialog)
        VaultImportByMnemonicDialog.setTabOrder(self.mnemonicLineEdit, self.nameLineEdit)
        VaultImportByMnemonicDialog.setTabOrder(self.nameLineEdit, self.storedpasswordLineEdit)
        VaultImportByMnemonicDialog.setTabOrder(self.storedpasswordLineEdit, self.passwordLineEdit)
        VaultImportByMnemonicDialog.setTabOrder(self.passwordLineEdit, self.passwordChangeButton)
        VaultImportByMnemonicDialog.setTabOrder(self.passwordChangeButton, self.showButton)

    def retranslateUi(self, VaultImportByMnemonicDialog):
        #  _translate = QtCore.QCoreApplication.translate
        VaultImportByMnemonicDialog.setWindowTitle(_("Import Vault by mnemonic"))
        self.helpLabel.setText(_("Tikka will create your vault from the mnemonic, and will store each account protected by the same password."))
        self.mnemonicLabel.setText(_("Mnemonic"))
        self.mnemonicLineEdit.setPlaceholderText(_("12 words separated by spaces"))
        self.showButton.setText(_("Show"))
        self.nameLabel.setText(_("Name"))
        self.mnemonicLanguageLabel.setText(_("Mnemonic language"))
        self.addressLabel.setText(_("Address"))
        self.storedPasswordLabel.setText(_("Password"))
        self.storedPasswordHintLabel.setText(_("Wallet will be locked with the current password"))
        self.passwordLabel.setText(_("Password"))
        self.passwordChangeButton.setText(_("Change"))
import tikka.slots.pyqt.resources.icons.index_rc
