1# -*- coding: utf-8 -*- 2 3# Form implementation generated from reading ui file 'ui4/printdialog_base.ui' 4# 5# Created: Mon May 4 14:30:35 2009 6# by: PyQt4 UI code generator 4.4.4 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): 14 Dialog.setObjectName("Dialog") 15 Dialog.setWindowModality(QtCore.Qt.ApplicationModal) 16 Dialog.resize(700, 500) 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_2 = QtGui.QLabel(self.page) 26 font = QtGui.QFont() 27 font.setPointSize(16) 28 self.label_2.setFont(font) 29 self.label_2.setObjectName("label_2") 30 self.gridlayout1.addWidget(self.label_2, 0, 0, 1, 1) 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, 1) 36 self.Files = FileTable(self.page) 37 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) 38 sizePolicy.setHorizontalStretch(0) 39 sizePolicy.setVerticalStretch(0) 40 sizePolicy.setHeightForWidth(self.Files.sizePolicy().hasHeightForWidth()) 41 self.Files.setSizePolicy(sizePolicy) 42 self.Files.setObjectName("Files") 43 self.gridlayout1.addWidget(self.Files, 2, 0, 1, 1) 44 self.StackedWidget.addWidget(self.page) 45 self.page_2 = QtGui.QWidget() 46 self.page_2.setObjectName("page_2") 47 self.gridlayout2 = QtGui.QGridLayout(self.page_2) 48 self.gridlayout2.setObjectName("gridlayout2") 49 self.label_3 = QtGui.QLabel(self.page_2) 50 font = QtGui.QFont() 51 font.setPointSize(16) 52 self.label_3.setFont(font) 53 self.label_3.setObjectName("label_3") 54 self.gridlayout2.addWidget(self.label_3, 0, 0, 1, 1) 55 self.line_2 = QtGui.QFrame(self.page_2) 56 self.line_2.setFrameShape(QtGui.QFrame.HLine) 57 self.line_2.setFrameShadow(QtGui.QFrame.Sunken) 58 self.line_2.setObjectName("line_2") 59 self.gridlayout2.addWidget(self.line_2, 1, 0, 1, 1) 60 self.PrinterName = PrinterNameComboBox(self.page_2) 61 self.PrinterName.setObjectName("PrinterName") 62 self.gridlayout2.addWidget(self.PrinterName, 2, 0, 1, 1) 63 self.OptionsToolBox = PrintSettingsToolbox(self.page_2) 64 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Expanding) 65 sizePolicy.setHorizontalStretch(0) 66 sizePolicy.setVerticalStretch(0) 67 sizePolicy.setHeightForWidth(self.OptionsToolBox.sizePolicy().hasHeightForWidth()) 68 self.OptionsToolBox.setSizePolicy(sizePolicy) 69 self.OptionsToolBox.setObjectName("OptionsToolBox") 70 self.gridlayout2.addWidget(self.OptionsToolBox, 3, 0, 1, 1) 71 self.StackedWidget.addWidget(self.page_2) 72 self.gridlayout.addWidget(self.StackedWidget, 0, 0, 1, 5) 73 self.line_3 = QtGui.QFrame(Dialog) 74 self.line_3.setFrameShape(QtGui.QFrame.HLine) 75 self.line_3.setFrameShadow(QtGui.QFrame.Sunken) 76 self.line_3.setObjectName("line_3") 77 self.gridlayout.addWidget(self.line_3, 1, 0, 1, 5) 78 self.StepText = QtGui.QLabel(Dialog) 79 self.StepText.setObjectName("StepText") 80 self.gridlayout.addWidget(self.StepText, 2, 0, 1, 1) 81 spacerItem = QtGui.QSpacerItem(251, 28, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) 82 self.gridlayout.addItem(spacerItem, 2, 1, 1, 1) 83 self.BackButton = QtGui.QPushButton(Dialog) 84 self.BackButton.setObjectName("BackButton") 85 self.gridlayout.addWidget(self.BackButton, 2, 2, 1, 1) 86 self.NextButton = QtGui.QPushButton(Dialog) 87 self.NextButton.setObjectName("NextButton") 88 self.gridlayout.addWidget(self.NextButton, 2, 3, 1, 1) 89 self.CancelButton = QtGui.QPushButton(Dialog) 90 self.CancelButton.setObjectName("CancelButton") 91 self.gridlayout.addWidget(self.CancelButton, 2, 4, 1, 1) 92 93 self.retranslateUi(Dialog) 94 self.StackedWidget.setCurrentIndex(1) 95 self.OptionsToolBox.setCurrentIndex(-1) 96 QtCore.QMetaObject.connectSlotsByName(Dialog) 97 98 def retranslateUi(self, Dialog): 99 Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "HP Device Manager - Print", None, QtGui.QApplication.UnicodeUTF8)) 100 self.label_2.setText(QtGui.QApplication.translate("Dialog", "Select Files to Print", None, QtGui.QApplication.UnicodeUTF8)) 101 self.label_3.setText(QtGui.QApplication.translate("Dialog", "Select Printer and Options", None, QtGui.QApplication.UnicodeUTF8)) 102 self.StepText.setText(QtGui.QApplication.translate("Dialog", "Step %1 of %2", None, QtGui.QApplication.UnicodeUTF8)) 103 self.BackButton.setText(QtGui.QApplication.translate("Dialog", "< Back", None, QtGui.QApplication.UnicodeUTF8)) 104 self.NextButton.setText(QtGui.QApplication.translate("Dialog", "Next >", None, QtGui.QApplication.UnicodeUTF8)) 105 self.CancelButton.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) 106 107from .printsettingstoolbox import PrintSettingsToolbox 108from .printernamecombobox import PrinterNameComboBox 109from .filetable import FileTable 110