From f5dd276edbeb65d787fcfd30a0d07bbc2660813c Mon Sep 17 00:00:00 2001 From: Baptiste Jonglez Date: Mon, 14 May 2012 12:38:19 +0200 Subject: src/utils.c: Add a status_ask_choice() function This function allows the user to choose between various alternatives, each one being associated to a given key. This will allow a great deal of factorisation, which will make it easier to handle special events (like resizing, user escape...) in an uniform manner. The cool part of the approach taken here is that it allows full i18n (i.e. the key bound to an alternative can be different depending on the language), at the expense of a somewhat less readable code on the caller side. Signed-off-by: Baptiste Jonglez Signed-off-by: Lukas Fleischer --- src/calcurse.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index f2e6991..4b54549 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -896,6 +896,7 @@ void fatalbox (const char *); void warnbox (const char *); void status_mesg (const char *, const char *); void status_mesg_yesno (const char *); +int status_ask_choice (const char *, const char[], int); void erase_window_part (WINDOW *, int, int, int, int); WINDOW *popup (int, int, int, int, const char *, const char *, int); void print_in_middle (WINDOW *, int, int, int, const char *); -- cgit v1.2.3-54-g00ecf