summaryrefslogtreecommitdiff
path: root/src/user/include/cxx/raleigh/d
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-06-21 17:47:13 -0400
committerBenji Dial <benji6283@gmail.com>2021-06-21 17:47:13 -0400
commitf57e2eabe0a10c9732c83532e01654a499fb8dcf (patch)
treecbf91a23fcdd65e0ea7ed55b0940ca7042d59bef /src/user/include/cxx/raleigh/d
parent83835306d57461205a7bcfef9f4c3e06bc504006 (diff)
downloadportland-os-f57e2eabe0a10c9732c83532e01654a499fb8dcf.tar.gz
many, many changes; settings is broken
Diffstat (limited to 'src/user/include/cxx/raleigh/d')
-rw-r--r--src/user/include/cxx/raleigh/d/dialog.h14
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;