libkdegames
Enumerations | |
enum | StandardGameAction { New =1, Load, LoadRecent, Save, SaveAs, End, Pause, Highscores, Statistics, Print, Quit, Repeat, Undo, Redo, Roll, EndTurn, Carddecks, ChooseGameType, ConfigureHighscores, ClearHighscores, ClearStatistics, Restart, Hint, Demo, Solve, ActionNone } |
Functions | |
KDEGAMES_EXPORT KAction * | carddecks (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KSelectAction * | chooseGameType (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | clearHighscores (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | clearStatistics (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | configureHighscores (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | create (StandardGameAction id, const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KToggleAction * | demo (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | end (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | endTurn (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | gameNew (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | highscores (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | hint (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | load (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KRecentFilesAction * | loadRecent (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT const char * | name (StandardGameAction id) |
KDEGAMES_EXPORT KToggleAction * | pause (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | print (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | quit (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | redo (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | repeat (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | restart (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | roll (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | save (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | saveAs (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | solve (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | statistics (const QObject *recvr, const char *slot, QObject *parent) |
KDEGAMES_EXPORT KAction * | undo (const QObject *recvr, const char *slot, QObject *parent) |
Detailed Description
Extension for KStandardAction in KDE Games.
This class is an extension to the usual KStandardAction class which provides easy access to often used KDE actions.
Using these actions helps maintaining consistency among the games.
Games often use different menu entries than other programs, e.g. games use the menu "game" instead of "file". This class provides the entries which differ from the usual KStandardAction entries.
- See also
KStandardAction
Enumeration Type Documentation
The standard menubar and toolbar actions.
Definition at line 54 of file kstandardgameaction.h.
Function Documentation
KAction * KStandardGameAction::carddecks | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display configure carddecks dialog.
Definition at line 207 of file kstandardgameaction.cpp.
KSelectAction * KStandardGameAction::chooseGameType | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Choose game type.
The signature of slot is of the form slotGameTypeChosen(int)
Definition at line 222 of file kstandardgameaction.cpp.
KDEGAMES_EXPORT KAction* KStandardGameAction::clearHighscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Clear highscores.
KAction * KStandardGameAction::clearStatistics | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Clear statistics.
Definition at line 179 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::configureHighscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display configure highscores dialog.
Definition at line 210 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::create | ( | StandardGameAction | id, |
const QObject * | recvr, | ||
const char * | slot, | ||
QObject * | parent | ||
) |
Creates an action corresponding to the KStandardAction::StandardAction enum.
Definition at line 92 of file kstandardgameaction.cpp.
KToggleAction * KStandardGameAction::demo | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show a demo.
Definition at line 216 of file kstandardgameaction.cpp.
End the current game, but do not quit the program.
Think of a "close" entry.
Definition at line 167 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::endTurn | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
End the current turn (not the game).
Usually to let the next player start.
Definition at line 203 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::gameNew | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Start a new game.
Definition at line 152 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::highscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show the highscores.
Definition at line 173 of file kstandardgameaction.cpp.
Give an advice/hint.
Definition at line 213 of file kstandardgameaction.cpp.
Load a previousely saved game.
Definition at line 155 of file kstandardgameaction.cpp.
KRecentFilesAction * KStandardGameAction::loadRecent | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Load a recently loaded game.
The signature of slot is of the form slotURLSelected(const KUrl&)
Definition at line 158 of file kstandardgameaction.cpp.
const char * KStandardGameAction::name | ( | StandardGameAction | id | ) |
This will return the internal name of a given standard action.
Definition at line 146 of file kstandardgameaction.cpp.
KToggleAction * KStandardGameAction::pause | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Pause the game.
Definition at line 170 of file kstandardgameaction.cpp.
Print current game.
Not useful in all games.
Definition at line 182 of file kstandardgameaction.cpp.
Quit the game.
Definition at line 185 of file kstandardgameaction.cpp.
Redo the last move (which has been undone).
Definition at line 196 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::repeat | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Repeat the last move.
Definition at line 189 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::restart | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Restart the game.
Definition at line 225 of file kstandardgameaction.cpp.
Roll die or dice.
Definition at line 200 of file kstandardgameaction.cpp.
Save the current game.
Definition at line 161 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::saveAs | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Save the current game under a different filename.
Definition at line 164 of file kstandardgameaction.cpp.
Solve the game.
Definition at line 219 of file kstandardgameaction.cpp.
KAction * KStandardGameAction::statistics | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show the statistics.
Definition at line 176 of file kstandardgameaction.cpp.
Undo the last move.
Definition at line 192 of file kstandardgameaction.cpp.
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.