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

# Form implementation generated from reading ui file 'eric/Helpviewer/OfflineStorage/OfflineStorageConfigDialog.ui'
#
# Created: Tue Oct 28 07:22:45 2014
#      by: PyQt4 UI code generator 4.11.2
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_OfflineStorageConfigDialog(object):
    def setupUi(self, OfflineStorageConfigDialog):
        OfflineStorageConfigDialog.setObjectName(_fromUtf8("OfflineStorageConfigDialog"))
        OfflineStorageConfigDialog.resize(487, 338)
        OfflineStorageConfigDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(OfflineStorageConfigDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.headerLabel = QtGui.QLabel(OfflineStorageConfigDialog)
        self.headerLabel.setObjectName(_fromUtf8("headerLabel"))
        self.verticalLayout.addWidget(self.headerLabel)
        self.line17 = QtGui.QFrame(OfflineStorageConfigDialog)
        self.line17.setFrameShape(QtGui.QFrame.HLine)
        self.line17.setFrameShadow(QtGui.QFrame.Sunken)
        self.line17.setFrameShape(QtGui.QFrame.HLine)
        self.line17.setFrameShadow(QtGui.QFrame.Sunken)
        self.line17.setObjectName(_fromUtf8("line17"))
        self.verticalLayout.addWidget(self.line17)
        self.databaseGroup = QtGui.QGroupBox(OfflineStorageConfigDialog)
        self.databaseGroup.setObjectName(_fromUtf8("databaseGroup"))
        self.gridLayout = QtGui.QGridLayout(self.databaseGroup)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.databaseEnabledCheckBox = QtGui.QCheckBox(self.databaseGroup)
        self.databaseEnabledCheckBox.setObjectName(_fromUtf8("databaseEnabledCheckBox"))
        self.gridLayout.addWidget(self.databaseEnabledCheckBox, 0, 0, 1, 3)
        self.label = QtGui.QLabel(self.databaseGroup)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.databaseQuotaSpinBox = QtGui.QSpinBox(self.databaseGroup)
        self.databaseQuotaSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.databaseQuotaSpinBox.setMinimum(10)
        self.databaseQuotaSpinBox.setMaximum(999)
        self.databaseQuotaSpinBox.setObjectName(_fromUtf8("databaseQuotaSpinBox"))
        self.gridLayout.addWidget(self.databaseQuotaSpinBox, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(306, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 1, 2, 1, 1)
        self.showDatabasesButton = QtGui.QPushButton(self.databaseGroup)
        self.showDatabasesButton.setObjectName(_fromUtf8("showDatabasesButton"))
        self.gridLayout.addWidget(self.showDatabasesButton, 1, 3, 1, 1)
        self.verticalLayout.addWidget(self.databaseGroup)
        self.applicationCacheGroup = QtGui.QGroupBox(OfflineStorageConfigDialog)
        self.applicationCacheGroup.setObjectName(_fromUtf8("applicationCacheGroup"))
        self.gridLayout_2 = QtGui.QGridLayout(self.applicationCacheGroup)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.applicationCacheEnabledCheckBox = QtGui.QCheckBox(self.applicationCacheGroup)
        self.applicationCacheEnabledCheckBox.setObjectName(_fromUtf8("applicationCacheEnabledCheckBox"))
        self.gridLayout_2.addWidget(self.applicationCacheEnabledCheckBox, 0, 0, 1, 3)
        self.label_2 = QtGui.QLabel(self.applicationCacheGroup)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.applicationCacheQuotaSpinBox = QtGui.QSpinBox(self.applicationCacheGroup)
        self.applicationCacheQuotaSpinBox.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.applicationCacheQuotaSpinBox.setMinimum(10)
        self.applicationCacheQuotaSpinBox.setMaximum(999)
        self.applicationCacheQuotaSpinBox.setObjectName(_fromUtf8("applicationCacheQuotaSpinBox"))
        self.gridLayout_2.addWidget(self.applicationCacheQuotaSpinBox, 1, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(288, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem1, 1, 2, 1, 1)
        self.verticalLayout.addWidget(self.applicationCacheGroup)
        self.localStorageGroup = QtGui.QGroupBox(OfflineStorageConfigDialog)
        self.localStorageGroup.setObjectName(_fromUtf8("localStorageGroup"))
        self.gridLayout_3 = QtGui.QGridLayout(self.localStorageGroup)
        self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3"))
        self.localStorageEnabledCheckBox = QtGui.QCheckBox(self.localStorageGroup)
        self.localStorageEnabledCheckBox.setObjectName(_fromUtf8("localStorageEnabledCheckBox"))
        self.gridLayout_3.addWidget(self.localStorageEnabledCheckBox, 0, 0, 1, 2)
        self.label_3 = QtGui.QLabel(self.localStorageGroup)
        self.label_3.setText(_fromUtf8(""))
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.gridLayout_3.addWidget(self.label_3, 1, 0, 1, 1)
        self.localRemoteUrlsCheckBox = QtGui.QCheckBox(self.localStorageGroup)
        self.localRemoteUrlsCheckBox.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.localRemoteUrlsCheckBox.sizePolicy().hasHeightForWidth())
        self.localRemoteUrlsCheckBox.setSizePolicy(sizePolicy)
        self.localRemoteUrlsCheckBox.setObjectName(_fromUtf8("localRemoteUrlsCheckBox"))
        self.gridLayout_3.addWidget(self.localRemoteUrlsCheckBox, 1, 1, 1, 1)
        self.localFileUrlsCheckBox = QtGui.QCheckBox(self.localStorageGroup)
        self.localFileUrlsCheckBox.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.localFileUrlsCheckBox.sizePolicy().hasHeightForWidth())
        self.localFileUrlsCheckBox.setSizePolicy(sizePolicy)
        self.localFileUrlsCheckBox.setObjectName(_fromUtf8("localFileUrlsCheckBox"))
        self.gridLayout_3.addWidget(self.localFileUrlsCheckBox, 2, 1, 1, 1)
        self.verticalLayout.addWidget(self.localStorageGroup)
        self.buttonBox = QtGui.QDialogButtonBox(OfflineStorageConfigDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(OfflineStorageConfigDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), OfflineStorageConfigDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), OfflineStorageConfigDialog.reject)
        QtCore.QObject.connect(self.localStorageEnabledCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.localRemoteUrlsCheckBox.setEnabled)
        QtCore.QObject.connect(self.localStorageEnabledCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.localFileUrlsCheckBox.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(OfflineStorageConfigDialog)
        OfflineStorageConfigDialog.setTabOrder(self.databaseEnabledCheckBox, self.databaseQuotaSpinBox)
        OfflineStorageConfigDialog.setTabOrder(self.databaseQuotaSpinBox, self.showDatabasesButton)
        OfflineStorageConfigDialog.setTabOrder(self.showDatabasesButton, self.applicationCacheEnabledCheckBox)
        OfflineStorageConfigDialog.setTabOrder(self.applicationCacheEnabledCheckBox, self.applicationCacheQuotaSpinBox)
        OfflineStorageConfigDialog.setTabOrder(self.applicationCacheQuotaSpinBox, self.localStorageEnabledCheckBox)
        OfflineStorageConfigDialog.setTabOrder(self.localStorageEnabledCheckBox, self.localRemoteUrlsCheckBox)
        OfflineStorageConfigDialog.setTabOrder(self.localRemoteUrlsCheckBox, self.localFileUrlsCheckBox)
        OfflineStorageConfigDialog.setTabOrder(self.localFileUrlsCheckBox, self.buttonBox)

    def retranslateUi(self, OfflineStorageConfigDialog):
        OfflineStorageConfigDialog.setWindowTitle(_translate("OfflineStorageConfigDialog", "Offline Storage Settings", None))
        self.headerLabel.setText(_translate("OfflineStorageConfigDialog", "<b>Configure offline storage</b>", None))
        self.databaseGroup.setTitle(_translate("OfflineStorageConfigDialog", "Web SQL Databases", None))
        self.databaseEnabledCheckBox.setToolTip(_translate("OfflineStorageConfigDialog", "Select to enable Web SQL Databases", None))
        self.databaseEnabledCheckBox.setText(_translate("OfflineStorageConfigDialog", "Enable Web SQL Databases", None))
        self.label.setText(_translate("OfflineStorageConfigDialog", "Default Quota:", None))
        self.databaseQuotaSpinBox.setToolTip(_translate("OfflineStorageConfigDialog", "Enter the default quota for Web SQL Databases", None))
        self.databaseQuotaSpinBox.setSuffix(_translate("OfflineStorageConfigDialog", " MB", None))
        self.showDatabasesButton.setToolTip(_translate("OfflineStorageConfigDialog", "Press to show the Web SQL Databases", None))
        self.showDatabasesButton.setText(_translate("OfflineStorageConfigDialog", "Show databases...", None))
        self.applicationCacheGroup.setTitle(_translate("OfflineStorageConfigDialog", "Offline Web Application Cache", None))
        self.applicationCacheEnabledCheckBox.setToolTip(_translate("OfflineStorageConfigDialog", "Select to enable Offline Web Application Caches", None))
        self.applicationCacheEnabledCheckBox.setText(_translate("OfflineStorageConfigDialog", "Enable Offline Web Application Caches", None))
        self.label_2.setText(_translate("OfflineStorageConfigDialog", "Default Quota:", None))
        self.applicationCacheQuotaSpinBox.setToolTip(_translate("OfflineStorageConfigDialog", "Enter the default quota for Offline Web Application Caches", None))
        self.applicationCacheQuotaSpinBox.setSuffix(_translate("OfflineStorageConfigDialog", " MB", None))
        self.localStorageGroup.setTitle(_translate("OfflineStorageConfigDialog", "Local Web Storage", None))
        self.localStorageEnabledCheckBox.setToolTip(_translate("OfflineStorageConfigDialog", "Select to enable Local Web Storage", None))
        self.localStorageEnabledCheckBox.setText(_translate("OfflineStorageConfigDialog", "Enable Local Web Storage", None))
        self.localRemoteUrlsCheckBox.setToolTip(_translate("OfflineStorageConfigDialog", "Select to allow local content to access remote URLs", None))
        self.localRemoteUrlsCheckBox.setText(_translate("OfflineStorageConfigDialog", "Local Content can access Remote URLs", None))
        self.localFileUrlsCheckBox.setToolTip(_translate("OfflineStorageConfigDialog", "Select to allow local content to access local files", None))
        self.localFileUrlsCheckBox.setText(_translate("OfflineStorageConfigDialog", "Local Content can access Local Files", None))

