File: releaseforgeSetupBA.py

package info (click to toggle)
releaseforge 1.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,088 kB
  • ctags: 1,239
  • sloc: python: 13,801; makefile: 68; sh: 32
file content (93 lines) | stat: -rw-r--r-- 3,534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '/home/phil/work/releaseforge/ReleaseForge/releaseforgeSetupBA.ui'
#
# Created: Mon Apr 17 06:50:01 2006
#      by: The PyQt User Interface Compiler (pyuic) 3.15
#
# WARNING! All changes made in this file will be lost!


from qt import *


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

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

        self.setSizeGripEnabled(1)

        ReleaseForgeSetupBALayout = QGridLayout(self,1,1,11,6,"ReleaseForgeSetupBALayout")

        layout3 = QHBoxLayout(None,0,6,"layout3")

        self.textLabel1 = QLabel(self,"textLabel1")
        self.textLabel1.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Preferred,0,0,self.textLabel1.sizePolicy().hasHeightForWidth()))
        layout3.addWidget(self.textLabel1)

        self.autoLogincomboBox = QComboBox(0,self,"autoLogincomboBox")
        self.autoLogincomboBox.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Fixed,0,0,self.autoLogincomboBox.sizePolicy().hasHeightForWidth()))
        layout3.addWidget(self.autoLogincomboBox)

        ReleaseForgeSetupBALayout.addLayout(layout3,0,0)

        layout4 = QHBoxLayout(None,0,6,"layout4")

        self.textLabel2 = QLabel(self,"textLabel2")
        layout4.addWidget(self.textLabel2)

        self.truncateSpinBox = QSpinBox(self,"truncateSpinBox")
        layout4.addWidget(self.truncateSpinBox)

        ReleaseForgeSetupBALayout.addLayout(layout4,1,0)

        Layout1 = QHBoxLayout(None,0,6,"Layout1")

        self.buttonHelp = QPushButton(self,"buttonHelp")
        self.buttonHelp.setAutoDefault(1)
        Layout1.addWidget(self.buttonHelp)
        Horizontal_Spacing2 = QSpacerItem(20,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout1.addItem(Horizontal_Spacing2)

        self.buttonOk = QPushButton(self,"buttonOk")
        self.buttonOk.setAutoDefault(1)
        self.buttonOk.setDefault(1)
        Layout1.addWidget(self.buttonOk)

        self.buttonCancel = QPushButton(self,"buttonCancel")
        self.buttonCancel.setAutoDefault(1)
        Layout1.addWidget(self.buttonCancel)

        ReleaseForgeSetupBALayout.addLayout(Layout1,3,0)
        spacer6 = QSpacerItem(31,111,QSizePolicy.Minimum,QSizePolicy.Expanding)
        ReleaseForgeSetupBALayout.addItem(spacer6,2,0)

        self.languageChange()

        self.resize(QSize(514,311).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.buttonOk,SIGNAL("clicked()"),self.accept)
        self.connect(self.buttonCancel,SIGNAL("clicked()"),self.reject)


    def languageChange(self):
        self.setCaption(self.__tr("ReleaseForge Settings"))
        self.textLabel1.setText(self.__tr("Automatic Login"))
        self.autoLogincomboBox.clear()
        self.autoLogincomboBox.insertItem(self.__tr("No"))
        self.autoLogincomboBox.insertItem(self.__tr("Yes"))
        self.textLabel2.setText(self.__tr("Truncate Sourceforge Response"))
        self.buttonHelp.setText(self.__tr("&Help"))
        self.buttonHelp.setAccel(self.__tr("F1"))
        self.buttonOk.setText(self.__tr("&OK"))
        self.buttonOk.setAccel(QString.null)
        self.buttonCancel.setText(self.__tr("&Cancel"))
        self.buttonCancel.setAccel(QString.null)


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