home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / hplip / ui / align10form_base.py < prev    next >
Encoding:
Python Source  |  2006-08-30  |  5.5 KB  |  158 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/align10form_base.ui'
  4. #
  5. # Created: Wed Aug 30 11:37:46 2006
  6. #      by: The PyQt User Interface Compiler (pyuic) 3.16
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10.  
  11. import sys
  12. from qt import *
  13.  
  14.  
  15. class Align10Form_Base(QDialog):
  16.     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
  17.         QDialog.__init__(self,parent,name,modal,fl)
  18.  
  19.         if not name:
  20.             self.setName("Align10Form_base")
  21.  
  22.  
  23.         Align10Form_baseLayout = QGridLayout(self,1,1,11,6,"Align10Form_baseLayout")
  24.  
  25.         self.textLabel2 = QLabel(self,"textLabel2")
  26.  
  27.         Align10Form_baseLayout.addMultiCellWidget(self.textLabel2,0,0,0,2)
  28.  
  29.         layout2 = QGridLayout(None,1,1,0,6,"layout2")
  30.  
  31.         self.comboBoxF = QComboBox(0,self,"comboBoxF")
  32.  
  33.         layout2.addWidget(self.comboBoxF,5,1)
  34.  
  35.         self.textLabel1_2 = QLabel(self,"textLabel1_2")
  36.  
  37.         layout2.addWidget(self.textLabel1_2,1,0)
  38.  
  39.         self.textLabel1_6 = QLabel(self,"textLabel1_6")
  40.  
  41.         layout2.addWidget(self.textLabel1_6,5,0)
  42.  
  43.         self.comboBoxD = QComboBox(0,self,"comboBoxD")
  44.  
  45.         layout2.addWidget(self.comboBoxD,3,1)
  46.  
  47.         self.comboBoxE = QComboBox(0,self,"comboBoxE")
  48.  
  49.         layout2.addWidget(self.comboBoxE,4,1)
  50.  
  51.         self.textLabel1_3 = QLabel(self,"textLabel1_3")
  52.  
  53.         layout2.addWidget(self.textLabel1_3,2,0)
  54.  
  55.         self.textLabel1_4 = QLabel(self,"textLabel1_4")
  56.  
  57.         layout2.addWidget(self.textLabel1_4,3,0)
  58.  
  59.         self.comboBoxC = QComboBox(0,self,"comboBoxC")
  60.  
  61.         layout2.addWidget(self.comboBoxC,2,1)
  62.  
  63.         self.comboBoxA = QComboBox(0,self,"comboBoxA")
  64.  
  65.         layout2.addWidget(self.comboBoxA,0,1)
  66.  
  67.         self.comboBoxH = QComboBox(0,self,"comboBoxH")
  68.  
  69.         layout2.addWidget(self.comboBoxH,7,1)
  70.  
  71.         self.textLabel1_7 = QLabel(self,"textLabel1_7")
  72.  
  73.         layout2.addWidget(self.textLabel1_7,6,0)
  74.  
  75.         self.textLabel1 = QLabel(self,"textLabel1")
  76.  
  77.         layout2.addWidget(self.textLabel1,0,0)
  78.  
  79.         self.textLabel1_5 = QLabel(self,"textLabel1_5")
  80.  
  81.         layout2.addWidget(self.textLabel1_5,4,0)
  82.  
  83.         self.textLabel1_8 = QLabel(self,"textLabel1_8")
  84.  
  85.         layout2.addWidget(self.textLabel1_8,7,0)
  86.  
  87.         self.comboBoxB = QComboBox(0,self,"comboBoxB")
  88.  
  89.         layout2.addWidget(self.comboBoxB,1,1)
  90.  
  91.         self.comboBoxG = QComboBox(0,self,"comboBoxG")
  92.  
  93.         layout2.addWidget(self.comboBoxG,6,1)
  94.  
  95.         Align10Form_baseLayout.addMultiCellLayout(layout2,0,1,4,5)
  96.         spacer2 = QSpacerItem(20,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  97.         Align10Form_baseLayout.addItem(spacer2,0,3)
  98.         spacer3 = QSpacerItem(20,41,QSizePolicy.Minimum,QSizePolicy.Expanding)
  99.         Align10Form_baseLayout.addItem(spacer3,2,5)
  100.  
  101.         self.pushButton1 = QPushButton(self,"pushButton1")
  102.  
  103.         Align10Form_baseLayout.addWidget(self.pushButton1,3,5)
  104.  
  105.         self.pushButton2 = QPushButton(self,"pushButton2")
  106.  
  107.         Align10Form_baseLayout.addMultiCellWidget(self.pushButton2,3,3,3,4)
  108.         spacer1 = QSpacerItem(320,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  109.         Align10Form_baseLayout.addMultiCell(spacer1,3,3,0,2)
  110.         spacer5 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  111.         Align10Form_baseLayout.addItem(spacer5,1,0)
  112.  
  113.         self.Icon = QLabel(self,"Icon")
  114.         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
  115.         self.Icon.setMinimumSize(QSize(192,93))
  116.         self.Icon.setMaximumSize(QSize(192,93))
  117.         self.Icon.setScaledContents(1)
  118.  
  119.         Align10Form_baseLayout.addWidget(self.Icon,1,1)
  120.         spacer4 = QSpacerItem(60,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  121.         Align10Form_baseLayout.addMultiCell(spacer4,1,1,2,3)
  122.  
  123.         self.languageChange()
  124.  
  125.         self.resize(QSize(520,326).expandedTo(self.minimumSizeHint()))
  126.         self.clearWState(Qt.WState_Polished)
  127.  
  128.         self.connect(self.pushButton1,SIGNAL("clicked()"),self.accept)
  129.         self.connect(self.pushButton2,SIGNAL("clicked()"),self.reject)
  130.  
  131.  
  132.     def languageChange(self):
  133.         self.setCaption(self.__tr("HP Device Manager - Alignment"))
  134.         self.textLabel2.setText(self.__tr("Examine the page that was printed. Several rows of boxes, each made up of thin lines, appear on the printed page.<p>\n"
  135. "For each row, select the label representing the box in which the shorter inner lines are the most aligned with the longer outer lines.."))
  136.         self.textLabel1_2.setText(self.__tr("<b><font face=\"Courier\">B:</font></b>"))
  137.         self.textLabel1_6.setText(self.__tr("<b><font face=\"Courier\">F:</font></b>"))
  138.         self.textLabel1_3.setText(self.__tr("<b><font face=\"Courier\">C:</font></b>"))
  139.         self.textLabel1_4.setText(self.__tr("<b><font face=\"Courier\">D:</font></b>"))
  140.         self.textLabel1_7.setText(self.__tr("<b><font face=\"Courier\">G:</font></b>"))
  141.         self.textLabel1.setText(self.__tr("<b><font face=\"Courier\">A:</font></b>"))
  142.         self.textLabel1_5.setText(self.__tr("<b><font face=\"Courier\">E:</font></b>"))
  143.         self.textLabel1_8.setText(self.__tr("<b><font face=\"Courier\">H:</font></b>"))
  144.         self.pushButton1.setText(self.__tr("Next >"))
  145.         self.pushButton2.setText(self.__tr("Cancel"))
  146.  
  147.  
  148.     def __tr(self,s,c = None):
  149.         return qApp.translate("Align10Form_Base",s,c)
  150.  
  151. if __name__ == "__main__":
  152.     a = QApplication(sys.argv)
  153.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  154.     w = Align10Form_Base()
  155.     a.setMainWidget(w)
  156.     w.show()
  157.     a.exec_loop()
  158.