From f57e2eabe0a10c9732c83532e01654a499fb8dcf Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Mon, 21 Jun 2021 17:47:13 -0400 Subject: many, many changes; settings is broken --- src/user/raleigh/d/dialog.cpp | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'src/user/raleigh/d/dialog.cpp') diff --git a/src/user/raleigh/d/dialog.cpp b/src/user/raleigh/d/dialog.cpp index 38ca310..33f137e 100644 --- a/src/user/raleigh/d/dialog.cpp +++ b/src/user/raleigh/d/dialog.cpp @@ -54,21 +54,36 @@ dialog::dialog(widget &top_part, alist> butto main_box->add_end(*pbot); } -alist> &mk_yes_no_cancel() { - alist> *list = new alist>(3, 1); +button_list &mk_yes_no_cancel() { + button_list *list = new button_list(3, 1); list->add_back(duple("Yes", YES)); list->add_back(duple("No", NO)); list->add_back(duple("Cancel", CANCEL)); return *list; } -alist> &mk_yes_no_retry() { - alist> *list = new alist>(3, 1); +button_list &mk_yes_no_retry() { + button_list *list = new button_list(3, 1); list->add_back(duple("Yes", YES)); list->add_back(duple("No", NO)); list->add_back(duple("Retry", RETRY)); return *list; } -alist> &raleigh::yes_no_cancel(mk_yes_no_cancel()); -alist> &raleigh::yes_no_retry(mk_yes_no_retry()); \ No newline at end of file +button_list &mk_okay_cancel() { + button_list *list = new button_list(2, 1); + list->add_back(duple("Okay", OKAY)); + list->add_back(duple("Cancel", CANCEL)); + return *list; +} + +button_list &mk_okay() { + button_list *list = new button_list(1, 1); + list->add_back(duple("Okay", OKAY)); + return *list; +} + +button_list &raleigh::yes_no_cancel(mk_yes_no_cancel()); +button_list &raleigh::yes_no_retry(mk_yes_no_retry()); +button_list &raleigh::okay_cancel(mk_okay_cancel()); +button_list &raleigh::okay(mk_okay()); \ No newline at end of file -- cgit v1.2.3