Definition at line 399 of file gnc-option-gtk-ui.cpp.
◆ GncGtkMultichoiceUIItem()
| GncGtkMultichoiceUIItem::GncGtkMultichoiceUIItem |
( |
GtkWidget * |
widget | ) |
|
|
inline |
Definition at line 402 of file gnc-option-gtk-ui.cpp.
402 :
class GncOptionGtkUIItem Gtk-specific Interface class for Option Widget
◆ get_widget_scm_value()
| SCM GncGtkMultichoiceUIItem::get_widget_scm_value |
( |
const GncOption & |
option | ) |
const |
|
inlineoverridevirtual |
Reimplemented from GncOptionGtkUIItem.
Definition at line 414 of file gnc-option-gtk-ui.cpp.
415 {
416 auto widget{GTK_COMBO_BOX(get_widget())};
417 auto id{gtk_combo_box_get_active(widget)};
419 return scm_from_utf8_symbol(value);
420 }
const char * permissible_value(uint16_t index) const
Implemented only for GncOptionMultiselectValue.
◆ set_option_from_ui_item()
| void GncGtkMultichoiceUIItem::set_option_from_ui_item |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 409 of file gnc-option-gtk-ui.cpp.
410 {
411 auto widget{GTK_COMBO_BOX(get_widget())};
412 option.set_value<uint16_t>(static_cast<uint16_t>(gtk_combo_box_get_active(widget)));
413 }
◆ set_ui_item_from_option()
| void GncGtkMultichoiceUIItem::set_ui_item_from_option |
( |
GncOption & |
option | ) |
|
|
inlineoverridevirtualnoexcept |
Implements GncOptionUIItem.
Definition at line 404 of file gnc-option-gtk-ui.cpp.
405 {
406 auto widget{GTK_COMBO_BOX(get_widget())};
407 gtk_combo_box_set_active(widget, option.get_value<uint16_t>());
408 }
The documentation for this class was generated from the following file: