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