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

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. import sys
  5. from qt import *
  6.  
  7. class SettingsDialog_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('SettingsDialog_base')
  13.         
  14.         SettingsDialog_baseLayout = QGridLayout(self, 1, 1, 11, 6, 'SettingsDialog_baseLayout')
  15.         self.pushButton30 = QPushButton(self, 'pushButton30')
  16.         SettingsDialog_baseLayout.addWidget(self.pushButton30, 1, 2)
  17.         self.pushButton31 = QPushButton(self, 'pushButton31')
  18.         SettingsDialog_baseLayout.addWidget(self.pushButton31, 1, 1)
  19.         spacer40 = QSpacerItem(430, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  20.         SettingsDialog_baseLayout.addItem(spacer40, 1, 0)
  21.         self.TabWidget = QTabWidget(self, 'TabWidget')
  22.         self.CleaningLevels = QWidget(self.TabWidget, 'CleaningLevels')
  23.         CleaningLevelsLayout = QGridLayout(self.CleaningLevels, 1, 1, 11, 6, 'CleaningLevelsLayout')
  24.         self.textLabel3_2_2 = QLabel(self.CleaningLevels, 'textLabel3_2_2')
  25.         CleaningLevelsLayout.addWidget(self.textLabel3_2_2, 0, 0)
  26.         self.line1_2_2 = QFrame(self.CleaningLevels, 'line1_2_2')
  27.         self.line1_2_2.setFrameShape(QFrame.HLine)
  28.         self.line1_2_2.setFrameShadow(QFrame.Sunken)
  29.         self.line1_2_2.setFrameShape(QFrame.HLine)
  30.         CleaningLevelsLayout.addWidget(self.line1_2_2, 1, 0)
  31.         spacer8 = QSpacerItem(20, 30, QSizePolicy.Minimum, QSizePolicy.Expanding)
  32.         CleaningLevelsLayout.addItem(spacer8, 5, 0)
  33.         self.autoRefreshCheckBox = QCheckBox(self.CleaningLevels, 'autoRefreshCheckBox')
  34.         CleaningLevelsLayout.addWidget(self.autoRefreshCheckBox, 2, 0)
  35.         self.CleaningLevel = QButtonGroup(self.CleaningLevels, 'CleaningLevel')
  36.         self.CleaningLevel.setColumnLayout(0, Qt.Vertical)
  37.         self.CleaningLevel.layout().setSpacing(6)
  38.         self.CleaningLevel.layout().setMargin(11)
  39.         CleaningLevelLayout = QGridLayout(self.CleaningLevel.layout())
  40.         CleaningLevelLayout.setAlignment(Qt.AlignTop)
  41.         spacer9_2 = QSpacerItem(290, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  42.         CleaningLevelLayout.addItem(spacer9_2, 0, 2)
  43.         self.textLabel1_4 = QLabel(self.CleaningLevel, 'textLabel1_4')
  44.         CleaningLevelLayout.addWidget(self.textLabel1_4, 0, 0)
  45.         layout7 = QHBoxLayout(None, 0, 6, 'layout7')
  46.         self.AutoRefreshRate = QSpinBox(self.CleaningLevel, 'AutoRefreshRate')
  47.         self.AutoRefreshRate.setEnabled(0)
  48.         self.AutoRefreshRate.setWrapping(1)
  49.         self.AutoRefreshRate.setButtonSymbols(QSpinBox.PlusMinus)
  50.         self.AutoRefreshRate.setMaxValue(60)
  51.         self.AutoRefreshRate.setMinValue(1)
  52.         self.AutoRefreshRate.setValue(1)
  53.         layout7.addWidget(self.AutoRefreshRate)
  54.         self.textLabel1_3 = QLabel(self.CleaningLevel, 'textLabel1_3')
  55.         layout7.addWidget(self.textLabel1_3)
  56.         CleaningLevelLayout.addLayout(layout7, 0, 1)
  57.         CleaningLevelsLayout.addWidget(self.CleaningLevel, 3, 0)
  58.         self.refreshScopeButtonGroup = QButtonGroup(self.CleaningLevels, 'refreshScopeButtonGroup')
  59.         self.refreshScopeButtonGroup.setColumnLayout(0, Qt.Vertical)
  60.         self.refreshScopeButtonGroup.layout().setSpacing(6)
  61.         self.refreshScopeButtonGroup.layout().setMargin(11)
  62.         refreshScopeButtonGroupLayout = QGridLayout(self.refreshScopeButtonGroup.layout())
  63.         refreshScopeButtonGroupLayout.setAlignment(Qt.AlignTop)
  64.         self.radioButton1 = QRadioButton(self.refreshScopeButtonGroup, 'radioButton1')
  65.         self.radioButton1.setEnabled(0)
  66.         self.radioButton1.setChecked(1)
  67.         refreshScopeButtonGroupLayout.addWidget(self.radioButton1, 0, 0)
  68.         self.radioButton2 = QRadioButton(self.refreshScopeButtonGroup, 'radioButton2')
  69.         self.radioButton2.setEnabled(0)
  70.         refreshScopeButtonGroupLayout.addWidget(self.radioButton2, 1, 0)
  71.         CleaningLevelsLayout.addWidget(self.refreshScopeButtonGroup, 4, 0)
  72.         self.TabWidget.insertTab(self.CleaningLevels, QString.fromLatin1(''))
  73.         self.EmailAlerts = QWidget(self.TabWidget, 'EmailAlerts')
  74.         EmailAlertsLayout = QGridLayout(self.EmailAlerts, 1, 1, 11, 6, 'EmailAlertsLayout')
  75.         self.textLabel3_2 = QLabel(self.EmailAlerts, 'textLabel3_2')
  76.         EmailAlertsLayout.addMultiCellWidget(self.textLabel3_2, 0, 0, 0, 1)
  77.         self.line1_2_2_2 = QFrame(self.EmailAlerts, 'line1_2_2_2')
  78.         self.line1_2_2_2.setFrameShape(QFrame.HLine)
  79.         self.line1_2_2_2.setFrameShadow(QFrame.Sunken)
  80.         self.line1_2_2_2.setFrameShape(QFrame.HLine)
  81.         EmailAlertsLayout.addMultiCellWidget(self.line1_2_2_2, 1, 1, 0, 1)
  82.         self.EmailCheckBox = QCheckBox(self.EmailAlerts, 'EmailCheckBox')
  83.         EmailAlertsLayout.addMultiCellWidget(self.EmailCheckBox, 2, 2, 0, 1)
  84.         self.EmailTestButton = QPushButton(self.EmailAlerts, 'EmailTestButton')
  85.         self.EmailTestButton.setEnabled(0)
  86.         EmailAlertsLayout.addWidget(self.EmailTestButton, 6, 0)
  87.         spacer9_3 = QSpacerItem(491, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  88.         EmailAlertsLayout.addItem(spacer9_3, 6, 1)
  89.         self.groupBox1 = QGroupBox(self.EmailAlerts, 'groupBox1')
  90.         self.groupBox1.setColumnLayout(0, Qt.Vertical)
  91.         self.groupBox1.layout().setSpacing(6)
  92.         self.groupBox1.layout().setMargin(11)
  93.         groupBox1Layout = QGridLayout(self.groupBox1.layout())
  94.         groupBox1Layout.setAlignment(Qt.AlignTop)
  95.         layout11 = QHBoxLayout(None, 0, 6, 'layout11')
  96.         self.textLabel20 = QLabel(self.groupBox1, 'textLabel20')
  97.         layout11.addWidget(self.textLabel20)
  98.         layout8 = QVBoxLayout(None, 0, 6, 'layout8')
  99.         self.EmailAddress = QLineEdit(self.groupBox1, 'EmailAddress')
  100.         self.EmailAddress.setEnabled(0)
  101.         layout8.addWidget(self.EmailAddress)
  102.         self.textLabel1 = QLabel(self.groupBox1, 'textLabel1')
  103.         layout8.addWidget(self.textLabel1)
  104.         layout11.addLayout(layout8)
  105.         groupBox1Layout.addLayout(layout11, 0, 0)
  106.         EmailAlertsLayout.addMultiCellWidget(self.groupBox1, 3, 3, 0, 1)
  107.         self.groupBox2 = QGroupBox(self.EmailAlerts, 'groupBox2')
  108.         self.groupBox2.setColumnLayout(0, Qt.Vertical)
  109.         self.groupBox2.layout().setSpacing(6)
  110.         self.groupBox2.layout().setMargin(11)
  111.         groupBox2Layout = QGridLayout(self.groupBox2.layout())
  112.         groupBox2Layout.setAlignment(Qt.AlignTop)
  113.         layout12 = QHBoxLayout(None, 0, 6, 'layout12')
  114.         self.textLabel2 = QLabel(self.groupBox2, 'textLabel2')
  115.         layout12.addWidget(self.textLabel2)
  116.         layout10 = QVBoxLayout(None, 0, 6, 'layout10')
  117.         self.senderLineEdit = QLineEdit(self.groupBox2, 'senderLineEdit')
  118.         self.senderLineEdit.setEnabled(0)
  119.         layout10.addWidget(self.senderLineEdit)
  120.         self.textLabel3 = QLabel(self.groupBox2, 'textLabel3')
  121.         layout10.addWidget(self.textLabel3)
  122.         layout12.addLayout(layout10)
  123.         groupBox2Layout.addLayout(layout12, 0, 0)
  124.         EmailAlertsLayout.addMultiCellWidget(self.groupBox2, 4, 4, 0, 1)
  125.         spacer5 = QSpacerItem(20, 90, QSizePolicy.Minimum, QSizePolicy.Expanding)
  126.         EmailAlertsLayout.addItem(spacer5, 5, 1)
  127.         spacer12 = QSpacerItem(20, 80, QSizePolicy.Minimum, QSizePolicy.Expanding)
  128.         EmailAlertsLayout.addItem(spacer12, 5, 0)
  129.         self.TabWidget.insertTab(self.EmailAlerts, QString.fromLatin1(''))
  130.         self.FunctionCommands = QWidget(self.TabWidget, 'FunctionCommands')
  131.         FunctionCommandsLayout = QGridLayout(self.FunctionCommands, 1, 1, 11, 6, 'FunctionCommandsLayout')
  132.         self.line1_2_2_3 = QFrame(self.FunctionCommands, 'line1_2_2_3')
  133.         self.line1_2_2_3.setFrameShape(QFrame.HLine)
  134.         self.line1_2_2_3.setFrameShadow(QFrame.Sunken)
  135.         self.line1_2_2_3.setFrameShape(QFrame.HLine)
  136.         FunctionCommandsLayout.addMultiCellWidget(self.line1_2_2_3, 1, 1, 0, 1)
  137.         self.textLabel3_2_2_2 = QLabel(self.FunctionCommands, 'textLabel3_2_2_2')
  138.         FunctionCommandsLayout.addMultiCellWidget(self.textLabel3_2_2_2, 0, 0, 0, 1)
  139.         self.textLabel1_2 = QLabel(self.FunctionCommands, 'textLabel1_2')
  140.         FunctionCommandsLayout.addMultiCellWidget(self.textLabel1_2, 2, 2, 0, 1)
  141.         layout8_2 = QHBoxLayout(None, 0, 6, 'layout8_2')
  142.         self.PrintCommand = QLineEdit(self.FunctionCommands, 'PrintCommand')
  143.         layout8_2.addWidget(self.PrintCommand)
  144.         FunctionCommandsLayout.addMultiCellLayout(layout8_2, 3, 3, 0, 1)
  145.         self.textLabel1_2_2 = QLabel(self.FunctionCommands, 'textLabel1_2_2')
  146.         FunctionCommandsLayout.addMultiCellWidget(self.textLabel1_2_2, 4, 4, 0, 1)
  147.         layout9 = QHBoxLayout(None, 0, 6, 'layout9')
  148.         self.ScanCommand = QLineEdit(self.FunctionCommands, 'ScanCommand')
  149.         layout9.addWidget(self.ScanCommand)
  150.         FunctionCommandsLayout.addMultiCellLayout(layout9, 5, 5, 0, 1)
  151.         self.textLabel1_2_3_3 = QLabel(self.FunctionCommands, 'textLabel1_2_3_3')
  152.         FunctionCommandsLayout.addMultiCellWidget(self.textLabel1_2_3_3, 6, 6, 0, 1)
  153.         layout10_2 = QHBoxLayout(None, 0, 6, 'layout10_2')
  154.         self.AccessPCardCommand = QLineEdit(self.FunctionCommands, 'AccessPCardCommand')
  155.         layout10_2.addWidget(self.AccessPCardCommand)
  156.         FunctionCommandsLayout.addMultiCellLayout(layout10_2, 7, 7, 0, 1)
  157.         self.textLabel1_2_3 = QLabel(self.FunctionCommands, 'textLabel1_2_3')
  158.         self.textLabel1_2_3.setEnabled(1)
  159.         FunctionCommandsLayout.addMultiCellWidget(self.textLabel1_2_3, 8, 8, 0, 1)
  160.         layout11_2 = QHBoxLayout(None, 0, 6, 'layout11_2')
  161.         self.SendFaxCommand = QLineEdit(self.FunctionCommands, 'SendFaxCommand')
  162.         self.SendFaxCommand.setEnabled(1)
  163.         layout11_2.addWidget(self.SendFaxCommand)
  164.         FunctionCommandsLayout.addMultiCellLayout(layout11_2, 9, 9, 0, 1)
  165.         self.textLabel1_2_3_2 = QLabel(self.FunctionCommands, 'textLabel1_2_3_2')
  166.         self.textLabel1_2_3_2.setEnabled(0)
  167.         FunctionCommandsLayout.addMultiCellWidget(self.textLabel1_2_3_2, 10, 10, 0, 1)
  168.         layout12_2 = QHBoxLayout(None, 0, 6, 'layout12_2')
  169.         self.MakeCopiesCommand = QLineEdit(self.FunctionCommands, 'MakeCopiesCommand')
  170.         self.MakeCopiesCommand.setEnabled(0)
  171.         layout12_2.addWidget(self.MakeCopiesCommand)
  172.         FunctionCommandsLayout.addMultiCellLayout(layout12_2, 11, 11, 0, 1)
  173.         self.DefaultsButton = QPushButton(self.FunctionCommands, 'DefaultsButton')
  174.         self.DefaultsButton.setEnabled(1)
  175.         FunctionCommandsLayout.addWidget(self.DefaultsButton, 13, 0)
  176.         spacer8_2 = QSpacerItem(471, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
  177.         FunctionCommandsLayout.addItem(spacer8_2, 13, 1)
  178.         spacer9 = QSpacerItem(20, 81, QSizePolicy.Minimum, QSizePolicy.Expanding)
  179.         FunctionCommandsLayout.addItem(spacer9, 12, 0)
  180.         self.TabWidget.insertTab(self.FunctionCommands, QString.fromLatin1(''))
  181.         SettingsDialog_baseLayout.addMultiCellWidget(self.TabWidget, 0, 0, 0, 2)
  182.         self.languageChange()
  183.         self.resize(QSize(627, 481).expandedTo(self.minimumSizeHint()))
  184.         self.clearWState(Qt.WState_Polished)
  185.         self.connect(self.pushButton31, SIGNAL('clicked()'), self.reject)
  186.         self.connect(self.pushButton30, SIGNAL('clicked()'), self.accept)
  187.         self.connect(self.EmailCheckBox, SIGNAL('toggled(bool)'), self.EmailAddress.setEnabled)
  188.         self.connect(self.CleaningLevel, SIGNAL('clicked(int)'), self.CleaningLevel_clicked)
  189.         self.connect(self.DefaultsButton, SIGNAL('clicked()'), self.DefaultsButton_clicked)
  190.         self.connect(self.TabWidget, SIGNAL('currentChanged(QWidget*)'), self.TabWidget_currentChanged)
  191.         self.connect(self.EmailTestButton, SIGNAL('clicked()'), self.EmailTestButton_clicked)
  192.         self.connect(self.EmailCheckBox, SIGNAL('toggled(bool)'), self.senderLineEdit.setEnabled)
  193.         self.connect(self.EmailCheckBox, SIGNAL('toggled(bool)'), self.EmailTestButton.setEnabled)
  194.         self.connect(self.autoRefreshCheckBox, SIGNAL('clicked()'), self.autoRefreshCheckBox_clicked)
  195.         self.connect(self.autoRefreshCheckBox, SIGNAL('toggled(bool)'), self.AutoRefreshRate.setEnabled)
  196.         self.connect(self.autoRefreshCheckBox, SIGNAL('toggled(bool)'), self.radioButton1.setEnabled)
  197.         self.connect(self.autoRefreshCheckBox, SIGNAL('toggled(bool)'), self.radioButton2.setEnabled)
  198.         self.connect(self.refreshScopeButtonGroup, SIGNAL('clicked(int)'), self.refreshScopeButtonGroup_clicked)
  199.         self.setTabOrder(self.TabWidget, self.pushButton30)
  200.         self.setTabOrder(self.pushButton30, self.pushButton31)
  201.         self.setTabOrder(self.pushButton31, self.EmailAddress)
  202.         self.setTabOrder(self.EmailAddress, self.EmailCheckBox)
  203.         self.setTabOrder(self.EmailCheckBox, self.EmailTestButton)
  204.         self.setTabOrder(self.EmailTestButton, self.PrintCommand)
  205.         self.setTabOrder(self.PrintCommand, self.ScanCommand)
  206.         self.setTabOrder(self.ScanCommand, self.AccessPCardCommand)
  207.         self.setTabOrder(self.AccessPCardCommand, self.SendFaxCommand)
  208.         self.setTabOrder(self.SendFaxCommand, self.MakeCopiesCommand)
  209.         self.setTabOrder(self.MakeCopiesCommand, self.DefaultsButton)
  210.  
  211.     
  212.     def languageChange(self):
  213.         self.setCaption(self._SettingsDialog_base__tr('HP Device Manager - Settings'))
  214.         self.pushButton30.setText(self._SettingsDialog_base__tr('OK'))
  215.         self.pushButton31.setText(self._SettingsDialog_base__tr('Cancel'))
  216.         self.textLabel3_2_2.setText(self._SettingsDialog_base__tr('<b>Configure if and when device(s) are automatically refreshed</b>'))
  217.         self.autoRefreshCheckBox.setText(self._SettingsDialog_base__tr('Enable device auto refresh'))
  218.         self.CleaningLevel.setTitle(self._SettingsDialog_base__tr('Auto Interval'))
  219.         self.textLabel1_4.setText(self._SettingsDialog_base__tr('Refresh every:'))
  220.         self.textLabel1_3.setText(self._SettingsDialog_base__tr('minutes'))
  221.         self.refreshScopeButtonGroup.setTitle(self._SettingsDialog_base__tr('Device(s) to Refresh '))
  222.         self.radioButton1.setText(self._SettingsDialog_base__tr('Only currently selected device'))
  223.         self.radioButton2.setText(self._SettingsDialog_base__tr('All devices'))
  224.         self.TabWidget.changeTab(self.CleaningLevels, self._SettingsDialog_base__tr('Auto Refresh'))
  225.         self.textLabel3_2.setText(self._SettingsDialog_base__tr('<b>Configure if the HP Device Manager will send email on alerts</b>'))
  226.         self.EmailCheckBox.setText(self._SettingsDialog_base__tr('Send email when device errors occur:'))
  227.         self.EmailTestButton.setText(self._SettingsDialog_base__tr('Test'))
  228.         self.groupBox1.setTitle(self._SettingsDialog_base__tr('To: Address(es)'))
  229.         self.textLabel20.setText(self._SettingsDialog_base__tr('Email address(es):'))
  230.         self.textLabel1.setText(self._SettingsDialog_base__tr('<i>Note: Separate multiple email address with a commas.</i>'))
  231.         self.groupBox2.setTitle(self._SettingsDialog_base__tr('From: Address'))
  232.         self.textLabel2.setText(self._SettingsDialog_base__tr('Sender email address:'))
  233.         self.textLabel3.setText(self._SettingsDialog_base__tr('<i>Note: This should generally be your email address.</i>'))
  234.         self.TabWidget.changeTab(self.EmailAlerts, self._SettingsDialog_base__tr('Email Alerts'))
  235.         self.textLabel3_2_2_2.setText(self._SettingsDialog_base__tr('<b>Configure what commands to run for device functions</b>'))
  236.         self.textLabel1_2.setText(self._SettingsDialog_base__tr('Print Command'))
  237.         self.textLabel1_2_2.setText(self._SettingsDialog_base__tr('Scan Command'))
  238.         self.textLabel1_2_3_3.setText(self._SettingsDialog_base__tr('Access Photo Cards Command'))
  239.         self.textLabel1_2_3.setText(self._SettingsDialog_base__tr('Send Fax Command'))
  240.         self.textLabel1_2_3_2.setText(self._SettingsDialog_base__tr('Make Copies Command'))
  241.         self.DefaultsButton.setText(self._SettingsDialog_base__tr('Set Defaults'))
  242.         self.TabWidget.changeTab(self.FunctionCommands, self._SettingsDialog_base__tr('Function Commands'))
  243.  
  244.     
  245.     def PrintCmdChangeButton_clicked(self):
  246.         print 'SettingsDialog_base.PrintCmdChangeButton_clicked(): Not implemented yet'
  247.  
  248.     
  249.     def ScanCmdChangeButton_clicked(self):
  250.         print 'SettingsDialog_base.ScanCmdChangeButton_clicked(): Not implemented yet'
  251.  
  252.     
  253.     def AccessPCardCmdChangeButton_clicked(self):
  254.         print 'SettingsDialog_base.AccessPCardCmdChangeButton_clicked(): Not implemented yet'
  255.  
  256.     
  257.     def SendFaxCmdChangeButton_clicked(self):
  258.         print 'SettingsDialog_base.SendFaxCmdChangeButton_clicked(): Not implemented yet'
  259.  
  260.     
  261.     def MakeCopiesCmdChangeButton_clicked(self):
  262.         print 'SettingsDialog_base.MakeCopiesCmdChangeButton_clicked(): Not implemented yet'
  263.  
  264.     
  265.     def CleaningLevel_clicked(self, a0):
  266.         print 'SettingsDialog_base.CleaningLevel_clicked(int): Not implemented yet'
  267.  
  268.     
  269.     def pushButton5_clicked(self):
  270.         print 'SettingsDialog_base.pushButton5_clicked(): Not implemented yet'
  271.  
  272.     
  273.     def DefaultsButton_clicked(self):
  274.         print 'SettingsDialog_base.DefaultsButton_clicked(): Not implemented yet'
  275.  
  276.     
  277.     def TabWidget_currentChanged(self, a0):
  278.         print 'SettingsDialog_base.TabWidget_currentChanged(QWidget*): Not implemented yet'
  279.  
  280.     
  281.     def pushButton6_clicked(self):
  282.         print 'SettingsDialog_base.pushButton6_clicked(): Not implemented yet'
  283.  
  284.     
  285.     def EmailTestButton_clicked(self):
  286.         print 'SettingsDialog_base.EmailTestButton_clicked(): Not implemented yet'
  287.  
  288.     
  289.     def autoRefreshCheckBox_clicked(self):
  290.         print 'SettingsDialog_base.autoRefreshCheckBox_clicked(): Not implemented yet'
  291.  
  292.     
  293.     def refreshScopeButtonGroup_clicked(self, a0):
  294.         print 'SettingsDialog_base.refreshScopeButtonGroup_clicked(int): Not implemented yet'
  295.  
  296.     
  297.     def __tr(self, s, c = None):
  298.         return qApp.translate('SettingsDialog_base', s, c)
  299.  
  300.  
  301. if __name__ == '__main__':
  302.     a = QApplication(sys.argv)
  303.     QObject.connect(a, SIGNAL('lastWindowClosed()'), a, SLOT('quit()'))
  304.     w = SettingsDialog_base()
  305.     a.setMainWidget(w)
  306.     w.show()
  307.     a.exec_loop()
  308.  
  309.