KStandardGameAction

KStandardGameAction Namespace Reference

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)
 
QActioncarddecks (const QObject *recvr, const char *slot, QObject *parent)
 
QActioncarddecks (const QObject *recvr, Func slot, QObject *parent)
 
KSelectActionchooseGameType (const QObject *recvr, const char *slot, QObject *parent)
 
KSelectActionchooseGameType (const QObject *recvr, Func slot, QObject *parent)
 
QActionclearHighscores (const QObject *recvr, const char *slot, QObject *parent)
 
QActionclearHighscores (const QObject *recvr, Func slot, QObject *parent)
 
QActionclearStatistics (const QObject *recvr, const char *slot, QObject *parent)
 
QActionclearStatistics (const QObject *recvr, Func slot, QObject *parent)
 
QActionconfigureHighscores (const QObject *recvr, const char *slot, QObject *parent)
 
QActionconfigureHighscores (const QObject *recvr, Func slot, QObject *parent)
 
QActioncreate (StandardGameAction id, const QObject *recvr, const char *slot, QObject *parent)
 
QActioncreate (StandardGameAction id, const QObject *recvr, Func slot, QObject *parent)
 
KToggleActiondemo (const QObject *recvr, const char *slot, QObject *parent)
 
KToggleActiondemo (const QObject *recvr, Func slot, QObject *parent)
 
QActionend (const QObject *recvr, const char *slot, QObject *parent)
 
QActionend (const QObject *recvr, Func slot, QObject *parent)
 
QActionendTurn (const QObject *recvr, const char *slot, QObject *parent)
 
QActionendTurn (const QObject *recvr, Func slot, QObject *parent)
 
QActiongameNew (const QObject *recvr, const char *slot, QObject *parent)
 
QActiongameNew (const QObject *recvr, Func slot, QObject *parent)
 
QActionhighscores (const QObject *recvr, const char *slot, QObject *parent)
 
QActionhighscores (const QObject *recvr, Func slot, QObject *parent)
 
QActionhint (const QObject *recvr, const char *slot, QObject *parent)
 
QActionhint (const QObject *recvr, Func slot, QObject *parent)
 
QActionload (const QObject *recvr, const char *slot, QObject *parent)
 
QActionload (const QObject *recvr, Func slot, QObject *parent)
 
KRecentFilesActionloadRecent (const QObject *recvr, const char *slot, QObject *parent)
 
KRecentFilesActionloadRecent (const QObject *recvr, Func slot, QObject *parent)
 
const char * name (StandardGameAction id)
 
KToggleActionpause (const QObject *recvr, const char *slot, QObject *parent)
 
KToggleActionpause (const QObject *recvr, Func slot, QObject *parent)
 
QActionprint (const QObject *recvr, const char *slot, QObject *parent)
 
QActionprint (const QObject *recvr, Func slot, QObject *parent)
 
QActionquit (const QObject *recvr, const char *slot, QObject *parent)
 
QActionquit (const QObject *recvr, Func slot, QObject *parent)
 
QActionredo (const QObject *recvr, const char *slot, QObject *parent)
 
QActionredo (const QObject *recvr, Func slot, QObject *parent)
 
QActionrepeat (const QObject *recvr, const char *slot, QObject *parent)
 
QActionrepeat (const QObject *recvr, Func slot, QObject *parent)
 
QActionrestart (const QObject *recvr, const char *slot, QObject *parent)
 
QActionrestart (const QObject *recvr, Func slot, QObject *parent)
 
QActionroll (const QObject *recvr, const char *slot, QObject *parent)
 
QActionroll (const QObject *recvr, Func slot, QObject *parent)
 
QActionsave (const QObject *recvr, const char *slot, QObject *parent)
 
QActionsave (const QObject *recvr, Func slot, QObject *parent)
 
QActionsaveAs (const QObject *recvr, const char *slot, QObject *parent)
 
QActionsaveAs (const QObject *recvr, Func slot, QObject *parent)
 
QActionsolve (const QObject *recvr, const char *slot, QObject *parent)
 
QActionsolve (const QObject *recvr, Func slot, QObject *parent)
 
QActionstatistics (const QObject *recvr, const char *slot, QObject *parent)
 
QActionstatistics (const QObject *recvr, Func slot, QObject *parent)
 
QActionundo (const QObject *recvr, const char *slot, QObject *parent)
 
QActionundo (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
Author
Andreas Beckermann b_man[email protected][email protected][email protected]x.de

Enumeration Type Documentation

The standard menubar and toolbar actions.

Definition at line 50 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 211 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::carddecks ( const QObject recvr,
Func  slot,
QObject parent 
)
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 226 of file kstandardgameaction.cpp.

KSelectAction* KStandardGameAction::chooseGameType ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Choose game type.

Since
7.3

Definition at line 439 of file kstandardgameaction.h.

QAction* KStandardGameAction::clearHighscores ( const QObject recvr,
const char *  slot,
QObject parent 
)

Clear highscores.

QAction* KStandardGameAction::clearHighscores ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Clear highscores.

Since
7.3
QAction * KStandardGameAction::clearStatistics ( const QObject recvr,
const char *  slot,
QObject parent 
)

Clear statistics.

Definition at line 183 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::clearStatistics ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Clear statistics.

Since
7.3
QAction * KStandardGameAction::configureHighscores ( const QObject recvr,
const char *  slot,
QObject parent 
)

Display configure highscores dialog.

Definition at line 214 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::configureHighscores ( const QObject recvr,
Func  slot,
QObject parent 
)
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.

QAction* KStandardGameAction::create ( StandardGameAction  id,
const QObject recvr,
Func  slot,
QObject parent 
)
inline

This overloads create() to allow using the new connect syntax.

Note
If you use LoadRecent as id, you should manually connect to the urlSelected(const QUrl &) signal of the returned KRecentFilesAction instead or use KStandardGameAction::loadRecent(Receiver *, Func, QObject*). If you use ChooseGameType as id, you should manually connect to the triggered(int) signal of the returned KSelectAction instead or use KStandardGameAction::chooseGameType(Receiver *, Func, QObject*).
See also
create(StandardGameAction, const QObject *, const char *, QObject *)
Since
7.3

Definition at line 93 of file kstandardgameaction.h.

KToggleAction * KStandardGameAction::demo ( const QObject recvr,
const char *  slot,
QObject parent 
)

Show a demo.

Definition at line 220 of file kstandardgameaction.cpp.

KToggleAction* KStandardGameAction::demo ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Show a demo.

Since
7.3
QAction * KStandardGameAction::end ( const QObject recvr,
const char *  slot,
QObject parent 
)

End the current game, but do not quit the program.

Think of a "close" entry.

Definition at line 171 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::end ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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 207 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::endTurn ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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 156 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::gameNew ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Start a new game.

Since
7.3
QAction * KStandardGameAction::highscores ( const QObject recvr,
const char *  slot,
QObject parent 
)

Show the highscores.

Definition at line 177 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::highscores ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Show the highscores.

Since
7.3
QAction * KStandardGameAction::hint ( const QObject recvr,
const char *  slot,
QObject parent 
)

Give an advice/hint.

Definition at line 217 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::hint ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Give an advice/hint.

Since
7.3
QAction * KStandardGameAction::load ( const QObject recvr,
const char *  slot,
QObject parent 
)

Load a previously saved game.

Definition at line 159 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::load ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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 162 of file kstandardgameaction.cpp.

KRecentFilesAction* KStandardGameAction::loadRecent ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Load a recently loaded game.

Since
7.3

Definition at line 167 of file kstandardgameaction.h.

const char * KStandardGameAction::name ( StandardGameAction  id)

This will return the internal name of a given standard action.

Definition at line 150 of file kstandardgameaction.cpp.

KToggleAction * KStandardGameAction::pause ( const QObject recvr,
const char *  slot,
QObject parent 
)

Pause the game.

Definition at line 174 of file kstandardgameaction.cpp.

KToggleAction* KStandardGameAction::pause ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Pause the game.

Since
7.3
QAction * KStandardGameAction::print ( const QObject recvr,
const char *  slot,
QObject parent 
)

Print current game.

Not useful in all games.

Definition at line 186 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::print ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Print current game.

Not useful in all games.

Since
7.3
QAction * KStandardGameAction::quit ( const QObject recvr,
const char *  slot,
QObject parent 
)

Quit the game.

Definition at line 189 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::quit ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Quit the game.

Since
7.3
QAction * KStandardGameAction::redo ( const QObject recvr,
const char *  slot,
QObject parent 
)

Redo the last move (which has been undone).

Definition at line 200 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::redo ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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 193 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::repeat ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Repeat the last move.

Since
7.3
QAction * KStandardGameAction::restart ( const QObject recvr,
const char *  slot,
QObject parent 
)

Restart the game.

Definition at line 229 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::restart ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Restart the game.

Since
7.3
QAction * KStandardGameAction::roll ( const QObject recvr,
const char *  slot,
QObject parent 
)

Roll die or dice.

Definition at line 204 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::roll ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Roll die or dice.

Since
7.3
QAction * KStandardGameAction::save ( const QObject recvr,
const char *  slot,
QObject parent 
)

Save the current game.

Definition at line 165 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::save ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

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 168 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::saveAs ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Save the current game under a different filename.

Since
7.3
QAction * KStandardGameAction::solve ( const QObject recvr,
const char *  slot,
QObject parent 
)

Solve the game.

Definition at line 223 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::solve ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Solve the game.

Since
7.3
QAction * KStandardGameAction::statistics ( const QObject recvr,
const char *  slot,
QObject parent 
)

Show the statistics.

Definition at line 180 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::statistics ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Show the statistics.

Since
7.3
QAction * KStandardGameAction::undo ( const QObject recvr,
const char *  slot,
QObject parent 
)

Undo the last move.

Definition at line 196 of file kstandardgameaction.cpp.

QAction* KStandardGameAction::undo ( const QObject recvr,
Func  slot,
QObject parent 
)
inline

Undo the last move.

Since
7.3
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Sep 23 2021 22:38:21 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.