Tizen 2.1 base
[platform/upstream/hplip.git] / ui4 / upgradedialog_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'upgradedialog_base.ui'
4 #
5 # Created: Thu Feb  9 18:16:03 2012
6 #      by: PyQt4 UI code generator 4.7.4
7 #
8 # WARNING! All changes made in this file will be lost!
9
10 from PyQt4 import QtCore, QtGui
11
12 class Ui_Dialog(object):
13     def setupUi(self, Dialog, distro_tier,msg):
14         self.distro_tier = distro_tier
15         self.msg= msg 
16         Dialog.setObjectName("Dialog")
17         Dialog.resize(369, 205)
18         self.centralwidget = QtGui.QWidget(Dialog)
19         self.centralwidget.setObjectName("centralwidget")
20         self.MainLabel = QtGui.QLabel(self.centralwidget)
21         self.MainLabel.setGeometry(QtCore.QRect(10, 10, 351, 51))
22         self.MainLabel.setObjectName("MainLabel")
23         self.installRadioBtton = QtGui.QRadioButton(self.centralwidget)
24         self.installRadioBtton.setGeometry(QtCore.QRect(10, 65, 350, 22))
25         self.installRadioBtton.setChecked(True)
26         self.installRadioBtton.setObjectName("installRadioBtton")
27         self.remindRadioBtton = QtGui.QRadioButton(self.centralwidget)
28         self.remindRadioBtton.setGeometry(QtCore.QRect(10, 96, 141, 22))
29         self.remindRadioBtton.setObjectName("remindRadioBtton")
30         self.dontRemindRadioBtton = QtGui.QRadioButton(self.centralwidget)
31         self.dontRemindRadioBtton.setGeometry(QtCore.QRect(10, 126, 161, 22))
32         self.dontRemindRadioBtton.setObjectName("dontRemindRadioBtton")
33         self.daysSpinBox = QtGui.QSpinBox(self.centralwidget)
34         self.daysSpinBox.setGeometry(QtCore.QRect(152, 94, 55, 27))
35         self.daysSpinBox.setMinimum(1)
36         self.daysSpinBox.setMaximum(365)
37         self.daysSpinBox.setEnabled(False)
38         self.daysSpinBox.setObjectName("daysSpinBox")
39         self.DaysLabel = QtGui.QLabel(self.centralwidget)
40         self.DaysLabel.setGeometry(QtCore.QRect(211, 98, 67, 21))
41         self.DaysLabel.setObjectName("DaysLabel")
42         self.CancelButton = QtGui.QPushButton(self.centralwidget)
43         self.CancelButton.setGeometry(QtCore.QRect(270, 160, 91, 31))
44         self.CancelButton.setObjectName("CancelButton")
45         self.NextButton = QtGui.QPushButton(self.centralwidget)
46         self.NextButton.setGeometry(QtCore.QRect(159, 160, 96, 31))
47         self.NextButton.setObjectName("NextButton")
48         self.retranslateUi(Dialog)
49         QtCore.QMetaObject.connectSlotsByName(Dialog)
50
51     def retranslateUi(self, Dialog):
52         Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "HP Upgrade Manager", None, QtGui.QApplication.UnicodeUTF8))
53         self.MainLabel.setText(QtGui.QApplication.translate("Dialog", self.msg, None, QtGui.QApplication.UnicodeUTF8))
54         self.CancelButton.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
55         self.NextButton.setText(QtGui.QApplication.translate("Dialog", "Ok", None, QtGui.QApplication.UnicodeUTF8))
56         if self.distro_tier == 1:
57             self.installRadioBtton.setText(QtGui.QApplication.translate("Dialog", "Download and Install", None, QtGui.QApplication.UnicodeUTF8))
58         else:
59             self.installRadioBtton.setText(QtGui.QApplication.translate("Dialog", "Follow steps from www.hplip.net", None, QtGui.QApplication.UnicodeUTF8))
60         self.remindRadioBtton.setText(QtGui.QApplication.translate("Dialog", "Remind me after", None, QtGui.QApplication.UnicodeUTF8))
61         self.dontRemindRadioBtton.setText(QtGui.QApplication.translate("Dialog", "Don\'t remind again", None, QtGui.QApplication.UnicodeUTF8))
62         self.DaysLabel.setText(QtGui.QApplication.translate("Dialog", "days", None, QtGui.QApplication.UnicodeUTF8))