summaryrefslogtreecommitdiffstats
path: root/kolf/game.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:32:59 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:32:59 -0600
commit2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d (patch)
treeea24a96bad3bb7356ec1a2dca2a1338692d79745 /kolf/game.cpp
parentd6f3812c8d969a673b420beca2482804177704fb (diff)
downloadtdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.tar.gz
tdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kolf/game.cpp')
-rw-r--r--kolf/game.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kolf/game.cpp b/kolf/game.cpp
index 80ede233..e3d455cd 100644
--- a/kolf/game.cpp
+++ b/kolf/game.cpp
@@ -346,12 +346,12 @@ void Bridge::moveBy(double dx, double dy)
}
}
-void Bridge::load(KConfig *cfg)
+void Bridge::load(TDEConfig *cfg)
{
doLoad(cfg);
}
-void Bridge::doLoad(KConfig *cfg)
+void Bridge::doLoad(TDEConfig *cfg)
{
newSize(cfg->readNumEntry("width", width()), cfg->readNumEntry("height", height()));
setTopWallVisible(cfg->readBoolEntry("topWallVisible", topWallVisible()));
@@ -360,12 +360,12 @@ void Bridge::doLoad(KConfig *cfg)
setRightWallVisible(cfg->readBoolEntry("rightWallVisible", rightWallVisible()));
}
-void Bridge::save(KConfig *cfg)
+void Bridge::save(TDEConfig *cfg)
{
doSave(cfg);
}
-void Bridge::doSave(KConfig *cfg)
+void Bridge::doSave(TDEConfig *cfg)
{
cfg->writeEntry("width", width());
cfg->writeEntry("height", height());
@@ -506,7 +506,7 @@ void Windmill::setGame(KolfGame *game)
right->setGame(game);
}
-void Windmill::save(KConfig *cfg)
+void Windmill::save(TDEConfig *cfg)
{
cfg->writeEntry("speed", speed);
cfg->writeEntry("bottom", m_bottom);
@@ -514,7 +514,7 @@ void Windmill::save(KConfig *cfg)
doSave(cfg);
}
-void Windmill::load(KConfig *cfg)
+void Windmill::load(TDEConfig *cfg)
{
setSpeed(cfg->readNumEntry("speed", -1));
@@ -598,7 +598,7 @@ Sign::Sign(TQCanvas *canvas)
setRightWallVisible(true);
}
-void Sign::load(KConfig *cfg)
+void Sign::load(TDEConfig *cfg)
{
m_text = cfg->readEntry("Comment", m_text);
m_untranslatedText = cfg->readEntryUntranslated("Comment", m_untranslatedText);
@@ -606,7 +606,7 @@ void Sign::load(KConfig *cfg)
doLoad(cfg);
}
-void Sign::save(KConfig *cfg)
+void Sign::save(TDEConfig *cfg)
{
cfg->writeEntry("Comment", m_untranslatedText);
@@ -794,7 +794,7 @@ void Ellipse::advance(int phase)
}
}
-void Ellipse::load(KConfig *cfg)
+void Ellipse::load(TDEConfig *cfg)
{
setChangeEnabled(cfg->readBoolEntry("changeEnabled", changeEnabled()));
setChangeEvery(cfg->readNumEntry("changeEvery", changeEvery()));
@@ -804,7 +804,7 @@ void Ellipse::load(KConfig *cfg)
newSize(newWidth, newHeight);
}
-void Ellipse::save(KConfig *cfg)
+void Ellipse::save(TDEConfig *cfg)
{
cfg->writeEntry("changeEvery", changeEvery());
cfg->writeEntry("changeEnabled", changeEnabled());
@@ -1207,7 +1207,7 @@ bool Cup::place(Ball *ball, bool /*wasCenter*/)
return true;
}
-void Cup::save(KConfig *cfg)
+void Cup::save(TDEConfig *cfg)
{
cfg->writeEntry("dummykey", true);
}
@@ -1380,7 +1380,7 @@ void BlackHole::halfway()
playSound("blackhole");
}
-void BlackHole::load(KConfig *cfg)
+void BlackHole::load(TDEConfig *cfg)
{
TQPoint exit = cfg->readPointEntry("exit", &exit);
exitItem->setX(exit.x());
@@ -1421,7 +1421,7 @@ void BlackHole::finishMe()
exitItem->setVisible(true);
}
-void BlackHole::save(KConfig *cfg)
+void BlackHole::save(TDEConfig *cfg)
{
cfg->writeEntry("exit", TQPoint(exitItem->x(), exitItem->y()));
cfg->writeEntry("exitDeg", exitDeg);
@@ -1932,7 +1932,7 @@ bool Wall::collision(Ball *ball, long int id)
return false;
}
-void Wall::load(KConfig *cfg)
+void Wall::load(TDEConfig *cfg)
{
TQPoint start(startPoint());
start = cfg->readPointEntry("startPoint", &start);
@@ -1946,7 +1946,7 @@ void Wall::load(KConfig *cfg)
endItem->move(end.x(), end.y());
}
-void Wall::save(KConfig *cfg)
+void Wall::save(TDEConfig *cfg)
{
cfg->writeEntry("startPoint", TQPoint(startItem->x(), startItem->y()));
cfg->writeEntry("endPoint", TQPoint(endItem->x(), endItem->y()));
@@ -2334,7 +2334,7 @@ void KolfGame::setFilename(const TQString &filename)
{
this->filename = filename;
delete cfg;
- cfg = new KConfig(filename, false, false);
+ cfg = new TDEConfig(filename, false, false);
}
KolfGame::~KolfGame()
@@ -4209,7 +4209,7 @@ void KolfGame::setSound(bool yes)
void KolfGame::courseInfo(CourseInfo &info, const TQString& filename)
{
- KConfig cfg(filename);
+ TDEConfig cfg(filename);
cfg.setGroup("0-course@-50,-50");
info.author = cfg.readEntry("author", info.author);
info.name = cfg.readEntry("Name", cfg.readEntry("name", info.name));
@@ -4236,7 +4236,7 @@ void KolfGame::courseInfo(CourseInfo &info, const TQString& filename)
info.holes = hole;
}
-void KolfGame::scoresFromSaved(KConfig *config, PlayerList &players)
+void KolfGame::scoresFromSaved(TDEConfig *config, PlayerList &players)
{
config->setGroup("0 Saved Game");
int numPlayers = config->readNumEntry("Players", 0);
@@ -4261,7 +4261,7 @@ void KolfGame::scoresFromSaved(KConfig *config, PlayerList &players)
}
}
-void KolfGame::saveScores(KConfig *config)
+void KolfGame::saveScores(TDEConfig *config)
{
// wipe out old player info
TQStringList groups = config->groupList();