Specialized field class for text. More...
#include <field.hpp>
Public Member Functions | |
tfield_text (const std::string &id, const bool mandatory, const std::function< std::string()> &callback_load_value, const std::function< void(const std::string &)> &callback_save_value) | |
tfield_text (const std::string &id, const bool mandatory, std::string &linked_variable) | |
Public Member Functions inherited from gui2::tfield< std::string, ttext_, const std::string & > | |
tfield (const std::string &id, const bool mandatory, const std::function< std::string()> &callback_load_value, const std::function< void(const std::string &)> &callback_save_value) | |
Constructor. More... | |
tfield (const std::string &id, const bool mandatory, std::string &linked_variable) | |
Constructor. More... | |
tfield (const std::string &id, const bool mandatory, const std::string &value) | |
Constructor. More... | |
void | widget_restore (twindow &window) |
Inherited from tfield_. More... | |
void | set_widget_value (twindow &window, const std::string &value) |
Sets the value of the field. More... | |
void | set_cache_value (const std::string &value) |
Sets the value of the field. More... | |
void | widget_save (twindow &window) |
Inherited from tfield_. More... | |
std::string | get_widget_value (twindow &window) |
Gets the value of the field. More... | |
Public Member Functions inherited from gui2::tfield_ | |
tfield_ (const std::string &id, const bool mandatory) | |
Constructor. More... | |
virtual | ~tfield_ () |
void | attach_to_window (twindow &window) |
Attaches the field to a window. More... | |
void | widget_init (twindow &window) |
Initializes the widget. More... | |
void | widget_finalize (twindow &window) |
Finalizes the widget. More... | |
void | detach_from_window () |
Detaches the field from a window. More... | |
void | widget_set_enabled (twindow &window, const bool enable, const bool sync) |
Enables a widget. More... | |
const std::string & | id () const |
bool | is_mandatory () const |
tcontrol * | widget () |
const tcontrol * | widget () const |
Private Member Functions | |
void | finalize_specialized (twindow &window) |
Overridden from tfield_. More... | |
|
inline |
|
inline |
Overridden from tfield_.
Reimplemented from gui2::tfield_.
Definition at line 611 of file field.hpp.
References gui2::twindow::find(), and gui2::ttext_box::save_to_history().