KGameStandardAction
Enumerations | |
enum | GameStandardAction { New = 1 , Load , LoadRecent , Save , SaveAs , End , Pause , Highscores , Statistics , Print , Quit , Repeat , Undo , Redo , Roll , EndTurn , Carddecks , ConfigureHighscores , ClearHighscores , ClearStatistics , Restart , Hint , Demo , Solve , ActionNone } |
Functions | |
QAction * | _k_createInternal (GameStandardAction id, QObject *parent) |
QAction * | carddecks (const QObject *recvr, const char *slot, QObject *parent) |
QAction * | carddecks (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 (GameStandardAction id, const QObject *recvr, const char *slot, QObject *parent) |
QAction * | create (GameStandardAction 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) |
QString | name (GameStandardAction 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
◆ GameStandardAction
The standard menubar and toolbar actions.
Definition at line 46 of file kgamestandardaction.h.
Function Documentation
◆ _k_createInternal()
QAction * KGameStandardAction::_k_createInternal | ( | KGameStandardAction::GameStandardAction | id, |
QObject * | parent ) |
Definition at line 133 of file kgamestandardaction.cpp.
◆ carddecks() [1/2]
QAction * KGameStandardAction::carddecks | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Display configure carddecks dialog.
Definition at line 275 of file kgamestandardaction.cpp.
◆ carddecks() [2/2]
|
inline |
Display configure carddecks dialog.
- Since
- 7.3
◆ clearHighscores() [1/2]
QAction * KGameStandardAction::clearHighscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Clear highscores.
◆ clearHighscores() [2/2]
|
inline |
Clear highscores.
- Since
- 7.3
◆ clearStatistics() [1/2]
QAction * KGameStandardAction::clearStatistics | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Clear statistics.
Definition at line 239 of file kgamestandardaction.cpp.
◆ clearStatistics() [2/2]
|
inline |
Clear statistics.
- Since
- 7.3
◆ configureHighscores() [1/2]
QAction * KGameStandardAction::configureHighscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Display configure highscores dialog.
Definition at line 279 of file kgamestandardaction.cpp.
◆ configureHighscores() [2/2]
|
inline |
Display configure highscores dialog.
- Since
- 7.3
◆ create() [1/2]
QAction * KGameStandardAction::create | ( | GameStandardAction | id, |
const QObject * | recvr, | ||
const char * | slot, | ||
QObject * | parent ) |
Creates an action corresponding to the KStandardAction::StandardAction enum.
Definition at line 181 of file kgamestandardaction.cpp.
◆ create() [2/2]
|
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 KGameStandardAction::loadRecent(Receiver , Func, QObject).
- Since
- 7.3
Definition at line 98 of file kgamestandardaction.h.
◆ demo() [1/2]
KToggleAction * KGameStandardAction::demo | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Show a demo.
Definition at line 287 of file kgamestandardaction.cpp.
◆ demo() [2/2]
|
inline |
Show a demo.
- Since
- 7.3
◆ end() [1/2]
End the current game, but do not quit the program.
Think of a "close" entry.
Definition at line 223 of file kgamestandardaction.cpp.
◆ end() [2/2]
End the current game, but do not quit the program.
Think of a "close" entry.
- Since
- 7.3
◆ endTurn() [1/2]
QAction * KGameStandardAction::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 270 of file kgamestandardaction.cpp.
◆ endTurn() [2/2]
|
inline |
End the current turn (not the game).
Usually to let the next player start.
- Since
- 7.3
◆ gameNew() [1/2]
QAction * KGameStandardAction::gameNew | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Start a new game.
Definition at line 203 of file kgamestandardaction.cpp.
◆ gameNew() [2/2]
|
inline |
Start a new game.
- Since
- 7.3
◆ highscores() [1/2]
QAction * KGameStandardAction::highscores | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Show the highscores.
Definition at line 231 of file kgamestandardaction.cpp.
◆ highscores() [2/2]
|
inline |
Show the highscores.
- Since
- 7.3
◆ hint() [1/2]
Give an advice/hint.
Definition at line 283 of file kgamestandardaction.cpp.
◆ hint() [2/2]
Give an advice/hint.
- Since
- 7.3
◆ load() [1/2]
Load a previously saved game.
Definition at line 207 of file kgamestandardaction.cpp.
◆ load() [2/2]
Load a previously saved game.
- Since
- 7.3
◆ loadRecent() [1/2]
KRecentFilesAction * KGameStandardAction::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 211 of file kgamestandardaction.cpp.
◆ loadRecent() [2/2]
|
inline |
◆ name()
QString KGameStandardAction::name | ( | GameStandardAction | id | ) |
This will return the internal name of a given standard action.
Definition at line 197 of file kgamestandardaction.cpp.
◆ pause() [1/2]
KToggleAction * KGameStandardAction::pause | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Pause the game.
Definition at line 227 of file kgamestandardaction.cpp.
◆ pause() [2/2]
|
inline |
Pause the game.
- Since
- 7.3
◆ print() [1/2]
Print current game.
Not useful in all games.
Definition at line 243 of file kgamestandardaction.cpp.
◆ print() [2/2]
Print current game.
Not useful in all games.
- Since
- 7.3
◆ quit() [1/2]
Quit the game.
Definition at line 247 of file kgamestandardaction.cpp.
◆ quit() [2/2]
Quit the game.
- Since
- 7.3
◆ redo() [1/2]
Redo the last move (which has been undone).
Definition at line 261 of file kgamestandardaction.cpp.
◆ redo() [2/2]
Redo the last move (which has been undone).
- Since
- 7.3
◆ repeat() [1/2]
QAction * KGameStandardAction::repeat | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Repeat the last move.
Definition at line 252 of file kgamestandardaction.cpp.
◆ repeat() [2/2]
Repeat the last move.
- Since
- 7.3
◆ restart() [1/2]
QAction * KGameStandardAction::restart | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Restart the game.
Definition at line 295 of file kgamestandardaction.cpp.
◆ restart() [2/2]
|
inline |
Restart the game.
- Since
- 7.3
◆ roll() [1/2]
Roll die or dice.
Definition at line 266 of file kgamestandardaction.cpp.
◆ roll() [2/2]
Roll die or dice.
- Since
- 7.3
◆ save() [1/2]
Save the current game.
Definition at line 215 of file kgamestandardaction.cpp.
◆ save() [2/2]
Save the current game.
- Since
- 7.3
◆ saveAs() [1/2]
QAction * KGameStandardAction::saveAs | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Save the current game under a different filename.
Definition at line 219 of file kgamestandardaction.cpp.
◆ saveAs() [2/2]
Save the current game under a different filename.
- Since
- 7.3
◆ solve() [1/2]
Solve the game.
Definition at line 291 of file kgamestandardaction.cpp.
◆ solve() [2/2]
Solve the game.
- Since
- 7.3
◆ statistics() [1/2]
QAction * KGameStandardAction::statistics | ( | const QObject * | recvr, |
const char * | slot, | ||
QObject * | parent ) |
Show the statistics.
Definition at line 235 of file kgamestandardaction.cpp.
◆ statistics() [2/2]
|
inline |
Show the statistics.
- Since
- 7.3
◆ undo() [1/2]
Undo the last move.
Definition at line 256 of file kgamestandardaction.cpp.
◆ undo() [2/2]
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 4 2024 11:58:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.