#ifndef HTML_FORM_INPUT_FILE_HPP
#define HTML_FORM_INPUT_FILE_HPP
#include "my_config.h"
extern "C"
{
}
#include <memory>
#include "html_div.hpp"
#include "html_form_input.hpp"
#include "html_double_button.hpp"
#include "html_text.hpp"
{
public:
const std::string & initial_value,
const std::string &
size,
const std::string & popup_message);
void change_label(
const std::string & label) { input.
change_label(label); };
const std::string & get_value()
const {
return input.
get_value(); };
void set_value(
const std::string & val) { input.
set_value(val); };
enum select_mode { select_dir, select_file, select_slice, select_symlink };
void set_select_mode(select_mode val);
void set_entrepot(std::shared_ptr<libdar::entrepot> entrepot);
virtual void on_event(
const std::string & event_name)
override;
protected:
private:
std::string changed_event_name;
std::shared_ptr<libdar::entrepot> entrep;
bool refresh_get_body;
select_mode selmode;
std::string min_digits;
bool internal_change;
std::string slicename_to_basename_update_min_digits(const std::string & val);
static const std::string triggered_event;
static const std::string css_input;
static const std::string css_button_box;
};
#endif
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