diff options
Diffstat (limited to 'klines/klines.cpp')
| -rw-r--r-- | klines/klines.cpp | 28 | 
1 files changed, 14 insertions, 14 deletions
| diff --git a/klines/klines.cpp b/klines/klines.cpp index be076db9..39cf4b71 100644 --- a/klines/klines.cpp +++ b/klines/klines.cpp @@ -80,7 +80,7 @@ KLines::KLines()    statusBar()->insertItem(i18n(" Level: "), 0, 1);    statusBar()->setItemAlignment(0, AlignVCenter | AlignLeft); -  initKAction(); +  initTDEAction();    connect(&demoTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotDemo())); @@ -100,9 +100,9 @@ KLines::~KLines()  }  /* -   Init KAction objects (menubar, toolbar, shortcuts) +   Init TDEAction objects (menubar, toolbar, shortcuts)  */ -void KLines::initKAction() +void KLines::initTDEAction()  {    KStdGameAction::gameNew(TQT_TQOBJECT(this), TQT_SLOT(startGame()), actionCollection());    act_demo = KStdGameAction::demo(TQT_TQOBJECT(this), TQT_SLOT(startDemo()), actionCollection()); @@ -110,10 +110,10 @@ void KLines::initKAction()    KStdGameAction::highscores(TQT_TQOBJECT(this), TQT_SLOT(viewHighScore()), actionCollection());    KStdGameAction::quit(TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection());    endTurnAction = KStdGameAction::endTurn(TQT_TQOBJECT(this), TQT_SLOT(makeTurn()), actionCollection()); -  showNextAction = new KToggleAction(i18n("&Show Next"), KShortcut(CTRL+Key_P), +  showNextAction = new TDEToggleAction(i18n("&Show Next"), TDEShortcut(CTRL+Key_P),                                  TQT_TQOBJECT(this), TQT_SLOT(switchPrompt()), actionCollection(), "options_show_next");    showNextAction->setCheckedState(i18n("Hide Next")); -  showNumberedAction = new KToggleAction(i18n("&Use Numbered Balls"), KShortcut(), +  showNumberedAction = new TDEToggleAction(i18n("&Use Numbered Balls"), TDEShortcut(),                                  TQT_TQOBJECT(this), TQT_SLOT(switchNumbered()), actionCollection(), "options_show_numbered");    undoAction = KStdGameAction::undo(TQT_TQOBJECT(this), TQT_SLOT(undo()), actionCollection()); @@ -128,13 +128,13 @@ void KLines::initKAction()    showNumberedAction->setChecked(Prefs::numberedBalls());    lPrompt->setPrompt(Prefs::showNext()); -  (void)new KAction(i18n("Move Left"), Key_Left, TQT_TQOBJECT(lsb), TQT_SLOT(moveLeft()), actionCollection(), "left"); -  (void)new KAction(i18n("Move Right"), Key_Right, TQT_TQOBJECT(lsb), TQT_SLOT(moveRight()), actionCollection(), "right"); -  (void)new KAction(i18n("Move Up"), Key_Up, TQT_TQOBJECT(lsb), TQT_SLOT(moveUp()), actionCollection(), "up"); -  (void)new KAction(i18n("Move Down"), Key_Down, TQT_TQOBJECT(lsb), TQT_SLOT(moveDown()), actionCollection(), "down"); -  (void)new KAction(i18n("Move Ball"), Key_Space, TQT_TQOBJECT(lsb), TQT_SLOT(placePlayerBall()), actionCollection(), "place_ball"); +  (void)new TDEAction(i18n("Move Left"), Key_Left, TQT_TQOBJECT(lsb), TQT_SLOT(moveLeft()), actionCollection(), "left"); +  (void)new TDEAction(i18n("Move Right"), Key_Right, TQT_TQOBJECT(lsb), TQT_SLOT(moveRight()), actionCollection(), "right"); +  (void)new TDEAction(i18n("Move Up"), Key_Up, TQT_TQOBJECT(lsb), TQT_SLOT(moveUp()), actionCollection(), "up"); +  (void)new TDEAction(i18n("Move Down"), Key_Down, TQT_TQOBJECT(lsb), TQT_SLOT(moveDown()), actionCollection(), "down"); +  (void)new TDEAction(i18n("Move Ball"), Key_Space, TQT_TQOBJECT(lsb), TQT_SLOT(placePlayerBall()), actionCollection(), "place_ball"); -  setupGUI( KMainWindow::Save | Keys | StatusBar | Create ); +  setupGUI( TDEMainWindow::Save | Keys | StatusBar | Create );  }  void KLines::startGame() @@ -421,7 +421,7 @@ void KLines::focusOutEvent(TQFocusEvent *ev)        demoTimer.stop();        statusBar()->changeItem(i18n(" Level: %1").arg(i18n("Tutorial - Paused")), 0);     } -   KMainWindow::focusOutEvent(ev); +   TDEMainWindow::focusOutEvent(ev);  }  void KLines::focusInEvent(TQFocusEvent *ev) @@ -431,7 +431,7 @@ void KLines::focusInEvent(TQFocusEvent *ev)        statusBar()->changeItem(i18n(" Level: %1").arg(levelStr), 0);        slotDemo();     } -   KMainWindow::focusInEvent(ev); +   TDEMainWindow::focusInEvent(ev);  }  void KLines::stopGame() @@ -581,5 +581,5 @@ void KLines::keyPressEvent(TQKeyEvent *e)          startGame();          return;      } -    KMainWindow::keyPressEvent(e); +    TDEMainWindow::keyPressEvent(e);  } | 
