21#ifndef KSTDGAMEACTION_H
22#define KSTDGAMEACTION_H
27class TDEActionCollection;
28class TDERecentFilesAction;
56 New=1, Load, LoadRecent, Save, SaveAs, End, Pause, Highscores,
59 Repeat, Undo, Redo, Roll, EndTurn,
80 static TDEAction* create( StdGameAction
id,
const char *name,
81 const TQObject *recvr,
const char *slot,
82 TDEActionCollection* parent );
88 const TQObject *recvr,
const char *slot,
89 TDEActionCollection* parent )
90 {
return create(
id, 0, recvr, slot, parent ); }
98 static TDEAction *action(StdGameAction act_enum,
const TQObject *recvr = 0,
99 const char *slot = 0, TDEActionCollection *parent = 0,
100 const char *name = 0L );
106 static const char* name( StdGameAction
id );
112 static const char* stdName(StdGameAction act_enum);
117 static TDEAction *gameNew(
const TQObject *recvr = 0,
const char *slot = 0,
118 TDEActionCollection *parent = 0,
const char *name = 0L );
123 static TDEAction *load(
const TQObject *recvr = 0,
const char *slot = 0,
124 TDEActionCollection *parent = 0,
const char *name = 0L );
129 static TDERecentFilesAction *loadRecent(
const TQObject *recvr = 0,
const char *slot = 0,
130 TDEActionCollection *parent = 0,
const char *name = 0L );
135 static TDEAction *save(
const TQObject *recvr = 0,
const char *slot = 0,
136 TDEActionCollection *parent = 0,
const char *name = 0L );
141 static TDEAction *saveAs(
const TQObject *recvr = 0,
const char *slot = 0,
142 TDEActionCollection *parent = 0,
const char *name = 0L );
147 static TDEToggleAction *pause(
const TQObject *recvr = 0,
const char *slot = 0,
148 TDEActionCollection *parent = 0,
const char *name = 0L );
153 static TDEAction *highscores(
const TQObject *recvr = 0,
const char *slot = 0,
154 TDEActionCollection *parent = 0,
const char *name = 0L );
161 static TDEAction *end(
const TQObject *recvr = 0,
const char *slot = 0,
162 TDEActionCollection *parent = 0,
const char *name = 0L );
168 static TDEAction *print(
const TQObject *recvr = 0,
const char *slot = 0,
169 TDEActionCollection *parent = 0,
const char *name = 0L );
174 static TDEAction *quit(
const TQObject *recvr = 0,
const char *slot = 0,
175 TDEActionCollection *parent = 0,
const char *name = 0L );
182 static TDEAction *repeat(
const TQObject *recvr = 0,
const char *slot = 0,
183 TDEActionCollection *parent = 0,
const char *name = 0L );
188 static TDEAction *undo(
const TQObject *recvr = 0,
const char *slot = 0,
189 TDEActionCollection *parent = 0,
const char *name = 0L );
194 static TDEAction *redo(
const TQObject *recvr = 0,
const char *slot = 0,
195 TDEActionCollection *parent = 0,
const char *name = 0L );
200 static TDEAction *roll(
const TQObject *recvr = 0,
const char *slot = 0,
201 TDEActionCollection *parent = 0,
const char *name = 0L );
207 static TDEAction *endTurn(
const TQObject *recvr = 0,
const char *slot = 0,
208 TDEActionCollection *parent = 0,
const char *name = 0L );
214 static TDEAction *carddecks(
const TQObject *recvr = 0,
const char *slot = 0,
215 TDEActionCollection *parent = 0,
const char *name = 0L );
221 static TDEAction *configureHighscores(
const TQObject *recvr = 0,
const char *slot = 0,
222 TDEActionCollection *parent = 0,
const char *name = 0L );
228 static TDEAction *hint(
const TQObject *recvr = 0,
const char *slot = 0,
229 TDEActionCollection *parent = 0,
const char *name = 0L );
235 static TDEToggleAction *demo(
const TQObject *recvr = 0,
const char *slot = 0,
236 TDEActionCollection *parent = 0,
const char *name = 0L );
242 static TDEAction *solve(
const TQObject *recvr = 0,
const char *slot = 0,
243 TDEActionCollection *parent = 0,
const char *name = 0L );
249 static TDESelectAction *chooseGameType(
const TQObject *recvr = 0,
const char *slot = 0,
250 TDEActionCollection *parent = 0,
const char *name = 0L );
256 static TDEAction *restart(
const TQObject *recvr = 0,
const char *slot = 0,
257 TDEActionCollection *parent = 0,
const char *name = 0L );
Replacement for KStdAction for TDE Games.
static TDEAction * create(StdGameAction id, const TQObject *recvr, const char *slot, TDEActionCollection *parent)
StdGameAction
The standard menubar and toolbar actions.