summaryrefslogtreecommitdiffstats
path: root/kenolaba
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-25 00:32:59 -0600
committerTimothy Pearson <[email protected]>2013-01-25 00:32:59 -0600
commit2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d (patch)
treeea24a96bad3bb7356ec1a2dca2a1338692d79745 /kenolaba
parentd6f3812c8d969a673b420beca2482804177704fb (diff)
downloadtdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.tar.gz
tdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kenolaba')
-rw-r--r--kenolaba/AbTop.cpp16
-rw-r--r--kenolaba/AbTop.h8
-rw-r--r--kenolaba/Board.h2
-rw-r--r--kenolaba/EvalDlgImpl.cpp8
-rw-r--r--kenolaba/EvalScheme.cpp4
-rw-r--r--kenolaba/EvalScheme.h6
6 files changed, 22 insertions, 22 deletions
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; i<Nb_Levels; i++)
@@ -280,7 +280,7 @@ void AbTop::readOptions(KConfig* config)
showSpyAction->setChecked( 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 <krandomsequence.h>
#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();