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

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/faxsettingsform_base.ui'
  4. #
  5. # Created: Wed Aug 30 11:37:47 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 FaxSettingsForm_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("FaxSettingsForm_base")
  21.  
  22.  
  23.         FaxSettingsForm_baseLayout = QGridLayout(self,1,1,11,6,"FaxSettingsForm_baseLayout")
  24.  
  25.         self.tabWidget2 = QTabWidget(self,"tabWidget2")
  26.  
  27.         self.tab = QWidget(self.tabWidget2,"tab")
  28.         tabLayout = QGridLayout(self.tab,1,1,11,6,"tabLayout")
  29.  
  30.         self.groupBox1 = QGroupBox(self.tab,"groupBox1")
  31.         self.groupBox1.setColumnLayout(0,Qt.Vertical)
  32.         self.groupBox1.layout().setSpacing(6)
  33.         self.groupBox1.layout().setMargin(11)
  34.         groupBox1Layout = QGridLayout(self.groupBox1.layout())
  35.         groupBox1Layout.setAlignment(Qt.AlignTop)
  36.  
  37.         self.textLabel2 = QLabel(self.groupBox1,"textLabel2")
  38.  
  39.         groupBox1Layout.addWidget(self.textLabel2,2,0)
  40.  
  41.         self.faxEdit = QLineEdit(self.groupBox1,"faxEdit")
  42.  
  43.         groupBox1Layout.addWidget(self.faxEdit,2,1)
  44.  
  45.         self.textLabel1 = QLabel(self.groupBox1,"textLabel1")
  46.  
  47.         groupBox1Layout.addWidget(self.textLabel1,1,0)
  48.  
  49.         self.nameEdit = QLineEdit(self.groupBox1,"nameEdit")
  50.  
  51.         groupBox1Layout.addWidget(self.nameEdit,1,1)
  52.  
  53.         self.textLabel3 = QLabel(self.groupBox1,"textLabel3")
  54.         self.textLabel3.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  55.  
  56.         groupBox1Layout.addMultiCellWidget(self.textLabel3,0,0,0,1)
  57.  
  58.         tabLayout.addWidget(self.groupBox1,0,0)
  59.         spacer10 = QSpacerItem(20,60,QSizePolicy.Minimum,QSizePolicy.Expanding)
  60.         tabLayout.addItem(spacer10,2,0)
  61.  
  62.         self.groupBox4 = QGroupBox(self.tab,"groupBox4")
  63.         self.groupBox4.setColumnLayout(0,Qt.Vertical)
  64.         self.groupBox4.layout().setSpacing(6)
  65.         self.groupBox4.layout().setMargin(11)
  66.         groupBox4Layout = QGridLayout(self.groupBox4.layout())
  67.         groupBox4Layout.setAlignment(Qt.AlignTop)
  68.  
  69.         self.emailEdit = QLineEdit(self.groupBox4,"emailEdit")
  70.  
  71.         groupBox4Layout.addWidget(self.emailEdit,2,1)
  72.  
  73.         self.textLabel1_2 = QLabel(self.groupBox4,"textLabel1_2")
  74.  
  75.         groupBox4Layout.addWidget(self.textLabel1_2,1,0)
  76.  
  77.         self.voiceEdit = QLineEdit(self.groupBox4,"voiceEdit")
  78.  
  79.         groupBox4Layout.addWidget(self.voiceEdit,1,1)
  80.  
  81.         self.textLabel2_2 = QLabel(self.groupBox4,"textLabel2_2")
  82.  
  83.         groupBox4Layout.addWidget(self.textLabel2_2,2,0)
  84.  
  85.         self.textLabel3_2 = QLabel(self.groupBox4,"textLabel3_2")
  86.         self.textLabel3_2.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  87.  
  88.         groupBox4Layout.addMultiCellWidget(self.textLabel3_2,0,0,0,1)
  89.  
  90.         tabLayout.addWidget(self.groupBox4,1,0)
  91.         self.tabWidget2.insertTab(self.tab,QString.fromLatin1(""))
  92.  
  93.         FaxSettingsForm_baseLayout.addMultiCellWidget(self.tabWidget2,2,2,0,3)
  94.  
  95.         self.textLabel3_2_2 = QLabel(self,"textLabel3_2_2")
  96.  
  97.         FaxSettingsForm_baseLayout.addMultiCellWidget(self.textLabel3_2_2,0,0,0,3)
  98.  
  99.         self.line1_2_2 = QFrame(self,"line1_2_2")
  100.         self.line1_2_2.setFrameShape(QFrame.HLine)
  101.         self.line1_2_2.setFrameShadow(QFrame.Sunken)
  102.         self.line1_2_2.setFrameShape(QFrame.HLine)
  103.  
  104.         FaxSettingsForm_baseLayout.addMultiCellWidget(self.line1_2_2,1,1,0,3)
  105.  
  106.         self.pushButton31 = QPushButton(self,"pushButton31")
  107.  
  108.         FaxSettingsForm_baseLayout.addWidget(self.pushButton31,3,2)
  109.  
  110.         self.pushButtonOK = QPushButton(self,"pushButtonOK")
  111.         self.pushButtonOK.setEnabled(0)
  112.  
  113.         FaxSettingsForm_baseLayout.addWidget(self.pushButtonOK,3,3)
  114.         spacer40 = QSpacerItem(386,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  115.         FaxSettingsForm_baseLayout.addItem(spacer40,3,1)
  116.  
  117.         self.languageChange()
  118.  
  119.         self.resize(QSize(600,388).expandedTo(self.minimumSizeHint()))
  120.         self.clearWState(Qt.WState_Polished)
  121.  
  122.         self.connect(self.pushButton31,SIGNAL("clicked()"),self.reject)
  123.         self.connect(self.pushButtonOK,SIGNAL("clicked()"),self.accept)
  124.         self.connect(self.faxEdit,SIGNAL("textChanged(const QString&)"),self.faxEdit_textChanged)
  125.         self.connect(self.nameEdit,SIGNAL("textChanged(const QString&)"),self.nameEdit_textChanged)
  126.  
  127.         self.setTabOrder(self.nameEdit,self.faxEdit)
  128.         self.setTabOrder(self.faxEdit,self.voiceEdit)
  129.         self.setTabOrder(self.voiceEdit,self.emailEdit)
  130.         self.setTabOrder(self.emailEdit,self.pushButton31)
  131.         self.setTabOrder(self.pushButton31,self.pushButtonOK)
  132.         self.setTabOrder(self.pushButtonOK,self.tabWidget2)
  133.  
  134.  
  135.     def languageChange(self):
  136.         self.setCaption(self.__tr("HP Device Manager - Fax Settings"))
  137.         self.groupBox1.setTitle(self.__tr("Fax Header Information"))
  138.         self.textLabel2.setText(self.__tr("Device Fax Number:"))
  139.         self.textLabel1.setText(self.__tr("Name and/or Company:"))
  140.         self.textLabel3.setText(self.__tr("<i>This information will appear at the top of each fax that you send.</i>"))
  141.         self.groupBox4.setTitle(self.__tr("Coverpage Information"))
  142.         self.textLabel1_2.setText(self.__tr("Voice phone number:"))
  143.         self.textLabel2_2.setText(self.__tr("Email address:"))
  144.         self.textLabel3_2.setText(self.__tr("<i>This information will appear on any coverpage that you send.</i>"))
  145.         self.tabWidget2.changeTab(self.tab,self.__tr("Information"))
  146.         self.textLabel3_2_2.setText(self.__tr("<b>Configure device settings for sending faxes.</b>"))
  147.         self.pushButton31.setText(self.__tr("Cancel"))
  148.         self.pushButtonOK.setText(self.__tr("OK"))
  149.  
  150.  
  151.     def faxEdit_textChanged(self,a0):
  152.         print "FaxSettingsForm_base.faxEdit_textChanged(const QString&): Not implemented yet"
  153.  
  154.     def nameEdit_textChanged(self,a0):
  155.         print "FaxSettingsForm_base.nameEdit_textChanged(const QString&): Not implemented yet"
  156.  
  157.     def __tr(self,s,c = None):
  158.         return qApp.translate("FaxSettingsForm_base",s,c)
  159.  
  160. if __name__ == "__main__":
  161.     a = QApplication(sys.argv)
  162.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  163.     w = FaxSettingsForm_base()
  164.     a.setMainWidget(w)
  165.     w.show()
  166.     a.exec_loop()
  167.