home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / hplip / ui / faxaddrbookform_base.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  5.6 KB  |  122 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class FaxAddrBookForm_base(QDialog):
  8.     
  9.     def __init__(self, parent = None, name = None, modal = 0, fl = 0):
  10.         QDialog.__init__(self, parent, name, modal, fl)
  11.         if not name:
  12.             self.setName('FaxAddrBookForm_base')
  13.         
  14.         FaxAddrBookForm_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'FaxAddrBookForm_baseLayout')
  15.         self.OKButton = QPushButton(self, 'OKButton')
  16.         FaxAddrBookForm_baseLayout.addWidget(self.OKButton, 2, 6)
  17.         self.newButton = QPushButton(self, 'newButton')
  18.         FaxAddrBookForm_baseLayout.addWidget(self.newButton, 2, 0)
  19.         self.editButton = QPushButton(self, 'editButton')
  20.         FaxAddrBookForm_baseLayout.addWidget(self.editButton, 2, 1)
  21.         self.deleteButton = QPushButton(self, 'deleteButton')
  22.         FaxAddrBookForm_baseLayout.addWidget(self.deleteButton, 2, 2)
  23.         spacer29 = QSpacerItem(270, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  24.         FaxAddrBookForm_baseLayout.addItem(spacer29, 2, 5)
  25.         self.line8 = QFrame(self, 'line8')
  26.         self.line8.setFrameShape(QFrame.VLine)
  27.         self.line8.setFrameShadow(QFrame.Sunken)
  28.         self.line8.setFrameShape(QFrame.VLine)
  29.         FaxAddrBookForm_baseLayout.addWidget(self.line8, 2, 3)
  30.         self.groupButton = QPushButton(self, 'groupButton')
  31.         FaxAddrBookForm_baseLayout.addWidget(self.groupButton, 2, 4)
  32.         self.addressListView = QListView(self, 'addressListView')
  33.         self.addressListView.addColumn(self._FaxAddrBookForm_base__tr('Nickname'))
  34.         self.addressListView.addColumn(self._FaxAddrBookForm_base__tr('Title'))
  35.         self.addressListView.addColumn(self._FaxAddrBookForm_base__tr('First Name'))
  36.         self.addressListView.addColumn(self._FaxAddrBookForm_base__tr('Last Name'))
  37.         self.addressListView.addColumn(self._FaxAddrBookForm_base__tr('Fax Number'))
  38.         self.addressListView.addColumn(self._FaxAddrBookForm_base__tr('Member of Group(s)'))
  39.         self.addressListView.addColumn(self._FaxAddrBookForm_base__tr('Notes/Other Information'))
  40.         self.addressListView.setMidLineWidth(0)
  41.         self.addressListView.setSelectionMode(QListView.Single)
  42.         self.addressListView.setAllColumnsShowFocus(1)
  43.         self.addressListView.setShowSortIndicator(0)
  44.         FaxAddrBookForm_baseLayout.addMultiCellWidget(self.addressListView, 1, 1, 0, 6)
  45.         self.textLabel11 = QLabel(self, 'textLabel11')
  46.         FaxAddrBookForm_baseLayout.addMultiCellWidget(self.textLabel11, 0, 0, 0, 2)
  47.         self.languageChange()
  48.         self.resize(QSize(861, 358).expandedTo(self.minimumSizeHint()))
  49.         self.clearWState(Qt.WState_Polished)
  50.         self.connect(self.OKButton, SIGNAL('clicked()'), self.accept)
  51.         self.connect(self.newButton, SIGNAL('clicked()'), self.newButton_clicked)
  52.         self.connect(self.editButton, SIGNAL('clicked()'), self.editButton_clicked)
  53.         self.connect(self.deleteButton, SIGNAL('clicked()'), self.deleteButton_clicked)
  54.         self.connect(self.addressListView, SIGNAL('rightButtonClicked(QListViewItem*,const QPoint&,int)'), self.addressListView_rightButtonClicked)
  55.         self.connect(self.addressListView, SIGNAL('currentChanged(QListViewItem*)'), self.addressListView_currentChanged)
  56.         self.connect(self.addressListView, SIGNAL('doubleClicked(QListViewItem*)'), self.addressListView_doubleClicked)
  57.         self.connect(self.groupButton, SIGNAL('clicked()'), self.groupButton_clicked)
  58.         self.setTabOrder(self.addressListView, self.newButton)
  59.         self.setTabOrder(self.newButton, self.editButton)
  60.         self.setTabOrder(self.editButton, self.deleteButton)
  61.         self.setTabOrder(self.deleteButton, self.groupButton)
  62.         self.setTabOrder(self.groupButton, self.OKButton)
  63.  
  64.     
  65.     def languageChange(self):
  66.         self.setCaption(self._FaxAddrBookForm_base__tr('HP Device Manager - Fax Address Book'))
  67.         self.OKButton.setText(self._FaxAddrBookForm_base__tr('OK'))
  68.         self.newButton.setText(self._FaxAddrBookForm_base__tr('New...'))
  69.         self.editButton.setText(self._FaxAddrBookForm_base__tr('Edit...'))
  70.         self.deleteButton.setText(self._FaxAddrBookForm_base__tr('Delete...'))
  71.         self.groupButton.setText(self._FaxAddrBookForm_base__tr('Groups...'))
  72.         self.addressListView.header().setLabel(0, self._FaxAddrBookForm_base__tr('Nickname'))
  73.         self.addressListView.header().setLabel(1, self._FaxAddrBookForm_base__tr('Title'))
  74.         self.addressListView.header().setLabel(2, self._FaxAddrBookForm_base__tr('First Name'))
  75.         self.addressListView.header().setLabel(3, self._FaxAddrBookForm_base__tr('Last Name'))
  76.         self.addressListView.header().setLabel(4, self._FaxAddrBookForm_base__tr('Fax Number'))
  77.         self.addressListView.header().setLabel(5, self._FaxAddrBookForm_base__tr('Member of Group(s)'))
  78.         self.addressListView.header().setLabel(6, self._FaxAddrBookForm_base__tr('Notes/Other Information'))
  79.         self.textLabel11.setText(self._FaxAddrBookForm_base__tr('<b>Fax Addresses:</b>'))
  80.  
  81.     
  82.     def newButton_clicked(self):
  83.         print 'FaxAddrBookForm_base.newButton_clicked(): Not implemented yet'
  84.  
  85.     
  86.     def editButton_clicked(self):
  87.         print 'FaxAddrBookForm_base.editButton_clicked(): Not implemented yet'
  88.  
  89.     
  90.     def deleteButton_clicked(self):
  91.         print 'FaxAddrBookForm_base.deleteButton_clicked(): Not implemented yet'
  92.  
  93.     
  94.     def addressListView_rightButtonClicked(self, a0, a1, a2):
  95.         print 'FaxAddrBookForm_base.addressListView_rightButtonClicked(QListViewItem*,const QPoint&,int): Not implemented yet'
  96.  
  97.     
  98.     def addressListView_currentChanged(self, a0):
  99.         print 'FaxAddrBookForm_base.addressListView_currentChanged(QListViewItem*): Not implemented yet'
  100.  
  101.     
  102.     def addressListView_doubleClicked(self, a0):
  103.         print 'FaxAddrBookForm_base.addressListView_doubleClicked(QListViewItem*): Not implemented yet'
  104.  
  105.     
  106.     def groupButton_clicked(self):
  107.         print 'FaxAddrBookForm_base.groupButton_clicked(): Not implemented yet'
  108.  
  109.     
  110.     def __tr(self, s, c = None):
  111.         return qApp.translate('FaxAddrBookForm_base', s, c)
  112.  
  113.  
  114. if __name__ == '__main__':
  115.     a = QApplication(sys.argv)
  116.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  117.     w = FaxAddrBookForm_base()
  118.     a.setMainWidget(w)
  119.     w.show()
  120.     a.exec_loop()
  121.  
  122.