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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/Preferences/ConfigurationPages/PrinterPage.ui'
#
# Created: Sat Feb  3 15:33:36 2007
#      by: PyQt4 UI code generator 4-snapshot-20070125
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_PrinterPage(object):
    def setupUi(self, PrinterPage):
        PrinterPage.setObjectName("PrinterPage")
        PrinterPage.resize(QtCore.QSize(QtCore.QRect(0,0,440,334).size()).expandedTo(PrinterPage.minimumSizeHint()))

        self.vboxlayout = QtGui.QVBoxLayout(PrinterPage)
        self.vboxlayout.setMargin(6)
        self.vboxlayout.setSpacing(6)
        self.vboxlayout.setObjectName("vboxlayout")

        self.headerLabel = QtGui.QLabel(PrinterPage)
        self.headerLabel.setObjectName("headerLabel")
        self.vboxlayout.addWidget(self.headerLabel)

        self.line7 = QtGui.QFrame(PrinterPage)
        self.line7.setFrameShape(QtGui.QFrame.HLine)
        self.line7.setFrameShadow(QtGui.QFrame.Sunken)
        self.line7.setFrameShape(QtGui.QFrame.HLine)
        self.line7.setFrameShadow(QtGui.QFrame.Sunken)
        self.line7.setObjectName("line7")
        self.vboxlayout.addWidget(self.line7)

        self.gridlayout = QtGui.QGridLayout()
        self.gridlayout.setMargin(0)
        self.gridlayout.setSpacing(6)
        self.gridlayout.setObjectName("gridlayout")

        self.frame_2 = QtGui.QFrame(PrinterPage)
        self.frame_2.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame_2.setObjectName("frame_2")

        self.vboxlayout1 = QtGui.QVBoxLayout(self.frame_2)
        self.vboxlayout1.setMargin(0)
        self.vboxlayout1.setSpacing(6)
        self.vboxlayout1.setObjectName("vboxlayout1")

        self.printerColorButton = QtGui.QRadioButton(self.frame_2)
        self.printerColorButton.setObjectName("printerColorButton")
        self.vboxlayout1.addWidget(self.printerColorButton)

        self.printerGrayscaleButton = QtGui.QRadioButton(self.frame_2)
        self.printerGrayscaleButton.setObjectName("printerGrayscaleButton")
        self.vboxlayout1.addWidget(self.printerGrayscaleButton)
        self.gridlayout.addWidget(self.frame_2,1,1,1,2)

        self.frame = QtGui.QFrame(PrinterPage)
        self.frame.setFrameShape(QtGui.QFrame.NoFrame)
        self.frame.setObjectName("frame")

        self.vboxlayout2 = QtGui.QVBoxLayout(self.frame)
        self.vboxlayout2.setMargin(0)
        self.vboxlayout2.setSpacing(6)
        self.vboxlayout2.setObjectName("vboxlayout2")

        self.printFirstPageFirstButton = QtGui.QRadioButton(self.frame)
        self.printFirstPageFirstButton.setObjectName("printFirstPageFirstButton")
        self.vboxlayout2.addWidget(self.printFirstPageFirstButton)

        self.printFirstPageLastButton = QtGui.QRadioButton(self.frame)
        self.printFirstPageLastButton.setObjectName("printFirstPageLastButton")
        self.vboxlayout2.addWidget(self.printFirstPageLastButton)
        self.gridlayout.addWidget(self.frame,2,1,1,2)

        self.printerNameEdit = QtGui.QLineEdit(PrinterPage)
        self.printerNameEdit.setObjectName("printerNameEdit")
        self.gridlayout.addWidget(self.printerNameEdit,0,1,1,2)

        self.TextLabel1 = QtGui.QLabel(PrinterPage)
        self.TextLabel1.setObjectName("TextLabel1")
        self.gridlayout.addWidget(self.TextLabel1,0,0,1,1)

        self.TextLabel3 = QtGui.QLabel(PrinterPage)
        self.TextLabel3.setObjectName("TextLabel3")
        self.gridlayout.addWidget(self.TextLabel3,3,0,1,1)

        self.printheaderFontSample = QtGui.QLineEdit(PrinterPage)
        self.printheaderFontSample.setFocusPolicy(QtCore.Qt.NoFocus)
        self.printheaderFontSample.setAlignment(QtCore.Qt.AlignHCenter)
        self.printheaderFontSample.setReadOnly(True)
        self.printheaderFontSample.setObjectName("printheaderFontSample")
        self.gridlayout.addWidget(self.printheaderFontSample,4,1,1,2)

        self.printheaderFontButton = QtGui.QPushButton(PrinterPage)
        self.printheaderFontButton.setObjectName("printheaderFontButton")
        self.gridlayout.addWidget(self.printheaderFontButton,4,0,1,1)

        self.printMagnificationSpinBox = QtGui.QSpinBox(PrinterPage)
        self.printMagnificationSpinBox.setMaximum(10)
        self.printMagnificationSpinBox.setMinimum(-10)
        self.printMagnificationSpinBox.setProperty("value",QtCore.QVariant(-3))
        self.printMagnificationSpinBox.setObjectName("printMagnificationSpinBox")
        self.gridlayout.addWidget(self.printMagnificationSpinBox,3,1,1,1)

        self.TextLabel2 = QtGui.QLabel(PrinterPage)
        self.TextLabel2.setAlignment(QtCore.Qt.AlignTop)
        self.TextLabel2.setObjectName("TextLabel2")
        self.gridlayout.addWidget(self.TextLabel2,1,0,1,1)

        self.TextLabel4 = QtGui.QLabel(PrinterPage)
        self.TextLabel4.setAlignment(QtCore.Qt.AlignTop)
        self.TextLabel4.setObjectName("TextLabel4")
        self.gridlayout.addWidget(self.TextLabel4,2,0,1,1)

        spacerItem = QtGui.QSpacerItem(251,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
        self.gridlayout.addItem(spacerItem,3,2,1,1)
        self.vboxlayout.addLayout(self.gridlayout)

        spacerItem1 = QtGui.QSpacerItem(20,40,QtGui.QSizePolicy.Minimum,QtGui.QSizePolicy.Expanding)
        self.vboxlayout.addItem(spacerItem1)

        self.retranslateUi(PrinterPage)
        QtCore.QMetaObject.connectSlotsByName(PrinterPage)
        PrinterPage.setTabOrder(self.printerNameEdit,self.printerColorButton)
        PrinterPage.setTabOrder(self.printerColorButton,self.printerGrayscaleButton)
        PrinterPage.setTabOrder(self.printerGrayscaleButton,self.printFirstPageFirstButton)
        PrinterPage.setTabOrder(self.printFirstPageFirstButton,self.printFirstPageLastButton)
        PrinterPage.setTabOrder(self.printFirstPageLastButton,self.printMagnificationSpinBox)
        PrinterPage.setTabOrder(self.printMagnificationSpinBox,self.printheaderFontButton)

    def retranslateUi(self, PrinterPage):
        self.headerLabel.setText(QtGui.QApplication.translate("PrinterPage", "<b>Configure printer settings</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.printerColorButton.setText(QtGui.QApplication.translate("PrinterPage", "Colour", None, QtGui.QApplication.UnicodeUTF8))
        self.printerGrayscaleButton.setText(QtGui.QApplication.translate("PrinterPage", "Gray Scale", None, QtGui.QApplication.UnicodeUTF8))
        self.printFirstPageFirstButton.setText(QtGui.QApplication.translate("PrinterPage", "First Page First", None, QtGui.QApplication.UnicodeUTF8))
        self.printFirstPageLastButton.setText(QtGui.QApplication.translate("PrinterPage", "Last Page First", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel1.setText(QtGui.QApplication.translate("PrinterPage", "Printername:", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel3.setText(QtGui.QApplication.translate("PrinterPage", "Magnification:", None, QtGui.QApplication.UnicodeUTF8))
        self.printheaderFontSample.setText(QtGui.QApplication.translate("PrinterPage", "Header Font", None, QtGui.QApplication.UnicodeUTF8))
        self.printheaderFontButton.setToolTip(QtGui.QApplication.translate("PrinterPage", "Press to select the font for the page headers", None, QtGui.QApplication.UnicodeUTF8))
        self.printheaderFontButton.setText(QtGui.QApplication.translate("PrinterPage", "Header Font", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel2.setText(QtGui.QApplication.translate("PrinterPage", "Colour Mode:", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel4.setText(QtGui.QApplication.translate("PrinterPage", "Page Order:", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    PrinterPage = QtGui.QWidget()
    ui = Ui_PrinterPage()
    ui.setupUi(PrinterPage)
    PrinterPage.show()
    sys.exit(app.exec_())
