rcLogin.py

Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 
00003 # Form implementation generated from reading ui file 'C:\Temp\Online\LICOS\scriptEngine\rcLogin.ui'
00004 #
00005 # Created: Thu Apr 27 20:43:35 2006
00006 #      by: The PyQt User Interface Compiler (pyuic) 3.15.1
00007 #
00008 # WARNING! All changes made in this file will be lost!
00009 
00010 
00011 from qt import *
00012 __version__ = "$Revision: 1.2 $"
00013 
00014 
00015 class rcLogin(QDialog):
00016     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
00017         QDialog.__init__(self,parent,name,modal,fl)
00018 
00019         if not name:
00020             self.setName("rcLogin")
00021 
00022         self.setSizeGripEnabled(1)
00023 
00024         rcLoginLayout = QGridLayout(self,1,1,11,6,"rcLoginLayout")
00025 
00026         Layout1 = QHBoxLayout(None,0,6,"Layout1")
00027 
00028         self.buttonHelp = QPushButton(self,"buttonHelp")
00029         self.buttonHelp.setAutoDefault(1)
00030         Layout1.addWidget(self.buttonHelp)
00031         Horizontal_Spacing2 = QSpacerItem(20,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
00032         Layout1.addItem(Horizontal_Spacing2)
00033 
00034         self.buttonOk = QPushButton(self,"buttonOk")
00035         self.buttonOk.setAutoDefault(1)
00036         self.buttonOk.setDefault(1)
00037         Layout1.addWidget(self.buttonOk)
00038 
00039         self.buttonCancel = QPushButton(self,"buttonCancel")
00040         self.buttonCancel.setAutoDefault(1)
00041         Layout1.addWidget(self.buttonCancel)
00042 
00043         rcLoginLayout.addLayout(Layout1,4,0)
00044 
00045         self.textLabel1 = QLabel(self,"textLabel1")
00046         textLabel1_font = QFont(self.textLabel1.font())
00047         textLabel1_font.setFamily("Arial")
00048         textLabel1_font.setPointSize(18)
00049         textLabel1_font.setBold(1)
00050         self.textLabel1.setFont(textLabel1_font)
00051         self.textLabel1.setTextFormat(QLabel.AutoText)
00052         self.textLabel1.setAlignment(QLabel.WordBreak | QLabel.AlignCenter)
00053 
00054         rcLoginLayout.addWidget(self.textLabel1,0,0)
00055         spacer25 = QSpacerItem(20,60,QSizePolicy.Minimum,QSizePolicy.Expanding)
00056         rcLoginLayout.addItem(spacer25,1,0)
00057         spacer26 = QSpacerItem(20,41,QSizePolicy.Minimum,QSizePolicy.Expanding)
00058         rcLoginLayout.addItem(spacer26,3,0)
00059 
00060         layout27 = QHBoxLayout(None,0,6,"layout27")
00061 
00062         layout26 = QVBoxLayout(None,0,6,"layout26")
00063 
00064         self.textLabel2 = QLabel(self,"textLabel2")
00065         textLabel2_font = QFont(self.textLabel2.font())
00066         textLabel2_font.setFamily("Arial")
00067         textLabel2_font.setPointSize(10)
00068         self.textLabel2.setFont(textLabel2_font)
00069         self.textLabel2.setAlignment(QLabel.AlignVCenter | QLabel.AlignRight)
00070         layout26.addWidget(self.textLabel2)
00071 
00072         self.textLabel2_2 = QLabel(self,"textLabel2_2")
00073         textLabel2_2_font = QFont(self.textLabel2_2.font())
00074         textLabel2_2_font.setFamily("Arial")
00075         textLabel2_2_font.setPointSize(10)
00076         self.textLabel2_2.setFont(textLabel2_2_font)
00077         self.textLabel2_2.setAlignment(QLabel.AlignVCenter | QLabel.AlignRight)
00078         layout26.addWidget(self.textLabel2_2)
00079         layout27.addLayout(layout26)
00080 
00081         layout25 = QVBoxLayout(None,0,6,"layout25")
00082 
00083         self.txtLoginId = QLineEdit(self,"txtLoginId")
00084         layout25.addWidget(self.txtLoginId)
00085 
00086         self.txtPassword = QLineEdit(self,"txtPassword")
00087         self.txtPassword.setEchoMode(QLineEdit.Password)
00088         layout25.addWidget(self.txtPassword)
00089         layout27.addLayout(layout25)
00090         spacer24 = QSpacerItem(0,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
00091         layout27.addItem(spacer24)
00092 
00093         rcLoginLayout.addLayout(layout27,2,0)
00094 
00095         self.languageChange()
00096 
00097         self.resize(QSize(305,177).expandedTo(self.minimumSizeHint()))
00098         self.clearWState(Qt.WState_Polished)
00099 
00100         self.connect(self.buttonOk,SIGNAL("clicked()"),self.accept)
00101         self.connect(self.buttonCancel,SIGNAL("clicked()"),self.reject)
00102 
00103         self.setTabOrder(self.txtLoginId,self.txtPassword)
00104         self.setTabOrder(self.txtPassword,self.buttonOk)
00105         self.setTabOrder(self.buttonOk,self.buttonCancel)
00106         self.setTabOrder(self.buttonCancel,self.buttonHelp)
00107 
00108 
00109     def languageChange(self):
00110         self.setCaption(self.__tr("Run Control Login"))
00111         self.buttonHelp.setText(self.__tr("&Help"))
00112         self.buttonHelp.setAccel(self.__tr("F1"))
00113         self.buttonOk.setText(self.__tr("&OK"))
00114         self.buttonOk.setAccel(QString.null)
00115         self.buttonCancel.setText(self.__tr("&Exit"))
00116         self.buttonCancel.setAccel(self.__tr("Alt+E"))
00117         self.textLabel1.setText(self.__tr("Script Engine Login"))
00118         self.textLabel2.setText(self.__tr("Login Id:"))
00119         self.textLabel2_2.setText(self.__tr("Password:"))
00120 
00121 
00122     def __tr(self,s,c = None):
00123         return qApp.translate("rcLogin",s,c)

Generated on Thu Apr 27 20:52:43 2006 for LICOS L02-01-00 by doxygen 1.4.6-NO