00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 from qt import *
00012 __version__ = "$Revision: 1.1.1.1 $"
00013 from rcCommentPanel import rcCommentPanel
00014
00015
00016 class rcEndRunDlg(QDialog):
00017 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
00018 QDialog.__init__(self,parent,name,modal,fl)
00019
00020 if not name:
00021 self.setName("rcEndRunDlg")
00022
00023
00024 rcEndRunDlgLayout = QGridLayout(self,1,1,11,6,"rcEndRunDlgLayout")
00025
00026 layout16 = QVBoxLayout(None,0,6,"layout16")
00027
00028 self.comments = rcCommentPanel(self,"comments")
00029 layout16.addWidget(self.comments)
00030
00031 layout15 = QHBoxLayout(None,0,6,"layout15")
00032 spacer3 = QSpacerItem(21,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
00033 layout15.addItem(spacer3)
00034
00035 layout14 = QVBoxLayout(None,0,6,"layout14")
00036
00037 self.textLabel1 = QLabel(self,"textLabel1")
00038 textLabel1_font = QFont(self.textLabel1.font())
00039 textLabel1_font.setBold(1)
00040 self.textLabel1.setFont(textLabel1_font)
00041 self.textLabel1.setAlignment(QLabel.AlignVCenter | QLabel.AlignRight)
00042 layout14.addWidget(self.textLabel1)
00043
00044 self.textLabel1_2 = QLabel(self,"textLabel1_2")
00045 textLabel1_2_font = QFont(self.textLabel1_2.font())
00046 textLabel1_2_font.setBold(1)
00047 self.textLabel1_2.setFont(textLabel1_2_font)
00048 self.textLabel1_2.setAcceptDrops(1)
00049 self.textLabel1_2.setAlignment(QLabel.AlignVCenter | QLabel.AlignRight)
00050 layout14.addWidget(self.textLabel1_2)
00051 layout15.addLayout(layout14)
00052
00053 layout11 = QVBoxLayout(None,0,6,"layout11")
00054
00055 self.comboComplStatus = QComboBox(0,self,"comboComplStatus")
00056 layout11.addWidget(self.comboComplStatus)
00057
00058 self.txtPassword = QLineEdit(self,"txtPassword")
00059 self.txtPassword.setFrameShape(QLineEdit.LineEditPanel)
00060 self.txtPassword.setFrameShadow(QLineEdit.Sunken)
00061 self.txtPassword.setEchoMode(QLineEdit.Password)
00062 layout11.addWidget(self.txtPassword)
00063 layout15.addLayout(layout11)
00064 layout16.addLayout(layout15)
00065
00066 layout27 = QHBoxLayout(None,0,6,"layout27")
00067 spacer74 = QSpacerItem(96,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
00068 layout27.addItem(spacer74)
00069
00070 self.OK = QPushButton(self,"OK")
00071 self.OK.setDefault(1)
00072 layout27.addWidget(self.OK)
00073
00074 self.CANCEL = QPushButton(self,"CANCEL")
00075 layout27.addWidget(self.CANCEL)
00076 layout16.addLayout(layout27)
00077
00078 rcEndRunDlgLayout.addLayout(layout16,0,0)
00079
00080 self.languageChange()
00081
00082 self.resize(QSize(408,354).expandedTo(self.minimumSizeHint()))
00083 self.clearWState(Qt.WState_Polished)
00084
00085
00086 def languageChange(self):
00087 self.setCaption(self.__tr("End Run Comments"))
00088 self.textLabel1.setText(self.__tr("Completion Status:"))
00089 self.textLabel1_2.setText(self.__tr("Password:"))
00090 self.OK.setText(self.__tr("&OK"))
00091 self.OK.setAccel(self.__tr("Alt+O"))
00092 self.CANCEL.setText(self.__tr("&Cancel"))
00093 self.CANCEL.setAccel(self.__tr("Alt+C"))
00094
00095
00096 def __tr(self,s,c = None):
00097 return qApp.translate("rcEndRunDlg",s,c)