|
| | html_label (const std::string &x_label) |
| |
| | html_label (const std::string &x_label, const std::string &x_tooltip) |
| |
|
| html_label (const html_label &ref)=default |
| |
|
| html_label (html_label &&ref) noexcept=delete |
| |
|
html_label & | operator= (const html_label &ref)=default |
| |
|
html_label & | operator= (html_label &&ref) noexcept=delete |
| |
|
void | set_label (const std::string &val) |
| | change the label value from the value provided at construction time
|
| |
|
const std::string & | get_label () const |
| | get the current value of the label
|
| |
|
void | set_emphase (bool em) |
| | set the label in bold or equivalent method to emphase it compare to the others
|
| |
|
void | set_for_field (const std::string &val) |
| | define the 'for' field to link this label to other CSS structure
|
| |
|
const std::string & | get_for_field () const |
| | read the current 'for' field value
|
| |
| virtual std::string | get_body_part () const override |
| | inherited from static_body_builder
|
| |
| | html_tooltip () |
| |
|
| html_tooltip (const html_tooltip &ref)=default |
| |
|
| html_tooltip (html_tooltip &&ref) noexcept=delete |
| |
|
html_tooltip & | operator= (const html_tooltip &ref)=default |
| |
|
html_tooltip & | operator= (html_tooltip &&ref) noexcept=delete |
| |
|
const std::string & | get_tooltip () const |
| | get the helper string to show as popup
|
| |
|
void | set_tooltip (const std::string &helper) |
| | set the helper to the tooltip (helper popup)
|
| |
Public Member Functions inherited from body_builder |
|
| body_builder () |
| | constructor
|
| |
| | body_builder (const body_builder &ref) |
| | copy constructor
|
| |
| | body_builder (body_builder &&ref) noexcept=delete |
| | move constructor
|
| |
| body_builder & | operator= (const body_builder &ref) |
| | assignment operator drops all existing children
|
| |
| body_builder & | operator= (body_builder &&ref) noexcept=delete |
| | move operator
|
| |
|
virtual | ~body_builder () |
| | the (virtual) destructor
|
| |
| void | set_prefix (const chemin &prefix) |
| |
| void | adopt (body_builder *obj) |
| |
|
bool | is_adopted () const |
| | whether the object has currently a parent (= is adopted)
|
| |
| void | foresake (body_builder *obj) |
| |
| void | set_visible (bool mode) |
| | ask for the object to become visible in HTML page or temporarily hidden
|
| |
| bool | get_visible () const |
| | returns the current visible status of the object
|
| |
|
bool | get_visible_recursively () const |
| | return the effective visible status of an object taking into account all of ancestors that adopted it
|
| |
|
void | add_css_class (const std::string &name) |
| | set this object with a additional css_class (assuming it is defined in a css_library available for this object)
|
| |
|
void | add_css_class (const css_class_group &cg) |
| | set this object with an additional set of css_classes (assuming they are all defined in a css_library available for this object)
|
| |
|
bool | has_css_class (const std::string &name) const |
| | check the presence of the given class name
|
| |
|
void | remove_css_class (const std::string &name) |
| | remove the provided css_class name from the list of css_class names this object has been assigned to
|
| |
|
void | remove_css_class (const css_class_group &cg) |
| | remove the provided css_class_group from the list
|
| |
|
void | clear_css_classes () |
| | clear the whole list of css_class names
|
| |
|
const std::set< std::string > & | get_css_classes_as_a_set () const |
| | provide the list of css_class names that this object has been set with
|
| |
|
css_class_group | get_css_class_group () const |
| | provide the list of css_class names as a css_class_group
|
| |
| std::string | get_css_classes (const std::string &extra="") const |
| | return the class_name as inlined css, suitable to be added in a html marker
|
| |
| void | define_css_class_in_library (const css_class &csscl) |
| |
|
void | define_css_class_in_library (const std::string &name, const css &cssdef) |
| |
|
bool | is_css_class_defined_in_library (const std::string &name) const |
| | check whether a css_class of given name already exists in a reachable css_library
|
| |
| std::string | get_body_part (const chemin &path, const request &req) |
| |
| void | ignore_body_changed_from_my_children (bool mode) |
| | ignore my_body_part_has_changed() invoked from adopted children and myself
|
| |
|
bool | get_ignore_body_changed_from_my_children () const |
| | get the current status of ignore_body_changed_from_my_children()
|
| |
| void | set_no_CR (bool no_cr=true) |
| | ask for the implementation not to add a new line after this control
|
| |
| void | assign_anchor (bool mode) |
| | assign an anchor to this object (the object's inherited_get_body_part() will be wrapped into an HTML anchor: )
|
| |
| std::string | get_assigned_anchor () const |
| | return the anchor value that has been assiged to this object (without the leading #)
|
| |
| virtual void | bind_to_anchor (const std::string &val) |
| | ask inherited components to use this anchor in case they redirect to an new URL or generate new URLs within their body part.
|
| |
Public Member Functions inherited from static_body_builder |
|
| static_body_builder (const static_body_builder &ref)=default |
| |
|
| static_body_builder (static_body_builder &&ref) noexcept=default |
| |
|
static_body_builder & | operator= (const static_body_builder &ref)=default |
| |
|
static_body_builder & | operator= (static_body_builder &&ref) noexcept=default |
| |
class html_label implements label and tooltips (helper string showing when mouse hovering)
it is not expect to adopt any child, but to be adopted