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

# Form implementation generated from reading ui file 'eric/Preferences/ConfigurationPages/CooperationPage.ui'
#
# Created: Sat Jan 18 15:10:13 2014
#      by: PyQt4 UI code generator 4.10.3
#
# 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_CooperationPage(object):
    def setupUi(self, CooperationPage):
        CooperationPage.setObjectName(_fromUtf8("CooperationPage"))
        CooperationPage.resize(508, 540)
        CooperationPage.setWindowTitle(_fromUtf8(""))
        self.verticalLayout_2 = QtGui.QVBoxLayout(CooperationPage)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.headerLabel = QtGui.QLabel(CooperationPage)
        self.headerLabel.setObjectName(_fromUtf8("headerLabel"))
        self.verticalLayout_2.addWidget(self.headerLabel)
        self.line11 = QtGui.QFrame(CooperationPage)
        self.line11.setFrameShape(QtGui.QFrame.HLine)
        self.line11.setFrameShadow(QtGui.QFrame.Sunken)
        self.line11.setFrameShape(QtGui.QFrame.HLine)
        self.line11.setFrameShadow(QtGui.QFrame.Sunken)
        self.line11.setObjectName(_fromUtf8("line11"))
        self.verticalLayout_2.addWidget(self.line11)
        self.serverGroup = QtGui.QGroupBox(CooperationPage)
        self.serverGroup.setObjectName(_fromUtf8("serverGroup"))
        self.gridLayout = QtGui.QGridLayout(self.serverGroup)
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.autostartCheckBox = QtGui.QCheckBox(self.serverGroup)
        self.autostartCheckBox.setObjectName(_fromUtf8("autostartCheckBox"))
        self.gridLayout.addWidget(self.autostartCheckBox, 0, 0, 1, 3)
        self.label = QtGui.QLabel(self.serverGroup)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.serverPortSpin = QtGui.QSpinBox(self.serverGroup)
        self.serverPortSpin.setMinimum(1025)
        self.serverPortSpin.setMaximum(65535)
        self.serverPortSpin.setSingleStep(1)
        self.serverPortSpin.setProperty("value", 42000)
        self.serverPortSpin.setObjectName(_fromUtf8("serverPortSpin"))
        self.gridLayout.addWidget(self.serverPortSpin, 1, 1, 1, 1)
        spacerItem = QtGui.QSpacerItem(326, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 1, 2, 1, 1)
        self.otherPortsCheckBox = QtGui.QCheckBox(self.serverGroup)
        self.otherPortsCheckBox.setObjectName(_fromUtf8("otherPortsCheckBox"))
        self.gridLayout.addWidget(self.otherPortsCheckBox, 2, 0, 1, 3)
        self.label_2 = QtGui.QLabel(self.serverGroup)
        self.label_2.setEnabled(False)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.portToTrySpin = QtGui.QSpinBox(self.serverGroup)
        self.portToTrySpin.setEnabled(False)
        self.portToTrySpin.setMinimum(10)
        self.portToTrySpin.setMaximum(1000)
        self.portToTrySpin.setObjectName(_fromUtf8("portToTrySpin"))
        self.gridLayout.addWidget(self.portToTrySpin, 3, 1, 1, 1)
        spacerItem1 = QtGui.QSpacerItem(326, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 3, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.serverGroup)
        self.connectionsGroup = QtGui.QGroupBox(CooperationPage)
        self.connectionsGroup.setObjectName(_fromUtf8("connectionsGroup"))
        self.verticalLayout = QtGui.QVBoxLayout(self.connectionsGroup)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.autoAcceptCheckBox = QtGui.QCheckBox(self.connectionsGroup)
        self.autoAcceptCheckBox.setObjectName(_fromUtf8("autoAcceptCheckBox"))
        self.verticalLayout.addWidget(self.autoAcceptCheckBox)
        self.verticalLayout_2.addWidget(self.connectionsGroup)
        self.bannedUsersGroup = QtGui.QGroupBox(CooperationPage)
        self.bannedUsersGroup.setObjectName(_fromUtf8("bannedUsersGroup"))
        self.gridLayout_2 = QtGui.QGridLayout(self.bannedUsersGroup)
        self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))
        self.bannedUsersList = QtGui.QListWidget(self.bannedUsersGroup)
        self.bannedUsersList.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection)
        self.bannedUsersList.setObjectName(_fromUtf8("bannedUsersList"))
        self.gridLayout_2.addWidget(self.bannedUsersList, 0, 0, 1, 3)
        self.deleteBannedUsersButton = QtGui.QPushButton(self.bannedUsersGroup)
        self.deleteBannedUsersButton.setEnabled(False)
        self.deleteBannedUsersButton.setObjectName(_fromUtf8("deleteBannedUsersButton"))
        self.gridLayout_2.addWidget(self.deleteBannedUsersButton, 1, 0, 1, 1)
        self.bannedUserEdit = QtGui.QLineEdit(self.bannedUsersGroup)
        self.bannedUserEdit.setObjectName(_fromUtf8("bannedUserEdit"))
        self.gridLayout_2.addWidget(self.bannedUserEdit, 1, 1, 1, 1)
        self.addBannedUserButton = QtGui.QPushButton(self.bannedUsersGroup)
        self.addBannedUserButton.setEnabled(False)
        self.addBannedUserButton.setObjectName(_fromUtf8("addBannedUserButton"))
        self.gridLayout_2.addWidget(self.addBannedUserButton, 1, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.bannedUsersGroup)

        self.retranslateUi(CooperationPage)
        QtCore.QObject.connect(self.otherPortsCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.label_2.setEnabled)
        QtCore.QObject.connect(self.otherPortsCheckBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.portToTrySpin.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(CooperationPage)
        CooperationPage.setTabOrder(self.autostartCheckBox, self.serverPortSpin)
        CooperationPage.setTabOrder(self.serverPortSpin, self.otherPortsCheckBox)
        CooperationPage.setTabOrder(self.otherPortsCheckBox, self.portToTrySpin)
        CooperationPage.setTabOrder(self.portToTrySpin, self.autoAcceptCheckBox)
        CooperationPage.setTabOrder(self.autoAcceptCheckBox, self.bannedUsersList)
        CooperationPage.setTabOrder(self.bannedUsersList, self.deleteBannedUsersButton)
        CooperationPage.setTabOrder(self.deleteBannedUsersButton, self.bannedUserEdit)
        CooperationPage.setTabOrder(self.bannedUserEdit, self.addBannedUserButton)

    def retranslateUi(self, CooperationPage):
        self.headerLabel.setText(_translate("CooperationPage", "<b>Configure cooperation settings</b>", None))
        self.serverGroup.setTitle(_translate("CooperationPage", "Server", None))
        self.autostartCheckBox.setToolTip(_translate("CooperationPage", "Select to start the server automatically", None))
        self.autostartCheckBox.setText(_translate("CooperationPage", "Start server automatically", None))
        self.label.setText(_translate("CooperationPage", "Server Port:", None))
        self.serverPortSpin.setToolTip(_translate("CooperationPage", "Enter the port number to listen on", None))
        self.otherPortsCheckBox.setToolTip(_translate("CooperationPage", "Select to incrementally try other ports for the server", None))
        self.otherPortsCheckBox.setText(_translate("CooperationPage", "Try other ports for server", None))
        self.label_2.setText(_translate("CooperationPage", "No. ports to try:", None))
        self.portToTrySpin.setToolTip(_translate("CooperationPage", "Enter the maximum number of additional ports to try", None))
        self.connectionsGroup.setTitle(_translate("CooperationPage", "Connections", None))
        self.autoAcceptCheckBox.setToolTip(_translate("CooperationPage", "Select to accept incomming connections automatically", None))
        self.autoAcceptCheckBox.setText(_translate("CooperationPage", "Accept connections automatically", None))
        self.bannedUsersGroup.setTitle(_translate("CooperationPage", "Banned Users", None))
        self.bannedUsersList.setSortingEnabled(True)
        self.deleteBannedUsersButton.setToolTip(_translate("CooperationPage", "Delete the selected entries from the list of banned users", None))
        self.deleteBannedUsersButton.setText(_translate("CooperationPage", "Delete", None))
        self.bannedUserEdit.setToolTip(_translate("CooperationPage", "Enter the user and host of the banned user", None))
        self.addBannedUserButton.setToolTip(_translate("CooperationPage", "Add the user to the list of banned users", None))
        self.addBannedUserButton.setText(_translate("CooperationPage", "Add", None))

