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

# Form implementation generated from reading ui file '/home/offedetl/Development/Eric4/eric4_2/eric4/Preferences/ConfigurationPages/EditorAPIsPage.ui'
#
# Created: Fri Feb 29 08:44:13 2008
#      by: PyQt4 UI code generator 4.3-snapshot-20070901
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_EditorAPIsPage(object):
    def setupUi(self, EditorAPIsPage):
        EditorAPIsPage.setObjectName("EditorAPIsPage")
        EditorAPIsPage.resize(QtCore.QSize(QtCore.QRect(0,0,462,422).size()).expandedTo(EditorAPIsPage.minimumSizeHint()))

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

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

        self.line5 = QtGui.QFrame(EditorAPIsPage)
        self.line5.setFrameShape(QtGui.QFrame.HLine)
        self.line5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line5.setFrameShape(QtGui.QFrame.HLine)
        self.line5.setFrameShadow(QtGui.QFrame.Sunken)
        self.line5.setObjectName("line5")
        self.vboxlayout.addWidget(self.line5)

        self.apiAutoPrepareCheckBox = QtGui.QCheckBox(EditorAPIsPage)
        self.apiAutoPrepareCheckBox.setObjectName("apiAutoPrepareCheckBox")
        self.vboxlayout.addWidget(self.apiAutoPrepareCheckBox)

        self.hboxlayout = QtGui.QHBoxLayout()
        self.hboxlayout.setSpacing(6)
        self.hboxlayout.setMargin(0)
        self.hboxlayout.setObjectName("hboxlayout")

        self.TextLabel1_3_3 = QtGui.QLabel(EditorAPIsPage)
        self.TextLabel1_3_3.setObjectName("TextLabel1_3_3")
        self.hboxlayout.addWidget(self.TextLabel1_3_3)

        self.apiLanguageComboBox = QtGui.QComboBox(EditorAPIsPage)

        sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.apiLanguageComboBox.sizePolicy().hasHeightForWidth())
        self.apiLanguageComboBox.setSizePolicy(sizePolicy)
        self.apiLanguageComboBox.setObjectName("apiLanguageComboBox")
        self.hboxlayout.addWidget(self.apiLanguageComboBox)
        self.vboxlayout.addLayout(self.hboxlayout)

        self.apiGroup = QtGui.QGroupBox(EditorAPIsPage)
        self.apiGroup.setEnabled(False)
        self.apiGroup.setObjectName("apiGroup")

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

        self.apiList = QtGui.QListWidget(self.apiGroup)
        self.apiList.setAlternatingRowColors(True)
        self.apiList.setObjectName("apiList")
        self.gridlayout.addWidget(self.apiList,0,0,1,4)

        self.deleteApiFileButton = QtGui.QPushButton(self.apiGroup)
        self.deleteApiFileButton.setObjectName("deleteApiFileButton")
        self.gridlayout.addWidget(self.deleteApiFileButton,1,0,1,1)

        self.addApiFileButton = QtGui.QPushButton(self.apiGroup)
        self.addApiFileButton.setObjectName("addApiFileButton")
        self.gridlayout.addWidget(self.addApiFileButton,1,1,1,1)

        self.apiFileEdit = QtGui.QLineEdit(self.apiGroup)
        self.apiFileEdit.setObjectName("apiFileEdit")
        self.gridlayout.addWidget(self.apiFileEdit,1,2,1,1)

        self.apiFileButton = QtGui.QPushButton(self.apiGroup)
        self.apiFileButton.setObjectName("apiFileButton")
        self.gridlayout.addWidget(self.apiFileButton,1,3,1,1)

        self.addInstalledApiFileButton = QtGui.QPushButton(self.apiGroup)
        self.addInstalledApiFileButton.setObjectName("addInstalledApiFileButton")
        self.gridlayout.addWidget(self.addInstalledApiFileButton,2,1,1,3)

        self.addPluginApiFileButton = QtGui.QPushButton(self.apiGroup)
        self.addPluginApiFileButton.setObjectName("addPluginApiFileButton")
        self.gridlayout.addWidget(self.addPluginApiFileButton,3,1,1,3)

        self.line = QtGui.QFrame(self.apiGroup)
        self.line.setFrameShape(QtGui.QFrame.HLine)
        self.line.setFrameShadow(QtGui.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridlayout.addWidget(self.line,4,0,1,4)

        self.prepareApiButton = QtGui.QPushButton(self.apiGroup)
        self.prepareApiButton.setObjectName("prepareApiButton")
        self.gridlayout.addWidget(self.prepareApiButton,5,0,1,2)

        self.prepareApiProgressBar = QtGui.QProgressBar(self.apiGroup)
        self.prepareApiProgressBar.setProperty("value",QtCore.QVariant(0))
        self.prepareApiProgressBar.setTextVisible(False)
        self.prepareApiProgressBar.setOrientation(QtCore.Qt.Horizontal)
        self.prepareApiProgressBar.setObjectName("prepareApiProgressBar")
        self.gridlayout.addWidget(self.prepareApiProgressBar,5,2,1,2)
        self.vboxlayout.addWidget(self.apiGroup)

        self.retranslateUi(EditorAPIsPage)
        QtCore.QMetaObject.connectSlotsByName(EditorAPIsPage)
        EditorAPIsPage.setTabOrder(self.apiAutoPrepareCheckBox,self.apiLanguageComboBox)
        EditorAPIsPage.setTabOrder(self.apiLanguageComboBox,self.apiList)
        EditorAPIsPage.setTabOrder(self.apiList,self.deleteApiFileButton)
        EditorAPIsPage.setTabOrder(self.deleteApiFileButton,self.apiFileEdit)
        EditorAPIsPage.setTabOrder(self.apiFileEdit,self.apiFileButton)
        EditorAPIsPage.setTabOrder(self.apiFileButton,self.addApiFileButton)
        EditorAPIsPage.setTabOrder(self.addApiFileButton,self.addInstalledApiFileButton)
        EditorAPIsPage.setTabOrder(self.addInstalledApiFileButton,self.addPluginApiFileButton)
        EditorAPIsPage.setTabOrder(self.addPluginApiFileButton,self.prepareApiButton)

    def retranslateUi(self, EditorAPIsPage):
        self.headerLabel.setText(QtGui.QApplication.translate("EditorAPIsPage", "<b>Configure API files</b>", None, QtGui.QApplication.UnicodeUTF8))
        self.apiAutoPrepareCheckBox.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Select to compile the APIs automatically upon loading", None, QtGui.QApplication.UnicodeUTF8))
        self.apiAutoPrepareCheckBox.setText(QtGui.QApplication.translate("EditorAPIsPage", "Compile APIs automatically", None, QtGui.QApplication.UnicodeUTF8))
        self.TextLabel1_3_3.setText(QtGui.QApplication.translate("EditorAPIsPage", "Language:", None, QtGui.QApplication.UnicodeUTF8))
        self.apiLanguageComboBox.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Select the language to be configured.", None, QtGui.QApplication.UnicodeUTF8))
        self.apiGroup.setTitle(QtGui.QApplication.translate("EditorAPIsPage", "APIs", None, QtGui.QApplication.UnicodeUTF8))
        self.apiList.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "List of API files", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteApiFileButton.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Press to delete the selected file from the list", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteApiFileButton.setText(QtGui.QApplication.translate("EditorAPIsPage", "Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.addApiFileButton.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Press to add the entered file to the list", None, QtGui.QApplication.UnicodeUTF8))
        self.addApiFileButton.setText(QtGui.QApplication.translate("EditorAPIsPage", "Add", None, QtGui.QApplication.UnicodeUTF8))
        self.apiFileEdit.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Enter a file to be added", None, QtGui.QApplication.UnicodeUTF8))
        self.apiFileButton.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Press to select an API file via a selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.apiFileButton.setText(QtGui.QApplication.translate("EditorAPIsPage", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.addInstalledApiFileButton.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Press to select an API file from the list of installed API files", None, QtGui.QApplication.UnicodeUTF8))
        self.addInstalledApiFileButton.setText(QtGui.QApplication.translate("EditorAPIsPage", "Add from installed APIs", None, QtGui.QApplication.UnicodeUTF8))
        self.addPluginApiFileButton.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Press to select an API file from the list of API files installed by plugins", None, QtGui.QApplication.UnicodeUTF8))
        self.addPluginApiFileButton.setText(QtGui.QApplication.translate("EditorAPIsPage", "Add from Plugin APIs", None, QtGui.QApplication.UnicodeUTF8))
        self.prepareApiButton.setToolTip(QtGui.QApplication.translate("EditorAPIsPage", "Press to compile the selected APIs definition", None, QtGui.QApplication.UnicodeUTF8))
        self.prepareApiButton.setText(QtGui.QApplication.translate("EditorAPIsPage", "Compile APIs", None, QtGui.QApplication.UnicodeUTF8))



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