# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/preferences/misc.ui'
#
# Created by: PyQt6 UI code generator 6.9.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 PyQt6 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(502, 314)
        self.formLayout = QtWidgets.QFormLayout(Form)
        self.formLayout.setFieldGrowthPolicy(QtWidgets.QFormLayout.FieldGrowthPolicy.ExpandingFieldsGrow)
        self.formLayout.setObjectName("formLayout")
        self.opt_enforce_cpu_limit = QtWidgets.QCheckBox(parent=Form)
        self.opt_enforce_cpu_limit.setObjectName("opt_enforce_cpu_limit")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.opt_enforce_cpu_limit)
        self.opt_worker_max_time = QtWidgets.QSpinBox(parent=Form)
        self.opt_worker_max_time.setMaximum(100000)
        self.opt_worker_max_time.setSingleStep(10)
        self.opt_worker_max_time.setObjectName("opt_worker_max_time")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.opt_worker_max_time)
        self.user_defined_device_button = QtWidgets.QPushButton(parent=Form)
        self.user_defined_device_button.setObjectName("user_defined_device_button")
        self.formLayout.setWidget(8, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.user_defined_device_button)
        spacerItem = QtWidgets.QSpacerItem(20, 19, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.formLayout.setItem(9, QtWidgets.QFormLayout.ItemRole.LabelRole, spacerItem)
        self.button_open_config_dir = QtWidgets.QPushButton(parent=Form)
        self.button_open_config_dir.setObjectName("button_open_config_dir")
        self.formLayout.setWidget(11, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.button_open_config_dir)
        spacerItem1 = QtWidgets.QSpacerItem(20, 19, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.formLayout.setItem(12, QtWidgets.QFormLayout.ItemRole.LabelRole, spacerItem1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 1000, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.formLayout.setItem(14, QtWidgets.QFormLayout.ItemRole.SpanningRole, spacerItem2)
        self.opt_worker_limit = QtWidgets.QSpinBox(parent=Form)
        self.opt_worker_limit.setMinimum(1)
        self.opt_worker_limit.setObjectName("opt_worker_limit")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.opt_worker_limit)
        self.label_5 = QtWidgets.QLabel(parent=Form)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_5)
        spacerItem3 = QtWidgets.QSpacerItem(20, 18, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.formLayout.setItem(6, QtWidgets.QFormLayout.ItemRole.LabelRole, spacerItem3)
        self.label = QtWidgets.QLabel(parent=Form)
        self.label.setObjectName("label")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
        self.device_detection_button = QtWidgets.QPushButton(parent=Form)
        self.device_detection_button.setObjectName("device_detection_button")
        self.formLayout.setWidget(7, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.device_detection_button)
        self.icon_theme_button = QtWidgets.QPushButton(parent=Form)
        self.icon_theme_button.setObjectName("icon_theme_button")
        self.formLayout.setWidget(10, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.icon_theme_button)
        self.proxies = QtWidgets.QLabel(parent=Form)
        self.proxies.setText("")
        self.proxies.setObjectName("proxies")
        self.formLayout.setWidget(13, QtWidgets.QFormLayout.ItemRole.SpanningRole, self.proxies)
        self.label_5.setBuddy(self.opt_worker_limit)
        self.label.setBuddy(self.opt_worker_max_time)

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

    def retranslateUi(self, Form):

        Form.setWindowTitle(_("Form"))
        self.opt_enforce_cpu_limit.setText(_("Limit the max. simultaneous jobs to the available CPU &cores"))
        self.opt_worker_max_time.setSpecialValueText(_("Never abort"))
        self.opt_worker_max_time.setSuffix(_(" minutes"))
        self.user_defined_device_button.setText(_("Get information to setup the &user defined device"))
        self.button_open_config_dir.setText(_("Open calibre &configuration folder"))
        self.label_5.setText(_("Max. simultaneous conversion/&news download/plugin jobs:"))
        self.label.setText(_("Abort &jobs that take more than:"))
        self.device_detection_button.setText(_("Debug &device detection"))
        self.icon_theme_button.setText(_("Create a calibre &icon theme"))
