GnuCash 7574033+
Loading...
Searching...
No Matches
GncGtkOwnerUIItem Class Reference
Inheritance diagram for GncGtkOwnerUIItem:
GncOptionGtkUIItem GncOptionUIItem

Public Member Functions

 GncGtkOwnerUIItem (GtkWidget *widget, GncOptionUIType type)
void set_ui_item_from_option (GncOption &option) noexcept override
void set_option_from_ui_item (GncOption &option) noexcept override
Public Member Functions inherited from GncOptionGtkUIItem
 GncOptionGtkUIItem (GtkWidget *widget, GncOptionUIType type)
 GncOptionGtkUIItem (const GncOptionGtkUIItem &item)
 GncOptionGtkUIItem (GncOptionGtkUIItem &&)=default
virtual void set_selectable (bool) const noexcept override
 Control wether the widget is sensitive.
void clear_ui_item () override
 Clear the data from the widget.
void set_widget (GtkWidget *widget)
virtual GtkWidget * get_widget () const
virtual SCM get_widget_scm_value (const GncOption &) const
Public Member Functions inherited from GncOptionUIItem
 GncOptionUIItem (GncOptionUIType type)
GncOptionUIType get_ui_type () const noexcept
virtual void set_dirty (bool status) noexcept
virtual bool get_dirty () const noexcept

Detailed Description

Definition at line 66 of file business-options-gnome.cpp.

Constructor & Destructor Documentation

◆ GncGtkOwnerUIItem()

GncGtkOwnerUIItem::GncGtkOwnerUIItem ( GtkWidget * widget,
GncOptionUIType type )
inline

Definition at line 69 of file business-options-gnome.cpp.

69 :
70 GncOptionGtkUIItem(widget, type) {}

Member Function Documentation

◆ set_option_from_ui_item()

void GncGtkOwnerUIItem::set_option_from_ui_item ( GncOption & option)
inlineoverridevirtualnoexcept

Implements GncOptionUIItem.

Definition at line 76 of file business-options-gnome.cpp.

77 {
78 GncOwner owner{};
79 gnc_owner_get_owner(get_widget(), &owner);
80 if (owner.type == ui_type_to_owner_type(option.get_ui_type()))
81 option.set_value<const GncOwner*>(&owner);
82 }

◆ set_ui_item_from_option()

void GncGtkOwnerUIItem::set_ui_item_from_option ( GncOption & option)
inlineoverridevirtualnoexcept

Implements GncOptionUIItem.

Definition at line 71 of file business-options-gnome.cpp.

72 {
73 auto owner = option.get_value<const GncOwner*>();
74 gnc_owner_set_owner(get_widget(), owner);
75 }

The documentation for this class was generated from the following file: