kstdgameaction.cpp
60 { KStdGameAction::New, TDEStdAccel::New, 0, "game_new", I18N_NOOP2("new game", "&New"), 0, "document-new" },
61 { KStdGameAction::Load, TDEStdAccel::Open, 0, "game_load", I18N_NOOP("&Load..."), 0, "document-open" },
62 { KStdGameAction::LoadRecent, TDEStdAccel::AccelNone, 0, "game_load_recent", I18N_NOOP("Load &Recent"), 0, 0 },
63 { KStdGameAction::Restart, TDEStdAccel::Reload, 0, "game_restart", I18N_NOOP("Restart &Game"), 0, "reload" },
64 { KStdGameAction::Save, TDEStdAccel::Save, 0, "game_save", I18N_NOOP("&Save"), 0, "document-save" },
65 { KStdGameAction::SaveAs, TDEStdAccel::AccelNone, 0, "game_save_as", I18N_NOOP("Save &As..."), 0, "document-save-as" },
66 { KStdGameAction::End, TDEStdAccel::End, 0, "game_end", I18N_NOOP("&End Game"), 0, "window-close" },
67 { KStdGameAction::Pause, TDEStdAccel::AccelNone, TQt::Key_P, "game_pause", I18N_NOOP("Pa&use"), 0, "media-playback-pause" },
68 { KStdGameAction::Highscores, TDEStdAccel::AccelNone, TQt::CTRL+TQt::Key_H, "game_highscores", I18N_NOOP("Show &Highscores"), 0, "highscore" },
69 { KStdGameAction::Print, TDEStdAccel::Print, 0, "game_print", I18N_NOOP("&Print..."), 0, "document-print" },
70 { KStdGameAction::Quit, TDEStdAccel::Quit, 0, "game_quit", I18N_NOOP("&Quit"), 0, "application-exit" },
75 { KStdGameAction::Roll, TDEStdAccel::AccelNone, TQt::CTRL+TQt::Key_R, "move_roll", I18N_NOOP("&Roll Dice"), 0, "roll" },
76 { KStdGameAction::EndTurn, TDEStdAccel::AccelNone, 0, "move_end_turn", I18N_NOOP("End Turn"), 0, "endturn" },
77 { KStdGameAction::Hint, TDEStdAccel::AccelNone, TQt::Key_H, "move_hint", I18N_NOOP("&Hint"), 0, "idea" },
78 { KStdGameAction::Demo, TDEStdAccel::AccelNone, TQt::Key_D, "move_demo", I18N_NOOP("&Demo"), 0, "1rightarrow" },
79 { KStdGameAction::Solve, TDEStdAccel::AccelNone, 0, "move_solve", I18N_NOOP("&Solve"), 0, "wizard" },
81 { KStdGameAction::ChooseGameType, TDEStdAccel::AccelNone, 0, "options_choose_game_type", I18N_NOOP("Choose Game &Type"), 0, 0 },
82 { KStdGameAction::Carddecks, TDEStdAccel::AccelNone, 0, "options_configure_carddecks", I18N_NOOP("Configure &Carddecks..."), 0, 0 },
83 { KStdGameAction::ConfigureHighscores, TDEStdAccel::AccelNone, 0, "options_configure_highscores", I18N_NOOP("Configure &Highscores..."), 0, 0 },
104 kdDebug(125) << "KStdGameAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)0) << ", " << parent << ", " << name << " )" << endl;
148 { return static_cast<TDERecentFilesAction *>(KStdGameAction::create(LoadRecent, name, recvr, slot, parent)); }
160 { return static_cast<TDEToggleAction *>(KStdGameAction::create(Pause, name, recvr, slot, parent)); }
200 { return static_cast<TDEToggleAction *>(KStdGameAction::create(Demo, name, recvr, slot, parent)); }
206 { return static_cast<TDESelectAction *>(KStdGameAction::create(ChooseGameType, name, recvr, slot, parent)); }
static TDEAction * solve(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Solve the game.
Definition: kstdgameaction.cpp:201
static TDEAction * load(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Load a previousely saved game.
Definition: kstdgameaction.cpp:143
static TDEToggleAction * pause(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Pause the game.
Definition: kstdgameaction.cpp:158
static const char * name(StdGameAction id)
This will return the internal name of a given standard action.
Definition: kstdgameaction.cpp:134
static TDEAction * quit(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Quit the game.
Definition: kstdgameaction.cpp:167
static TDEAction * redo(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Redo the last move (which has been undone)
Definition: kstdgameaction.cpp:178
static TDEAction * endTurn(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
End the current turn (not the game).
Definition: kstdgameaction.cpp:185
static TDEAction * create(StdGameAction id, const char *name, const TQObject *recvr, const char *slot, TDEActionCollection *parent)
Creates an action corresponding to the KStdAction::StdAction enum.
Definition: kstdgameaction.cpp:98
static const char * stdName(StdGameAction act_enum)
This will return the internal name of a given standard action.
Definition: kstdgameaction.cpp:42
static TDEAction * gameNew(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Start a new game.
Definition: kstdgameaction.cpp:140
static TDEAction * action(StdGameAction act_enum, const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Retrieve the action corresponding to the KStdGameAction::StdGameAction enum.
Definition: kstdgameaction.cpp:35
static TDEAction * end(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
End the current game, but do not quit the program.
Definition: kstdgameaction.cpp:155
static TDESelectAction * chooseGameType(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Choose game type.
Definition: kstdgameaction.cpp:204
static TDEAction * repeat(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Repeat the last move.
Definition: kstdgameaction.cpp:171
static TDEAction * print(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Print the current screen? Game? Whatever - hardly used in games but there is at least one example (kt...
Definition: kstdgameaction.cpp:164
static TDEAction * highscores(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Show the highscores.
Definition: kstdgameaction.cpp:161
static TDEAction * hint(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Give an advice/hint.
Definition: kstdgameaction.cpp:195
static TDEAction * undo(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Undo the last move.
Definition: kstdgameaction.cpp:174
static TDEAction * restart(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Restart game.
Definition: kstdgameaction.cpp:207
static TDEAction * carddecks(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Display configure carddecks dialog.
Definition: kstdgameaction.cpp:189
static TDEAction * configureHighscores(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Display configure highscores dialog.
Definition: kstdgameaction.cpp:192
static TDEAction * roll(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Roll die or dice.
Definition: kstdgameaction.cpp:182
static TDEAction * save(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Save the current game.
Definition: kstdgameaction.cpp:149
static TDEToggleAction * demo(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Show a demo.
Definition: kstdgameaction.cpp:198
static TDEAction * saveAs(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Save the current game under a different filename.
Definition: kstdgameaction.cpp:152
static TDERecentFilesAction * loadRecent(const TQObject *recvr=0, const char *slot=0, TDEActionCollection *parent=0, const char *name=0L)
Load a recently loaded game.
Definition: kstdgameaction.cpp:146