24#ifndef HTML_YES_NO_BOX_HPP
25#define HTML_YES_NO_BOX_HPP
38#include "exceptions.hpp"
39#include "body_builder.hpp"
42#include "html_form.hpp"
43#include "html_form_radio.hpp"
44#include "html_form_fieldset.hpp"
45#include "html_popup.hpp"
46#include "html_text.hpp"
53 static const std::string answer_yes;
54 static const std::string answer_no;
64 void ask_question(
const std::string & message,
bool default_value);
75 virtual void on_event(
const std::string & event_name)
override;
83 static constexpr const char* css_center =
"html_ynb_center";
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class events
Definition: events.hpp:52
class html_text manage text and header in html document
Definition: html_text.hpp:52
html component for user to answer by yes or no to a provided question
Definition: html_yes_no_box.hpp:51
virtual void new_css_library_available() override
inherited from body_builder
Definition: html_yes_no_box.cpp:120
void ask_question(const std::string &message, bool default_value)
make the question to appear to the user
Definition: html_yes_no_box.cpp:74
virtual void on_event(const std::string &event_name) override
inherited from actor parent class
Definition: html_yes_no_box.cpp:100
bool get_value() const
read the answer returned by the user
Definition: html_yes_no_box.hpp:70