From 2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:32:59 -0600 Subject: Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- kenolaba/AbTop.cpp | 16 ++++++++-------- kenolaba/AbTop.h | 8 ++++---- kenolaba/Board.h | 2 +- kenolaba/EvalDlgImpl.cpp | 8 ++++---- kenolaba/EvalScheme.cpp | 4 ++-- kenolaba/EvalScheme.h | 6 +++--- 6 files changed, 22 insertions(+), 22 deletions(-) (limited to 'kenolaba') diff --git a/kenolaba/AbTop.cpp b/kenolaba/AbTop.cpp index 8dc0b878..6ec4cc0f 100644 --- a/kenolaba/AbTop.cpp +++ b/kenolaba/AbTop.cpp @@ -244,7 +244,7 @@ void AbTop::readConfig() { kdDebug(12011) << "Reading config..." << endl; - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); config->setGroup("Options"); readOptions(config); @@ -258,7 +258,7 @@ void AbTop::readConfig() board->setEvalScheme( currentEvalScheme ); } -void AbTop::readOptions(KConfig* config) +void AbTop::readOptions(TDEConfig* config) { TQString entry = config->readEntry("Level"); for (uint i=0; isetChecked( showSpy ); } -void AbTop::readProperties(KConfig *config) +void AbTop::readProperties(TDEConfig *config) { TQString entry; @@ -312,7 +312,7 @@ void AbTop::writeConfig() { kdDebug(12011) << "Writing config..." << endl; - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); config->setGroup("Options"); writeOptions(config); @@ -325,7 +325,7 @@ void AbTop::writeConfig() } -void AbTop::writeOptions(KConfig *config) +void AbTop::writeOptions(TDEConfig *config) { config->writeEntry("Level", LEVEL[levelAction->currentItem()].key); config->writeEntry("Computer", IPLAY[iplayAction->currentItem()].key); @@ -335,7 +335,7 @@ void AbTop::writeOptions(KConfig *config) config->writeEntry("ShowSpy", showSpy); } -void AbTop::saveProperties(KConfig *config) +void AbTop::saveProperties(TDEConfig *config) { writeOptions(config); if (currentEvalScheme) @@ -352,14 +352,14 @@ void AbTop::saveProperties(KConfig *config) void AbTop::savePosition() { - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); config->setGroup("SavedPosition"); config->writeEntry("Position", board->getState(moveNo)); } void AbTop::restorePosition() { - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); config->setGroup("SavedPosition"); TQString entry = config->readEntry("Position"); diff --git a/kenolaba/AbTop.h b/kenolaba/AbTop.h index f0406980..4538cd94 100644 --- a/kenolaba/AbTop.h +++ b/kenolaba/AbTop.h @@ -49,8 +49,8 @@ public: void netHost(char* h) { hosts.append(h); } protected: - virtual void saveProperties( KConfig * ); - virtual void readProperties( KConfig * ); + virtual void saveProperties( TDEConfig * ); + virtual void readProperties( TDEConfig * ); public slots: @@ -99,8 +99,8 @@ private: void setMoveNo(int, bool updateGUI = false); bool iPlayNow(); Move haveHint(); - void readOptions(KConfig *); - void writeOptions(KConfig *); + void readOptions(TDEConfig *); + void writeOptions(TDEConfig *); Move actMove; Board* board; diff --git a/kenolaba/Board.h b/kenolaba/Board.h index a4568f7e..bbe794d6 100644 --- a/kenolaba/Board.h +++ b/kenolaba/Board.h @@ -10,7 +10,7 @@ #include #include "Move.h" -class KConfig; +class TDEConfig; class EvalScheme; /* Class for best moves so far */ diff --git a/kenolaba/EvalDlgImpl.cpp b/kenolaba/EvalDlgImpl.cpp index 9efc5bea..453dd0ea 100644 --- a/kenolaba/EvalDlgImpl.cpp +++ b/kenolaba/EvalDlgImpl.cpp @@ -30,7 +30,7 @@ EvalDlgImpl::EvalDlgImpl(TQWidget* parent, Board* board) connect( evalSaveAs, TQT_SIGNAL( clicked() ), this, TQT_SLOT( saveas() ) ); connect( evalList, TQT_SIGNAL( highlighted(int) ), this, TQT_SLOT( select(int) ) ); - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); config->setGroup("General"); TQStringList list = config->readListEntry("EvalSchemes"); evalList->insertItem( i18n("Current") ); @@ -235,7 +235,7 @@ void EvalDlgImpl::deleteEntry() TQString name = evalList->text(i); evalList->removeItem(i); - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); config->setGroup("General"); TQStringList list = config->readListEntry("EvalSchemes"); list.remove(name); @@ -251,7 +251,7 @@ void EvalDlgImpl::saveas() if (dlg.exec()) { TQString name=dlg.text(); - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); config->setGroup("General"); TQStringList list = config->readListEntry("EvalSchemes"); TQListBoxItem *it = evalList->findItem(name); @@ -286,7 +286,7 @@ void EvalDlgImpl::select(int i) else { // read in the Scheme from the config file _scheme = new EvalScheme(name); - KConfig* config = kapp->config(); + TDEConfig* config = kapp->config(); _scheme->read(config); } diff --git a/kenolaba/EvalScheme.cpp b/kenolaba/EvalScheme.cpp index d884f398..7e15bf48 100644 --- a/kenolaba/EvalScheme.cpp +++ b/kenolaba/EvalScheme.cpp @@ -74,7 +74,7 @@ void EvalScheme::setDefaults() } -void EvalScheme::read(KConfig *config) +void EvalScheme::read(TDEConfig *config) { TQString confSection = TQString("%1 Evaluation Scheme").arg(_name); config->setGroup(confSection); @@ -115,7 +115,7 @@ void EvalScheme::read(KConfig *config) } -void EvalScheme::save(KConfig* config) +void EvalScheme::save(TDEConfig* config) { TQString confSection = TQString("%1 Evaluation Scheme").arg(_name); config->setGroup(confSection); diff --git a/kenolaba/EvalScheme.h b/kenolaba/EvalScheme.h index 3a9982c5..a968df07 100644 --- a/kenolaba/EvalScheme.h +++ b/kenolaba/EvalScheme.h @@ -14,7 +14,7 @@ #include "Move.h" -class KConfig; +class TDEConfig; /* * The constructor gets a name, and tries to read the scheme @@ -30,8 +30,8 @@ class EvalScheme ~EvalScheme() {} void setDefaults(); - void read(KConfig*); - void save(KConfig*); + void read(TDEConfig*); + void save(TDEConfig*); static EvalScheme* create(TQString); TQString ascii(); -- cgit v1.2.1