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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_6/eric3/VCS/LogoutForm.ui'
#
# Created: Do Dez 30 14:12:27 2004
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class vcsLogoutForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("vcsLogoutForm")


        vcsLogoutFormLayout = QVBoxLayout(self,6,6,"vcsLogoutFormLayout")

        layout3 = QGridLayout(None,1,1,0,6,"layout3")

        self.textLabel1 = QLabel(self,"textLabel1")

        layout3.addWidget(self.textLabel1,1,0)

        self.protocolComboBox = QComboBox(0,self,"protocolComboBox")

        layout3.addWidget(self.protocolComboBox,1,1)

        self.TextLabel1 = QLabel(self,"TextLabel1")

        layout3.addWidget(self.TextLabel1,2,0)

        self.vcsLabel = QLabel(self,"vcsLabel")

        layout3.addWidget(self.vcsLabel,0,0)

        self.textLabel1_2 = QLabel(self,"textLabel1_2")

        layout3.addWidget(self.textLabel1_2,4,0)

        self.usernameEdit = QLineEdit(self,"usernameEdit")

        layout3.addWidget(self.usernameEdit,2,1)

        self.vcsComboBox = QComboBox(0,self,"vcsComboBox")
        self.vcsComboBox.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Fixed,0,0,self.vcsComboBox.sizePolicy().hasHeightForWidth()))

        layout3.addWidget(self.vcsComboBox,0,1)

        self.TextLabel3 = QLabel(self,"TextLabel3")

        layout3.addWidget(self.TextLabel3,3,0)

        self.repositoryEdit = QLineEdit(self,"repositoryEdit")

        layout3.addWidget(self.repositoryEdit,5,1)

        self.portEdit = QLineEdit(self,"portEdit")

        layout3.addWidget(self.portEdit,4,1)

        self.hostEdit = QLineEdit(self,"hostEdit")

        layout3.addWidget(self.hostEdit,3,1)

        self.TextLabel4 = QLabel(self,"TextLabel4")

        layout3.addWidget(self.TextLabel4,5,0)
        vcsLogoutFormLayout.addLayout(layout3)

        Layout3 = QHBoxLayout(None,0,6,"Layout3")
        Spacer3 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout3.addItem(Spacer3)

        self.logoutButton = QPushButton(self,"logoutButton")
        self.logoutButton.setDefault(1)
        Layout3.addWidget(self.logoutButton)

        self.cancelButton = QPushButton(self,"cancelButton")
        Layout3.addWidget(self.cancelButton)
        Spacer5 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout3.addItem(Spacer5)
        vcsLogoutFormLayout.addLayout(Layout3)

        self.languageChange()

        self.resize(QSize(384,222).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.logoutButton,SIGNAL("clicked()"),self.accept)
        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
        self.connect(self.vcsComboBox,SIGNAL("activated(const QString&)"),self.handleVcsSelected)

        self.setTabOrder(self.vcsComboBox,self.protocolComboBox)
        self.setTabOrder(self.protocolComboBox,self.usernameEdit)
        self.setTabOrder(self.usernameEdit,self.hostEdit)
        self.setTabOrder(self.hostEdit,self.portEdit)
        self.setTabOrder(self.portEdit,self.repositoryEdit)
        self.setTabOrder(self.repositoryEdit,self.logoutButton)
        self.setTabOrder(self.logoutButton,self.cancelButton)

        self.textLabel1.setBuddy(self.protocolComboBox)
        self.TextLabel1.setBuddy(self.usernameEdit)
        self.vcsLabel.setBuddy(self.vcsComboBox)
        self.textLabel1_2.setBuddy(self.portEdit)
        self.TextLabel3.setBuddy(self.hostEdit)
        self.TextLabel4.setBuddy(self.repositoryEdit)


    def languageChange(self):
        self.setCaption(self.__tr("VCS Logout"))
        self.textLabel1.setText(self.__tr("Pr&otocol:"))
        QToolTip.add(self.protocolComboBox,self.__tr("Select the protocol to access the repository"))
        self.TextLabel1.setText(self.__tr("&Username:"))
        self.vcsLabel.setText(self.__tr("VCS-&System:"))
        self.textLabel1_2.setText(self.__tr("Por&t:"))
        QToolTip.add(self.usernameEdit,self.__tr("Enter your VCS username"))
        QWhatsThis.add(self.usernameEdit,self.__tr("<b>Username</b>\n"
"<p>Enter your VCS user name.</p>"))
        QToolTip.add(self.vcsComboBox,self.__tr("Select the VCS system to be used."))
        QWhatsThis.add(self.vcsComboBox,self.__tr("<b>VCS-System</b>\n"
"<p>Select the VCS system (e.g. CVS) to be used in the project.</p>"))
        self.TextLabel3.setText(self.__tr("&Host:"))
        QToolTip.add(self.repositoryEdit,self.__tr("Enter the remote repository"))
        QWhatsThis.add(self.repositoryEdit,self.__tr("<b>Repository</b>\n"
"<p>Enter the remote repository.</p>"))
        QToolTip.add(self.portEdit,self.__tr("Enter the port of the server"))
        QToolTip.add(self.hostEdit,self.__tr("Enter host name of VCS server"))
        QWhatsThis.add(self.hostEdit,self.__tr("<b>Host</b>\n"
"<p>Enter the hostname of the machine serving the remote repository.</p>"))
        self.TextLabel4.setText(self.__tr("&Repository:"))
        self.logoutButton.setText(self.__tr("&Logout"))
        self.cancelButton.setText(self.__tr("&Cancel"))


    def handleVcsSelected(self,a0):
        print "vcsLogoutForm.handleVcsSelected(const QString&): Not implemented yet"

    def __tr(self,s,c = None):
        return qApp.translate("vcsLogoutForm",s,c)

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = vcsLogoutForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
