Definition at line 299 of file gnc-option-gtk-ui.cpp.
◆ GncGtkCurrencyUIItem()
| GncGtkCurrencyUIItem::GncGtkCurrencyUIItem |
( |
GtkWidget * |
widget | ) |
|
|
inline |
Definition at line 302 of file gnc-option-gtk-ui.cpp.
302 :
class GncOptionGtkUIItem Gtk-specific Interface class for Option Widget
◆ set_option_from_ui_item()
| void GncGtkCurrencyUIItem::set_option_from_ui_item |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 312 of file gnc-option-gtk-ui.cpp.
313 {
314 auto widget{GNC_CURRENCY_EDIT(get_widget())};
316 option.set_value<gnc_commodity*>(currency);
317 }
gnc_commodity * gnc_currency_edit_get_currency(GNCCurrencyEdit *gce)
Retrieve the displayed currency of the widget.
◆ set_ui_item_from_option()
| void GncGtkCurrencyUIItem::set_ui_item_from_option |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 304 of file gnc-option-gtk-ui.cpp.
305 {
306 auto widget{GNC_CURRENCY_EDIT(get_widget())};
307 auto currency{option.get_value<gnc_commodity*>()};
308
309 if (currency)
311 }
void gnc_currency_edit_set_currency(GNCCurrencyEdit *gce, const gnc_commodity *currency)
Set the widget to display a certain currency name.
The documentation for this class was generated from the following file: