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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_8/eric3/VCS/mercurialPackage/ManifestForm.ui'
#
# Created: So Sep 11 17:01:32 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 ManifestForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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

        self.setSizeGripEnabled(1)

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

        self.manifestList = QListView(self,"manifestList")
        self.manifestList.addColumn(self.__tr("Changeset Id"))
        self.manifestList.addColumn(self.__tr("Permission"))
        self.manifestList.addColumn(self.__tr("Path"))
        self.manifestList.setFocusPolicy(QListView.NoFocus)
        self.manifestList.setSelectionMode(QListView.Extended)
        self.manifestList.setAllColumnsShowFocus(1)
        ManifestFormLayout.addWidget(self.manifestList)

        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)
        ManifestFormLayout.addWidget(self.errorGroup)

        layout2 = QHBoxLayout(None,0,6,"layout2")
        Spacer3 = QSpacerItem(200,16,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout2.addItem(Spacer3)

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        layout2.addWidget(self.okButton)
        Spacer4 = QSpacerItem(384,16,QSizePolicy.Expanding,QSizePolicy.Minimum)
        layout2.addItem(Spacer4)
        ManifestFormLayout.addLayout(layout2)

        self.languageChange()

        self.resize(QSize(865,650).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

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



    def languageChange(self):
        self.setCaption(self.__tr("Mercurial Manifest"))
        QWhatsThis.add(self,self.__tr("<b>Mercurial Manifest</b>\n"
"<p>This dialog shows the manifest of the project.</p>"))
        self.manifestList.header().setLabel(0,self.__tr("Changeset Id"))
        self.manifestList.header().setLabel(1,self.__tr("Permission"))
        self.manifestList.header().setLabel(2,self.__tr("Path"))
        self.errorGroup.setTitle(self.__tr("Errors"))
        QWhatsThis.add(self.errors,self.__tr("<b>Mercurial manifest errors</b>\n"
"<p>This shows possible error messages of the Mercurial manifest command.</p>"))
        self.okButton.setText(self.__tr("&OK"))
        self.okButton.setAccel(self.__tr("Alt+O"))


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

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