diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:18:06 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-26 13:18:06 -0600 |
commit | 79fd2b2bbd9f842ce3c84c67e3314033a9cceea4 (patch) | |
tree | d6d2174614dc2384de6f77a930aaf3d06b276fae /kedit | |
parent | c3e3301aba81e1c1771fa309941888a8b0fb59bc (diff) | |
download | tdeutils-79fd2b2bbd9f842ce3c84c67e3314033a9cceea4.tar.gz tdeutils-79fd2b2bbd9f842ce3c84c67e3314033a9cceea4.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kedit')
-rw-r--r-- | kedit/kedit.cpp | 44 | ||||
-rw-r--r-- | kedit/kedit.h | 4 |
2 files changed, 24 insertions, 24 deletions
diff --git a/kedit/kedit.cpp b/kedit/kedit.cpp index 309dab9..f3a0cb4 100644 --- a/kedit/kedit.cpp +++ b/kedit/kedit.cpp @@ -44,7 +44,7 @@ #include <kprinter.h> #include <ksavefile.h> #include <kstatusbar.h> -#include <kspell.h> +#include <tdespell.h> #include <kurldrag.h> #include "ktextfiledlg.h" @@ -61,8 +61,8 @@ TQPtrList<TopLevel> *TopLevel::windowList = 0; int default_open = TopLevel::OPEN_READWRITE; TopLevel::TopLevel (TQWidget *, const char *name) - : KMainWindow ( 0,name ), kspellconfigOptions(0), - eframe(0), newWindow(false), kspell(0) + : KMainWindow ( 0,name ), tdespellconfigOptions(0), + eframe(0), newWindow(false), tdespell(0) { if (!windowList) { @@ -385,24 +385,24 @@ void TopLevel::spellcheck() { if (!eframe) return; - if (kspell) return; // In progress + if (tdespell) return; // In progress statusBar()->changeItem(i18n("Spellcheck: Started."), ID_GENERAL); initSpellConfig(); - kspell = new KSpell(this, i18n("Spellcheck"), TQT_TQOBJECT(this), - TQT_SLOT( spell_started(KSpell *)), kspellconfigOptions); + tdespell = new KSpell(this, i18n("Spellcheck"), TQT_TQOBJECT(this), + TQT_SLOT( spell_started(KSpell *)), tdespellconfigOptions); - connect (kspell, TQT_SIGNAL ( death()), + connect (tdespell, TQT_SIGNAL ( death()), this, TQT_SLOT ( spell_finished( ))); - connect (kspell, TQT_SIGNAL (progress (unsigned int)), + connect (tdespell, TQT_SIGNAL (progress (unsigned int)), this, TQT_SLOT (spell_progress (unsigned int))); - connect (kspell, TQT_SIGNAL (misspelling (const TQString &, const TQStringList &, unsigned int)), + connect (tdespell, TQT_SIGNAL (misspelling (const TQString &, const TQStringList &, unsigned int)), eframe, TQT_SLOT (misspelling (const TQString &, const TQStringList &, unsigned int))); - connect (kspell, TQT_SIGNAL (corrected (const TQString &, const TQString &, unsigned int)), + connect (tdespell, TQT_SIGNAL (corrected (const TQString &, const TQString &, unsigned int)), eframe, TQT_SLOT (corrected (const TQString &, const TQString &, unsigned int))); - connect (kspell, TQT_SIGNAL (done(const TQString&)), + connect (tdespell, TQT_SIGNAL (done(const TQString&)), this, TQT_SLOT (spell_done(const TQString&))); } @@ -410,8 +410,8 @@ void TopLevel::spellcheck() void TopLevel::spell_started( KSpell *) { eframe->spellcheck_start(); - kspell->setProgressResolution(2); - kspell->check(eframe->text()); + tdespell->setProgressResolution(2); + tdespell->check(eframe->text()); } @@ -427,7 +427,7 @@ void TopLevel::spell_progress (unsigned int percent) void TopLevel::spell_done(const TQString& newtext) { eframe->spellcheck_stop(); - if (kspell->dlgResult() == 0) + if (tdespell->dlgResult() == 0) { eframe->setText( newtext); statusBar()->changeItem (i18n("Spellcheck: Aborted."), ID_GENERAL); @@ -436,7 +436,7 @@ void TopLevel::spell_done(const TQString& newtext) { statusBar()->changeItem (i18n("Spellcheck: Complete."), ID_GENERAL); } - kspell->cleanUp(); + tdespell->cleanUp(); } // Replace ISpell with the name of the actual spell checker. @@ -455,10 +455,10 @@ TQString TopLevel::replaceISpell(TQString msg, int client) void TopLevel::spell_finished( ) { - KSpell::spellStatus status = kspell->status(); - int client = kspellconfigOptions->client(); - delete kspell; - kspell = 0; + KSpell::spellStatus status = tdespell->status(); + int client = tdespellconfigOptions->client(); + delete tdespell; + tdespell = 0; if (status == KSpell::Error) { KMessageBox::sorry(this, replaceISpell(i18n("ISpell could not be started.\n" @@ -831,7 +831,7 @@ void TopLevel::showSettings() return; initSpellConfig(); - TDEConfigDialog* dialog = new SettingsDialog(this, "settings", Prefs::self(), kspellconfigOptions); + TDEConfigDialog* dialog = new SettingsDialog(this, "settings", Prefs::self(), tdespellconfigOptions); connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(updateSettings())); dialog->show(); @@ -839,8 +839,8 @@ void TopLevel::showSettings() void TopLevel::initSpellConfig() { - if (!kspellconfigOptions) - kspellconfigOptions = new KSpellConfig(0 , "SpellingSettings", 0, false ); + if (!tdespellconfigOptions) + tdespellconfigOptions = new KSpellConfig(0 , "SpellingSettings", 0, false ); } void TopLevel::search_again() diff --git a/kedit/kedit.h b/kedit/kedit.h index 56c4ccd..b931615 100644 --- a/kedit/kedit.h +++ b/kedit/kedit.h @@ -117,7 +117,7 @@ protected: void initSpellConfig(); private: - KSpellConfig *kspellconfigOptions; + KSpellConfig *tdespellconfigOptions; public: // Should not be! KEdit *eframe; @@ -138,7 +138,7 @@ private: TDEConfig *config; - KSpell *kspell; // Current spell checking object + KSpell *tdespell; // Current spell checking object /* * The source, the destination of the copy, and the open mode |