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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/VCS/subversionPackage/TagBranchListForm.ui'
#
# Created: Sam Jun 28 11:19:17 2003
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20030621
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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

        self.setSizeGripEnabled(1)

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

        self.tagList = QListView(self,"tagList")
        self.tagList.addColumn(self.__tr("Revision"))
        self.tagList.addColumn(self.__tr("Author"))
        self.tagList.addColumn(self.__tr("Date"))
        self.tagList.addColumn(self.__tr("Name"))
        self.tagList.setAllColumnsShowFocus(1)
        self.tagList.setShowSortIndicator(1)
        self.tagList.setItemMargin(2)
        TagBranchListFormLayout.addWidget(self.tagList)

        self.TextLabel2 = QLabel(self,"TextLabel2")
        TagBranchListFormLayout.addWidget(self.TextLabel2)

        self.errors = QTextBrowser(self,"errors")
        self.errors.setSizePolicy(QSizePolicy(7,5,0,0,self.errors.sizePolicy().hasHeightForWidth()))
        self.errors.setTextFormat(QTextBrowser.PlainText)
        TagBranchListFormLayout.addWidget(self.errors)

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

        self.cancelButton = QPushButton(self,"cancelButton")
        Layout2.addWidget(self.cancelButton)
        spacer_2 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout2.addItem(spacer_2)
        TagBranchListFormLayout.addLayout(Layout2)

        self.languageChange()

        self.resize(QSize(634,425).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.cancelButton,SIGNAL("clicked()"),self.buttonPressed)


    def languageChange(self):
        self.setCaption(self.__tr("Subversion Tag List"))
        QWhatsThis.add(self,self.__tr("<b>Subversion Tag/Branch List</b>\n"
"<p>This dialog shows a list of the projects tags or branches.</p>"))
        self.tagList.header().setLabel(0,self.__tr("Revision"))
        self.tagList.header().setLabel(1,self.__tr("Author"))
        self.tagList.header().setLabel(2,self.__tr("Date"))
        self.tagList.header().setLabel(3,self.__tr("Name"))
        QWhatsThis.add(self.tagList,self.__tr("<b>Tag/Branches List</b>\n"
"<p>This shows a list of the projects tags or branches.</p>"))
        self.TextLabel2.setText(self.__tr("Errors:"))
        QWhatsThis.add(self.errors,self.__tr("<b>Subversion list errors</b>\n"
"<p>This shows possible error messages of the subversion list command.</p>"))
        self.cancelButton.setText(self.__tr("&Cancel"))


    def buttonPressed(self):
        print "TagBranchListForm.buttonPressed(): Not implemented yet"

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

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