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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3_7/eric3/Project/AddLanguageForm.ui'
#
# Created: Sa Feb 19 10:49:08 2005
#      by: The PyQt User Interface Compiler (pyuic) snapshot-20041229
#
# WARNING! All changes made in this file will be lost!


import sys
from qt import *


class AddLanguageForm(QDialog):
    def __init__(self,parent = None,name = None,modal = 0,fl = 0):
        QDialog.__init__(self,parent,name,modal,fl)

        if not name:
            self.setName("AddLanguageForm")


        AddLanguageFormLayout = QVBoxLayout(self,6,6,"AddLanguageFormLayout")

        Layout8 = QHBoxLayout(None,0,6,"Layout8")

        self.languageLabel = QLabel(self,"languageLabel")
        Layout8.addWidget(self.languageLabel)

        self.languageCombo = QComboBox(0,self,"languageCombo")
        self.languageCombo.setSizePolicy(QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Fixed,0,0,self.languageCombo.sizePolicy().hasHeightForWidth()))
        self.languageCombo.setEditable(1)
        self.languageCombo.setDuplicatesEnabled(0)
        Layout8.addWidget(self.languageCombo)
        AddLanguageFormLayout.addLayout(Layout8)

        Layout7 = QHBoxLayout(None,0,6,"Layout7")
        Spacer6 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout7.addItem(Spacer6)

        self.okButton = QPushButton(self,"okButton")
        self.okButton.setDefault(1)
        Layout7.addWidget(self.okButton)

        self.cancelButton = QPushButton(self,"cancelButton")
        Layout7.addWidget(self.cancelButton)
        Spacer7 = QSpacerItem(30,0,QSizePolicy.Expanding,QSizePolicy.Minimum)
        Layout7.addItem(Spacer7)
        AddLanguageFormLayout.addLayout(Layout7)

        self.languageChange()

        self.resize(QSize(245,75).expandedTo(self.minimumSizeHint()))
        self.clearWState(Qt.WState_Polished)

        self.connect(self.okButton,SIGNAL("clicked()"),self.accept)
        self.connect(self.cancelButton,SIGNAL("clicked()"),self.reject)

        self.languageLabel.setBuddy(self.languageCombo)


    def languageChange(self):
        self.setCaption(self.__tr("Add Language"))
        QToolTip.add(self,self.__tr("Add a language to the current project"))
        QWhatsThis.add(self,self.__tr("<b>Add Language Dialog</b>\n"
"<p>This dialog is used to add a language to the current project.</p>"))
        self.languageLabel.setText(self.__tr("&Language:"))
        self.languageCombo.clear()
        self.languageCombo.insertItem(self.__tr("af"))
        self.languageCombo.insertItem(self.__tr("ar"))
        self.languageCombo.insertItem(self.__tr("bg"))
        self.languageCombo.insertItem(self.__tr("bo"))
        self.languageCombo.insertItem(self.__tr("br"))
        self.languageCombo.insertItem(self.__tr("bs"))
        self.languageCombo.insertItem(self.__tr("ca"))
        self.languageCombo.insertItem(self.__tr("cs"))
        self.languageCombo.insertItem(self.__tr("cy"))
        self.languageCombo.insertItem(self.__tr("da"))
        self.languageCombo.insertItem(self.__tr("de"))
        self.languageCombo.insertItem(self.__tr("el"))
        self.languageCombo.insertItem(self.__tr("en"))
        self.languageCombo.insertItem(self.__tr("en_GB"))
        self.languageCombo.insertItem(self.__tr("en_US"))
        self.languageCombo.insertItem(self.__tr("eo"))
        self.languageCombo.insertItem(self.__tr("es"))
        self.languageCombo.insertItem(self.__tr("et"))
        self.languageCombo.insertItem(self.__tr("eu"))
        self.languageCombo.insertItem(self.__tr("fi"))
        self.languageCombo.insertItem(self.__tr("fr"))
        self.languageCombo.insertItem(self.__tr("ga"))
        self.languageCombo.insertItem(self.__tr("gl"))
        self.languageCombo.insertItem(self.__tr("gu"))
        self.languageCombo.insertItem(self.__tr("he"))
        self.languageCombo.insertItem(self.__tr("hi"))
        self.languageCombo.insertItem(self.__tr("hu"))
        self.languageCombo.insertItem(self.__tr("id"))
        self.languageCombo.insertItem(self.__tr("is"))
        self.languageCombo.insertItem(self.__tr("it"))
        self.languageCombo.insertItem(self.__tr("ja"))
        self.languageCombo.insertItem(self.__tr("km"))
        self.languageCombo.insertItem(self.__tr("ko"))
        self.languageCombo.insertItem(self.__tr("lt"))
        self.languageCombo.insertItem(self.__tr("lv"))
        self.languageCombo.insertItem(self.__tr("mi"))
        self.languageCombo.insertItem(self.__tr("mk"))
        self.languageCombo.insertItem(self.__tr("mr"))
        self.languageCombo.insertItem(self.__tr("nl"))
        self.languageCombo.insertItem(self.__tr("no"))
        self.languageCombo.insertItem(self.__tr("no_NY"))
        self.languageCombo.insertItem(self.__tr("oc"))
        self.languageCombo.insertItem(self.__tr("pl"))
        self.languageCombo.insertItem(self.__tr("pt"))
        self.languageCombo.insertItem(self.__tr("pt_BR"))
        self.languageCombo.insertItem(self.__tr("ro"))
        self.languageCombo.insertItem(self.__tr("ru"))
        self.languageCombo.insertItem(self.__tr("sk"))
        self.languageCombo.insertItem(self.__tr("sl"))
        self.languageCombo.insertItem(self.__tr("sr"))
        self.languageCombo.insertItem(self.__tr("sv"))
        self.languageCombo.insertItem(self.__tr("ta"))
        self.languageCombo.insertItem(self.__tr("th"))
        self.languageCombo.insertItem(self.__tr("tr"))
        self.languageCombo.insertItem(self.__tr("uk"))
        self.languageCombo.insertItem(self.__tr("wa"))
        self.languageCombo.insertItem(self.__tr("zh_CN.GB2312"))
        self.languageCombo.insertItem(self.__tr("zh_TW.Big5"))
        QToolTip.add(self.languageCombo,self.__tr("Select a language to add to the current project"))
        QWhatsThis.add(self.languageCombo,self.__tr("<b>Language</b>\n"
"<p>Select a language to add to the current project.</p>"))
        self.okButton.setText(self.__tr("&OK"))
        self.cancelButton.setText(self.__tr("&Cancel"))


    def __tr(self,s,c = None):
        return qApp.translate("AddLanguageForm",s,c)

if __name__ == "__main__":
    a = QApplication(sys.argv)
    QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
    w = AddLanguageForm()
    a.setMainWidget(w)
    w.show()
    a.exec_loop()
