summaryrefslogtreecommitdiffstats
path: root/kenolaba/AbTop.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:46 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:12:46 -0600
commit58a97ed3af5e4df6c4a58d043b0c267bd97056a9 (patch)
tree5a2fde6842fd422cae2d8670d382be965098cc32 /kenolaba/AbTop.cpp
parent2ce15ee76fd2d9d18a63c035a0f5b00b94c60cdc (diff)
downloadtdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.tar.gz
tdegames-58a97ed3af5e4df6c4a58d043b0c267bd97056a9.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kenolaba/AbTop.cpp')
-rw-r--r--kenolaba/AbTop.cpp36
1 files changed, 18 insertions, 18 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" );