diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kspell2/ui/dialog.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
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
Diffstat (limited to 'kspell2/ui/dialog.cpp')
-rw-r--r-- | kspell2/ui/dialog.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
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<TQString, TQString> tqreplaceAllMap; + TQMap<TQString, TQString> 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!!"<<endl; d->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 ); |