# Form implementation generated from reading ui file 'configuration_wdgt_servers.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_ConfigurationWdgtServers(object):
    def setupUi(self, ConfigurationWdgtServers):
        ConfigurationWdgtServers.setObjectName("ConfigurationWdgtServers")
        ConfigurationWdgtServers.resize(426, 352)
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(ConfigurationWdgtServers)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.run_sync_server = QtWidgets.QGroupBox(parent=ConfigurationWdgtServers)
        self.run_sync_server.setCheckable(True)
        self.run_sync_server.setObjectName("run_sync_server")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.run_sync_server)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.username = QtWidgets.QLineEdit(parent=self.run_sync_server)
        self.username.setObjectName("username")
        self.gridLayout.addWidget(self.username, 0, 1, 1, 2)
        self.label_4 = QtWidgets.QLabel(parent=self.run_sync_server)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(parent=self.run_sync_server)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.password_stacked_widget = QtWidgets.QStackedWidget(parent=self.run_sync_server)
        self.password_stacked_widget.setObjectName("password_stacked_widget")
        self.edit_password_page = QtWidgets.QWidget()
        self.edit_password_page.setObjectName("edit_password_page")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.edit_password_page)
        self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.password = QtWidgets.QLineEdit(parent=self.edit_password_page)
        self.password.setEchoMode(QtWidgets.QLineEdit.EchoMode.Password)
        self.password.setObjectName("password")
        self.gridLayout_2.addWidget(self.password, 0, 0, 1, 1)
        self.password_stacked_widget.addWidget(self.edit_password_page)
        self.reset_password_page = QtWidgets.QWidget()
        self.reset_password_page.setObjectName("reset_password_page")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.reset_password_page)
        self.gridLayout_3.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.reset_password_button = QtWidgets.QPushButton(parent=self.reset_password_page)
        self.reset_password_button.setObjectName("reset_password_button")
        self.gridLayout_3.addWidget(self.reset_password_button, 0, 0, 1, 1)
        self.password_stacked_widget.addWidget(self.reset_password_page)
        self.gridLayout.addWidget(self.password_stacked_widget, 1, 1, 1, 2)
        self.label_3 = QtWidgets.QLabel(parent=self.run_sync_server)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.sync_port = QtWidgets.QSpinBox(parent=self.run_sync_server)
        self.sync_port.setMinimum(1)
        self.sync_port.setMaximum(99999)
        self.sync_port.setObjectName("sync_port")
        self.gridLayout.addWidget(self.sync_port, 2, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.gridLayout.addItem(spacerItem, 2, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.check_for_edited_local_media_files = QtWidgets.QCheckBox(parent=self.run_sync_server)
        self.check_for_edited_local_media_files.setObjectName("check_for_edited_local_media_files")
        self.verticalLayout.addWidget(self.check_for_edited_local_media_files)
        self.sync_server_status = QtWidgets.QLabel(parent=self.run_sync_server)
        self.sync_server_status.setObjectName("sync_server_status")
        self.verticalLayout.addWidget(self.sync_server_status)
        self.verticalLayout_3.addWidget(self.run_sync_server)
        self.run_web_server = QtWidgets.QGroupBox(parent=ConfigurationWdgtServers)
        self.run_web_server.setCheckable(True)
        self.run_web_server.setObjectName("run_web_server")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.run_web_server)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_5 = QtWidgets.QLabel(parent=self.run_web_server)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout.addWidget(self.label_5)
        self.web_port = QtWidgets.QSpinBox(parent=self.run_web_server)
        self.web_port.setMinimum(1)
        self.web_port.setMaximum(99999)
        self.web_port.setObjectName("web_port")
        self.horizontalLayout.addWidget(self.web_port)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout_2.addLayout(self.horizontalLayout)
        self.web_server_status = QtWidgets.QLabel(parent=self.run_web_server)
        self.web_server_status.setObjectName("web_server_status")
        self.verticalLayout_2.addWidget(self.web_server_status)
        spacerItem2 = QtWidgets.QSpacerItem(271, 90, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout_2.addItem(spacerItem2)
        self.verticalLayout_3.addWidget(self.run_web_server)
        self.verticalLayout_4.addLayout(self.verticalLayout_3)

        self.retranslateUi(ConfigurationWdgtServers)
        self.reset_password_button.clicked.connect(ConfigurationWdgtServers.reset_password) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(ConfigurationWdgtServers)

    def retranslateUi(self, ConfigurationWdgtServers):
        _translate = QtCore.QCoreApplication.translate
        ConfigurationWdgtServers.setWindowTitle(_('Form'))
        self.run_sync_server.setTitle(_('Allow other devices to sync with this computer'))
        self.label_4.setText(_('Password:'))
        self.label_2.setText(_('Username:'))
        self.reset_password_button.setText(_('Reset password'))
        self.label_3.setText(_('Port:'))
        self.check_for_edited_local_media_files.setText(_('Check for changed media files on server'))
        self.sync_server_status.setText(_('Sync server status'))
        self.run_web_server.setTitle(_('Allow remote review through a web browser'))
        self.label_5.setText(_('Port:         '))
        self.web_server_status.setText(_('Web server status'))
