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

# Form implementation generated from reading ui file '/home/detlev/Development/Python/Eric/eric3/Project/AddLanguageForm.ui'
#
# Created: Mon Jan 20 20:44:56 2003
#      by: The PyQt User Interface Compiler (pyuic)
#
# 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(7,0,0,0,self.languageCombo.sizePolicy().hasHeightForWidth()))
        self.languageCombo.setDuplicatesEnabled(0)
        Layout8.addWidget(self.languageCombo)
        AddLanguageFormLayout.addLayout(Layout8)

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

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

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

        self.languageChange()

        self.resize(QSize(245,75).expandedTo(self.minimumSizeHint()))

        self.connect(self.okButton,SIGNAL("clicked()"),self,SLOT("accept()"))
        self.connect(self.cancelButton,SIGNAL("clicked()"),self,SLOT("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"))


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()
