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

# Form implementation generated from reading ui file 'eric/Cooperation/ChatWidget.ui'
#
# Created: Sun Jan 18 22:19:53 2015
#      by: PyQt4 UI code generator 4.11.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_ChatWidget(object):
    def setupUi(self, ChatWidget):
        ChatWidget.setObjectName(_fromUtf8("ChatWidget"))
        ChatWidget.resize(300, 600)
        self.verticalLayout_2 = QtGui.QVBoxLayout(ChatWidget)
        self.verticalLayout_2.setMargin(0)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.usersGroup = QtGui.QGroupBox(ChatWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.usersGroup.sizePolicy().hasHeightForWidth())
        self.usersGroup.setSizePolicy(sizePolicy)
        self.usersGroup.setObjectName(_fromUtf8("usersGroup"))
        self.verticalLayout = QtGui.QVBoxLayout(self.usersGroup)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.usersList = QtGui.QListWidget(self.usersGroup)
        self.usersList.setFocusPolicy(QtCore.Qt.NoFocus)
        self.usersList.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.usersList.setObjectName(_fromUtf8("usersList"))
        self.verticalLayout.addWidget(self.usersList)
        self.verticalLayout_2.addWidget(self.usersGroup)
        self.chatGroup = QtGui.QGroupBox(ChatWidget)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(2)
        sizePolicy.setHeightForWidth(self.chatGroup.sizePolicy().hasHeightForWidth())
        self.chatGroup.setSizePolicy(sizePolicy)
        self.chatGroup.setObjectName(_fromUtf8("chatGroup"))
        self.verticalLayout_4 = QtGui.QVBoxLayout(self.chatGroup)
        self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
        self.chatEdit = QtGui.QTextEdit(self.chatGroup)
        self.chatEdit.setFocusPolicy(QtCore.Qt.NoFocus)
        self.chatEdit.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.chatEdit.setReadOnly(True)
        self.chatEdit.setObjectName(_fromUtf8("chatEdit"))
        self.verticalLayout_4.addWidget(self.chatEdit)
        self.messageEdit = E5ClearableLineEdit(self.chatGroup)
        self.messageEdit.setObjectName(_fromUtf8("messageEdit"))
        self.verticalLayout_4.addWidget(self.messageEdit)
        self.sendButton = QtGui.QPushButton(self.chatGroup)
        self.sendButton.setObjectName(_fromUtf8("sendButton"))
        self.verticalLayout_4.addWidget(self.sendButton)
        self.verticalLayout_2.addWidget(self.chatGroup)
        self.sharingGroup = QtGui.QGroupBox(ChatWidget)
        self.sharingGroup.setEnabled(False)
        self.sharingGroup.setObjectName(_fromUtf8("sharingGroup"))
        self.horizontalLayout = QtGui.QHBoxLayout(self.sharingGroup)
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(76, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.shareButton = QtGui.QToolButton(self.sharingGroup)
        self.shareButton.setEnabled(False)
        self.shareButton.setCheckable(True)
        self.shareButton.setObjectName(_fromUtf8("shareButton"))
        self.horizontalLayout.addWidget(self.shareButton)
        self.startEditButton = QtGui.QToolButton(self.sharingGroup)
        self.startEditButton.setEnabled(False)
        self.startEditButton.setCheckable(True)
        self.startEditButton.setObjectName(_fromUtf8("startEditButton"))
        self.horizontalLayout.addWidget(self.startEditButton)
        self.sendEditButton = QtGui.QToolButton(self.sharingGroup)
        self.sendEditButton.setEnabled(False)
        self.sendEditButton.setObjectName(_fromUtf8("sendEditButton"))
        self.horizontalLayout.addWidget(self.sendEditButton)
        self.cancelEditButton = QtGui.QToolButton(self.sharingGroup)
        self.cancelEditButton.setEnabled(False)
        self.cancelEditButton.setObjectName(_fromUtf8("cancelEditButton"))
        self.horizontalLayout.addWidget(self.cancelEditButton)
        spacerItem1 = QtGui.QSpacerItem(75, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout_2.addWidget(self.sharingGroup)
        self.connectGroup = QtGui.QGroupBox(ChatWidget)
        self.connectGroup.setObjectName(_fromUtf8("connectGroup"))
        self.verticalLayout_3 = QtGui.QVBoxLayout(self.connectGroup)
        self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
        self.horizontalLayout_3 = QtGui.QHBoxLayout()
        self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3"))
        self.label_2 = QtGui.QLabel(self.connectGroup)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout_3.addWidget(self.label_2)
        self.hostEdit = E5ClearableComboBox(self.connectGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.hostEdit.sizePolicy().hasHeightForWidth())
        self.hostEdit.setSizePolicy(sizePolicy)
        self.hostEdit.setEditable(True)
        self.hostEdit.setInsertPolicy(QtGui.QComboBox.InsertAtTop)
        self.hostEdit.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
        self.hostEdit.setObjectName(_fromUtf8("hostEdit"))
        self.horizontalLayout_3.addWidget(self.hostEdit)
        self.verticalLayout_3.addLayout(self.horizontalLayout_3)
        self.horizontalLayout_4 = QtGui.QHBoxLayout()
        self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4"))
        self.clearHostsButton = QtGui.QPushButton(self.connectGroup)
        self.clearHostsButton.setObjectName(_fromUtf8("clearHostsButton"))
        self.horizontalLayout_4.addWidget(self.clearHostsButton)
        self.connectButton = QtGui.QPushButton(self.connectGroup)
        self.connectButton.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.connectButton.sizePolicy().hasHeightForWidth())
        self.connectButton.setSizePolicy(sizePolicy)
        self.connectButton.setText(_fromUtf8(""))
        self.connectButton.setAutoDefault(False)
        self.connectButton.setObjectName(_fromUtf8("connectButton"))
        self.horizontalLayout_4.addWidget(self.connectButton)
        self.connectionLed = E5Led(self.connectGroup)
        self.connectionLed.setObjectName(_fromUtf8("connectionLed"))
        self.horizontalLayout_4.addWidget(self.connectionLed)
        self.verticalLayout_3.addLayout(self.horizontalLayout_4)
        self.verticalLayout_2.addWidget(self.connectGroup)
        self.serverGroup = QtGui.QGroupBox(ChatWidget)
        self.serverGroup.setObjectName(_fromUtf8("serverGroup"))
        self.horizontalLayout_2 = QtGui.QHBoxLayout(self.serverGroup)
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.label_4 = QtGui.QLabel(self.serverGroup)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.horizontalLayout_2.addWidget(self.label_4)
        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.horizontalLayout_2.addWidget(self.serverPortSpin)
        self.serverButton = QtGui.QPushButton(self.serverGroup)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.serverButton.sizePolicy().hasHeightForWidth())
        self.serverButton.setSizePolicy(sizePolicy)
        self.serverButton.setText(_fromUtf8(""))
        self.serverButton.setAutoDefault(False)
        self.serverButton.setObjectName(_fromUtf8("serverButton"))
        self.horizontalLayout_2.addWidget(self.serverButton)
        self.serverLed = E5Led(self.serverGroup)
        self.serverLed.setObjectName(_fromUtf8("serverLed"))
        self.horizontalLayout_2.addWidget(self.serverLed)
        self.verticalLayout_2.addWidget(self.serverGroup)

        self.retranslateUi(ChatWidget)
        QtCore.QMetaObject.connectSlotsByName(ChatWidget)
        ChatWidget.setTabOrder(self.serverButton, self.serverPortSpin)
        ChatWidget.setTabOrder(self.serverPortSpin, self.hostEdit)
        ChatWidget.setTabOrder(self.hostEdit, self.connectButton)
        ChatWidget.setTabOrder(self.connectButton, self.clearHostsButton)
        ChatWidget.setTabOrder(self.clearHostsButton, self.shareButton)
        ChatWidget.setTabOrder(self.shareButton, self.startEditButton)
        ChatWidget.setTabOrder(self.startEditButton, self.sendEditButton)
        ChatWidget.setTabOrder(self.sendEditButton, self.cancelEditButton)
        ChatWidget.setTabOrder(self.cancelEditButton, self.messageEdit)
        ChatWidget.setTabOrder(self.messageEdit, self.sendButton)

    def retranslateUi(self, ChatWidget):
        ChatWidget.setWindowTitle(_translate("ChatWidget", "Chat", None))
        self.usersGroup.setTitle(_translate("ChatWidget", "Users", None))
        self.chatGroup.setTitle(_translate("ChatWidget", "Chat", None))
        self.messageEdit.setToolTip(_translate("ChatWidget", "Enter the text to send", None))
        self.sendButton.setToolTip(_translate("ChatWidget", "Press to send the text above", None))
        self.sendButton.setText(_translate("ChatWidget", "Send", None))
        self.sharingGroup.setTitle(_translate("ChatWidget", "Share Editor", None))
        self.shareButton.setToolTip(_translate("ChatWidget", "Press to toggle the shared status of the current editor", None))
        self.startEditButton.setToolTip(_translate("ChatWidget", "Press to start a shared edit", None))
        self.sendEditButton.setToolTip(_translate("ChatWidget", "Press to end the edit and send the changes", None))
        self.cancelEditButton.setToolTip(_translate("ChatWidget", "Press to cancel the shared edit", None))
        self.connectGroup.setTitle(_translate("ChatWidget", "Connection", None))
        self.label_2.setText(_translate("ChatWidget", "Host:", None))
        self.hostEdit.setToolTip(_translate("ChatWidget", "Enter the host and port to connect to in the form \"host@port\"", None))
        self.clearHostsButton.setToolTip(_translate("ChatWidget", "Press to clear the hosts list", None))
        self.clearHostsButton.setText(_translate("ChatWidget", "Clear", None))
        self.connectionLed.setToolTip(_translate("ChatWidget", "Shows the connection status", None))
        self.serverGroup.setTitle(_translate("ChatWidget", "Server", None))
        self.label_4.setText(_translate("ChatWidget", "Port:", None))
        self.serverPortSpin.setToolTip(_translate("ChatWidget", "Enter the server port", None))
        self.serverLed.setToolTip(_translate("ChatWidget", "Shows the status of the server", None))

from E5Gui.E5ComboBox import E5ClearableComboBox
from E5Gui.E5LineEdit import E5ClearableLineEdit
from E5Gui.E5Led import E5Led
