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

# Form implementation generated from reading ui file '/home/kovid/work/calibre/src/calibre/gui2/preferences/misc.ui'
#
# Created: Fri Nov  5 12:08:54 2010
#      by: PyQt4 UI code generator 4.8.1
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    _fromUtf8 = lambda s: s

class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName(_fromUtf8("Form"))
        Form.resize(502, 314)
        self.gridLayout = QtGui.QGridLayout(Form)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label_5 = QtGui.QLabel(Form)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.gridLayout.addWidget(self.label_5, 0, 0, 1, 1)
        self.opt_worker_limit = QtGui.QSpinBox(Form)
        self.opt_worker_limit.setMinimum(2)
        self.opt_worker_limit.setMaximum(10000)
        self.opt_worker_limit.setSingleStep(2)
        self.opt_worker_limit.setObjectName(_fromUtf8("opt_worker_limit"))
        self.gridLayout.addWidget(self.opt_worker_limit, 0, 1, 1, 1)
        self.opt_enforce_cpu_limit = QtGui.QCheckBox(Form)
        self.opt_enforce_cpu_limit.setObjectName(_fromUtf8("opt_enforce_cpu_limit"))
        self.gridLayout.addWidget(self.opt_enforce_cpu_limit, 1, 0, 1, 2)
        spacerItem = QtGui.QSpacerItem(20, 18, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 2, 0, 1, 1)
        self.device_detection_button = QtGui.QPushButton(Form)
        self.device_detection_button.setObjectName(_fromUtf8("device_detection_button"))
        self.gridLayout.addWidget(self.device_detection_button, 3, 0, 1, 2)
        spacerItem1 = QtGui.QSpacerItem(20, 19, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 4, 0, 1, 1)
        spacerItem2 = QtGui.QSpacerItem(20, 18, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 6, 0, 1, 1)
        self.button_open_config_dir = QtGui.QPushButton(Form)
        self.button_open_config_dir.setObjectName(_fromUtf8("button_open_config_dir"))
        self.gridLayout.addWidget(self.button_open_config_dir, 7, 0, 1, 2)
        spacerItem3 = QtGui.QSpacerItem(20, 19, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem3, 8, 0, 1, 1)
        self.button_osx_symlinks = QtGui.QPushButton(Form)
        self.button_osx_symlinks.setObjectName(_fromUtf8("button_osx_symlinks"))
        self.gridLayout.addWidget(self.button_osx_symlinks, 9, 0, 1, 2)
        spacerItem4 = QtGui.QSpacerItem(20, 1000, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem4, 20, 0, 1, 1)
        self.label_5.setBuddy(self.opt_worker_limit)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(_("Form"))
        self.label_5.setText(_("&Maximum number of waiting worker processes (needs restart):"))
        self.opt_enforce_cpu_limit.setText(_("Limit the max. simultaneous jobs to the available CPU &cores"))
        self.device_detection_button.setText(_("Debug &device detection"))
        self.button_open_config_dir.setText(_("Open calibre &configuration directory"))
        self.button_osx_symlinks.setText(_("&Install command line tools"))

