KStandardGameAction
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 | |
QAction * | _k_createInternal (StandardGameAction id, QObject *parent) |
QAction * | carddecks (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | carddecks (const QObject *recvr, Func slot, QObject *parent) |
KSelectAction * | chooseGameType (const QObject *recvr, const char *slot, QObject *parent) |
KSelectAction * | chooseGameType (const QObject *recvr, Func slot, QObject *parent) |
QAction * | clearHighscores (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | clearHighscores (const QObject *recvr, Func slot, QObject *parent) |
QAction * | clearStatistics (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | clearStatistics (const QObject *recvr, Func slot, QObject *parent) |
QAction * | configureHighscores (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | configureHighscores (const QObject *recvr, Func slot, QObject *parent) |
QAction * | create (StandardGameAction id, const QObject *recvr, const char *slot, QObject *parent) |
QAction * | create (StandardGameAction id, const QObject *recvr, Func slot, QObject *parent) |
KToggleAction * | demo (const QObject *recvr, const char *slot, QObject *parent) |
KToggleAction * | demo (const QObject *recvr, Func slot, QObject *parent) |
QAction * | end (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | end (const QObject *recvr, Func slot, QObject *parent) |
QAction * | endTurn (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | endTurn (const QObject *recvr, Func slot, QObject *parent) |
QAction * | gameNew (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | gameNew (const QObject *recvr, Func slot, QObject *parent) |
QAction * | highscores (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | highscores (const QObject *recvr, Func slot, QObject *parent) |
QAction * | hint (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | hint (const QObject *recvr, Func slot, QObject *parent) |
QAction * | load (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | load (const QObject *recvr, Func slot, QObject *parent) |
KRecentFilesAction * | loadRecent (const QObject *recvr, const char *slot, QObject *parent) |
KRecentFilesAction * | loadRecent (const QObject *recvr, Func slot, QObject *parent) |
const char * | name (StandardGameAction id) |
KToggleAction * | pause (const QObject *recvr, const char *slot, QObject *parent) |
KToggleAction * | pause (const QObject *recvr, Func slot, QObject *parent) |
QAction * | print (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | print (const QObject *recvr, Func slot, QObject *parent) |
QAction * | quit (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | quit (const QObject *recvr, Func slot, QObject *parent) |
QAction * | redo (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | redo (const QObject *recvr, Func slot, QObject *parent) |
QAction * | repeat (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | repeat (const QObject *recvr, Func slot, QObject *parent) |
QAction * | restart (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | restart (const QObject *recvr, Func slot, QObject *parent) |
QAction * | roll (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | roll (const QObject *recvr, Func slot, QObject *parent) |
QAction * | save (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | save (const QObject *recvr, Func slot, QObject *parent) |
QAction * | saveAs (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | saveAs (const QObject *recvr, Func slot, QObject *parent) |
QAction * | solve (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | solve (const QObject *recvr, Func slot, QObject *parent) |
QAction * | statistics (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | statistics (const QObject *recvr, Func slot, QObject *parent) |
QAction * | undo (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | undo (const QObject *recvr, Func 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 51 of file kstandardgameaction.h.
Function Documentation
QAction * KStandardGameAction::_k_createInternal | ( | KStandardGameAction::StandardGameAction | id, |
QObject * | parent | ||
) |
Definition at line 82 of file kstandardgameaction.cpp.
QAction * KStandardGameAction::carddecks | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display configure carddecks dialog.
Definition at line 215 of file kstandardgameaction.cpp.
|
inline |
Display configure carddecks dialog.
- Since
- 7.3
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 230 of file kstandardgameaction.cpp.
|
inline |
QAction* KStandardGameAction::clearHighscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Clear highscores.
|
inline |
Clear highscores.
- Since
- 7.3
QAction * KStandardGameAction::clearStatistics | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Clear statistics.
Definition at line 187 of file kstandardgameaction.cpp.
|
inline |
Clear statistics.
- Since
- 7.3
QAction * KStandardGameAction::configureHighscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Display configure highscores dialog.
Definition at line 218 of file kstandardgameaction.cpp.
|
inline |
Display configure highscores dialog.
- Since
- 7.3
QAction * KStandardGameAction::create | ( | StandardGameAction | id, |
const QObject * | recvr, | ||
const char * | slot, | ||
QObject * | parent | ||
) |
Creates an action corresponding to the KStandardAction::StandardAction enum.
Definition at line 129 of file kstandardgameaction.cpp.
|
inline |
This overloads create() to allow using the new connect syntax.
- Note
- If you use
LoadRecent
asid
, you should manually connect to the urlSelected(const QUrl &) signal of the returned KRecentFilesAction instead or use KStandardGameAction::loadRecent(Receiver *, Func, QObject*). If you useChooseGameType
asid
, you should manually connect to the triggered(int) signal of the returned KSelectAction instead or use KStandardGameAction::chooseGameType(Receiver *, Func, QObject*).
- Since
- 7.3
Definition at line 94 of file kstandardgameaction.h.
KToggleAction * KStandardGameAction::demo | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show a demo.
Definition at line 224 of file kstandardgameaction.cpp.
|
inline |
Show a demo.
- Since
- 7.3
End the current game, but do not quit the program.
Think of a "close" entry.
Definition at line 175 of file kstandardgameaction.cpp.
End the current game, but do not quit the program.
Think of a "close" entry.
- Since
- 7.3
QAction * 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 211 of file kstandardgameaction.cpp.
End the current turn (not the game).
Usually to let the next player start.
- Since
- 7.3
QAction * KStandardGameAction::gameNew | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Start a new game.
Definition at line 160 of file kstandardgameaction.cpp.
Start a new game.
- Since
- 7.3
QAction * KStandardGameAction::highscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show the highscores.
Definition at line 181 of file kstandardgameaction.cpp.
|
inline |
Show the highscores.
- Since
- 7.3
Give an advice/hint.
Definition at line 221 of file kstandardgameaction.cpp.
Give an advice/hint.
- Since
- 7.3
Load a previously saved game.
Definition at line 163 of file kstandardgameaction.cpp.
Load a previously saved game.
- Since
- 7.3
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 QUrl&)
Definition at line 166 of file kstandardgameaction.cpp.
|
inline |
const char * KStandardGameAction::name | ( | StandardGameAction | id | ) |
This will return the internal name of a given standard action.
Definition at line 154 of file kstandardgameaction.cpp.
KToggleAction * KStandardGameAction::pause | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Pause the game.
Definition at line 178 of file kstandardgameaction.cpp.
|
inline |
Pause the game.
- Since
- 7.3
Print current game.
Not useful in all games.
Definition at line 190 of file kstandardgameaction.cpp.
Print current game.
Not useful in all games.
- Since
- 7.3
Quit the game.
Definition at line 193 of file kstandardgameaction.cpp.
Quit the game.
- Since
- 7.3
Redo the last move (which has been undone).
Definition at line 204 of file kstandardgameaction.cpp.
Redo the last move (which has been undone).
- Since
- 7.3
QAction * KStandardGameAction::repeat | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Repeat the last move.
Definition at line 197 of file kstandardgameaction.cpp.
Repeat the last move.
- Since
- 7.3
QAction * KStandardGameAction::restart | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Restart the game.
Definition at line 233 of file kstandardgameaction.cpp.
Restart the game.
- Since
- 7.3
Roll die or dice.
Definition at line 208 of file kstandardgameaction.cpp.
Roll die or dice.
- Since
- 7.3
Save the current game.
Definition at line 169 of file kstandardgameaction.cpp.
Save the current game.
- Since
- 7.3
QAction * KStandardGameAction::saveAs | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Save the current game under a different filename.
Definition at line 172 of file kstandardgameaction.cpp.
Save the current game under a different filename.
- Since
- 7.3
Solve the game.
Definition at line 227 of file kstandardgameaction.cpp.
Solve the game.
- Since
- 7.3
QAction * KStandardGameAction::statistics | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent | ||
) |
Show the statistics.
Definition at line 184 of file kstandardgameaction.cpp.
|
inline |
Show the statistics.
- Since
- 7.3
Undo the last move.
Definition at line 200 of file kstandardgameaction.cpp.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 01:08:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.