From c1bc4c50822b57d4e86c956af4f075a62191b898 Mon Sep 17 00:00:00 2001 From: mlaurent Date: Wed, 27 Feb 2008 08:28:05 +0000 Subject: [PATCH] Port and remove not necessary files git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdeaccessibility@779869 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmouth/wordcompletion/creationsourcedetailsui.ui.h | 39 ---------------------- kmouth/wordcompletion/creationsourceui.ui.h | 30 ----------------- kmouth/wordcompletion/dictionarycreationwizard.h | 4 +++ kmouth/wordcompletion/kdedocsourceui.ui.h | 24 ------------- kmouth/wordcompletion/wordcompletionui.ui.h | 39 ---------------------- 5 files changed, 4 insertions(+), 132 deletions(-) delete mode 100644 kmouth/wordcompletion/creationsourcedetailsui.ui.h delete mode 100644 kmouth/wordcompletion/creationsourceui.ui.h delete mode 100644 kmouth/wordcompletion/kdedocsourceui.ui.h delete mode 100644 kmouth/wordcompletion/wordcompletionui.ui.h diff --git a/kmouth/wordcompletion/creationsourcedetailsui.ui.h b/kmouth/wordcompletion/creationsourcedetailsui.ui.h deleted file mode 100644 index 92de0f37..00000000 --- a/kmouth/wordcompletion/creationsourcedetailsui.ui.h +++ /dev/null @@ -1,39 +0,0 @@ -/**************************************************************************** -** 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. -*****************************************************************************/ - -#ifndef CREATIONSOURCEDETAILSUI_UI_H -#define CREATIONSOURCEDETAILSUI_UI_H - -void CreationSourceDetailsUI::init() { - languageButton = new KLanguageButton (this); - languageLabel->setBuddy (languageButton); - languageButton->setWhatsThis( i18n("With this combo box you decide which language should be associated with the new dictionary.")); - - languageButton->showLanguageCodes(true); - languageButton->loadAllLanguages(); - languageButton->insertLanguage("??", i18n("Other")); - - connect (languageButton, SIGNAL(activated(int)), this, SLOT(languageButton_activated(int))); -} - -void CreationSourceDetailsUI::languageButton_activated (int) { - if (languageButton->current() == "??") { - QString customLanguage = KInputDialog::getText(i18n("Create Custom Language"), i18n("Please enter the code for the custom language:")); - - if (languageButton->contains(customLanguage)) { - languageButton->setCurrentItem(customLanguage); - } - else { - languageButton->insertLanguage(customLanguage, i18n("without name")); - languageButton->setCurrentItem(customLanguage); - } - } -} - -#endif // CREATIONSOURCEDETAILSUI_UI_H diff --git a/kmouth/wordcompletion/creationsourceui.ui.h b/kmouth/wordcompletion/creationsourceui.ui.h deleted file mode 100644 index 48d744ca..00000000 --- a/kmouth/wordcompletion/creationsourceui.ui.h +++ /dev/null @@ -1,30 +0,0 @@ -/**************************************************************************** -** 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. -*****************************************************************************/ - -#ifndef CREATIONSOURCEUI_UI_H -#define CREATIONSOURCEUI_UI_H - -void CreationSourceUI::init() { - group1 = new Q3ButtonGroup (0); - group1->insert (createButton); - group1->insert (mergeButton); - group1->insert (emptyButton); - group2 = new Q3ButtonGroup (0); - group2->insert (kdeDocButton); - group2->insert (fileButton); - group2->insert (directoryButton); -} - - -void CreationSourceUI::destroy() { - delete group1; - delete group2; -} - -#endif // CREATIONSOURCEUI_UI_H diff --git a/kmouth/wordcompletion/dictionarycreationwizard.h b/kmouth/wordcompletion/dictionarycreationwizard.h index 72c35654..22aea34c 100644 --- a/kmouth/wordcompletion/dictionarycreationwizard.h +++ b/kmouth/wordcompletion/dictionarycreationwizard.h @@ -63,6 +63,10 @@ public: : QWidget(parent) { setupUi(this); setObjectName(name); + languageButton->showLanguageCodes(true); + languageButton->loadAllLanguages(); + + ooDictURL->setFilter ("*.dic"); } }; diff --git a/kmouth/wordcompletion/kdedocsourceui.ui.h b/kmouth/wordcompletion/kdedocsourceui.ui.h deleted file mode 100644 index c21e48e9..00000000 --- a/kmouth/wordcompletion/kdedocsourceui.ui.h +++ /dev/null @@ -1,24 +0,0 @@ -/**************************************************************************** -** 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. -*****************************************************************************/ - -#ifndef KDEDOCSOURCEUI_UI_H -#define KDEDOCSOURCEUI_UI_H - -void KDEDocSourceUI::init() { - languageButton = new KLanguageButton (this); - languageLabel->setBuddy (languageButton); - languageButton->setWhatsThis( i18n("With this combo box you select which of the installed languages is used for creating the new dictionary. KMouth will only parse documentation files of this language.")); - - languageButton->showLanguageCodes(true); - languageButton->loadAllLanguages(); - - ooDictURL->setFilter ("*.dic"); -} - -#endif // KDEDOCSOURCEUI_UI_H diff --git a/kmouth/wordcompletion/wordcompletionui.ui.h b/kmouth/wordcompletion/wordcompletionui.ui.h deleted file mode 100644 index ae127205..00000000 --- a/kmouth/wordcompletion/wordcompletionui.ui.h +++ /dev/null @@ -1,39 +0,0 @@ -/**************************************************************************** -** 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. -*****************************************************************************/ - -#ifndef WORDCOMPLETIONUI_UI_H -#define WORDCOMPLETIONUI_UI_H - -void WordCompletionUI::init() { - languageButton = new KLanguageButton (selectedDictionaryDetails); - languageLabel->setBuddy (languageButton); - languageButton->setWhatsThis( i18n("With this combo box you select the language associated with the selected dictionary.")); - - languageButton->showLanguageCodes(true); - languageButton->loadAllLanguages(); - languageButton->insertLanguage("??", i18n("Other")); - - connect (languageButton, SIGNAL(activated(int)), this, SLOT(languageButton_activated(int))); -} - -void WordCompletionUI::languageButton_activated (int) { - if (languageButton->current() == "??") { - QString customLanguage = KInputDialog::getText(i18n("Create Custom Language"), i18n("Please enter the code for the custom language:")); - - if (languageButton->contains(customLanguage)) { - languageButton->setCurrentItem(customLanguage); - } - else { - languageButton->insertLanguage(customLanguage, i18n("without name")); - languageButton->setCurrentItem(customLanguage); - } - } -} - -#endif // WORDCOMPLETIONUI_UI_H -- 2.11.4.GIT