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.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  5.4 KB  |  123 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class FaxSettingsForm_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('FaxSettingsForm_base')
  13.         
  14.         FaxSettingsForm_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'FaxSettingsForm_baseLayout')
  15.         self.tabWidget2 = QTabWidget(self, 'tabWidget2')
  16.         self.tab = QWidget(self.tabWidget2, 'tab')
  17.         tabLayout = QGridLayout(self.tab, 1, 1, 11, 6, 'tabLayout')
  18.         self.groupBox1 = QGroupBox(self.tab, 'groupBox1')
  19.         self.groupBox1.setColumnLayout(0, Qt.Vertical)
  20.         self.groupBox1.layout().setSpacing(6)
  21.         self.groupBox1.layout().setMargin(11)
  22.         groupBox1Layout = QGridLayout(self.groupBox1.layout())
  23.         groupBox1Layout.setAlignment(Qt.AlignTop)
  24.         self.textLabel2 = QLabel(self.groupBox1, 'textLabel2')
  25.         groupBox1Layout.addWidget(self.textLabel2, 2, 0)
  26.         self.faxEdit = QLineEdit(self.groupBox1, 'faxEdit')
  27.         groupBox1Layout.addWidget(self.faxEdit, 2, 1)
  28.         self.textLabel1 = QLabel(self.groupBox1, 'textLabel1')
  29.         groupBox1Layout.addWidget(self.textLabel1, 1, 0)
  30.         self.nameEdit = QLineEdit(self.groupBox1, 'nameEdit')
  31.         groupBox1Layout.addWidget(self.nameEdit, 1, 1)
  32.         self.textLabel3 = QLabel(self.groupBox1, 'textLabel3')
  33.         self.textLabel3.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  34.         groupBox1Layout.addMultiCellWidget(self.textLabel3, 0, 0, 0, 1)
  35.         tabLayout.addWidget(self.groupBox1, 0, 0)
  36.         spacer10 = QSpacerItem(20, 60, QSizePolicy.Minimum, QSizePolicy.Expanding)
  37.         tabLayout.addItem(spacer10, 2, 0)
  38.         self.groupBox4 = QGroupBox(self.tab, 'groupBox4')
  39.         self.groupBox4.setColumnLayout(0, Qt.Vertical)
  40.         self.groupBox4.layout().setSpacing(6)
  41.         self.groupBox4.layout().setMargin(11)
  42.         groupBox4Layout = QGridLayout(self.groupBox4.layout())
  43.         groupBox4Layout.setAlignment(Qt.AlignTop)
  44.         self.emailEdit = QLineEdit(self.groupBox4, 'emailEdit')
  45.         groupBox4Layout.addWidget(self.emailEdit, 2, 1)
  46.         self.textLabel1_2 = QLabel(self.groupBox4, 'textLabel1_2')
  47.         groupBox4Layout.addWidget(self.textLabel1_2, 1, 0)
  48.         self.voiceEdit = QLineEdit(self.groupBox4, 'voiceEdit')
  49.         groupBox4Layout.addWidget(self.voiceEdit, 1, 1)
  50.         self.textLabel2_2 = QLabel(self.groupBox4, 'textLabel2_2')
  51.         groupBox4Layout.addWidget(self.textLabel2_2, 2, 0)
  52.         self.textLabel3_2 = QLabel(self.groupBox4, 'textLabel3_2')
  53.         self.textLabel3_2.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
  54.         groupBox4Layout.addMultiCellWidget(self.textLabel3_2, 0, 0, 0, 1)
  55.         tabLayout.addWidget(self.groupBox4, 1, 0)
  56.         self.tabWidget2.insertTab(self.tab, QString.fromLatin1(''))
  57.         FaxSettingsForm_baseLayout.addMultiCellWidget(self.tabWidget2, 2, 2, 0, 3)
  58.         self.textLabel3_2_2 = QLabel(self, 'textLabel3_2_2')
  59.         FaxSettingsForm_baseLayout.addMultiCellWidget(self.textLabel3_2_2, 0, 0, 0, 3)
  60.         self.line1_2_2 = QFrame(self, 'line1_2_2')
  61.         self.line1_2_2.setFrameShape(QFrame.HLine)
  62.         self.line1_2_2.setFrameShadow(QFrame.Sunken)
  63.         self.line1_2_2.setFrameShape(QFrame.HLine)
  64.         FaxSettingsForm_baseLayout.addMultiCellWidget(self.line1_2_2, 1, 1, 0, 3)
  65.         self.pushButton31 = QPushButton(self, 'pushButton31')
  66.         FaxSettingsForm_baseLayout.addWidget(self.pushButton31, 3, 2)
  67.         self.pushButtonOK = QPushButton(self, 'pushButtonOK')
  68.         self.pushButtonOK.setEnabled(0)
  69.         FaxSettingsForm_baseLayout.addWidget(self.pushButtonOK, 3, 3)
  70.         spacer40 = QSpacerItem(386, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  71.         FaxSettingsForm_baseLayout.addItem(spacer40, 3, 1)
  72.         self.languageChange()
  73.         self.resize(QSize(600, 388).expandedTo(self.minimumSizeHint()))
  74.         self.clearWState(Qt.WState_Polished)
  75.         self.connect(self.pushButton31, SIGNAL('clicked()'), self.reject)
  76.         self.connect(self.pushButtonOK, SIGNAL('clicked()'), self.accept)
  77.         self.connect(self.faxEdit, SIGNAL('textChanged(const QString&)'), self.faxEdit_textChanged)
  78.         self.connect(self.nameEdit, SIGNAL('textChanged(const QString&)'), self.nameEdit_textChanged)
  79.         self.setTabOrder(self.nameEdit, self.faxEdit)
  80.         self.setTabOrder(self.faxEdit, self.voiceEdit)
  81.         self.setTabOrder(self.voiceEdit, self.emailEdit)
  82.         self.setTabOrder(self.emailEdit, self.pushButton31)
  83.         self.setTabOrder(self.pushButton31, self.pushButtonOK)
  84.         self.setTabOrder(self.pushButtonOK, self.tabWidget2)
  85.  
  86.     
  87.     def languageChange(self):
  88.         self.setCaption(self._FaxSettingsForm_base__tr('HP Device Manager - Fax Settings'))
  89.         self.groupBox1.setTitle(self._FaxSettingsForm_base__tr('Fax Header Information'))
  90.         self.textLabel2.setText(self._FaxSettingsForm_base__tr('Device Fax Number:'))
  91.         self.textLabel1.setText(self._FaxSettingsForm_base__tr('Name and/or Company:'))
  92.         self.textLabel3.setText(self._FaxSettingsForm_base__tr('<i>This information will appear at the top of each fax that you send.</i>'))
  93.         self.groupBox4.setTitle(self._FaxSettingsForm_base__tr('Coverpage Information'))
  94.         self.textLabel1_2.setText(self._FaxSettingsForm_base__tr('Voice phone number:'))
  95.         self.textLabel2_2.setText(self._FaxSettingsForm_base__tr('Email address:'))
  96.         self.textLabel3_2.setText(self._FaxSettingsForm_base__tr('<i>This information will appear on any coverpage that you send.</i>'))
  97.         self.tabWidget2.changeTab(self.tab, self._FaxSettingsForm_base__tr('Information'))
  98.         self.textLabel3_2_2.setText(self._FaxSettingsForm_base__tr('<b>Configure device settings for sending faxes.</b>'))
  99.         self.pushButton31.setText(self._FaxSettingsForm_base__tr('Cancel'))
  100.         self.pushButtonOK.setText(self._FaxSettingsForm_base__tr('OK'))
  101.  
  102.     
  103.     def faxEdit_textChanged(self, a0):
  104.         print 'FaxSettingsForm_base.faxEdit_textChanged(const QString&): Not implemented yet'
  105.  
  106.     
  107.     def nameEdit_textChanged(self, a0):
  108.         print 'FaxSettingsForm_base.nameEdit_textChanged(const QString&): Not implemented yet'
  109.  
  110.     
  111.     def __tr(self, s, c = None):
  112.         return qApp.translate('FaxSettingsForm_base', s, c)
  113.  
  114.  
  115. if __name__ == '__main__':
  116.     a = QApplication(sys.argv)
  117.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  118.     w = FaxSettingsForm_base()
  119.     a.setMainWidget(w)
  120.     w.show()
  121.     a.exec_loop()
  122.  
  123.