From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kspell2/ui/configui.ui | 4 ++-- kspell2/ui/configwidget.cpp | 4 ++-- kspell2/ui/dialog.cpp | 32 ++++++++++++++++---------------- kspell2/ui/dialog.h | 4 ++-- kspell2/ui/highlighter.cpp | 2 +- kspell2/ui/kspell2ui.ui | 40 ++++++++++++++++++++-------------------- 6 files changed, 43 insertions(+), 43 deletions(-) (limited to 'kspell2/ui') diff --git a/kspell2/ui/configui.ui b/kspell2/ui/configui.ui index 9ab8f8e62..bf645b9c9 100644 --- a/kspell2/ui/configui.ui +++ b/kspell2/ui/configui.ui @@ -6,7 +6,7 @@ KSpell2ConfigUI - + 0 0 @@ -105,7 +105,7 @@ keditlistbox.h kcombobox.h - + kcombobox.h keditlistbox.h diff --git a/kspell2/ui/configwidget.cpp b/kspell2/ui/configwidget.cpp index 65db6dd9d..6d98955ae 100644 --- a/kspell2/ui/configwidget.cpp +++ b/kspell2/ui/configwidget.cpp @@ -56,7 +56,7 @@ void ConfigWidget::init( Broker *broker ) d = new Private; d->broker = broker; - TQVBoxLayout *tqlayout = new TQVBoxLayout( this, 0, 0, "KSpell2ConfigUILayout"); + TQVBoxLayout *layout = new TQVBoxLayout( this, 0, 0, "KSpell2ConfigUILayout"); d->ui = new KSpell2ConfigUI( this ); TQStringList langs = d->broker->languages(); @@ -73,7 +73,7 @@ void ConfigWidget::init( Broker *broker ) d->ui->m_bgSpellCB->hide();//hidden by default connect( d->ui->m_ignoreListBox, TQT_SIGNAL(changed()), TQT_SLOT(slotChanged()) ); - tqlayout->addWidget( d->ui ); + layout->addWidget( d->ui ); } void KSpell2::ConfigWidget::save() diff --git a/kspell2/ui/dialog.cpp b/kspell2/ui/dialog.cpp index 18641a986..93b81fd94 100644 --- a/kspell2/ui/dialog.cpp +++ b/kspell2/ui/dialog.cpp @@ -53,7 +53,7 @@ public: BackgroundChecker *checker; Word currentWord; - TQMap tqreplaceAllMap; + TQMap replaceAllMap; }; Dialog::Dialog( BackgroundChecker *checker, @@ -81,9 +81,9 @@ void Dialog::initConnections() { connect( d->ui->m_addBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddWord()) ); - connect( d->ui->m_tqreplaceBtn, TQT_SIGNAL(clicked()), + connect( d->ui->m_replaceBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotReplaceWord()) ); - connect( d->ui->m_tqreplaceAllBtn, TQT_SIGNAL(clicked()), + connect( d->ui->m_replaceAllBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotReplaceAll()) ); connect( d->ui->m_skipBtn, TQT_SIGNAL(clicked()), TQT_SLOT(slotSkip()) ); @@ -105,7 +105,7 @@ void Dialog::initConnections() TQT_SLOT( slotReplaceWord() ) ); connect( this, TQT_SIGNAL(user1Clicked()), this, TQT_SLOT(slotFinished()) ); connect( this, TQT_SIGNAL(cancelClicked()),this, TQT_SLOT(slotCancel()) ); - connect( d->ui->m_tqreplacement, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotReplaceWord()) ); + connect( d->ui->m_replacement, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotReplaceWord()) ); connect( d->ui->m_autoCorrect, TQT_SIGNAL(clicked()), TQT_SLOT(slotAutocorrect()) ); // button use by kword/kpresenter @@ -139,7 +139,7 @@ void Dialog::activeAutoCorrect( bool _active ) void Dialog::slotAutocorrect() { kdDebug()<<"void Dialog::slotAutocorrect()\n"; - emit autoCorrect(d->currentWord.word, d->ui->m_tqreplacement->text() ); + emit autoCorrect(d->currentWord.word, d->ui->m_replacement->text() ); slotReplaceWord(); } @@ -185,7 +185,7 @@ void Dialog::updateDialog( const TQString& word ) d->ui->m_unknownWord->setText( word ); d->ui->m_contextLabel->setText( d->checker->filter()->context() ); TQStringList suggs = d->checker->suggest( word ); - d->ui->m_tqreplacement->setText( suggs.first() ); + d->ui->m_replacement->setText( suggs.first() ); fillSuggestions( suggs ); } @@ -206,16 +206,16 @@ void Dialog::slotAddWord() void Dialog::slotReplaceWord() { - emit tqreplace( d->currentWord.word, d->currentWord.start, - d->ui->m_tqreplacement->text() ); - d->checker->filter()->tqreplace( d->currentWord, d->ui->m_tqreplacement->text() ); + emit replace( d->currentWord.word, d->currentWord.start, + d->ui->m_replacement->text() ); + d->checker->filter()->replace( d->currentWord, d->ui->m_replacement->text() ); d->checker->continueChecking(); } void Dialog::slotReplaceAll() { - d->tqreplaceAllMap.insert( d->currentWord.word, - d->ui->m_tqreplacement->text() ); + d->replaceAllMap.insert( d->currentWord.word, + d->ui->m_replacement->text() ); slotReplaceWord(); } @@ -227,13 +227,13 @@ void Dialog::slotSkip() void Dialog::slotSkipAll() { //### do we want that or should we have a d->ignoreAll list? - d->checker->broker()->settings()->addWordToIgnore( d->ui->m_tqreplacement->text() ); + d->checker->broker()->settings()->addWordToIgnore( d->ui->m_replacement->text() ); d->checker->continueChecking(); } void Dialog::slotSuggest() { - TQStringList suggs = d->checker->suggest( d->ui->m_tqreplacement->text() ); + TQStringList suggs = d->checker->suggest( d->ui->m_replacement->text() ); fillSuggestions( suggs ); } @@ -245,7 +245,7 @@ void Dialog::slotChangeLanguage( const TQString& lang ) void Dialog::slotSelectionChanged( TQListViewItem *item ) { - d->ui->m_tqreplacement->setText( item->text( 0 ) ); + d->ui->m_replacement->setText( item->text( 0 ) ); } void Dialog::fillSuggestions( const TQStringList& suggs ) @@ -261,8 +261,8 @@ void Dialog::slotMisspelling(const TQString& word, int start ) { kdDebug()<<"Dialog misspelling!!"<currentWord = Word( word, start ); - if ( d->tqreplaceAllMap.tqcontains( word ) ) { - d->ui->m_tqreplacement->setText( d->tqreplaceAllMap[ word ] ); + if ( d->replaceAllMap.contains( word ) ) { + d->ui->m_replacement->setText( d->replaceAllMap[ word ] ); slotReplaceWord(); } else { updateDialog( word ); diff --git a/kspell2/ui/dialog.h b/kspell2/ui/dialog.h index cee715b48..1da714c7c 100644 --- a/kspell2/ui/dialog.h +++ b/kspell2/ui/dialog.h @@ -49,12 +49,12 @@ namespace KSpell2 signals: void done( const TQString& newBuffer ); void misspelling( const TQString& word, int start ); - void tqreplace( const TQString& oldWord, int start, + void replace( const TQString& oldWord, int start, const TQString& newWord ); void stop(); void cancel(); - void autoCorrect( const TQString & currentWord, const TQString & tqreplaceWord ); + void autoCorrect( const TQString & currentWord, const TQString & replaceWord ); private slots: void slotMisspelling(const TQString& word, int start ); void slotDone(); diff --git a/kspell2/ui/highlighter.cpp b/kspell2/ui/highlighter.cpp index a3c33d7ae..2d185462d 100644 --- a/kspell2/ui/highlighter.cpp +++ b/kspell2/ui/highlighter.cpp @@ -110,7 +110,7 @@ TQString Highlighter::currentLanguage() const void Highlighter::setCurrentLanguage( const TQString& lang ) { - if ( !d->dictCache.tqfind( lang ) ) { + if ( !d->dictCache.find( lang ) ) { Dictionary *dict = d->broker->dictionary( lang ); if ( dict ) { d->dictCache.insert( lang, dict ); diff --git a/kspell2/ui/kspell2ui.ui b/kspell2/ui/kspell2ui.ui index 1822ef4b9..b8870f2f5 100644 --- a/kspell2/ui/kspell2ui.ui +++ b/kspell2/ui/kspell2ui.ui @@ -4,7 +4,7 @@ KSpell2UI - + 0 0 @@ -20,7 +20,7 @@ 0 - + 430 300 @@ -40,7 +40,7 @@ <qt><p>This word was considered to be an "unknown word" because it does not match any entry in the dictionary currently in use. It may also be a word in a foreign language.</p> <p>If the word is not misspelled, you may add it to the dictionary by clicking <b>Add to Dictionary</b>. If you don't want to add the unknown word to the dictionary, but you want to leave it unchanged, click <b>Ignore</b> or <b>Ignore All</b>.</p> -<p>However, if the word is misspelled, you can try to tqfind the correct tqreplacement in the list below. If you cannot tqfind a tqreplacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> +<p>However, if the word is misspelled, you can try to find the correct replacement in the list below. If you cannot find a replacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> </qt> @@ -57,7 +57,7 @@ <qt><p>This word was considered to be an "unknown word" because it does not match any entry in the dictionary currently in use. It may also be a word in a foreign language.</p> <p>If the word is not misspelled, you may add it to the dictionary by clicking <b>Add to Dictionary</b>. If you don't want to add the unknown word to the dictionary, but you want to leave it unchanged, click <b>Ignore</b> or <b>Ignore All</b>.</p> -<p>However, if the word is misspelled, you can try to tqfind the correct tqreplacement in the list below. If you cannot tqfind a tqreplacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> +<p>However, if the word is misspelled, you can try to find the correct replacement in the list below. If you cannot find a replacement there, you may type it in the text box below, and click <b>Replace</b> or <b>Replace All</b>.</p> </qt> @@ -87,7 +87,7 @@ ... the <b>misspelled</b> word shown in context ... - + WordBreak|AlignCenter @@ -95,7 +95,7 @@ <qt> -<p>Here you can see a text excerpt showing the unknown word in its context. If this information is not sufficient to choose the best tqreplacement for the unknown word, you can click on the document you are proofing, read a larger part of the text and then return here to continue proofing.</p> +<p>Here you can see a text excerpt showing the unknown word in its context. If this information is not sufficient to choose the best replacement for the unknown word, you can click on the document you are proofing, read a larger part of the text and then return here to continue proofing.</p> </qt> @@ -123,7 +123,7 @@ Click here if you consider that the unknown word is not misspelled and you want Expanding - + 74 20 @@ -153,7 +153,7 @@ Click here if you consider that the unknown word is not misspelled and you want <qt> -<p>If the unknown word is misspelled, you should check if the correction for it is available and if it is, click on it. If none of the words in this list is a good tqreplacement you may type the correct word in the edit box above.</p> +<p>If the unknown word is misspelled, you should check if the correction for it is available and if it is, click on it. If none of the words in this list is a good replacement you may type the correct word in the edit box above.</p> <p>To correct this word click <b>Replace</b> if you want to correct only this occurrence or <b>Replace All</b> if you want to correct all occurrences.</p> </qt> @@ -166,7 +166,7 @@ Click here if you consider that the unknown word is not misspelled and you want Replace &with: - m_tqreplacement + m_replacement <qt> @@ -177,7 +177,7 @@ Click here if you consider that the unknown word is not misspelled and you want - m_tqreplacement + m_replacement <qt> @@ -206,7 +206,7 @@ Click here if you consider that the unknown word is not misspelled and you want - tqlayout1 + layout1 @@ -222,27 +222,27 @@ Click here if you consider that the unknown word is not misspelled and you want - m_tqreplaceBtn + m_replaceBtn &Replace <qt> -<p>Click here to tqreplace this occurrence of the unknown text with the text in the edit box above (to the left).</p> +<p>Click here to replace this occurrence of the unknown text with the text in the edit box above (to the left).</p> </qt> - m_tqreplaceAllBtn + m_replaceAllBtn R&eplace All <qt> -<p>Click here to tqreplace all occurrences of the unknown text with the text in the edit box above (to the left).</p> +<p>Click here to replace all occurrences of the unknown text with the text in the edit box above (to the left).</p> </qt> @@ -298,7 +298,7 @@ Click here if you consider that the unknown word is not misspelled and you want Expanding - + 20 20 @@ -311,14 +311,14 @@ Click here if you consider that the unknown word is not misspelled and you want m_addBtn - m_tqreplacement + m_replacement m_suggestBtn - m_tqreplaceBtn - m_tqreplaceAllBtn + m_replaceBtn + m_replaceAllBtn m_skipBtn m_skipAllBtn m_suggestions m_language - + -- cgit v1.2.1