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.py < prev    next >
Encoding:
Python Source  |  2006-08-30  |  17.2 KB  |  391 lines

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