# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'eric/WebBrowser/Tools/PrintToPdfDialog.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

try:
    _fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
    def _fromUtf8(s):
        return s

try:
    _encoding = QtGui.QApplication.UnicodeUTF8
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
    def _translate(context, text, disambig):
        return QtGui.QApplication.translate(context, text, disambig)

class Ui_PrintToPdfDialog(object):
    def setupUi(self, PrintToPdfDialog):
        PrintToPdfDialog.setObjectName(_fromUtf8("PrintToPdfDialog"))
        PrintToPdfDialog.resize(600, 105)
        PrintToPdfDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(PrintToPdfDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.gridLayout = QtGui.QGridLayout()
        self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
        self.label = QtGui.QLabel(PrintToPdfDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.pdfFilePicker = E5PathPicker(PrintToPdfDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pdfFilePicker.sizePolicy().hasHeightForWidth())
        self.pdfFilePicker.setSizePolicy(sizePolicy)
        self.pdfFilePicker.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.pdfFilePicker.setObjectName(_fromUtf8("pdfFilePicker"))
        self.gridLayout.addWidget(self.pdfFilePicker, 0, 1, 1, 1)
        self.label_2 = QtGui.QLabel(PrintToPdfDialog)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.pageLayoutLabel = QtGui.QLabel(PrintToPdfDialog)
        self.pageLayoutLabel.setText(_fromUtf8(""))
        self.pageLayoutLabel.setObjectName(_fromUtf8("pageLayoutLabel"))
        self.horizontalLayout.addWidget(self.pageLayoutLabel)
        self.pageLayoutButton = QtGui.QToolButton(PrintToPdfDialog)
        self.pageLayoutButton.setObjectName(_fromUtf8("pageLayoutButton"))
        self.horizontalLayout.addWidget(self.pageLayoutButton)
        self.gridLayout.addLayout(self.horizontalLayout, 1, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.buttonBox = QtGui.QDialogButtonBox(PrintToPdfDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(PrintToPdfDialog)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), PrintToPdfDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), PrintToPdfDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(PrintToPdfDialog)

    def retranslateUi(self, PrintToPdfDialog):
        PrintToPdfDialog.setWindowTitle(_translate("PrintToPdfDialog", "Print to PDF", None))
        self.label.setText(_translate("PrintToPdfDialog", "Save as:", None))
        self.pdfFilePicker.setToolTip(_translate("PrintToPdfDialog", "Enter the file name of the PDF document", None))
        self.label_2.setText(_translate("PrintToPdfDialog", "Page Layout:", None))
        self.pageLayoutButton.setToolTip(_translate("PrintToPdfDialog", "Select the page layout via a dialog", None))
        self.pageLayoutButton.setText(_translate("PrintToPdfDialog", "...", None))

from E5Gui.E5PathPicker import E5PathPicker
