24#ifndef HTML_FORM_MASK_BOOL_HPP
25#define HTML_FORM_MASK_BOOL_HPP
35#include <dar/libdar.hpp>
42#include "body_builder.hpp"
43#include "html_mask.hpp"
46#include "bibliotheque_subconfig.hpp"
47#include "html_form_fieldset.hpp"
48#include "html_form_select.hpp"
49#include "html_table.hpp"
50#include "html_form_input.hpp"
51#include "html_form.hpp"
52#include "html_text.hpp"
53#include "html_form_dynamic_table.hpp"
93 static const std::string changed;
97 static constexpr const char* and_op =
"and_op";
98 static constexpr const char* or_op =
"or_op";
112 virtual std::unique_ptr<libdar::mask>
get_mask()
const override;
118 virtual void on_event(
const std::string & event_name)
override;
162 static std::string
invert_logic(
const std::string & logic);
165 virtual void load_json(
const json & source)
override;
186 static constexpr const char* bool_changed_event =
"bool_changed";
188 std::string current_bool_mode;
195 std::string bool_op_to_name(
const std::string & op);
200 void update_table_content_logic(
bool unconditionally);
201 std::string tell_action()
const;
202 void trigger_change();
204 static constexpr const unsigned int format_version = 1;
205 static constexpr const char* myclass_id =
"html_form_mask_bool";
207 static constexpr const char* jlabel_logic =
"logic";
208 static constexpr const char* jlabel_components =
"components";
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class bibliotheque_subconfig is an interface (pure virtual class)
Definition: bibliotheque_subconfig.hpp:50
std::set< coordinates > using_set
list of configs a given config depends on
Definition: bibliotheque.hpp:117
class body_builder is the root class of object generating HTML body
Definition: body_builder.hpp:99
class chemin definition
Definition: chemin.hpp:51
class events
Definition: events.hpp:52
class html_mask defines the interface of all masks
Definition: html_mask.hpp:44
class jsoner
Definition: jsoner.hpp:73
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45
defines jsoner class and class exception_json