~ubuntu-branches/ubuntu/karmic/eric/karmic

« back to all changes in this revision

Viewing changes to eric/VCS/subversionPackage/PropListForm.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-01-28 18:02:25 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20080128180225-6nrox6yrworh2c4v
Tags: 4.0.4-1ubuntu1
* Add python-qt3 to build-depends becuase that's where Ubuntu puts 
  pyqtconfig
* Change maintainer to MOTU

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- coding: utf-8 -*-
2
 
 
3
 
# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_9/eric3/VCS/subversionPackage/PropListForm.ui'
4
 
#
5
 
# Created: So Nov 27 16:13:01 2005
6
 
#      by: The PyQt User Interface Compiler (pyuic) 3.15
7
 
#
8
 
# WARNING! All changes made in this file will be lost!
9
 
 
10
 
 
11
 
import sys
12
 
from qt import *
13
 
 
14
 
 
15
 
class PropListForm(QDialog):
16
 
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
17
 
        QDialog.__init__(self,parent,name,modal,fl)
18
 
 
19
 
        if not name:
20
 
            self.setName("PropListForm")
21
 
 
22
 
        self.setSizeGripEnabled(1)
23
 
 
24
 
        PropListFormLayout = QVBoxLayout(self,6,6,"PropListFormLayout")
25
 
 
26
 
        self.propsList = QListView(self,"propsList")
27
 
        self.propsList.addColumn(self.__tr("Path"))
28
 
        self.propsList.addColumn(self.__tr("Name"))
29
 
        self.propsList.addColumn(self.__tr("Value"))
30
 
        self.propsList.setAllColumnsShowFocus(1)
31
 
        self.propsList.setShowSortIndicator(1)
32
 
        self.propsList.setItemMargin(2)
33
 
        PropListFormLayout.addWidget(self.propsList)
34
 
 
35
 
        self.TextLabel2 = QLabel(self,"TextLabel2")
36
 
        PropListFormLayout.addWidget(self.TextLabel2)
37
 
 
38
 
        self.errors = QTextBrowser(self,"errors")
39
 
        self.errors.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Preferred,0,0,self.errors.sizePolicy().hasHeightForWidth()))
40
 
        self.errors.setTextFormat(QTextBrowser.PlainText)
41
 
        PropListFormLayout.addWidget(self.errors)
42
 
 
43
 
        Layout2 = QHBoxLayout(None,0,6,"Layout2")
44
 
        Spacer3 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
45
 
        Layout2.addItem(Spacer3)
46
 
 
47
 
        self.cancelButton = QPushButton(self,"cancelButton")
48
 
        self.cancelButton.setDefault(1)
49
 
        Layout2.addWidget(self.cancelButton)
50
 
        Spacer4 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
51
 
        Layout2.addItem(Spacer4)
52
 
        PropListFormLayout.addLayout(Layout2)
53
 
 
54
 
        self.languageChange()
55
 
 
56
 
        self.resize(QSize(826,569).expandedTo(self.minimumSizeHint()))
57
 
        self.clearWState(Qt.WState_Polished)
58
 
 
59
 
        self.connect(self.cancelButton,SIGNAL("clicked()"),self.buttonPressed)
60
 
 
61
 
 
62
 
    def languageChange(self):
63
 
        self.setCaption(self.__tr("Subversion List Properties"))
64
 
        QWhatsThis.add(self,self.__tr("<b>Subversion List Prperties</b>\n"
65
 
"<p>This dialog shows the properties of the selected file or project.</p>"))
66
 
        self.propsList.header().setLabel(0,self.__tr("Path"))
67
 
        self.propsList.header().setLabel(1,self.__tr("Name"))
68
 
        self.propsList.header().setLabel(2,self.__tr("Value"))
69
 
        QWhatsThis.add(self.propsList,self.__tr("<b>Properties List</b>\n"
70
 
"<p>This shows the properties of the selected file or project.</p>"))
71
 
        self.TextLabel2.setText(self.__tr("Errors:"))
72
 
        QWhatsThis.add(self.errors,self.__tr("<b>Subversion proplist errors</b>\n"
73
 
"<p>This shows possible error messages of the subversion proplist command.</p>"))
74
 
        self.cancelButton.setText(self.__tr("&Cancel"))
75
 
        self.cancelButton.setAccel(self.__tr("Alt+C"))
76
 
 
77
 
 
78
 
    def buttonPressed(self):
79
 
        print "PropListForm.buttonPressed(): Not implemented yet"
80
 
 
81
 
    def __tr(self,s,c = None):
82
 
        return qApp.translate("PropListForm",s,c)
83
 
 
84
 
if __name__ == "__main__":
85
 
    a = QApplication(sys.argv)
86
 
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
87
 
    w = PropListForm()
88
 
    a.setMainWidget(w)
89
 
    w.show()
90
 
    a.exec_loop()