Tizen 2.1 base
[platform/upstream/hplip.git] / ui / pluginlicenseform_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'ui/pluginlicenseform_base.ui'
4 #
5 # Created: Mon May 19 10:33:53 2008
6 #      by: The PyQt User Interface Compiler (pyuic) 3.17.3
7 #
8 # WARNING! All changes made in this file will be lost!
9
10
11 from qt import *
12
13
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)
17
18         if not name:
19             self.setName("PluginLicenseForm_base")
20
21
22         PluginLicenseForm_baseLayout = QGridLayout(self,1,1,11,6,"PluginLicenseForm_baseLayout")
23
24         self.acceptCheckBox = QCheckBox(self,"acceptCheckBox")
25
26         PluginLicenseForm_baseLayout.addWidget(self.acceptCheckBox,3,0)
27
28         self.installPushButton = QPushButton(self,"installPushButton")
29         self.installPushButton.setEnabled(0)
30
31         PluginLicenseForm_baseLayout.addWidget(self.installPushButton,3,3)
32
33         self.cancelPushButton = QPushButton(self,"cancelPushButton")
34
35         PluginLicenseForm_baseLayout.addWidget(self.cancelPushButton,3,2)
36         spacer3 = QSpacerItem(81,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
37         PluginLicenseForm_baseLayout.addItem(spacer3,3,1)
38
39         self.licenseTextEdit = QTextEdit(self,"licenseTextEdit")
40         self.licenseTextEdit.setReadOnly(1)
41
42         PluginLicenseForm_baseLayout.addMultiCellWidget(self.licenseTextEdit,2,2,0,3)
43
44         self.textLabel1 = QLabel(self,"textLabel1")
45
46         PluginLicenseForm_baseLayout.addMultiCellWidget(self.textLabel1,1,1,0,3)
47
48         self.titleText = QLabel(self,"titleText")
49         titleText_font = QFont(self.titleText.font())
50         titleText_font.setPointSize(16)
51         self.titleText.setFont(titleText_font)
52
53         PluginLicenseForm_baseLayout.addWidget(self.titleText,0,0)
54
55         self.languageChange()
56
57         self.resize(QSize(609,480).expandedTo(self.minimumSizeHint()))
58         self.clearWState(Qt.WState_Polished)
59
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)
63
64
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"))
72
73
74     def __tr(self,s,c = None):
75         return qApp.translate("PluginLicenseForm_base",s,c)