Definition at line 202 of file gnc-option-gtk-ui.cpp.
◆ GncGtkStringUIItem()
| GncGtkStringUIItem::GncGtkStringUIItem |
( |
GtkWidget * |
widget | ) |
|
|
inline |
Definition at line 205 of file gnc-option-gtk-ui.cpp.
205 :
class GncOptionGtkUIItem Gtk-specific Interface class for Option Widget
◆ set_option_from_ui_item()
| void GncGtkStringUIItem::set_option_from_ui_item |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 212 of file gnc-option-gtk-ui.cpp.
213 {
214 auto widget{GTK_ENTRY(get_widget())};
215 option.set_value(std::string{gtk_entry_get_text(widget)});
216 }
◆ set_ui_item_from_option()
| void GncGtkStringUIItem::set_ui_item_from_option |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 207 of file gnc-option-gtk-ui.cpp.
208 {
209 auto widget{GTK_ENTRY(get_widget())};
210 gtk_entry_set_text(widget, option.get_value<std::string>().c_str());
211 }
The documentation for this class was generated from the following file: