libkdegames
kstandardgameaction.cpp
Go to the documentation of this file.
51 { KStandardGameAction::New, KStandardShortcut::New, 0, "game_new", I18N_NOOP2("new game", "&New"), I18N_NOOP("Start a new game."), "document-new", I18N_NOOP("Start a new game") },
52 { KStandardGameAction::Load, KStandardShortcut::Open, 0, "game_load", 0, I18N_NOOP("&Load..."), 0, "document-open", I18N_NOOP("Open a saved game...") },
53 { KStandardGameAction::LoadRecent, KStandardShortcut::AccelNone, 0, "game_load_recent", 0, I18N_NOOP("Load &Recent"), 0, 0, I18N_NOOP("Open a recently saved game...") },
54 { KStandardGameAction::Restart, KStandardShortcut::Reload, 0, "game_restart", 0, I18N_NOOP("Restart &Game"), 0, "view-refresh", I18N_NOOP("Restart the game") },
55 { KStandardGameAction::Save, KStandardShortcut::Save, 0, "game_save", 0, I18N_NOOP("&Save"), 0, "document-save", I18N_NOOP("Save the current game") },
56 { KStandardGameAction::SaveAs, KStandardShortcut::AccelNone, 0, "game_save_as", 0, I18N_NOOP("Save &As..."), 0, "document-save-as", I18N_NOOP("Save the current game to another file") },
57 { KStandardGameAction::End, KStandardShortcut::End, 0, "game_end", 0, I18N_NOOP("&End Game"), 0, "window-close", I18N_NOOP("End the current game") },
58 { KStandardGameAction::Pause, KStandardShortcut::AccelNone, Qt::Key_P, "game_pause", 0, I18N_NOOP("Pa&use"), 0, "media-playback-pause", I18N_NOOP("Pause the game") },
59 { KStandardGameAction::Highscores, KStandardShortcut::AccelNone, Qt::CTRL+Qt::Key_H, "game_highscores", 0, I18N_NOOP("Show &High Scores"), 0, "games-highscores", I18N_NOOP("Show high scores") },
60 { KStandardGameAction::ClearHighscores, KStandardShortcut::AccelNone, 0, "game_clear_highscores", 0, I18N_NOOP("&Clear High Scores"), 0, "clear_highscore", I18N_NOOP("Clear high scores") },
61 { KStandardGameAction::Statistics, KStandardShortcut::AccelNone, 0, "game_statistics", 0, I18N_NOOP("Show Statistics"), 0, "highscore", I18N_NOOP("Show statistics") },
62 { KStandardGameAction::ClearStatistics, KStandardShortcut::AccelNone, 0, "game_clear_statistics", 0, I18N_NOOP("&Clear Statistics"), 0, "flag", I18N_NOOP("Delete all-time statistics.") },
63 { KStandardGameAction::Print, KStandardShortcut::Print, 0, "game_print", 0, I18N_NOOP("&Print..."), 0, "document-print", 0 },
64 { KStandardGameAction::Quit, KStandardShortcut::Quit, 0, "game_quit", 0, I18N_NOOP("&Quit"), 0, "application-exit", I18N_NOOP("Quit the program") },
66 { KStandardGameAction::Repeat, KStandardShortcut::AccelNone, 0, "move_repeat", 0, I18N_NOOP("Repeat"), 0, 0, I18N_NOOP("Repeat the last move") },
67 { KStandardGameAction::Undo, KStandardShortcut::Undo, 0, "move_undo", 0, I18N_NOOP("Und&o"), 0, "edit-undo", I18N_NOOP("Undo the last move") },
68 { KStandardGameAction::Redo, KStandardShortcut::Redo, 0, "move_redo", 0, I18N_NOOP("Re&do"), 0, "edit-redo", I18N_NOOP("Redo the latest move") },
69 { KStandardGameAction::Roll, KStandardShortcut::AccelNone, Qt::CTRL+Qt::Key_R, "move_roll", 0, I18N_NOOP("&Roll Dice"), 0, "roll", I18N_NOOP("Roll the dice") },
70 { KStandardGameAction::EndTurn, KStandardShortcut::AccelNone, 0, "move_end_turn", 0, I18N_NOOP("End Turn"), 0, "games-endturn", 0 },
71 { KStandardGameAction::Hint, KStandardShortcut::AccelNone, Qt::Key_H, "move_hint", 0, I18N_NOOP("&Hint"), 0, "games-hint", I18N_NOOP("Give a hint") },
72 { KStandardGameAction::Demo, KStandardShortcut::AccelNone, Qt::Key_D, "move_demo", 0, I18N_NOOP("&Demo"), 0, "media-playback-start", I18N_NOOP("Play a demo") },
73 { KStandardGameAction::Solve, KStandardShortcut::AccelNone, 0, "move_solve", 0, I18N_NOOP("&Solve"), 0, "games-solve", I18N_NOOP("Solve the game") },
75 { KStandardGameAction::ChooseGameType, KStandardShortcut::AccelNone, 0, "options_choose_game_type", 0, I18N_NOOP("Choose Game &Type"), 0, 0, 0 },
76 { KStandardGameAction::Carddecks, KStandardShortcut::AccelNone, 0, "options_configure_carddecks", 0, I18N_NOOP("Configure &Carddecks..."), 0, 0, 0 },
77 { KStandardGameAction::ConfigureHighscores, KStandardShortcut::AccelNone, 0, "options_configure_highscores", 0, I18N_NOOP("Configure &High Scores..."), 0, 0, 0 },
92 KAction* KStandardGameAction::create(StandardGameAction id, const QObject *recvr, const char *slot,
97 kDebug(125) << "KStandardGameAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << "," << parent << " )";
160 { return static_cast<KRecentFilesAction *>(KStandardGameAction::create(LoadRecent, recvr, slot, parent)); }
172 { return static_cast<KToggleAction *>(KStandardGameAction::create(Pause, recvr, slot, parent)); }
218 { return static_cast<KToggleAction *>(KStandardGameAction::create(Demo, recvr, slot, parent)); }
224 { return static_cast<KSelectAction *>(KStandardGameAction::create(ChooseGameType, recvr, slot, parent)); }
KDEGAMES_EXPORT KAction * restart(const QObject *recvr, const char *slot, QObject *parent)
Restart the game.
Definition: kstandardgameaction.cpp:225
KDEGAMES_EXPORT KSelectAction * chooseGameType(const QObject *recvr, const char *slot, QObject *parent)
Choose game type.
Definition: kstandardgameaction.cpp:222
KDEGAMES_EXPORT KAction * redo(const QObject *recvr, const char *slot, QObject *parent)
Redo the last move (which has been undone).
Definition: kstandardgameaction.cpp:196
KDEGAMES_EXPORT KAction * save(const QObject *recvr, const char *slot, QObject *parent)
Save the current game.
Definition: kstandardgameaction.cpp:161
Definition: kstandardgameaction.h:56
KDEGAMES_EXPORT KAction * carddecks(const QObject *recvr, const char *slot, QObject *parent)
Display configure carddecks dialog.
Definition: kstandardgameaction.cpp:207
KDEGAMES_EXPORT KAction * gameNew(const QObject *recvr, const char *slot, QObject *parent)
Start a new game.
Definition: kstandardgameaction.cpp:152
KDEGAMES_EXPORT KToggleAction * pause(const QObject *recvr, const char *slot, QObject *parent)
Pause the game.
Definition: kstandardgameaction.cpp:170
KDEGAMES_EXPORT KAction * end(const QObject *recvr, const char *slot, QObject *parent)
End the current game, but do not quit the program.
Definition: kstandardgameaction.cpp:167
KDEGAMES_EXPORT KAction * hint(const QObject *recvr, const char *slot, QObject *parent)
Give an advice/hint.
Definition: kstandardgameaction.cpp:213
KDEGAMES_EXPORT const char * name(StandardGameAction id)
This will return the internal name of a given standard action.
Definition: kstandardgameaction.cpp:146
KDEGAMES_EXPORT KAction * repeat(const QObject *recvr, const char *slot, QObject *parent)
Repeat the last move.
Definition: kstandardgameaction.cpp:189
KDEGAMES_EXPORT KAction * roll(const QObject *recvr, const char *slot, QObject *parent)
Roll die or dice.
Definition: kstandardgameaction.cpp:200
KDEGAMES_EXPORT KAction * configureHighscores(const QObject *recvr, const char *slot, QObject *parent)
Display configure highscores dialog.
Definition: kstandardgameaction.cpp:210
static const KStandardGameActionInfo * infoPtr(KStandardGameAction::StandardGameAction id)
Definition: kstandardgameaction.cpp:82
KDEGAMES_EXPORT KToggleAction * demo(const QObject *recvr, const char *slot, QObject *parent)
Show a demo.
Definition: kstandardgameaction.cpp:216
KDEGAMES_EXPORT KRecentFilesAction * loadRecent(const QObject *recvr, const char *slot, QObject *parent)
Load a recently loaded game.
Definition: kstandardgameaction.cpp:158
KDEGAMES_EXPORT KAction * quit(const QObject *recvr, const char *slot, QObject *parent)
Quit the game.
Definition: kstandardgameaction.cpp:185
KDEGAMES_EXPORT KAction * highscores(const QObject *recvr, const char *slot, QObject *parent)
Show the highscores.
Definition: kstandardgameaction.cpp:173
KDEGAMES_EXPORT KAction * statistics(const QObject *recvr, const char *slot, QObject *parent)
Show the statistics.
Definition: kstandardgameaction.cpp:176
KDEGAMES_EXPORT KAction * print(const QObject *recvr, const char *slot, QObject *parent)
Print current game.
Definition: kstandardgameaction.cpp:182
KDEGAMES_EXPORT KAction * endTurn(const QObject *recvr, const char *slot, QObject *parent)
End the current turn (not the game).
Definition: kstandardgameaction.cpp:203
KDEGAMES_EXPORT KAction * solve(const QObject *recvr, const char *slot, QObject *parent)
Solve the game.
Definition: kstandardgameaction.cpp:219
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
KDEGAMES_EXPORT KAction * saveAs(const QObject *recvr, const char *slot, QObject *parent)
Save the current game under a different filename.
Definition: kstandardgameaction.cpp:164
Definition: kstandardgameaction.h:56
KDEGAMES_EXPORT KAction * load(const QObject *recvr, const char *slot, QObject *parent)
Load a previousely saved game.
Definition: kstandardgameaction.cpp:155
KDEGAMES_EXPORT KAction * clearStatistics(const QObject *recvr, const char *slot, QObject *parent)
Clear statistics.
Definition: kstandardgameaction.cpp:179
KDEGAMES_EXPORT KAction * undo(const QObject *recvr, const char *slot, QObject *parent)
Undo the last move.
Definition: kstandardgameaction.cpp:192
KDEGAMES_EXPORT KAction * create(StandardGameAction id, const QObject *recvr, const char *slot, QObject *parent)
Creates an action corresponding to the KStandardAction::StandardAction enum.
Definition: kstandardgameaction.cpp:92
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:42 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.