#ifndef RALEIGH_D_DIALOG_H #define RALEIGH_D_DIALOG_H #include #include #include #include #include namespace raleigh { typedef uint32_t diag_result_t; enum : diag_result_t { NONE = 0, YES, NO, CANCEL, RETRY }; extern alist> &yes_no_cancel; extern alist> &yes_no_retry; class dialog : public window { public: //button names are copied //alist isn't needed past constructor dialog(widget &top_part, alist> buttons); //zero means not set yet diag_result_t result; void show_modal(); private: vbox *main_box; }; } #endif