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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_8/eric3/VCS/mercurialPackage/TagListForm.ui'
#
# Created: Di Sep 6 19:27:53 2005
#      by: The PyQt User Interface Compiler (pyuic) 3.15
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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

        self.setSizeGripEnabled(1)

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

        self.tagList = QListView(self,"tagList")
        self.tagList.addColumn(self.__tr("Name"))
        self.tagList.addColumn(self.__tr("Revision"))
        self.tagList.addColumn(self.__tr("Changeset Id"))
        self.tagList.setFocusPolicy(QListView.NoFocus)
        self.tagList.setAllColumnsShowFocus(1)
        self.tagList.setShowSortIndicator(1)
        self.tagList.setItemMargin(2)
        TagListFormLayout.addWidget(self.tagList)

        self.errorGroup = QGroupBox(self,"errorGroup")
        self.errorGroup.setColumnLayout(0,Qt.Vertical)
        self.errorGroup.layout().setSpacing(0)
        self.errorGroup.layout().setMargin(6)
        errorGroupLayout = QVBoxLayout(self.errorGroup.layout())
        errorGroupLayout.setAlignment(Qt.AlignTop)

        self.errors = QTextEdit(self.errorGroup,"errors")
        self.errors.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Preferred,0,0,self.errors.sizePolicy().hasHeightForWidth()))
        self.errors.setFocusPolicy(QTextEdit.NoFocus)
        self.errors.setTextFormat(QTextEdit.PlainText)
        self.errors.setReadOnly(1)
        errorGroupLayout.addWidget(self.errors)
        TagListFormLayout.addWidget(self.errorGroup)

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

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        Layout2.addWidget(self.okButton)
        Spacer4 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout2.addItem(Spacer4)
        TagListFormLayout.addLayout(Layout2)

        self.languageChange()

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

        self.connect(self.okButton,SIGNAL("clicked()"),self.accept)

        self.setTabOrder(self.okButton,self.tagList)


    def languageChange(self):
        self.setCaption(self.__tr("Mercurial Tag List"))
        QWhatsThis.add(self,self.__tr("<b>Mercurial Tag List</b>\n"
"<p>This dialog shows a list of the projects tags.</p>"))
        self.tagList.header().setLabel(0,self.__tr("Name"))
        self.tagList.header().setLabel(1,self.__tr("Revision"))
        self.tagList.header().setLabel(2,self.__tr("Changeset Id"))
        QWhatsThis.add(self.tagList,self.__tr("<b>Tag List</b>\n"
"<p>This shows a list of the projects tags.</p>"))
        self.errorGroup.setTitle(self.__tr("Errors"))
        self.okButton.setText(self.__tr("&OK"))
        self.okButton.setAccel(self.__tr("Alt+O"))


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

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