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

Public Member Functions

 GncGtkTaxTableUIItem (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 144 of file business-options-gnome.cpp.

Constructor & Destructor Documentation

◆ GncGtkTaxTableUIItem()

GncGtkTaxTableUIItem::GncGtkTaxTableUIItem ( GtkWidget *  widget)
inlineexplicit

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

147 :
148 GncOptionGtkUIItem(widget, GncOptionUIType::TAX_TABLE) {}
class GncOptionGtkUIItem Gtk-specific Interface class for Option Widget

Member Function Documentation

◆ set_option_from_ui_item()

void GncGtkTaxTableUIItem::set_option_from_ui_item ( GncOption option)
inlineoverridevirtualnoexcept

Implements GncOptionUIItem.

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

160 {
161 auto taxtable{gnc_simple_combo_get_value(GTK_COMBO_BOX(get_widget()))};
162 option.set_value<const QofInstance*>(qof_instance_cast(taxtable));
163 }

◆ set_ui_item_from_option()

void GncGtkTaxTableUIItem::set_ui_item_from_option ( GncOption option)
inlineoverridevirtualnoexcept

Implements GncOptionUIItem.

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

150 {
151 auto taxtable{option.get_value<const QofInstance*>()};
152 if (taxtable)
153 gnc_simple_combo_set_value(GTK_COMBO_BOX(get_widget()),
154 GNC_TAXTABLE(taxtable));
155 else
156 gnc_simple_combo_set_value(GTK_COMBO_BOX(get_widget()),
157 nullptr);
158 }

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