summaryrefslogtreecommitdiffstats
path: root/kolf/game.h
diff options
context:
space:
mode:
Diffstat (limited to 'kolf/game.h')
-rw-r--r--kolf/game.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/kolf/game.h b/kolf/game.h
index da5c0beb..ee940802 100644
--- a/kolf/game.h
+++ b/kolf/game.h
@@ -38,7 +38,7 @@ class TQTimer;
class TQKeyEvent;
class TQMouseEvent;
class TQPainter;
-class KConfig;
+class TDEConfig;
class KPrinter;
class KolfGame;
@@ -51,8 +51,8 @@ class Player;
class BallStateInfo
{
public:
- void saveState(KConfig *cfg);
- void loadState(KConfig *cfg);
+ void saveState(TDEConfig *cfg);
+ void loadState(TDEConfig *cfg);
int id;
TQPoint spot;
@@ -178,8 +178,8 @@ public:
virtual void editModeChanged(bool changed);
- virtual void save(KConfig *cfg);
- virtual void load(KConfig *cfg);
+ virtual void save(TDEConfig *cfg);
+ virtual void load(TDEConfig *cfg);
virtual Config *config(TQWidget *parent);
@@ -300,7 +300,7 @@ class Cup : public Hole
public:
Cup(TQCanvas *canvas);
virtual bool place(Ball *ball, bool wasCenter);
- virtual void save(KConfig *cfg);
+ virtual void save(TDEConfig *cfg);
virtual bool canBeMovedByOthers() const { return true; }
virtual void draw(TQPainter &painter);
@@ -384,8 +384,8 @@ public:
virtual void showInfo();
virtual void hideInfo();
virtual bool place(Ball *ball, bool wasCenter);
- virtual void save(KConfig *cfg);
- virtual void load(KConfig *cfg);
+ virtual void save(TDEConfig *cfg);
+ virtual void load(TDEConfig *cfg);
virtual Config *config(TQWidget *parent) { return new BlackHoleConfig(this, parent); }
virtual TQPtrList<TQCanvasItem> moveableItems() const;
double minSpeed() const { return m_minSpeed; }
@@ -438,8 +438,8 @@ public:
virtual void setZ(double newz);
virtual void setPen(TQPen p);
virtual bool collision(Ball *ball, long int id);
- virtual void save(KConfig *cfg);
- virtual void load(KConfig *cfg);
+ virtual void save(TDEConfig *cfg);
+ virtual void load(TDEConfig *cfg);
virtual void selectedItem(TQCanvasItem *item);
virtual void editModeChanged(bool changed);
virtual void moveBy(double dx, double dy);
@@ -574,11 +574,11 @@ public:
virtual void aboutToDie();
virtual void editModeChanged(bool changed);
virtual void moveBy(double dx, double dy);
- virtual void load(KConfig *cfg);
- virtual void save(KConfig *cfg);
+ virtual void load(TDEConfig *cfg);
+ virtual void save(TDEConfig *cfg);
virtual bool vStrut() const { return true; }
- void doLoad(KConfig *cfg);
- void doSave(KConfig *cfg);
+ void doLoad(TDEConfig *cfg);
+ void doSave(TDEConfig *cfg);
virtual void newSize(int width, int height);
virtual void setGame(KolfGame *game);
virtual Config *config(TQWidget *parent) { return new BridgeConfig(this, parent); }
@@ -638,8 +638,8 @@ public:
virtual void draw(TQPainter &painter);
virtual bool vStrut() const { return false; }
virtual Config *config(TQWidget *parent) { return new SignConfig(this, parent); }
- virtual void save(KConfig *cfg);
- virtual void load(KConfig *cfg);
+ virtual void save(TDEConfig *cfg);
+ virtual void load(TDEConfig *cfg);
protected:
TQString m_text;
@@ -685,8 +685,8 @@ public:
Windmill(TQRect rect, TQCanvas *canvas);
virtual void aboutToDie();
virtual void newSize(int width, int height);
- virtual void save(KConfig *cfg);
- virtual void load(KConfig *cfg);
+ virtual void save(TDEConfig *cfg);
+ virtual void load(TDEConfig *cfg);
virtual void setGame(KolfGame *game);
virtual Config *config(TQWidget *parent) { return new WindmillConfig(this, parent); }
void setSize(int width, int height);
@@ -834,7 +834,7 @@ public:
void hidePutter() { putter->setVisible(false); }
void ignoreEvents(bool ignore) { m_ignoreEvents = ignore; }
- static void scoresFromSaved(KConfig *, PlayerList &players);
+ static void scoresFromSaved(TDEConfig *, PlayerList &players);
static void courseInfo(CourseInfo &info, const TQString &filename);
public slots:
@@ -866,7 +866,7 @@ public slots:
void setSound(bool yes);
void undoShot();
void timeout();
- void saveScores(KConfig *);
+ void saveScores(TDEConfig *);
void startFirstHole(int hole);
void sayWhosGoing();
@@ -1013,7 +1013,7 @@ private:
bool infoShown;
- KConfig *cfg;
+ TDEConfig *cfg;
inline void addBorderWall(TQPoint start, TQPoint end);
void shotStart();