From 8c6c8df8f4bd07602931485956fce524925dc2bb Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 2 Apr 2011 15:36:30 +0000 Subject: Add functions provided by the midend to tell a front end whether GUI buttons for undo and redo should currently be greyed out. [originally from svn r9139] --- puzzles.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'puzzles.h') diff --git a/puzzles.h b/puzzles.h index 971cb29..6933e70 100644 --- a/puzzles.h +++ b/puzzles.h @@ -253,6 +253,8 @@ char *midend_get_game_id(midend *me); int midend_can_format_as_text_now(midend *me); char *midend_text_format(midend *me); char *midend_solve(midend *me); +int midend_can_undo(midend *me); +int midend_can_redo(midend *me); void midend_supersede_game_desc(midend *me, char *desc, char *privdesc); char *midend_rewrite_statusbar(midend *me, char *text); void midend_serialise(midend *me, -- cgit v1.1