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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_6/eric3/QScintilla/ZoomForm.ui'
#
# Created: Do Dez 30 14:12:31 2004
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class ZoomForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("ZoomForm")


        ZoomFormLayout = QVBoxLayout(self,6,6,"ZoomFormLayout")

        Layout3 = QHBoxLayout(None,0,6,"Layout3")

        self.zoomLabel = QLabel(self,"zoomLabel")
        Layout3.addWidget(self.zoomLabel)

        self.zoomSpinBox = QSpinBox(self,"zoomSpinBox")
        self.zoomSpinBox.setMaxValue(20)
        self.zoomSpinBox.setMinValue(-10)
        self.zoomSpinBox.setValue(0)
        Layout3.addWidget(self.zoomSpinBox)
        ZoomFormLayout.addLayout(Layout3)

        Layout4 = QHBoxLayout(None,0,6,"Layout4")
        Spacer3 = QSpacerItem(16,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout4.addItem(Spacer3)

        self.zoomButton = QPushButton(self,"zoomButton")
        self.zoomButton.setDefault(1)
        Layout4.addWidget(self.zoomButton)

        self.cancelButton = QPushButton(self,"cancelButton")
        Layout4.addWidget(self.cancelButton)
        Spacer4 = QSpacerItem(16,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout4.addItem(Spacer4)
        ZoomFormLayout.addLayout(Layout4)

        self.languageChange()

        self.resize(QSize(181,78).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.zoomButton,SIGNAL("clicked()"),self.accept)
        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)

        self.zoomLabel.setBuddy(self.zoomSpinBox)


    def languageChange(self):
        self.setCaption(self.__tr("Zoom"))
        self.zoomLabel.setText(self.__tr("Zoom &Factor:"))
        QToolTip.add(self.zoomSpinBox,self.__tr("Enter zoom factor"))
        QWhatsThis.add(self.zoomSpinBox,self.__tr("<b>Zoom Factor</b>\n"
"<p>Enter the desired zoom factor here. The zoom factor\n"
"may be between -10 and +20 and is the increment that is \n"
"added to the size of the fonts used in the editor windows.</p>"))
        self.zoomButton.setText(self.__tr("&Zoom"))
        QToolTip.add(self.zoomButton,self.__tr("Zoom by the entered value"))
        QWhatsThis.add(self.zoomButton,self.__tr("<b>Zoom</b>\n"
"<p>Zoom by the entered value.</p>"))
        self.cancelButton.setText(self.__tr("&Cancel"))
        QToolTip.add(self.cancelButton,self.__tr("Cancel the dialog"))
        QWhatsThis.add(self.cancelButton,self.__tr("<b>Cancel</b>\n"
"<p>Cancels the zoom dialog.</p>"))


    def __tr(self,s,c = None):
        return qApp.translate("ZoomForm",s,c)

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = ZoomForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
