38#include "static_body_builder.hpp"
39#include "html_tooltip.hpp"
40#include "html_text.hpp"
54 html_label(
const std::string & x_label,
const std::string & x_tooltip);
62 void set_label(
const std::string & val) { label = val; };
65 const std::string &
get_label()
const {
return label; };
92 std::string for_field;
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 html_label implements label and tooltips (helper string showing when mouse hovering)
Definition: html_label.hpp:47
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_label.cpp:60
virtual void has_adopted(body_builder *obj)
inherited from body builder
Definition: html_label.hpp:87
void set_emphase(bool em)
set the label in bold or equivalent method to emphase it compare to the others
Definition: html_label.hpp:68
virtual std::string get_body_part() const override
inherited from static_body_builder
Definition: html_label.cpp:66
void set_for_field(const std::string &val)
define the 'for' field to link this label to other CSS structure
Definition: html_label.hpp:71
const std::string & get_for_field() const
read the current 'for' field value
Definition: html_label.hpp:74
const std::string & get_label() const
get the current value of the label
Definition: html_label.hpp:65
void set_label(const std::string &val)
change the label value from the value provided at construction time
Definition: html_label.hpp:62
html_label(const std::string &x_label)
Definition: html_label.cpp:45
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45
base class of html components that are static
Definition: static_body_builder.hpp:47