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

# Form implementation generated from reading ui file 'eric/Preferences/ConfigurationPages/MimeTypesPage.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_MimeTypesPage(object):
    def setupUi(self, MimeTypesPage):
        MimeTypesPage.setObjectName(_fromUtf8("MimeTypesPage"))
        MimeTypesPage.resize(480, 515)
        self.verticalLayout = QtGui.QVBoxLayout(MimeTypesPage)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.headerLabel = QtGui.QLabel(MimeTypesPage)
        self.headerLabel.setObjectName(_fromUtf8("headerLabel"))
        self.verticalLayout.addWidget(self.headerLabel)
        self.line9 = QtGui.QFrame(MimeTypesPage)
        self.line9.setFrameShape(QtGui.QFrame.HLine)
        self.line9.setFrameShadow(QtGui.QFrame.Sunken)
        self.line9.setFrameShape(QtGui.QFrame.HLine)
        self.line9.setObjectName(_fromUtf8("line9"))
        self.verticalLayout.addWidget(self.line9)
        self.label = QtGui.QLabel(MimeTypesPage)
        self.label.setWordWrap(True)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.textMimeTypesList = E5StringListEditWidget(MimeTypesPage)
        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textMimeTypesList.sizePolicy().hasHeightForWidth())
        self.textMimeTypesList.setSizePolicy(sizePolicy)
        self.textMimeTypesList.setFocusPolicy(QtCore.Qt.WheelFocus)
        self.textMimeTypesList.setObjectName(_fromUtf8("textMimeTypesList"))
        self.verticalLayout.addWidget(self.textMimeTypesList)
        self.resetButton = QtGui.QPushButton(MimeTypesPage)
        self.resetButton.setObjectName(_fromUtf8("resetButton"))
        self.verticalLayout.addWidget(self.resetButton)

        self.retranslateUi(MimeTypesPage)
        QtCore.QMetaObject.connectSlotsByName(MimeTypesPage)

    def retranslateUi(self, MimeTypesPage):
        self.headerLabel.setText(_translate("MimeTypesPage", "<b>Configure Text Mimetypes</b>", None))
        self.label.setText(_translate("MimeTypesPage", "Files of the mime types configured below are opened in an eric editor (in addition to all \'text\' mime types).", None))
        self.resetButton.setToolTip(_translate("MimeTypesPage", "Press to reset the list to default values", None))
        self.resetButton.setText(_translate("MimeTypesPage", "Reset to Defaults", None))

from E5Gui.E5StringListEditWidget import E5StringListEditWidget
