1# -*- coding: utf-8 -*-
2
3# Form implementation generated from reading ui file 'ui4/plugindialog_base.ui'
4#
5#** Created: Mon Nov 14 15:31:49 2011
6#**      by: Qt User Interface Compiler version 4.7.0
7#
8# WARNING! All changes made in this file will be lost!
9
10from PyQt4 import QtCore, QtGui
11
12class Ui_Dialog(object):
13    def setupUi(self, Dialog, upgrade=False):
14        Dialog.setObjectName("Dialog")
15        Dialog.resize(500, 180)
16        self.upgradePlugin=upgrade
17        self.gridlayout = QtGui.QGridLayout(Dialog)
18        self.gridlayout.setObjectName("gridlayout")
19        self.StackedWidget = QtGui.QStackedWidget(Dialog)
20        self.StackedWidget.setObjectName("StackedWidget")
21        self.page = QtGui.QWidget()
22        self.page.setObjectName("page")
23        self.gridlayout1 = QtGui.QGridLayout(self.page)
24        self.gridlayout1.setObjectName("gridlayout1")
25        self.label = QtGui.QLabel(self.page)
26        font = QtGui.QFont()
27        font.setPointSize(16)
28        self.label.setFont(font)
29        self.label.setObjectName("label")
30        self.gridlayout1.addWidget(self.label, 0, 0, 1, 2)
31        self.line = QtGui.QFrame(self.page)
32        self.line.setFrameShape(QtGui.QFrame.HLine)
33        self.line.setFrameShadow(QtGui.QFrame.Sunken)
34        self.line.setObjectName("line")
35        self.gridlayout1.addWidget(self.line, 1, 0, 1, 2)
36        self.TitleLabel = QtGui.QLabel(self.page)
37        self.TitleLabel.setWordWrap(True)
38        self.TitleLabel.setObjectName("TitleLabel")
39        self.gridlayout1.addWidget(self.TitleLabel, 2, 0, 1, 2)
40        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
41        spacerItem2 = QtGui.QSpacerItem(278, 51, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
42        self.gridlayout1.addItem(spacerItem2, 5, 1, 1, 1)
43        self.StackedWidget.addWidget(self.page)
44        self.gridlayout.addWidget(self.StackedWidget, 0, 0, 1, 5)
45        self.line_2 = QtGui.QFrame(Dialog)
46        self.line_2.setFrameShape(QtGui.QFrame.HLine)
47        self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
48        self.line_2.setObjectName("line_2")
49        self.gridlayout.addWidget(self.line_2, 1, 0, 1, 4)
50        self.NextButton = QtGui.QPushButton(Dialog)
51        self.NextButton.setObjectName("NextButton")
52        self.gridlayout.addWidget(self.NextButton, 2, 2, 1, 1)
53        self.CancelButton = QtGui.QPushButton(Dialog)
54        self.CancelButton.setObjectName("CancelButton")
55        self.gridlayout.addWidget(self.CancelButton, 2, 3, 1, 1)
56
57        self.retranslateUi(Dialog)
58        self.StackedWidget.setCurrentIndex(0)
59        QtCore.QMetaObject.connectSlotsByName(Dialog)
60
61    def retranslateUi(self, Dialog):
62        Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "HP Device Manager - Plug-in Installer", None, QtGui.QApplication.UnicodeUTF8))
63        self.label.setText(QtGui.QApplication.translate("Dialog", "Driver Plug-in Required", None, QtGui.QApplication.UnicodeUTF8))
64        if self.upgradePlugin is False:
65            self.TitleLabel.setText(QtGui.QApplication.translate("Dialog", "HP Device proprietary plug-in is missing. Click 'Next' to continue plug-in installation. In case of plugin download failure, run 'hp-plugin' command from the terminal manually.", None, QtGui.QApplication.UnicodeUTF8))
66        else:
67            self.TitleLabel.setText(QtGui.QApplication.translate("Dialog", "HP Device plug-in version mismatch or some files are corrupted.\nClick 'Next' to install required plug-in.", None, QtGui.QApplication.UnicodeUTF8))
68        self.NextButton.setText(QtGui.QApplication.translate("Dialog", "Next >", None, QtGui.QApplication.UnicodeUTF8))
69        self.CancelButton.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
70
71