C:/mesDocs/QT_confDbVis_canvas/create_a_device_type.py

Go to the documentation of this file.
00001 # -*- coding: utf-8 -*-
00002 
00003 # Form implementation generated from reading ui file 'create_a_device_type.ui'
00004 #
00005 # Created: Fri Jul 13 17:38:00 2007
00006 #      by: The PyQt User Interface Compiler (pyuic) 3.13
00007 #
00008 # WARNING! All changes made in this file will be lost!
00009 
00010 
00011 from qt import *
00012 
00013 
00014 class Form1(QDialog):
00015     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
00016         QDialog.__init__(self,parent,name,modal,fl)
00017 
00018         if not name:
00019             self.setName("Form1")
00020 
00021 
00022         Form1Layout = QGridLayout(self,1,1,11,6,"Form1Layout")
00023         spacingButtons = QSpacerItem(110,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
00024         Form1Layout.addMultiCell(spacingButtons,9,9,0,1)
00025 
00026         self.buttonOk = QPushButton(self,"buttonOk")
00027         self.buttonOk.setAutoDefault(1)
00028         self.buttonOk.setDefault(1)
00029 
00030         Form1Layout.addMultiCellWidget(self.buttonOk,9,9,2,4)
00031 
00032         self.buttonCancel = QPushButton(self,"buttonCancel")
00033         self.buttonCancel.setAutoDefault(1)
00034 
00035         Form1Layout.addMultiCellWidget(self.buttonCancel,9,9,5,6)
00036 
00037         self.Description = QTextEdit(self,"Description")
00038 
00039         Form1Layout.addMultiCellWidget(self.Description,8,8,0,6)
00040 
00041         self.Inputnumber = QSpinBox(self,"Inputnumber")
00042 
00043         Form1Layout.addWidget(self.Inputnumber,6,1)
00044         spacinginputOutput = QSpacerItem(51,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
00045         Form1Layout.addMultiCell(spacinginputOutput,6,6,2,3)
00046 
00047         self.outputLabel = QLabel(self,"outputLabel")
00048 
00049         Form1Layout.addMultiCellWidget(self.outputLabel,6,6,4,5)
00050 
00051         self.Outputnumber = QSpinBox(self,"Outputnumber")
00052 
00053         Form1Layout.addWidget(self.Outputnumber,6,6)
00054 
00055         self.addsybsystemLabel = QLabel(self,"addsybsystemLabel")
00056 
00057         Form1Layout.addMultiCellWidget(self.addsybsystemLabel,4,4,0,1)
00058 
00059         self.inputLabel = QLabel(self,"inputLabel")
00060 
00061         Form1Layout.addWidget(self.inputLabel,6,0)
00062 
00063         self.descriptionLabel = QLabel(self,"descriptionLabel")
00064 
00065         Form1Layout.addMultiCellWidget(self.descriptionLabel,7,7,0,1)
00066         spacingNameColor = QSpacerItem(31,20,QSizePolicy.Minimum,QSizePolicy.Minimum)
00067         Form1Layout.addItem(spacingNameColor,1,3)
00068 
00069         self.createinLabel = QLabel(self,"createinLabel")
00070 
00071         Form1Layout.addMultiCellWidget(self.createinLabel,2,2,0,1)
00072 
00073         self.devicetypenameEdit = QLineEdit(self,"devicetypenameEdit")
00074 
00075         Form1Layout.addMultiCellWidget(self.devicetypenameEdit,1,1,0,2)
00076 
00077         self.CreateinLineedit = QLineEdit(self,"CreateinLineedit")
00078 
00079         Form1Layout.addMultiCellWidget(self.CreateinLineedit,3,3,0,6)
00080 
00081         self.addsubsystemList = QListBox(self,"addsubsystemList")
00082 
00083         Form1Layout.addMultiCellWidget(self.addsubsystemList,5,5,0,6)
00084 
00085         self.pushButton16 = QPushButton(self,"pushButton16")
00086 
00087         Form1Layout.addMultiCellWidget(self.pushButton16,1,1,4,6)
00088 
00089         self.DeviceNameLabel = QLabel(self,"DeviceNameLabel")
00090 
00091         Form1Layout.addMultiCellWidget(self.DeviceNameLabel,0,0,0,1)
00092 
00093         self.colorLabel = QLabel(self,"colorLabel")
00094 
00095         Form1Layout.addMultiCellWidget(self.colorLabel,0,0,4,5)
00096 
00097         self.languageChange()
00098 
00099         self.resize(QSize(315,441).expandedTo(self.minimumSizeHint()))
00100         self.clearWState(Qt.WState_Polished)
00101 
00102 
00103     def languageChange(self):
00104         self.setCaption(self.__tr("Form1"))
00105         self.buttonOk.setText(self.__tr("&OK"))
00106         self.buttonOk.setAccel(QString.null)
00107         self.buttonCancel.setText(self.__tr("&Cancel"))
00108         self.buttonCancel.setAccel(QString.null)
00109         self.outputLabel.setText(self.__tr("Output ports:"))
00110         self.addsybsystemLabel.setText(self.__tr("Add to subsystem:"))
00111         self.inputLabel.setText(self.__tr("Input ports:"))
00112         self.descriptionLabel.setText(self.__tr("Description :"))
00113         self.createinLabel.setText(self.__tr("Create in:"))
00114         self.addsubsystemList.clear()
00115         self.addsubsystemList.insertItem(self.__tr("New Item"))
00116         self.addsubsystemList.insertItem(self.__tr("New Item"))
00117         self.addsubsystemList.insertItem(self.__tr("New Item"))
00118         self.addsubsystemList.insertItem(self.__tr("New Item"))
00119         self.addsubsystemList.insertItem(self.__tr("New Item"))
00120         self.addsubsystemList.insertItem(self.__tr("New Item"))
00121         self.addsubsystemList.insertItem(self.__tr("New Item"))
00122         self.addsubsystemList.insertItem(self.__tr("New Item"))
00123         self.addsubsystemList.insertItem(self.__tr("New Item"))
00124         self.pushButton16.setText(self.__tr("pushButton16"))
00125         self.DeviceNameLabel.setText(self.__tr("Device Type Name:"))
00126         self.colorLabel.setText(self.__tr("Choose color:"))
00127 
00128 
00129     def __tr(self,s,c = None):
00130         return qApp.translate("Form1",s,c)
00131 
00132 

Generated on Fri Aug 31 11:11:11 2007 for CDBVis by  doxygen 1.5.3