FileTool.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\FileTool.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 FileTool(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("FileTool")
00021 
00022 
00023         FileToolLayout = QGridLayout(self,1,1,11,6,"FileToolLayout")
00024 
00025         self.frame3 = QFrame(self,"frame3")
00026         self.frame3.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding,0,0,self.frame3.sizePolicy().hasHeightForWidth()))
00027         self.frame3.setFrameShape(QFrame.StyledPanel)
00028         self.frame3.setFrameShadow(QFrame.Raised)
00029         frame3Layout = QGridLayout(self.frame3,1,1,11,6,"frame3Layout")
00030 
00031         layout38 = QVBoxLayout(None,0,6,"layout38")
00032 
00033         OriginLayout = QHBoxLayout(None,0,6,"OriginLayout")
00034 
00035         self.OriginLabel = QLabel(self.frame3,"OriginLabel")
00036         OriginLabel_font = QFont(self.OriginLabel.font())
00037         OriginLabel_font.setBold(1)
00038         self.OriginLabel.setFont(OriginLabel_font)
00039         OriginLayout.addWidget(self.OriginLabel)
00040 
00041         self.OriginEdit = QLineEdit(self.frame3,"OriginEdit")
00042         self.OriginEdit.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Fixed,0,0,self.OriginEdit.sizePolicy().hasHeightForWidth()))
00043         OriginLayout.addWidget(self.OriginEdit)
00044         layout38.addLayout(OriginLayout)
00045 
00046         DestinationLayout = QHBoxLayout(None,0,6,"DestinationLayout")
00047 
00048         self.DestinationLabel = QLabel(self.frame3,"DestinationLabel")
00049         DestinationLabel_font = QFont(self.DestinationLabel.font())
00050         DestinationLabel_font.setBold(1)
00051         self.DestinationLabel.setFont(DestinationLabel_font)
00052         DestinationLayout.addWidget(self.DestinationLabel)
00053 
00054         self.DestinationEdit = QLineEdit(self.frame3,"DestinationEdit")
00055         DestinationLayout.addWidget(self.DestinationEdit)
00056         layout38.addLayout(DestinationLayout)
00057 
00058         frame3Layout.addMultiCellLayout(layout38,5,5,0,3)
00059 
00060         DeviceLayout = QHBoxLayout(None,0,6,"DeviceLayout")
00061 
00062         self.DeviceLabel = QLabel(self.frame3,"DeviceLabel")
00063         DeviceLabel_font = QFont(self.DeviceLabel.font())
00064         DeviceLabel_font.setBold(1)
00065         self.DeviceLabel.setFont(DeviceLabel_font)
00066         DeviceLayout.addWidget(self.DeviceLabel)
00067 
00068         self.DeviceSelector = QComboBox(0,self.frame3,"DeviceSelector")
00069         DeviceLayout.addWidget(self.DeviceSelector)
00070 
00071         frame3Layout.addMultiCellLayout(DeviceLayout,1,1,0,1)
00072 
00073         DirLayout = QHBoxLayout(None,0,6,"DirLayout")
00074 
00075         self.DirLabel = QLabel(self.frame3,"DirLabel")
00076         DirLabel_font = QFont(self.DirLabel.font())
00077         DirLabel_font.setBold(1)
00078         self.DirLabel.setFont(DirLabel_font)
00079         DirLayout.addWidget(self.DirLabel)
00080 
00081         self.DirSelector = QSpinBox(self.frame3,"DirSelector")
00082         self.DirSelector.setMaxValue(111)
00083         DirLayout.addWidget(self.DirSelector)
00084 
00085         frame3Layout.addMultiCellLayout(DirLayout,2,2,0,1)
00086 
00087         UnitLayout = QHBoxLayout(None,0,6,"UnitLayout")
00088 
00089         self.UnitLabel = QLabel(self.frame3,"UnitLabel")
00090         UnitLabel_font = QFont(self.UnitLabel.font())
00091         UnitLabel_font.setBold(1)
00092         self.UnitLabel.setFont(UnitLabel_font)
00093         UnitLayout.addWidget(self.UnitLabel)
00094 
00095         self.UnitSelector = QComboBox(0,self.frame3,"UnitSelector")
00096         UnitLayout.addWidget(self.UnitSelector)
00097 
00098         frame3Layout.addMultiCellLayout(UnitLayout,0,0,0,1)
00099 
00100         self.TransferSelector = QButtonGroup(self.frame3,"TransferSelector")
00101         self.TransferSelector.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Minimum,0,0,self.TransferSelector.sizePolicy().hasHeightForWidth()))
00102         self.TransferSelector.setProperty("selectedId",QVariant(1))
00103         self.TransferSelector.setColumnLayout(0,Qt.Vertical)
00104         self.TransferSelector.layout().setSpacing(6)
00105         self.TransferSelector.layout().setMargin(11)
00106         TransferSelectorLayout = QGridLayout(self.TransferSelector.layout())
00107         TransferSelectorLayout.setAlignment(Qt.AlignTop)
00108 
00109         self.DownloadRadioBtn = QRadioButton(self.TransferSelector,"DownloadRadioBtn")
00110         self.TransferSelector.insert( self.DownloadRadioBtn,1)
00111 
00112         TransferSelectorLayout.addWidget(self.DownloadRadioBtn,1,0)
00113 
00114         self.UploadRadioBtn = QRadioButton(self.TransferSelector,"UploadRadioBtn")
00115         self.TransferSelector.insert( self.UploadRadioBtn,0)
00116 
00117         TransferSelectorLayout.addWidget(self.UploadRadioBtn,0,0)
00118 
00119         frame3Layout.addMultiCellWidget(self.TransferSelector,0,2,2,3)
00120 
00121         self.ApplyButton = QPushButton(self.frame3,"ApplyButton")
00122         ApplyButton_font = QFont(self.ApplyButton.font())
00123         ApplyButton_font.setBold(1)
00124         self.ApplyButton.setFont(ApplyButton_font)
00125         self.ApplyButton.setFocusPolicy(QPushButton.NoFocus)
00126         self.ApplyButton.setDefault(0)
00127 
00128         frame3Layout.addMultiCellWidget(self.ApplyButton,3,3,2,3)
00129 
00130         self.ClearButton = QPushButton(self.frame3,"ClearButton")
00131         ClearButton_font = QFont(self.ClearButton.font())
00132         ClearButton_font.setBold(1)
00133         self.ClearButton.setFont(ClearButton_font)
00134         self.ClearButton.setFocusPolicy(QPushButton.NoFocus)
00135         self.ClearButton.setDefault(0)
00136 
00137         frame3Layout.addMultiCellWidget(self.ClearButton,4,4,2,3)
00138 
00139         FileNoLayout = QHBoxLayout(None,0,6,"FileNoLayout")
00140 
00141         self.FileNoLabel = QLabel(self.frame3,"FileNoLabel")
00142         FileNoLabel_font = QFont(self.FileNoLabel.font())
00143         FileNoLabel_font.setBold(1)
00144         self.FileNoLabel.setFont(FileNoLabel_font)
00145         FileNoLayout.addWidget(self.FileNoLabel)
00146 
00147         self.FileNoSelector = QSpinBox(self.frame3,"FileNoSelector")
00148         self.FileNoSelector.setMaxValue(4194303)
00149         FileNoLayout.addWidget(self.FileNoSelector)
00150 
00151         frame3Layout.addMultiCellLayout(FileNoLayout,3,3,0,1)
00152         spacer37 = QSpacerItem(20,31,QSizePolicy.Minimum,QSizePolicy.Expanding)
00153         frame3Layout.addItem(spacer37,4,1)
00154 
00155         self.ExecuteButton = QPushButton(self.frame3,"ExecuteButton")
00156         self.ExecuteButton.setPaletteForegroundColor(QColor(0,0,0))
00157         self.ExecuteButton.setPaletteBackgroundColor(QColor(255,0,0))
00158         ExecuteButton_font = QFont(self.ExecuteButton.font())
00159         ExecuteButton_font.setBold(1)
00160         self.ExecuteButton.setFont(ExecuteButton_font)
00161         self.ExecuteButton.setFocusPolicy(QPushButton.NoFocus)
00162         self.ExecuteButton.setDefault(0)
00163 
00164         frame3Layout.addMultiCellWidget(self.ExecuteButton,6,6,1,2)
00165         spacer38 = QSpacerItem(51,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
00166         frame3Layout.addItem(spacer38,6,3)
00167         spacer39 = QSpacerItem(41,21,QSizePolicy.Expanding,QSizePolicy.Minimum)
00168         frame3Layout.addItem(spacer39,6,0)
00169 
00170         FileToolLayout.addWidget(self.frame3,0,0)
00171 
00172         self.languageChange()
00173 
00174         self.resize(QSize(459,299).expandedTo(self.minimumSizeHint()))
00175         self.clearWState(Qt.WState_Polished)
00176 
00177 
00178     def languageChange(self):
00179         self.setCaption(self.__tr("File Upload/Download Tool"))
00180         self.OriginLabel.setText(self.__tr("Origin"))
00181         self.DestinationLabel.setText(self.__tr("Destination"))
00182         self.DeviceLabel.setText(self.__tr("Device"))
00183         self.DeviceSelector.clear()
00184         self.DeviceSelector.insertItem(self.__tr("BOOT"))
00185         self.DeviceSelector.insertItem(self.__tr("RAM"))
00186         self.DeviceSelector.insertItem(self.__tr("EE0"))
00187         self.DeviceSelector.insertItem(self.__tr("EE1"))
00188         self.DeviceSelector.insertItem(self.__tr("TMP"))
00189         self.DeviceSelector.insertItem(self.__tr("USR0"))
00190         self.DeviceSelector.insertItem(self.__tr("USR1"))
00191         self.DeviceSelector.setCurrentItem(1)
00192         self.DirLabel.setText(self.__tr("Directory"))
00193         self.UnitLabel.setText(self.__tr("Unit"))
00194         self.UnitSelector.clear()
00195         self.UnitSelector.insertItem(self.__tr("SIU"))
00196         self.UnitSelector.insertItem(self.__tr("EPU0"))
00197         self.UnitSelector.insertItem(self.__tr("EPU1"))
00198         self.UnitSelector.insertItem(self.__tr("EPU2"))
00199         self.UnitSelector.insertItem(self.__tr("EPU3"))
00200         self.TransferSelector.setTitle(QString.null)
00201         self.DownloadRadioBtn.setText(self.__tr("Download"))
00202         self.UploadRadioBtn.setText(self.__tr("Upload"))
00203         self.ApplyButton.setText(self.__tr("Apply"))
00204         self.ClearButton.setText(self.__tr("Reset"))
00205         self.FileNoLabel.setText(self.__tr("File Number"))
00206         self.ExecuteButton.setText(self.__tr("Execute"))
00207 
00208 
00209     def __tr(self,s,c = None):
00210         return qApp.translate("FileTool",s,c)

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