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

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/faxaddrbookeditform_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 FaxAddrBookEditForm_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("FaxAddrBookEditForm_base")
  21.  
  22.  
  23.         FaxAddrBookEditForm_baseLayout = QGridLayout(self,1,1,11,6,"FaxAddrBookEditForm_baseLayout")
  24.  
  25.         self.groupListView = QListView(self,"groupListView")
  26.         self.groupListView.addColumn(self.__tr("Group Name"))
  27.         self.groupListView.setSelectionMode(QListView.NoSelection)
  28.  
  29.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.groupListView,5,6,2,2)
  30.  
  31.         self.notesEdit = QTextEdit(self,"notesEdit")
  32.  
  33.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.notesEdit,11,11,0,4)
  34.  
  35.         self.lastnameEdit = QLineEdit(self,"lastnameEdit")
  36.  
  37.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.lastnameEdit,4,4,2,4)
  38.  
  39.         self.pushButton34 = QPushButton(self,"pushButton34")
  40.  
  41.         FaxAddrBookEditForm_baseLayout.addWidget(self.pushButton34,12,3)
  42.  
  43.         self.firstnameEdit = QLineEdit(self,"firstnameEdit")
  44.  
  45.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.firstnameEdit,3,3,2,4)
  46.  
  47.         self.line5 = QFrame(self,"line5")
  48.         self.line5.setFrameShape(QFrame.HLine)
  49.         self.line5.setFrameShadow(QFrame.Sunken)
  50.         self.line5.setFrameShape(QFrame.HLine)
  51.  
  52.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line5,9,9,0,4)
  53.  
  54.         self.OKButton = QPushButton(self,"OKButton")
  55.         self.OKButton.setEnabled(0)
  56.  
  57.         FaxAddrBookEditForm_baseLayout.addWidget(self.OKButton,12,4)
  58.  
  59.         self.textLabel1 = QLabel(self,"textLabel1")
  60.  
  61.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel1,3,3,0,1)
  62.         spacer34 = QSpacerItem(20,61,QSizePolicy.Minimum,QSizePolicy.Expanding)
  63.         FaxAddrBookEditForm_baseLayout.addItem(spacer34,5,3)
  64.  
  65.         self.titleEdit = QLineEdit(self,"titleEdit")
  66.  
  67.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.titleEdit,2,2,2,4)
  68.  
  69.         self.groupsButton2 = QPushButton(self,"groupsButton2")
  70.  
  71.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.groupsButton2,6,6,3,4)
  72.  
  73.         self.textLabel4 = QLabel(self,"textLabel4")
  74.  
  75.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel4,5,6,0,1)
  76.  
  77.         self.textLabel2 = QLabel(self,"textLabel2")
  78.  
  79.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel2,4,4,0,1)
  80.  
  81.         self.textLabel7 = QLabel(self,"textLabel7")
  82.  
  83.         FaxAddrBookEditForm_baseLayout.addWidget(self.textLabel7,8,0)
  84.  
  85.         self.textLabel6 = QLabel(self,"textLabel6")
  86.  
  87.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel6,10,10,0,4)
  88.  
  89.         self.textLabel5 = QLabel(self,"textLabel5")
  90.  
  91.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel5,2,2,0,1)
  92.         spacer31 = QSpacerItem(401,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  93.         FaxAddrBookEditForm_baseLayout.addMultiCell(spacer31,12,12,0,2)
  94.  
  95.         self.textLabel3 = QLabel(self,"textLabel3")
  96.  
  97.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel3,0,0,0,1)
  98.  
  99.         self.nicknameEdit = QLineEdit(self,"nicknameEdit")
  100.  
  101.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.nicknameEdit,0,0,2,4)
  102.  
  103.         self.line12 = QFrame(self,"line12")
  104.         self.line12.setFrameShape(QFrame.HLine)
  105.         self.line12.setFrameShadow(QFrame.Sunken)
  106.         self.line12.setFrameShape(QFrame.HLine)
  107.  
  108.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line12,1,1,0,4)
  109.  
  110.         self.faxEdit = QLineEdit(self,"faxEdit")
  111.  
  112.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.faxEdit,8,8,1,4)
  113.  
  114.         self.line5_2 = QFrame(self,"line5_2")
  115.         self.line5_2.setFrameShape(QFrame.HLine)
  116.         self.line5_2.setFrameShadow(QFrame.Sunken)
  117.         self.line5_2.setFrameShape(QFrame.HLine)
  118.  
  119.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line5_2,7,7,0,4)
  120.  
  121.         self.line5_2_2 = QFrame(self,"line5_2_2")
  122.         self.line5_2_2.setFrameShape(QFrame.HLine)
  123.         self.line5_2_2.setFrameShadow(QFrame.Sunken)
  124.         self.line5_2_2.setFrameShape(QFrame.HLine)
  125.  
  126.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.line5_2_2,13,13,0,4)
  127.  
  128.         self.textLabel12 = QLabel(self,"textLabel12")
  129.  
  130.         FaxAddrBookEditForm_baseLayout.addMultiCellWidget(self.textLabel12,14,14,0,4)
  131.  
  132.         self.languageChange()
  133.  
  134.         self.resize(QSize(479,551).expandedTo(self.minimumSizeHint()))
  135.         self.clearWState(Qt.WState_Polished)
  136.  
  137.         self.connect(self.pushButton34,SIGNAL("clicked()"),self.reject)
  138.         self.connect(self.OKButton,SIGNAL("clicked()"),self.accept)
  139.         self.connect(self.firstnameEdit,SIGNAL("textChanged(const QString&)"),self.firstnameEdit_textChanged)
  140.         self.connect(self.lastnameEdit,SIGNAL("textChanged(const QString&)"),self.lastnameEdit_textChanged)
  141.         self.connect(self.groupsButton2,SIGNAL("clicked()"),self.groupsButton2_clicked)
  142.         self.connect(self.nicknameEdit,SIGNAL("textChanged(const QString&)"),self.nicknameEdit_textChanged)
  143.         self.connect(self.faxEdit,SIGNAL("textChanged(const QString&)"),self.faxEdit_textChanged)
  144.  
  145.         self.setTabOrder(self.nicknameEdit,self.titleEdit)
  146.         self.setTabOrder(self.titleEdit,self.firstnameEdit)
  147.         self.setTabOrder(self.firstnameEdit,self.lastnameEdit)
  148.         self.setTabOrder(self.lastnameEdit,self.faxEdit)
  149.         self.setTabOrder(self.faxEdit,self.notesEdit)
  150.         self.setTabOrder(self.notesEdit,self.pushButton34)
  151.         self.setTabOrder(self.pushButton34,self.OKButton)
  152.  
  153.  
  154.     def languageChange(self):
  155.         self.setCaption(self.__tr("HP Device Manager - Fax Address Book Entry"))
  156.         self.groupListView.header().setLabel(0,self.__tr("Group Name"))
  157.         self.pushButton34.setText(self.__tr("Cancel"))
  158.         self.OKButton.setText(self.__tr("OK"))
  159.         self.textLabel1.setText(self.__tr("First Name:"))
  160.         self.groupsButton2.setText(self.__tr("New Group..."))
  161.         self.textLabel4.setText(self.__tr("Member of Group(s):"))
  162.         self.textLabel2.setText(self.__tr("Last Name:"))
  163.         self.textLabel7.setText(self.__tr("<b>Fax Number:</b>"))
  164.         self.textLabel6.setText(self.__tr("Notes/Other Information:"))
  165.         self.textLabel5.setText(self.__tr("Title:"))
  166.         self.textLabel3.setText(self.__tr("<b>Nickname:</b>"))
  167.         self.textLabel12.setText(self.__tr("Note: Items in <b>bold</b> are required fields."))
  168.  
  169.  
  170.     def firstnameEdit_textChanged(self,a0):
  171.         print "FaxAddrBookEditForm_base.firstnameEdit_textChanged(const QString&): Not implemented yet"
  172.  
  173.     def lastnameEdit_textChanged(self,a0):
  174.         print "FaxAddrBookEditForm_base.lastnameEdit_textChanged(const QString&): Not implemented yet"
  175.  
  176.     def checkBox3_toggled(self,a0):
  177.         print "FaxAddrBookEditForm_base.checkBox3_toggled(bool): Not implemented yet"
  178.  
  179.     def isGroupCheckBox_toggled(self,a0):
  180.         print "FaxAddrBookEditForm_base.isGroupCheckBox_toggled(bool): Not implemented yet"
  181.  
  182.     def groupsButton2_clicked(self):
  183.         print "FaxAddrBookEditForm_base.groupsButton2_clicked(): Not implemented yet"
  184.  
  185.     def nicknameEdit_textChanged(self,a0):
  186.         print "FaxAddrBookEditForm_base.nicknameEdit_textChanged(const QString&): Not implemented yet"
  187.  
  188.     def faxEdit_textChanged(self,a0):
  189.         print "FaxAddrBookEditForm_base.faxEdit_textChanged(const QString&): Not implemented yet"
  190.  
  191.     def __tr(self,s,c = None):
  192.         return qApp.translate("FaxAddrBookEditForm_base",s,c)
  193.  
  194. if __name__ == "__main__":
  195.     a = QApplication(sys.argv)
  196.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  197.     w = FaxAddrBookEditForm_base()
  198.     a.setMainWidget(w)
  199.     w.show()
  200.     a.exec_loop()
  201.