1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'ui/pluginlicenseform_base.ui'
5 # Created: Mon May 19 10:33:53 2008
6 # by: The PyQt User Interface Compiler (pyuic) 3.17.3
8 # WARNING! All changes made in this file will be lost!
14 class PluginLicenseForm_base(QDialog):
15 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
16 QDialog.__init__(self,parent,name,modal,fl)
19 self.setName("PluginLicenseForm_base")
22 PluginLicenseForm_baseLayout = QGridLayout(self,1,1,11,6,"PluginLicenseForm_baseLayout")
24 self.acceptCheckBox = QCheckBox(self,"acceptCheckBox")
26 PluginLicenseForm_baseLayout.addWidget(self.acceptCheckBox,3,0)
28 self.installPushButton = QPushButton(self,"installPushButton")
29 self.installPushButton.setEnabled(0)
31 PluginLicenseForm_baseLayout.addWidget(self.installPushButton,3,3)
33 self.cancelPushButton = QPushButton(self,"cancelPushButton")
35 PluginLicenseForm_baseLayout.addWidget(self.cancelPushButton,3,2)
36 spacer3 = QSpacerItem(81,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
37 PluginLicenseForm_baseLayout.addItem(spacer3,3,1)
39 self.licenseTextEdit = QTextEdit(self,"licenseTextEdit")
40 self.licenseTextEdit.setReadOnly(1)
42 PluginLicenseForm_baseLayout.addMultiCellWidget(self.licenseTextEdit,2,2,0,3)
44 self.textLabel1 = QLabel(self,"textLabel1")
46 PluginLicenseForm_baseLayout.addMultiCellWidget(self.textLabel1,1,1,0,3)
48 self.titleText = QLabel(self,"titleText")
49 titleText_font = QFont(self.titleText.font())
50 titleText_font.setPointSize(16)
51 self.titleText.setFont(titleText_font)
53 PluginLicenseForm_baseLayout.addWidget(self.titleText,0,0)
57 self.resize(QSize(609,480).expandedTo(self.minimumSizeHint()))
58 self.clearWState(Qt.WState_Polished)
60 self.connect(self.acceptCheckBox,SIGNAL("toggled(bool)"),self.installPushButton.setEnabled)
61 self.connect(self.cancelPushButton,SIGNAL("clicked()"),self.reject)
62 self.connect(self.installPushButton,SIGNAL("clicked()"),self.accept)
65 def languageChange(self):
66 self.setCaption(self.__tr("HP Device Manager - Plugin Installer License"))
67 self.acceptCheckBox.setText(self.__tr("I accept the terms of the license"))
68 self.installPushButton.setText(self.__tr("Install Plugin"))
69 self.cancelPushButton.setText(self.__tr("Cancel"))
70 self.textLabel1.setText(self.__tr("Please read the plugin license agreement. Click \"I accept\" to accept the terms of the license."))
71 self.titleText.setText(self.__tr("Plugin License Agreement"))
74 def __tr(self,s,c = None):
75 return qApp.translate("PluginLicenseForm_base",s,c)