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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/VCS/subversionPackage/StatusForm.ui'
#
# Created: Son Apr 27 17:53:25 2003
#      by: The PyQt User Interface Compiler (pyuic) 3.6
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


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

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

        self.setSizeGripEnabled(1)

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

        self.statusList = QListView(self,"statusList")
        self.statusList.addColumn(self.tr("Status"))
        self.statusList.addColumn(self.tr("Prop. Status"))
        self.statusList.addColumn(self.tr("Locked"))
        self.statusList.addColumn(self.tr("History"))
        self.statusList.addColumn(self.tr("Switched"))
        self.statusList.addColumn(self.tr("Revision"))
        self.statusList.addColumn(self.tr("Last Change"))
        self.statusList.addColumn(self.tr("Author"))
        self.statusList.addColumn(self.tr("Path"))
        self.statusList.setAllColumnsShowFocus(1)
        self.statusList.setShowSortIndicator(1)
        StatusFormLayout.addWidget(self.statusList)

        self.TextLabel2 = QLabel(self,"TextLabel2")
        StatusFormLayout.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)
        StatusFormLayout.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)
        StatusFormLayout.addLayout(Layout2)

        self.languageChange()

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

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


    def languageChange(self):
        self.setCaption(self.tr("Subversion Status"))
        QWhatsThis.add(self,self.tr("<b>Subversion Status</b>\n"
"<p>This dialog shows the status of the selected file or project.</p>"))
        self.statusList.header().setLabel(0,self.tr("Status"))
        self.statusList.header().setLabel(1,self.tr("Prop. Status"))
        self.statusList.header().setLabel(2,self.tr("Locked"))
        self.statusList.header().setLabel(3,self.tr("History"))
        self.statusList.header().setLabel(4,self.tr("Switched"))
        self.statusList.header().setLabel(5,self.tr("Revision"))
        self.statusList.header().setLabel(6,self.tr("Last Change"))
        self.statusList.header().setLabel(7,self.tr("Author"))
        self.statusList.header().setLabel(8,self.tr("Path"))
        QWhatsThis.add(self.statusList,self.tr("<b>Status List</b>\n"
"<p>This shows the status entries of the selected file or project.</p>"))
        self.TextLabel2.setText(self.tr("Errors:"))
        QWhatsThis.add(self.errors,self.tr("<b>Subversion status errors</b>\n"
"<p>This shows possible error messages of the subversion status command.</p>"))
        self.cancelButton.setText(self.tr("&Cancel"))


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

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