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

# Form implementation generated from reading ui file 'eric/Helpviewer/GreaseMonkey/GreaseMonkeyAddScriptDialog.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_GreaseMonkeyAddScriptDialog(object):
    def setupUi(self, GreaseMonkeyAddScriptDialog):
        GreaseMonkeyAddScriptDialog.setObjectName(_fromUtf8("GreaseMonkeyAddScriptDialog"))
        GreaseMonkeyAddScriptDialog.resize(550, 400)
        GreaseMonkeyAddScriptDialog.setSizeGripEnabled(True)
        self.verticalLayout = QtGui.QVBoxLayout(GreaseMonkeyAddScriptDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.iconLabel = QtGui.QLabel(GreaseMonkeyAddScriptDialog)
        self.iconLabel.setMinimumSize(QtCore.QSize(48, 48))
        self.iconLabel.setText(_fromUtf8("Icon"))
        self.iconLabel.setObjectName(_fromUtf8("iconLabel"))
        self.horizontalLayout.addWidget(self.iconLabel)
        self.label_2 = QtGui.QLabel(GreaseMonkeyAddScriptDialog)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.horizontalLayout.addWidget(self.label_2)
        spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.label_3 = QtGui.QLabel(GreaseMonkeyAddScriptDialog)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName(_fromUtf8("label_3"))
        self.verticalLayout.addWidget(self.label_3)
        self.scriptInfo = QtGui.QTextBrowser(GreaseMonkeyAddScriptDialog)
        self.scriptInfo.setObjectName(_fromUtf8("scriptInfo"))
        self.verticalLayout.addWidget(self.scriptInfo)
        self.label_5 = QtGui.QLabel(GreaseMonkeyAddScriptDialog)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName(_fromUtf8("label_5"))
        self.verticalLayout.addWidget(self.label_5)
        self.label_4 = QtGui.QLabel(GreaseMonkeyAddScriptDialog)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName(_fromUtf8("label_4"))
        self.verticalLayout.addWidget(self.label_4)
        self.horizontalLayout_2 = QtGui.QHBoxLayout()
        self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2"))
        self.showScriptSourceButton = QtGui.QPushButton(GreaseMonkeyAddScriptDialog)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.showScriptSourceButton.sizePolicy().hasHeightForWidth())
        self.showScriptSourceButton.setSizePolicy(sizePolicy)
        self.showScriptSourceButton.setObjectName(_fromUtf8("showScriptSourceButton"))
        self.horizontalLayout_2.addWidget(self.showScriptSourceButton)
        self.buttonBox = QtGui.QDialogButtonBox(GreaseMonkeyAddScriptDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.No|QtGui.QDialogButtonBox.Yes)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.horizontalLayout_2.addWidget(self.buttonBox)
        self.verticalLayout.addLayout(self.horizontalLayout_2)

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

    def retranslateUi(self, GreaseMonkeyAddScriptDialog):
        GreaseMonkeyAddScriptDialog.setWindowTitle(_translate("GreaseMonkeyAddScriptDialog", "GreaseMonkey Script Installation", None))
        self.label_2.setText(_translate("GreaseMonkeyAddScriptDialog", "<h2>GreaseMonkey Script Installation</h2>", None))
        self.label_3.setText(_translate("GreaseMonkeyAddScriptDialog", "You are about to install this userscript into GreaseMonkey:", None))
        self.label_5.setText(_translate("GreaseMonkeyAddScriptDialog", "<b>You should only install scripts from sources you trust!</b>", None))
        self.label_4.setText(_translate("GreaseMonkeyAddScriptDialog", "Are you sure you want to install it?", None))
        self.showScriptSourceButton.setToolTip(_translate("GreaseMonkeyAddScriptDialog", "Press to open an editor with the script\'s source", None))
        self.showScriptSourceButton.setText(_translate("GreaseMonkeyAddScriptDialog", "Show source code of script", None))

