summaryrefslogtreecommitdiffstats
path: root/kate/part/katespell.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/part/katespell.cpp')
-rw-r--r--kate/part/katespell.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kate/part/katespell.cpp b/kate/part/katespell.cpp
index 6ce2b2a72..77e693fa6 100644
--- a/kate/part/katespell.cpp
+++ b/kate/part/katespell.cpp
@@ -28,7 +28,7 @@
#include <kaction.h>
#include <kstdaction.h>
-#include <kspell.h>
+#include <tdespell.h>
#include <ksconfig.h>
#include <kdebug.h>
#include <kmessagebox.h>
@@ -36,18 +36,18 @@
KateSpell::KateSpell( KateView* view )
: TQObject( view )
, m_view (view)
- , m_kspell (0)
+ , m_tdespell (0)
{
}
KateSpell::~KateSpell()
{
- // kspell stuff
- if( m_kspell )
+ // tdespell stuff
+ if( m_tdespell )
{
- m_kspell->setAutoDelete(true);
- m_kspell->cleanUp(); // need a way to wait for this to complete
- delete m_kspell;
+ m_tdespell->setAutoDelete(true);
+ m_tdespell->cleanUp(); // need a way to wait for this to complete
+ delete m_tdespell;
}
}
@@ -122,27 +122,27 @@ void KateSpell::spellcheck( const KateTextCursor &from, const KateTextCursor &to
else
kdDebug(13020)<<"KateSpell::spellCheck(): using encoding: "<<enc<<" and KSpell::Type "<<type<<" (for '"<<mt<<"')"<<endl;
- m_kspell = new KSpell( m_view, i18n("Spellcheck"),
+ m_tdespell = new KSpell( m_view, i18n("Spellcheck"),
this, TQT_SLOT(ready(KSpell *)), ksc, true, true, type );
- connect( m_kspell, TQT_SIGNAL(death()),
+ connect( m_tdespell, TQT_SIGNAL(death()),
this, TQT_SLOT(spellCleanDone()) );
- connect( m_kspell, TQT_SIGNAL(misspelling(const TQString&, const TQStringList&, unsigned int)),
+ connect( m_tdespell, TQT_SIGNAL(misspelling(const TQString&, const TQStringList&, unsigned int)),
this, TQT_SLOT(misspelling(const TQString&, const TQStringList&, unsigned int)) );
- connect( m_kspell, TQT_SIGNAL(corrected(const TQString&, const TQString&, unsigned int)),
+ connect( m_tdespell, TQT_SIGNAL(corrected(const TQString&, const TQString&, unsigned int)),
this, TQT_SLOT(corrected(const TQString&, const TQString&, unsigned int)) );
- connect( m_kspell, TQT_SIGNAL(done(const TQString&)),
+ connect( m_tdespell, TQT_SIGNAL(done(const TQString&)),
this, TQT_SLOT(spellResult(const TQString&)) );
}
void KateSpell::ready(KSpell *)
{
- m_kspell->setProgressResolution( 1 );
+ m_tdespell->setProgressResolution( 1 );
- m_kspell->check( m_view->doc()->text( m_spellStart.line(), m_spellStart.col(), m_spellEnd.line(), m_spellEnd.col() ) );
+ m_tdespell->check( m_view->doc()->text( m_spellStart.line(), m_spellStart.col(), m_spellEnd.line(), m_spellEnd.col() ) );
- kdDebug (13020) << "SPELLING READY STATUS: " << m_kspell->status () << endl;
+ kdDebug (13020) << "SPELLING READY STATUS: " << m_tdespell->status () << endl;
}
void KateSpell::locatePosition( uint pos, uint& line, uint& col )
@@ -193,12 +193,12 @@ void KateSpell::corrected( const TQString& originalword, const TQString& newword
void KateSpell::spellResult( const TQString& )
{
m_view->clearSelection();
- m_kspell->cleanUp();
+ m_tdespell->cleanUp();
}
void KateSpell::spellCleanDone()
{
- KSpell::spellStatus status = m_kspell->status();
+ KSpell::spellStatus status = m_tdespell->status();
if( status == KSpell::Error ) {
KMessageBox::sorry( 0,
@@ -210,8 +210,8 @@ void KateSpell::spellCleanDone()
i18n("The spelling program seems to have crashed."));
}
- delete m_kspell;
- m_kspell = 0;
+ delete m_tdespell;
+ m_tdespell = 0;
kdDebug (13020) << "SPELLING END" << endl;
}