39#include "body_builder.hpp"
42#include "bibliotheque_subconfig.hpp"
44#include "html_form.hpp"
45#include "html_form_fieldset.hpp"
46#include "html_form_select.hpp"
47#include "html_double_button.hpp"
48#include "html_form_input.hpp"
49#include "html_text.hpp"
101 guichet(
bool subcomponent =
false);
128 void set_child(
const std::shared_ptr<bibliotheque> & ptr,
130 const std::shared_ptr<body_builder> & to_adopt,
131 bool add_form_around);
135 virtual void load_json(
const json & source)
override;
147 virtual void on_event(
const std::string & event_name)
override;
167 std::string anchor_to;
169 std::shared_ptr<bibliotheque> biblio;
170 std::shared_ptr<body_builder> adopted;
177 std::string currently_locked;
192 void update_selected();
194 void set_visibility();
196 void check_adopted()
const {
if(!adopted)
throw WEBDAR_BUG; };
198 static constexpr const char* event_select =
"select";
199 static constexpr const char* event_edit =
"edit";
200 static constexpr const char* event_clear =
"clear";
201 static constexpr const char* event_saveas =
"saveas";
203 static constexpr const unsigned int format_version = 1;
204 static constexpr const char* myclass_id =
"guichet";
206 static constexpr const char* class_id =
"guichet";
207 static constexpr const char* jlabel_mode =
"manual-mode";
208 static constexpr const char* jlabel_categ =
"category";
209 static constexpr const char* jlabel_name =
"configname";
210 static constexpr const char* jlabel_conf =
"config"; ;
212 static constexpr const char* css_left_margin =
"guichet_left_margin";
213 static constexpr const char* css_below_margin =
"guichet_below_margin";
214 static constexpr const char* css_above_margin =
"guichet_above_margin";
215 static constexpr const char* css_border_left =
"guichet_border_left";
217 static constexpr const char* fs_title_subcomp =
"Matches configuration named";
defines bibliotheque class
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
category
change event is replaced by a static method with category in argument
Definition: bibliotheque.hpp:63
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 guichet let one fetch config from a bibliotheque, save as or setup manually for a given compone...
Definition: guichet.hpp:92
virtual void clear_json() override
inherited from jsoner (used when this object is used as subconfig of another object)
Definition: guichet.cpp:298
virtual void bind_to_anchor(const std::string &val) override
inherited from body_builder
Definition: guichet.cpp:438
void load_from_bibliotheque(const std::string &name)
load a config of given name (in the category defined by set_child)*
Definition: guichet.hpp:152
virtual bibliotheque::using_set get_using_set() const override
inherited from bibliotheque_subconfig
Definition: guichet.cpp:308
virtual void new_css_library_available() override
inherited from body_builder
Definition: guichet.cpp:458
void set_child(const std::shared_ptr< bibliotheque > &ptr, bibliotheque::category cat, const std::shared_ptr< body_builder > &to_adopt, bool add_form_around)
mandatory call to provide the object to adopt and use to display configurations
Definition: guichet.cpp:86
guichet(bool subcomponent=false)
constructor
Definition: guichet.cpp:43
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition: guichet.cpp:326
virtual void load_json(const json &source) override
inherited from jsoner (used when this object is used as subconfig of another object)
Definition: guichet.cpp:192
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: guichet.cpp:450
virtual json save_json() const override
inherited from jsoner (used when this object is used as subconfig of another object)
Definition: guichet.cpp:270
class html_div is the implementation of
Definition: html_div.hpp:46
class html_text manage text and header in html document
Definition: html_text.hpp:52
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