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

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui/faxaddrbookgroupeditform_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 FaxAddrBookGroupEditForm_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("FaxAddrBookGroupEditForm_base")
  21.  
  22.  
  23.         FaxAddrBookGroupEditForm_baseLayout = QGridLayout(self,1,1,11,6,"FaxAddrBookGroupEditForm_baseLayout")
  24.  
  25.         self.textLabel8 = QLabel(self,"textLabel8")
  26.  
  27.         FaxAddrBookGroupEditForm_baseLayout.addWidget(self.textLabel8,0,0)
  28.  
  29.         self.textLabel9 = QLabel(self,"textLabel9")
  30.  
  31.         FaxAddrBookGroupEditForm_baseLayout.addMultiCellWidget(self.textLabel9,2,2,0,3)
  32.  
  33.         self.entriesListView = QListView(self,"entriesListView")
  34.         self.entriesListView.addColumn(self.__tr("Group Members"))
  35.         self.entriesListView.setSelectionMode(QListView.NoSelection)
  36.  
  37.         FaxAddrBookGroupEditForm_baseLayout.addMultiCellWidget(self.entriesListView,3,3,0,3)
  38.  
  39.         self.groupnameEdit = QLineEdit(self,"groupnameEdit")
  40.  
  41.         FaxAddrBookGroupEditForm_baseLayout.addMultiCellWidget(self.groupnameEdit,0,0,1,3)
  42.  
  43.         self.line11 = QFrame(self,"line11")
  44.         self.line11.setFrameShape(QFrame.HLine)
  45.         self.line11.setFrameShadow(QFrame.Sunken)
  46.         self.line11.setFrameShape(QFrame.HLine)
  47.  
  48.         FaxAddrBookGroupEditForm_baseLayout.addMultiCellWidget(self.line11,1,1,0,3)
  49.  
  50.         self.okButton = QPushButton(self,"okButton")
  51.  
  52.         FaxAddrBookGroupEditForm_baseLayout.addWidget(self.okButton,4,3)
  53.  
  54.         self.cancelButton = QPushButton(self,"cancelButton")
  55.  
  56.         FaxAddrBookGroupEditForm_baseLayout.addWidget(self.cancelButton,4,2)
  57.         spacer36 = QSpacerItem(150,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
  58.         FaxAddrBookGroupEditForm_baseLayout.addMultiCell(spacer36,4,4,0,1)
  59.  
  60.         self.languageChange()
  61.  
  62.         self.resize(QSize(377,359).expandedTo(self.minimumSizeHint()))
  63.         self.clearWState(Qt.WState_Polished)
  64.  
  65.         self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
  66.         self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)
  67.         self.connect(self.groupnameEdit,SIGNAL("textChanged(const QString&)"),self.groupnameEdit_textChanged)
  68.         self.connect(self.entriesListView,SIGNAL("clicked(QListViewItem*)"),self.entriesListView_clicked)
  69.  
  70.  
  71.     def languageChange(self):
  72.         self.setCaption(self.__tr("HP Device Manager - Fax Address Book Group"))
  73.         self.textLabel8.setText(self.__tr("<b>Group Name:</b>"))
  74.         self.textLabel9.setText(self.__tr("<b>Member Address Book Entries:</b>"))
  75.         self.entriesListView.header().setLabel(0,self.__tr("Group Members"))
  76.         self.okButton.setText(self.__tr("OK"))
  77.         self.cancelButton.setText(self.__tr("Cancel"))
  78.  
  79.  
  80.     def groupnameEdit_textChanged(self,a0):
  81.         print "FaxAddrBookGroupEditForm_base.groupnameEdit_textChanged(const QString&): Not implemented yet"
  82.  
  83.     def entriesListView_clicked(self,a0):
  84.         print "FaxAddrBookGroupEditForm_base.entriesListView_clicked(QListViewItem*): Not implemented yet"
  85.  
  86.     def __tr(self,s,c = None):
  87.         return qApp.translate("FaxAddrBookGroupEditForm_base",s,c)
  88.  
  89. if __name__ == "__main__":
  90.     a = QApplication(sys.argv)
  91.     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  92.     w = FaxAddrBookGroupEditForm_base()
  93.     a.setMainWidget(w)
  94.     w.show()
  95.     a.exec_loop()
  96.