24#ifndef HTML_FORM_RADIO_HPP
25#define HTML_FORM_RADIO_HPP
38#include "body_builder.hpp"
40#include "html_label.hpp"
55 static const std::string changed;
64 void add_choice(
const std::string &
id,
const std::string & label);
87 bool is_selected()
const {
return selected < choices.size(); };
108 const unsigned int num_choices()
const {
return choices.size(); };
118 void set_tooltip(
unsigned int index,
const std::string & msg);
140 record(
const std::string x_id,
141 const std::string & x_label): id(x_id), label(x_label) {};
144 const std::vector<record> & get_choices()
const {
return choices; };
145 void update_field_from_request(
const request & req);
159 std::vector<record> choices;
160 unsigned int selected;
164 std::string modif_changed;
class body_builder is the root class of object generating HTML body
Definition: body_builder.hpp:99
void my_body_part_has_changed()
let a class record a change in what inherited_get_body_part() would return if it was called again wit...
Definition: body_builder.cpp:420
class chemin definition
Definition: chemin.hpp:51
class events
Definition: events.hpp:52
class html_label implements label and tooltips (helper string showing when mouse hovering)
Definition: html_label.hpp:47
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45