KDEGames
kgamestandardaction.h
81KDEGAMES_EXPORT QAction *create(GameStandardAction id, const QObject *recvr, const char *slot, QObject *parent);
91 * @note If you use @c LoadRecent as @p id, you should manually connect to the urlSelected(const QUrl &)
92 * signal of the returned KRecentFilesAction instead or use KGameStandardAction::loadRecent(Receiver *, Func, QObject*).
115// we have to disable the templated function for const char* as Func, since it is ambiguous otherwise
118#define KSTANDARDGAMEACTION_WITH_NEW_STYLE_CONNECT(name, enumValue) inline QAction *name(const QObject *recvr, Func slot, QObject *parent);
119#define KSTANDARDGAMETOGGLEACTION_WITH_NEW_STYLE_CONNECT(name, enumValue) inline KToggleAction *name(const QObject *recvr, Func slot, QObject *parent);
123 inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, QAction>::type *name(const Receiver *recvr, Func slot, QObject *parent) \
129 inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, KToggleAction>::type *name(const Receiver *recvr, \
166KDEGAMES_EXPORT KRecentFilesAction *loadRecent(const QObject *recvr, const char *slot, QObject *parent);
175inline typename std::enable_if<!std::is_convertible<Func, const char *>::value, KRecentFilesAction>::type *
233KDEGAMES_EXPORT QAction *clearHighscores(const QObject *recvr, const char *slot, QObject *parent);
255KDEGAMES_EXPORT QAction *clearStatistics(const QObject *recvr, const char *slot, QObject *parent);
371KDEGAMES_EXPORT QAction *configureHighscores(const QObject *recvr, const char *slot, QObject *parent);
void urlSelected(const QUrl &url)
Q_SCRIPTABLE Q_NOREPLY void pause()
QAction * configureHighscores(const QObject *recvr, const char *slot, QObject *parent)
Display configure highscores dialog.
Definition kgamestandardaction.cpp:279
QAction * restart(const QObject *recvr, const char *slot, QObject *parent)
Restart the game.
Definition kgamestandardaction.cpp:295
QAction * quit(const QObject *recvr, const char *slot, QObject *parent)
Quit the game.
Definition kgamestandardaction.cpp:247
QAction * highscores(const QObject *recvr, const char *slot, QObject *parent)
Show the highscores.
Definition kgamestandardaction.cpp:231
QAction * carddecks(const QObject *recvr, const char *slot, QObject *parent)
Display configure carddecks dialog.
Definition kgamestandardaction.cpp:275
QAction * _k_createInternal(GameStandardAction id, QObject *parent)
Definition kgamestandardaction.cpp:133
QAction * redo(const QObject *recvr, const char *slot, QObject *parent)
Redo the last move (which has been undone).
Definition kgamestandardaction.cpp:261
QAction * create(GameStandardAction id, const QObject *recvr, const char *slot, QObject *parent)
Creates an action corresponding to the KStandardAction::StandardAction enum.
Definition kgamestandardaction.cpp:181
QAction * hint(const QObject *recvr, const char *slot, QObject *parent)
Give an advice/hint.
Definition kgamestandardaction.cpp:283
QAction * clearHighscores(const QObject *recvr, const char *slot, QObject *parent)
Clear highscores.
QAction * gameNew(const QObject *recvr, const char *slot, QObject *parent)
Start a new game.
Definition kgamestandardaction.cpp:203
KToggleAction * demo(const QObject *recvr, const char *slot, QObject *parent)
Show a demo.
Definition kgamestandardaction.cpp:287
QAction * endTurn(const QObject *recvr, const char *slot, QObject *parent)
End the current turn (not the game).
Definition kgamestandardaction.cpp:270
QAction * repeat(const QObject *recvr, const char *slot, QObject *parent)
Repeat the last move.
Definition kgamestandardaction.cpp:252
KRecentFilesAction * loadRecent(const QObject *recvr, const char *slot, QObject *parent)
Load a recently loaded game.
Definition kgamestandardaction.cpp:211
QAction * solve(const QObject *recvr, const char *slot, QObject *parent)
Solve the game.
Definition kgamestandardaction.cpp:291
QAction * undo(const QObject *recvr, const char *slot, QObject *parent)
Undo the last move.
Definition kgamestandardaction.cpp:256
QString name(GameStandardAction id)
This will return the internal name of a given standard action.
Definition kgamestandardaction.cpp:197
QAction * statistics(const QObject *recvr, const char *slot, QObject *parent)
Show the statistics.
Definition kgamestandardaction.cpp:235
QAction * roll(const QObject *recvr, const char *slot, QObject *parent)
Roll die or dice.
Definition kgamestandardaction.cpp:266
QAction * print(const QObject *recvr, const char *slot, QObject *parent)
Print current game.
Definition kgamestandardaction.cpp:243
QAction * end(const QObject *recvr, const char *slot, QObject *parent)
End the current game, but do not quit the program.
Definition kgamestandardaction.cpp:223
QAction * save(const QObject *recvr, const char *slot, QObject *parent)
Save the current game.
Definition kgamestandardaction.cpp:215
QAction * clearStatistics(const QObject *recvr, const char *slot, QObject *parent)
Clear statistics.
Definition kgamestandardaction.cpp:239
QAction * saveAs(const QObject *recvr, const char *slot, QObject *parent)
Save the current game under a different filename.
Definition kgamestandardaction.cpp:219
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
Load a previously saved game.
Definition kgamestandardaction.cpp:207
void triggered(bool checked)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:50:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 20 2024 11:50:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.