KDEGames
kgamestandardaction.cpp
68 kli18nc("new game", "&New"), kli18n("Start a new game."), u"document-new", kli18n("Start a new game") },
85 { KGameStandardAction::ClearHighscores, KStandardShortcut::AccelNone, 0, u"game_clear_highscores",
89 { KGameStandardAction::ClearStatistics, KStandardShortcut::AccelNone, 0, u"game_clear_statistics",
115 { KGameStandardAction::Carddecks, KStandardShortcut::AccelNone, 0, u"options_configure_carddecks",
117 { KGameStandardAction::ConfigureHighscores, KStandardShortcut::AccelNone, 0, u"options_configure_highscores",
120 { KGameStandardAction::ActionNone, KStandardShortcut::AccelNone, 0, nullptr, {}, {}, nullptr, {} }
133QAction *KGameStandardAction::_k_createInternal(KGameStandardAction::GameStandardAction id, QObject *parent)
137 // qCDebug(GAMES_UI) << "KGameStandardAction::create( " << id << "=" << (pInfo ? pInfo->psName : (const char*)nullptr) << "," << parent << " )";
155 (pInfo->globalAccel != KStandardShortcut::AccelNone) ? KStandardShortcut::shortcut(pInfo->globalAccel) :
181QAction *KGameStandardAction::create(GameStandardAction id, const QObject *recvr, const char *slot, QObject *parent)
211KRecentFilesAction *KGameStandardAction::loadRecent(const QObject *recvr, const char *slot, QObject *parent)
213 return static_cast<KRecentFilesAction *>(KGameStandardAction::create(LoadRecent, recvr, slot, parent));
227KToggleAction *KGameStandardAction::pause(const QObject *recvr, const char *slot, QObject *parent)
231QAction *KGameStandardAction::highscores(const QObject *recvr, const char *slot, QObject *parent)
235QAction *KGameStandardAction::statistics(const QObject *recvr, const char *slot, QObject *parent)
239QAction *KGameStandardAction::clearStatistics(const QObject *recvr, const char *slot, QObject *parent)
279QAction *KGameStandardAction::configureHighscores(const QObject *recvr, const char *slot, QObject *parent)
287KToggleAction *KGameStandardAction::demo(const QObject *recvr, const char *slot, QObject *parent)
QAction * addAction(const QString &name, const QObject *receiver=nullptr, const char *member=nullptr)
QString toString() const
constexpr bool isEmpty() const
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 * 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
KToggleAction * pause(const QObject *recvr, const char *slot, QObject *parent)
Pause the game.
Definition kgamestandardaction.cpp:227
QAction * load(const QObject *recvr, const char *slot, QObject *parent)
Load a previously saved game.
Definition kgamestandardaction.cpp:207
const QList< QKeySequence > & shortcut(StandardShortcut id)
StandardShortcut
void setShortcuts(QKeySequence::StandardKey key)
void setToolTip(const QString &tip)
void setWhatsThis(const QString &what)
QIcon fromTheme(const QString &name)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
objectName
void setObjectName(QAnyStringView name)
bool setProperty(const char *name, QVariant &&value)
Key_P
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.