diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 00bb99ac80741fc50ef8a289719373032f2391eb (patch) | |
tree | 3a5a9bf72f942784b38bf77dd66c534662fab5f2 /kmouth/wordcompletion/creationsourcedetailsui.ui.h | |
download | tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.tar.gz tdeaccessibility-00bb99ac80741fc50ef8a289719373032f2391eb.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaccessibility@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmouth/wordcompletion/creationsourcedetailsui.ui.h')
-rw-r--r-- | kmouth/wordcompletion/creationsourcedetailsui.ui.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/kmouth/wordcompletion/creationsourcedetailsui.ui.h b/kmouth/wordcompletion/creationsourcedetailsui.ui.h new file mode 100644 index 0000000..956f021 --- /dev/null +++ b/kmouth/wordcompletion/creationsourcedetailsui.ui.h @@ -0,0 +1,37 @@ +/**************************************************************************** +** ui.h extension file, included from the uic-generated form implementation. +** +** If you wish to add, delete or rename functions or slots use +** Qt Designer which will update this file, preserving your code. Create an +** init() function in place of a constructor, and a destroy() function in +** place of a destructor. +*****************************************************************************/ + + +void CreationSourceDetailsUI::init() { + languageButton = new KLanguageButton (this, "languageButton"); + CreationSourceDetailsUILayout->addWidget (languageButton, 2, 1); + languageLabel->setBuddy (languageButton); + QWhatsThis::add (languageButton, i18n("With this combo box you decide which language should be associated with the new dictionary.")); + + loadLanguageList(languageButton); + languageButton->insertLanguage("??", i18n("Other"), QString::fromLatin1("l10n/"), QString::null); + + connect (languageButton, SIGNAL(activated(int)), this, SLOT(languageButton_activated(int))); +} + +void CreationSourceDetailsUI::languageButton_activated (int) { + if (languageButton->currentTag() == "??") { + QString customLanguage = KInputDialog::getText(i18n("Create Custom Language"), i18n("Please enter the code for the custom language:")); + + if (languageButton->containsTag(customLanguage)) { + languageButton->setCurrentItem(customLanguage); + } + else { + languageButton->insertLanguage(customLanguage, i18n("without name"), QString::fromLatin1("l10n/"), QString::null); + languageButton->setCurrentItem(customLanguage); + } + } +} + + |