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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/VCS/subversionPackage/PropListForm.ui'
#
# Created: So Nov 27 16:13:01 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 PropListForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

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

        self.setSizeGripEnabled(1)

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

        self.propsList = QListView(self,"propsList")
        self.propsList.addColumn(self.__tr("Path"))
        self.propsList.addColumn(self.__tr("Name"))
        self.propsList.addColumn(self.__tr("Value"))
        self.propsList.setAllColumnsShowFocus(1)
        self.propsList.setShowSortIndicator(1)
        self.propsList.setItemMargin(2)
        PropListFormLayout.addWidget(self.propsList)

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

        self.errors = QTextBrowser(self,"errors")
        self.errors.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Preferred,0,0,self.errors.sizePolicy().hasHeightForWidth()))
        self.errors.setTextFormat(QTextBrowser.PlainText)
        PropListFormLayout.addWidget(self.errors)

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

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

        self.languageChange()

        self.resize(QSize(826,569).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

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


    def languageChange(self):
        self.setCaption(self.__tr("Subversion List Properties"))
        QWhatsThis.add(self,self.__tr("<b>Subversion List Prperties</b>\n"
"<p>This dialog shows the properties of the selected file or project.</p>"))
        self.propsList.header().setLabel(0,self.__tr("Path"))
        self.propsList.header().setLabel(1,self.__tr("Name"))
        self.propsList.header().setLabel(2,self.__tr("Value"))
        QWhatsThis.add(self.propsList,self.__tr("<b>Properties List</b>\n"
"<p>This shows the properties of the selected file or project.</p>"))
        self.TextLabel2.setText(self.__tr("Errors:"))
        QWhatsThis.add(self.errors,self.__tr("<b>Subversion proplist errors</b>\n"
"<p>This shows possible error messages of the subversion proplist command.</p>"))
        self.cancelButton.setText(self.__tr("&Cancel"))
        self.cancelButton.setAccel(self.__tr("Alt+C"))


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

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

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