# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/phil/work/releaseforge/modules/loginBA.ui'
#
# Created: Tue Mar 8 11:11:10 2005
# by: The PyQt User Interface Compiler (pyuic) 3.13
#
# WARNING! All changes made in this file will be lost!
from qt import *
class LoginBA(QDialog):
def __init__(self,parent = None,name = None,modal = 0,fl = 0):
QDialog.__init__(self,parent,name,modal,fl)
if not name:
self.setName("LoginBA")
self.setSizeGripEnabled(1)
self.setModal(0)
LayoutWidget = QWidget(self,"Layout1")
LayoutWidget.setGeometry(QRect(10,160,397,33))
Layout1 = QHBoxLayout(LayoutWidget,0,6,"Layout1")
self.buttonHelp = QPushButton(LayoutWidget,"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(LayoutWidget,"buttonOk")
self.buttonOk.setAutoDefault(1)
self.buttonOk.setDefault(1)
Layout1.addWidget(self.buttonOk)
self.buttonCancel = QPushButton(LayoutWidget,"buttonCancel")
self.buttonCancel.setAutoDefault(1)
Layout1.addWidget(self.buttonCancel)
self.groupBox2 = QGroupBox(self,"groupBox2")
self.groupBox2.setGeometry(QRect(10,10,400,132))
self.groupBox2.setColumnLayout(0,Qt.Vertical)
self.groupBox2.layout().setSpacing(6)
self.groupBox2.layout().setMargin(11)
groupBox2Layout = QGridLayout(self.groupBox2.layout())
groupBox2Layout.setAlignment(Qt.AlignTop)
self.rememberCheckBox = QCheckBox(self.groupBox2,"rememberCheckBox")
groupBox2Layout.addWidget(self.rememberCheckBox,1,0)
layout2 = QGridLayout(None,1,1,0,6,"layout2")
self.textLabel1 = QLabel(self.groupBox2,"textLabel1")
layout2.addMultiCellWidget(self.textLabel1,0,1,0,1)
self.textLabel2 = QLabel(self.groupBox2,"textLabel2")
layout2.addWidget(self.textLabel2,2,0)
self.passwordLineEdit = QLineEdit(self.groupBox2,"passwordLineEdit")
self.passwordLineEdit.setEchoMode(QLineEdit.Password)
layout2.addWidget(self.passwordLineEdit,2,1)
self.usernameLineEdit = QLineEdit(self.groupBox2,"usernameLineEdit")
layout2.addWidget(self.usernameLineEdit,1,1)
groupBox2Layout.addLayout(layout2,0,0)
self.languageChange()
self.resize(QSize(419,210).expandedTo(self.minimumSizeHint()))
self.clearWState(Qt.WState_Polished)
self.connect(self.buttonOk,SIGNAL("clicked()"),self.accept)
self.connect(self.buttonCancel,SIGNAL("clicked()"),self.reject)
self.connect(self.buttonHelp,SIGNAL("pressed()"),self.help)
self.setTabOrder(self.usernameLineEdit,self.passwordLineEdit)
self.setTabOrder(self.passwordLineEdit,self.rememberCheckBox)
self.setTabOrder(self.rememberCheckBox,self.buttonHelp)
self.setTabOrder(self.buttonHelp,self.buttonOk)
self.setTabOrder(self.buttonOk,self.buttonCancel)
def languageChange(self):
self.setCaption(self.__tr("Sourceforge Login"))
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)
self.groupBox2.setTitle(self.__tr("Sourceforge Login"))
self.rememberCheckBox.setText(self.__tr("Remember password"))
self.textLabel1.setText(self.__tr("Username:"))
self.textLabel2.setText(self.__tr("Password:"))
def help(self):
print "LoginBA.help(): Not implemented yet"
def __tr(self,s,c = None):
return qApp.translate("LoginBA",s,c)
|