GnuCash c935c2f+
Loading...
Searching...
No Matches
Public Member Functions
GncGtkAccountSelUIItem Class Reference
Inheritance diagram for GncGtkAccountSelUIItem:
GncOptionGtkUIItem GncOptionUIItem

Public Member Functions

 GncGtkAccountSelUIItem (GtkWidget *widget)
 
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 1072 of file gnc-option-gtk-ui.cpp.

Constructor & Destructor Documentation

◆ GncGtkAccountSelUIItem()

GncGtkAccountSelUIItem::GncGtkAccountSelUIItem ( GtkWidget *  widget)
inlineexplicit

Definition at line 1075 of file gnc-option-gtk-ui.cpp.

1075 :
1076 GncOptionGtkUIItem{widget, GncOptionUIType::ACCOUNT_SEL} {}
class GncOptionGtkUIItem Gtk-specific Interface class for Option Widget

Member Function Documentation

◆ set_option_from_ui_item()

void GncGtkAccountSelUIItem::set_option_from_ui_item ( GncOption option)
inlineoverridevirtualnoexcept

Implements GncOptionUIItem.

Definition at line 1084 of file gnc-option-gtk-ui.cpp.

1085 {
1086 auto widget{GNC_ACCOUNT_SEL(get_widget())};
1087// Must cast it to const Account* to get the template specialization to recognize it.
1088 option.set_value(static_cast<const Account*>(gnc_account_sel_get_account(widget)));
1089 }
STRUCTS.

◆ set_ui_item_from_option()

void GncGtkAccountSelUIItem::set_ui_item_from_option ( GncOption option)
inlineoverridevirtualnoexcept

Implements GncOptionUIItem.

Definition at line 1077 of file gnc-option-gtk-ui.cpp.

1078 {
1079 auto widget{GNC_ACCOUNT_SEL(get_widget())};
1080 auto instance{option.get_value<const Account*>()};
1081 if (instance)
1082 gnc_account_sel_set_account(widget, const_cast<Account*>(instance), FALSE);
1083 }

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