24#ifndef HTML_FORM_INPUT_FILE_HPP
25#define HTML_FORM_INPUT_FILE_HPP
38#include "html_div.hpp"
41#include "html_form_input.hpp"
42#include "html_double_button.hpp"
44#include "html_text.hpp"
69 const std::string & initial_value,
70 const std::string &
size,
72 const std::string & popup_message);
82 void change_label(
const std::string & label) { input.change_label(label); };
83 const std::string & get_value()
const {
return input.get_value(); };
84 void set_value(
const std::string & val) { input.set_value(val); };
96 enum select_mode { select_dir, select_file, select_slice, select_symlink };
98 void set_select_mode(select_mode val);
104 void set_entrepot(std::shared_ptr<libdar::entrepot> entrepot);
150 virtual void on_event(
const std::string & event_name)
override;
173 std::string changed_event_name;
174 std::shared_ptr<libdar::entrepot> entrep;
175 bool refresh_get_body;
177 std::string min_digits;
178 bool internal_change;
200 std::string slicename_to_basename_update_min_digits(
const std::string & val);
202 static const std::string triggered_event;
204 static const std::string css_input;
205 static const std::string css_button_box;
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class chemin definition
Definition: chemin.hpp:51
class css_class gather css attributed under a given label
Definition: css_class.hpp:51
class events
Definition: events.hpp:52
class html_div is the implementation of
Definition: html_div.hpp:46
class html_select_file
Definition: html_select_file.hpp:110
void set_can_create_dir(bool val)
whether to show the button allowing the user to create a subdirectory
Definition: html_select_file.hpp:144
class html_text manage text and header in html document
Definition: html_text.hpp:52
class jsoner
Definition: jsoner.hpp:73
unsigned int size() const
the number of peers
Definition: reference.hpp:97
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45
defines html_select_file class
defines jsoner class and class exception_json