diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:12:46 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:12:46 -0600 |
commit | 58a97ed3af5e4df6c4a58d043b0c267bd97056a9 (patch) | |
tree | 5a2fde6842fd422cae2d8670d382be965098cc32 /kenolaba | |
parent | 2ce15ee76fd2d9d18a63c035a0f5b00b94c60cdc (diff) | |
download | tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.tar.gz tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kenolaba')
-rw-r--r-- | kenolaba/AbTop.cpp | 36 | ||||
-rw-r--r-- | kenolaba/AbTop.h | 14 | ||||
-rw-r--r-- | kenolaba/ChangeLog | 2 | ||||
-rw-r--r-- | kenolaba/kenolaba.cpp | 2 |
4 files changed, 27 insertions, 27 deletions
diff --git a/kenolaba/AbTop.cpp b/kenolaba/AbTop.cpp index beec2d5a..e58d53bd 100644 --- a/kenolaba/AbTop.cpp +++ b/kenolaba/AbTop.cpp @@ -47,7 +47,7 @@ const AbTop::Data AbTop::IPLAY[Nb_IPlays] = { }; AbTop::AbTop() - :KMainWindow(0) + :TDEMainWindow(0) { timerState = noGame; @@ -135,15 +135,15 @@ void AbTop::setupActions() newAction = KStdGameAction::gameNew( TQT_TQOBJECT(this), TQT_SLOT(newGame()), actionCollection() ); KStdGameAction::quit( TQT_TQOBJECT(this), TQT_SLOT(close()), actionCollection() ); - stopAction = new KAction( i18n("&Stop Search"), "stop", Key_S, TQT_TQOBJECT(this), + stopAction = new TDEAction( i18n("&Stop Search"), "stop", Key_S, TQT_TQOBJECT(this), TQT_SLOT(stopSearch()), actionCollection(), "move_stop"); - backAction = new KAction( i18n("Take &Back"), "back", - KStdAccel::shortcut(KStdAccel::Prior), TQT_TQOBJECT(this), + backAction = new TDEAction( i18n("Take &Back"), "back", + TDEStdAccel::shortcut(TDEStdAccel::Prior), TQT_TQOBJECT(this), TQT_SLOT(back()), actionCollection(), "move_back"); - forwardAction = new KAction( i18n("&Forward"), "forward", - KStdAccel::shortcut(KStdAccel::Next), TQT_TQOBJECT(this), + forwardAction = new TDEAction( i18n("&Forward"), "forward", + TDEStdAccel::shortcut(TDEStdAccel::Next), TQT_TQOBJECT(this), TQT_SLOT(forward()), actionCollection(), "move_forward"); hintAction = KStdGameAction::hint(TQT_TQOBJECT(this), TQT_SLOT(suggestion()), actionCollection()); @@ -151,23 +151,23 @@ void AbTop::setupActions() KStdAction::copy( TQT_TQOBJECT(this), TQT_SLOT(copy()), actionCollection()); pasteAction = KStdAction::paste( TQT_TQOBJECT(this), TQT_SLOT(paste()), actionCollection()); - (void) new KAction( i18n("&Restore Position"), - KStdAccel::shortcut(KStdAccel::Open), + (void) new TDEAction( i18n("&Restore Position"), + TDEStdAccel::shortcut(TDEStdAccel::Open), TQT_TQOBJECT(this), TQT_SLOT(restorePosition()), actionCollection(), "edit_restore" ); - (void) new KAction( i18n("&Save Position"), - KStdAccel::shortcut(KStdAccel::Save), + (void) new TDEAction( i18n("&Save Position"), + TDEStdAccel::shortcut(TDEStdAccel::Save), TQT_TQOBJECT(this), TQT_SLOT(savePosition()), actionCollection(), "edit_save" ); - KToggleAction *ta; + TDEToggleAction *ta; - ta = new KToggleAction( i18n("&Network Play"), "network", Key_N, + ta = new TDEToggleAction( i18n("&Network Play"), "network", Key_N, actionCollection(), "game_net"); connect(ta, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(gameNetwork(bool))); - editAction = new KToggleAction( i18n("&Modify"), "edit", + editAction = new TDEToggleAction( i18n("&Modify"), "edit", CTRL+Key_Insert, actionCollection(), "edit_modify"); connect(editAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT( editModify(bool))); @@ -176,15 +176,15 @@ void AbTop::setupActions() KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT(configure()), actionCollection()); - moveSlowAction = new KToggleAction( i18n("&Move Slow"), 0, + moveSlowAction = new TDEToggleAction( i18n("&Move Slow"), 0, actionCollection(), "options_moveSlow"); connect(moveSlowAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(optionMoveSlow(bool))); - renderBallsAction = new KToggleAction( i18n("&Render Balls"), 0, + renderBallsAction = new TDEToggleAction( i18n("&Render Balls"), 0, actionCollection(), "options_renderBalls"); connect(renderBallsAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(optionRenderBalls(bool))); - showSpyAction = new KToggleAction( i18n("&Spy"), 0, + showSpyAction = new TDEToggleAction( i18n("&Spy"), 0, actionCollection(), "options_showSpy"); connect(showSpyAction, TQT_SIGNAL(toggled(bool)), TQT_TQOBJECT(this), TQT_SLOT(optionShowSpy(bool))); @@ -196,7 +196,7 @@ void AbTop::setupActions() levelAction->setItems(list); connect(levelAction, TQT_SIGNAL(activated(int)), TQT_SLOT(setLevel(int))); - iplayAction = new KSelectAction(i18n("&Computer Play"), 0, actionCollection(), "options_iplay"); + iplayAction = new TDESelectAction(i18n("&Computer Play"), 0, actionCollection(), "options_iplay"); list.clear(); for (uint i=0; i<Nb_IPlays; i++) list.append( i18n(IPLAY[i].label) ); @@ -410,7 +410,7 @@ void AbTop::setupStatusBar() #ifdef MYTRACE /* Create a toolbar menu for debugging output level */ - KToolBar *tb = toolBar("mainToolBar"); + TDEToolBar *tb = toolBar("mainToolBar"); if (tb) { TQPopupMenu* spyPopup = new TQPopupMenu; spy0 = BarIcon( "spy0" ); diff --git a/kenolaba/AbTop.h b/kenolaba/AbTop.h index 4538cd94..e13b34c3 100644 --- a/kenolaba/AbTop.h +++ b/kenolaba/AbTop.h @@ -15,9 +15,9 @@ class TQTimer; class TQPopupMenu; class TQLabel; -class KAction; -class KToggleAction; -class KSelectAction; +class TDEAction; +class TDEToggleAction; +class TDESelectAction; class Network; class Board; @@ -31,7 +31,7 @@ class Spy; -class AbTop: public KMainWindow +class AbTop: public TDEMainWindow { Q_OBJECT @@ -132,10 +132,10 @@ private: int myPort; TQStrList hosts; - KAction *newAction, *stopAction, *backAction, *forwardAction, *hintAction, *pasteAction; - KToggleAction *showMenubar, *renderBallsAction, *moveSlowAction, + TDEAction *newAction, *stopAction, *backAction, *forwardAction, *hintAction, *pasteAction; + TDEToggleAction *showMenubar, *renderBallsAction, *moveSlowAction, *showSpyAction, *editAction; - KSelectAction *levelAction, *iplayAction; + TDESelectAction *levelAction, *iplayAction; struct Data { const char *key, *label; diff --git a/kenolaba/ChangeLog b/kenolaba/ChangeLog index dc3947a5..ae7cce41 100644 --- a/kenolaba/ChangeLog +++ b/kenolaba/ChangeLog @@ -10,7 +10,7 @@ Version 1.02 (16.10.97) (see Board::calcRating / readRating) - New option "Spy": See some of the internals of the computers thoughts ! - Session management - - KStdAccel used for standard key bindings + - TDEStdAccel used for standard key bindings - Icon/MiniIcon supplied diff --git a/kenolaba/kenolaba.cpp b/kenolaba/kenolaba.cpp index 7b47c64f..fe9bbacc 100644 --- a/kenolaba/kenolaba.cpp +++ b/kenolaba/kenolaba.cpp @@ -55,7 +55,7 @@ int main(int argc, char *argv[]) /* session management */ if ( app.isRestored() ) { uint n = 1; - while ( KMainWindow::canBeRestored(n) ) { + while ( TDEMainWindow::canBeRestored(n) ) { AbTop *top = create(args); top->restore(n); n++; |