KStdGameAction Class Reference
#include <kstdgameaction.h>
Detailed Description
Replacement for KStdAction for KDE Games.This class is an extension to the usual KStdAction class which provides easy access to often used KDE actions
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 KStdAction entries.
- See also:
- KStdAction
Definition at line 48 of file kstdgameaction.h.
Public Types | |
enum | StdGameAction { New = 1, Load, LoadRecent, Save, SaveAs, End, Pause, Highscores, Print, Quit, Repeat, Undo, Redo, Roll, EndTurn, Carddecks, ChooseGameType, ConfigureHighscores, Restart, Hint, Demo, Solve, ActionNone } |
Public Member Functions | |
KStdGameAction () | |
~KStdGameAction () | |
Static Public Member Functions | |
static KAction * | create (StdGameAction id, const char *name, const QObject *recvr, const char *slot, KActionCollection *parent) |
static KAction * | create (StdGameAction id, const QObject *recvr, const char *slot, KActionCollection *parent) |
static KAction * | action (StdGameAction act_enum, const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static const char * | name (StdGameAction id) |
static const char * | stdName (StdGameAction act_enum) |
static KAction * | gameNew (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | load (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KRecentFilesAction * | loadRecent (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | save (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | saveAs (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KToggleAction * | pause (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | highscores (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | end (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | print (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | quit (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | repeat (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | undo (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | redo (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | roll (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | endTurn (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | carddecks (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | configureHighscores (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | hint (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KToggleAction * | demo (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | solve (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KSelectAction * | chooseGameType (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
static KAction * | restart (const QObject *recvr=0, const char *slot=0, KActionCollection *parent=0, const char *name=0L) |
Member Enumeration Documentation
Member Function Documentation
KAction * KStdGameAction::create | ( | StdGameAction | id, | |
const char * | name, | |||
const QObject * | recvr, | |||
const char * | slot, | |||
KActionCollection * | parent | |||
) | [static] |
Creates an action corresponding to the KStdAction::StdAction enum.
- Since:
- 3.2
Definition at line 98 of file kstdgameaction.cpp.
static KAction* KStdGameAction::create | ( | StdGameAction | id, | |
const QObject * | recvr, | |||
const char * | slot, | |||
KActionCollection * | parent | |||
) | [inline, static] |
KAction * KStdGameAction::action | ( | StdGameAction | act_enum, | |
const QObject * | recvr = 0 , |
|||
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
Retrieve the action corresponding to the KStdGameAction::StdGameAction enum.
Definition at line 35 of file kstdgameaction.cpp.
const char * KStdGameAction::name | ( | StdGameAction | id | ) | [static] |
This will return the internal name of a given standard action.
- Since:
- 3.2
Definition at line 134 of file kstdgameaction.cpp.
const char * KStdGameAction::stdName | ( | StdGameAction | act_enum | ) | [static] |
This will return the internal name of a given standard action.
Definition at line 42 of file kstdgameaction.cpp.
KAction * KStdGameAction::gameNew | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::load | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KRecentFilesAction * KStdGameAction::loadRecent | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::save | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::saveAs | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
Save the current game under a different filename.
Definition at line 152 of file kstdgameaction.cpp.
KToggleAction * KStdGameAction::pause | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::highscores | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::end | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
End the current game, but do not quit the program.
Think of a "close" entry.
Definition at line 155 of file kstdgameaction.cpp.
KAction * KStdGameAction::print | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
Print the current screen? Game? Whatever - hardly used in games but there is at least one example (ktuberling).
Definition at line 164 of file kstdgameaction.cpp.
KAction * KStdGameAction::quit | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::repeat | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::undo | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::redo | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::roll | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::endTurn | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
End the current turn (not the game).
Usually to let the next player start
Definition at line 185 of file kstdgameaction.cpp.
KAction * KStdGameAction::carddecks | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::configureHighscores | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::hint | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KToggleAction * KStdGameAction::demo | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::solve | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KSelectAction * KStdGameAction::chooseGameType | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
KAction * KStdGameAction::restart | ( | const QObject * | recvr = 0 , |
|
const char * | slot = 0 , |
|||
KActionCollection * | parent = 0 , |
|||
const char * | name = 0L | |||
) | [static] |
The documentation for this class was generated from the following files: