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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric4/eric4_0/eric4/Project/TranslationPropertiesDialog.ui'
#
# Created: Mon Apr  2 15:43:48 2007
#      by: PyQt4 UI code generator 4-snapshot-20070125
#
# WARNING! All changes made in this file will be lost!

from PyQt4 import QtCore, QtGui

class Ui_TranslationPropertiesDialog(object):
    def setupUi(self, TranslationPropertiesDialog):
        TranslationPropertiesDialog.setObjectName("TranslationPropertiesDialog")
        TranslationPropertiesDialog.resize(QtCore.QSize(QtCore.QRect(0,0,592,543).size()).expandedTo(TranslationPropertiesDialog.minimumSizeHint()))
        TranslationPropertiesDialog.setSizeGripEnabled(True)

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

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

        self.transBinPathButton = QtGui.QPushButton(TranslationPropertiesDialog)
        self.transBinPathButton.setObjectName("transBinPathButton")
        self.gridlayout.addWidget(self.transBinPathButton,3,1,1,1)

        self.transBinPathEdit = QtGui.QLineEdit(TranslationPropertiesDialog)
        self.transBinPathEdit.setObjectName("transBinPathEdit")
        self.gridlayout.addWidget(self.transBinPathEdit,3,0,1,1)

        self.transPrefixButton = QtGui.QPushButton(TranslationPropertiesDialog)
        self.transPrefixButton.setObjectName("transPrefixButton")
        self.gridlayout.addWidget(self.transPrefixButton,1,1,1,1)

        self.label = QtGui.QLabel(TranslationPropertiesDialog)
        self.label.setObjectName("label")
        self.gridlayout.addWidget(self.label,2,0,1,2)

        self.transPrefixEdit = QtGui.QLineEdit(TranslationPropertiesDialog)
        self.transPrefixEdit.setObjectName("transPrefixEdit")
        self.gridlayout.addWidget(self.transPrefixEdit,1,0,1,1)

        self.textLabel1_3 = QtGui.QLabel(TranslationPropertiesDialog)
        self.textLabel1_3.setObjectName("textLabel1_3")
        self.gridlayout.addWidget(self.textLabel1_3,0,0,1,2)
        self.vboxlayout.addLayout(self.gridlayout)

        self.exceptionsGroup = QtGui.QGroupBox(TranslationPropertiesDialog)
        self.exceptionsGroup.setObjectName("exceptionsGroup")

        self.gridlayout1 = QtGui.QGridLayout(self.exceptionsGroup)
        self.gridlayout1.setMargin(6)
        self.gridlayout1.setSpacing(6)
        self.gridlayout1.setObjectName("gridlayout1")

        self.exceptDirButton = QtGui.QPushButton(self.exceptionsGroup)
        self.exceptDirButton.setObjectName("exceptDirButton")
        self.gridlayout1.addWidget(self.exceptDirButton,2,3,1,1)

        self.exceptFileButton = QtGui.QPushButton(self.exceptionsGroup)
        self.exceptFileButton.setObjectName("exceptFileButton")
        self.gridlayout1.addWidget(self.exceptFileButton,2,2,1,1)

        self.addExceptionButton = QtGui.QPushButton(self.exceptionsGroup)
        self.addExceptionButton.setEnabled(False)
        self.addExceptionButton.setObjectName("addExceptionButton")
        self.gridlayout1.addWidget(self.addExceptionButton,2,1,1,1)

        self.deleteExceptionButton = QtGui.QPushButton(self.exceptionsGroup)
        self.deleteExceptionButton.setEnabled(False)
        self.deleteExceptionButton.setObjectName("deleteExceptionButton")
        self.gridlayout1.addWidget(self.deleteExceptionButton,2,0,1,1)

        self.exceptionEdit = QtGui.QLineEdit(self.exceptionsGroup)
        self.exceptionEdit.setObjectName("exceptionEdit")
        self.gridlayout1.addWidget(self.exceptionEdit,1,0,1,4)

        self.exceptionsList = QtGui.QListWidget(self.exceptionsGroup)
        self.exceptionsList.setAlternatingRowColors(True)
        self.exceptionsList.setSortingEnabled(True)
        self.exceptionsList.setObjectName("exceptionsList")
        self.gridlayout1.addWidget(self.exceptionsList,0,0,1,4)
        self.vboxlayout.addWidget(self.exceptionsGroup)

        self.buttonBox = QtGui.QDialogButtonBox(TranslationPropertiesDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.vboxlayout.addWidget(self.buttonBox)
        self.label.setBuddy(self.transBinPathEdit)
        self.textLabel1_3.setBuddy(self.transPrefixEdit)

        self.retranslateUi(TranslationPropertiesDialog)
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("accepted()"),TranslationPropertiesDialog.accept)
        QtCore.QObject.connect(self.buttonBox,QtCore.SIGNAL("rejected()"),TranslationPropertiesDialog.reject)
        QtCore.QMetaObject.connectSlotsByName(TranslationPropertiesDialog)
        TranslationPropertiesDialog.setTabOrder(self.transPrefixEdit,self.transPrefixButton)
        TranslationPropertiesDialog.setTabOrder(self.transPrefixButton,self.transBinPathEdit)
        TranslationPropertiesDialog.setTabOrder(self.transBinPathEdit,self.transBinPathButton)
        TranslationPropertiesDialog.setTabOrder(self.transBinPathButton,self.exceptionsList)
        TranslationPropertiesDialog.setTabOrder(self.exceptionsList,self.exceptionEdit)
        TranslationPropertiesDialog.setTabOrder(self.exceptionEdit,self.deleteExceptionButton)
        TranslationPropertiesDialog.setTabOrder(self.deleteExceptionButton,self.addExceptionButton)
        TranslationPropertiesDialog.setTabOrder(self.addExceptionButton,self.exceptFileButton)
        TranslationPropertiesDialog.setTabOrder(self.exceptFileButton,self.exceptDirButton)

    def retranslateUi(self, TranslationPropertiesDialog):
        TranslationPropertiesDialog.setWindowTitle(QtGui.QApplication.translate("TranslationPropertiesDialog", "Translation Properties", None, QtGui.QApplication.UnicodeUTF8))
        self.transBinPathButton.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Show directory selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.transBinPathButton.setWhatsThis(QtGui.QApplication.translate("TranslationPropertiesDialog", "<b>Binary Translations Path</b>\n"
        "<p>Select the directory for the binary translations via a directory selection dialog.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.transBinPathButton.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.transBinPathEdit.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Enter the path for the binary translation files (*.qm)", None, QtGui.QApplication.UnicodeUTF8))
        self.transBinPathEdit.setWhatsThis(QtGui.QApplication.translate("TranslationPropertiesDialog", "<b>Binary Translations Path</b>\n"
        "<p>Enter the directory for the binary translation files (*.qm). Leave it empty to store them together with the *.ts files.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.transPrefixButton.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Show directory selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.transPrefixButton.setWhatsThis(QtGui.QApplication.translate("TranslationPropertiesDialog", "<b>Translation Prefix</b>\n"
        "<p>Select a translation directory via a directory selection dialog.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.transPrefixButton.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "...", None, QtGui.QApplication.UnicodeUTF8))
        self.label.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "&Binary Translations Path:", None, QtGui.QApplication.UnicodeUTF8))
        self.transPrefixEdit.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Enter the path and prefix for the translation files", None, QtGui.QApplication.UnicodeUTF8))
        self.transPrefixEdit.setWhatsThis(QtGui.QApplication.translate("TranslationPropertiesDialog", "<b>Translation Prefix</b>\n"
        "<p>Enter the directory for the translation files and their prefix (e.g. /path_to_eric/eric). This will result in translation files like /path_to_eric/eric_de.ts.</p>", None, QtGui.QApplication.UnicodeUTF8))
        self.textLabel1_3.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "&Translation Prefix:", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptionsGroup.setTitle(QtGui.QApplication.translate("TranslationPropertiesDialog", "Exclude from translation", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptDirButton.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Press to select a directory via a selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptDirButton.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "Select d&irectory...", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptFileButton.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Press to select a file via a selection dialog", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptFileButton.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "Select &file...", None, QtGui.QApplication.UnicodeUTF8))
        self.addExceptionButton.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Press to add the entered path or file to the list", None, QtGui.QApplication.UnicodeUTF8))
        self.addExceptionButton.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "&Add", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteExceptionButton.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Press to delete the selected entry from the list", None, QtGui.QApplication.UnicodeUTF8))
        self.deleteExceptionButton.setText(QtGui.QApplication.translate("TranslationPropertiesDialog", "&Delete", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptionEdit.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "Enter a path or file to be added", None, QtGui.QApplication.UnicodeUTF8))
        self.exceptionsList.setToolTip(QtGui.QApplication.translate("TranslationPropertiesDialog", "List of paths or files to excude from translation", None, QtGui.QApplication.UnicodeUTF8))



if __name__ == "__main__":
    import sys
    app = QtGui.QApplication(sys.argv)
    TranslationPropertiesDialog = QtGui.QDialog()
    ui = Ui_TranslationPropertiesDialog()
    ui.setupUi(TranslationPropertiesDialog)
    TranslationPropertiesDialog.show()
    sys.exit(app.exec_())
