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

# Form implementation generated from reading ui file 'eric/Plugins/VcsPlugins/vcsSubversion/SvnPropSetDialog.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_SvnPropSetDialog(object):
    def setupUi(self, SvnPropSetDialog):
        SvnPropSetDialog.setObjectName(_fromUtf8("SvnPropSetDialog"))
        SvnPropSetDialog.resize(494, 385)
        SvnPropSetDialog.setSizeGripEnabled(True)
        self.verticalLayout_2 = QtGui.QVBoxLayout(SvnPropSetDialog)
        self.verticalLayout_2.setMargin(6)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setMargin(6)
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setObjectName(_fromUtf8("hboxlayout"))
        self.textLabel1 = QtGui.QLabel(SvnPropSetDialog)
        self.textLabel1.setObjectName(_fromUtf8("textLabel1"))
        self.hboxlayout.addWidget(self.textLabel1)
        self.propNameEdit = QtGui.QLineEdit(SvnPropSetDialog)
        self.propNameEdit.setObjectName(_fromUtf8("propNameEdit"))
        self.hboxlayout.addWidget(self.propNameEdit)
        self.verticalLayout_2.addLayout(self.hboxlayout)
        self.groupBox = QtGui.QGroupBox(SvnPropSetDialog)
        self.groupBox.setObjectName(_fromUtf8("groupBox"))
        self.verticalLayout = QtGui.QVBoxLayout(self.groupBox)
        self.verticalLayout.setMargin(6)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.textRadioButton = QtGui.QRadioButton(self.groupBox)
        self.textRadioButton.setChecked(True)
        self.textRadioButton.setObjectName(_fromUtf8("textRadioButton"))
        self.verticalLayout.addWidget(self.textRadioButton)
        self.propTextEdit = QtGui.QTextEdit(self.groupBox)
        self.propTextEdit.setTabChangesFocus(True)
        self.propTextEdit.setAcceptRichText(False)
        self.propTextEdit.setObjectName(_fromUtf8("propTextEdit"))
        self.verticalLayout.addWidget(self.propTextEdit)
        self.fileRadioButton = QtGui.QRadioButton(self.groupBox)
        self.fileRadioButton.setFocusPolicy(QtCore.Qt.NoFocus)
        self.fileRadioButton.setObjectName(_fromUtf8("fileRadioButton"))
        self.verticalLayout.addWidget(self.fileRadioButton)
        self.propFilePicker = E5PathPicker(self.groupBox)
        self.propFilePicker.setEnabled(False)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.propFilePicker.sizePolicy().hasHeightForWidth())
        self.propFilePicker.setSizePolicy(sizePolicy)
        self.propFilePicker.setFocusPolicy(QtCore.Qt.StrongFocus)
        self.propFilePicker.setObjectName(_fromUtf8("propFilePicker"))
        self.verticalLayout.addWidget(self.propFilePicker)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.buttonBox = QtGui.QDialogButtonBox(SvnPropSetDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName(_fromUtf8("buttonBox"))
        self.verticalLayout_2.addWidget(self.buttonBox)

        self.retranslateUi(SvnPropSetDialog)
        QtCore.QObject.connect(self.textRadioButton, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.propTextEdit.setEnabled)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), SvnPropSetDialog.accept)
        QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), SvnPropSetDialog.reject)
        QtCore.QObject.connect(self.fileRadioButton, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.propFilePicker.setEnabled)
        QtCore.QMetaObject.connectSlotsByName(SvnPropSetDialog)
        SvnPropSetDialog.setTabOrder(self.propNameEdit, self.textRadioButton)
        SvnPropSetDialog.setTabOrder(self.textRadioButton, self.propTextEdit)
        SvnPropSetDialog.setTabOrder(self.propTextEdit, self.propFilePicker)

    def retranslateUi(self, SvnPropSetDialog):
        SvnPropSetDialog.setWindowTitle(_translate("SvnPropSetDialog", "Set Subversion Property", None))
        self.textLabel1.setText(_translate("SvnPropSetDialog", "Property Name:", None))
        self.propNameEdit.setToolTip(_translate("SvnPropSetDialog", "Enter the name of the property to be set", None))
        self.groupBox.setTitle(_translate("SvnPropSetDialog", "Select property source", None))
        self.textRadioButton.setText(_translate("SvnPropSetDialog", "Text", None))
        self.propTextEdit.setToolTip(_translate("SvnPropSetDialog", "Enter text of the property", None))
        self.fileRadioButton.setText(_translate("SvnPropSetDialog", "File", None))
        self.propFilePicker.setToolTip(_translate("SvnPropSetDialog", "Enter the name of a file for the property", None))

from E5Gui.E5PathPicker import E5PathPicker
