diff options
Diffstat (limited to 'src/user/include/cxx/raleigh/d/dialog.h')
-rw-r--r-- | src/user/include/cxx/raleigh/d/dialog.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/user/include/cxx/raleigh/d/dialog.h b/src/user/include/cxx/raleigh/d/dialog.h index f207033..1712b03 100644 --- a/src/user/include/cxx/raleigh/d/dialog.h +++ b/src/user/include/cxx/raleigh/d/dialog.h @@ -14,15 +14,21 @@ namespace raleigh { YES, NO, CANCEL, - RETRY + RETRY, + OKAY }; - extern alist<duple<const char *, diag_result_t>> &yes_no_cancel; - extern alist<duple<const char *, diag_result_t>> &yes_no_retry; + + typedef alist<duple<const char *, diag_result_t>> button_list; + extern button_list &yes_no_cancel; + extern button_list &yes_no_retry; + extern button_list &okay_cancel; + extern button_list &okay; + class dialog : public window { public: //button names are copied //alist isn't needed past constructor - dialog(widget &top_part, alist<duple<const char *, diag_result_t>> buttons); + dialog(widget &top_part, button_list buttons); //zero means not set yet diag_result_t result; |