GnuCash  4.11-354-g0815ab64c1
Public Member Functions
GncOptionUIItem Class Referenceabstract

Holds a pointer to the UI item which will control the option and an enum representing the type of the option for dispatch purposes; all of that happens in gnucash/gnome-utils/dialog-options and gnucash/gnome/business-option-gnome. More...

#include <gnc-option-ui.hpp>

Inheritance diagram for GncOptionUIItem:
GncOptionGtkUIItem GncGtkAccountListUIItem GncGtkAccountSelUIItem GncGtkBooleanUIItem GncGtkBudgetUIItem GncGtkColorUIItem GncGtkCommodityUIItem GncGtkCurrencyUIItem GncGtkDateFormatUIItem GncGtkFontUIItem GncGtkInvoiceUIItem GncGtkListUIItem GncGtkMultichoiceUIItem GncGtkNumberRangeUIItem GncGtkOwnerUIItem GncGtkPixmapUIItem GncGtkPlotSizeUIItem GncGtkRadioButtonUIItem GncGtkStringUIItem GncGtkTaxTableUIItem GncGtkTextUIItem GncOptionDateUIItem

Public Member Functions

 GncOptionUIItem (GncOptionUIType type)
 
GncOptionUIType get_ui_type () const noexcept
 
virtual void set_dirty (bool status) noexcept
 
virtual bool get_dirty () const noexcept
 
virtual void set_selectable (bool selectable) const noexcept=0
 
virtual void clear_ui_item ()=0
 
virtual void set_ui_item_from_option (GncOption &option) noexcept=0
 
virtual void set_option_from_ui_item (GncOption &option) noexcept=0
 

Detailed Description

Holds a pointer to the UI item which will control the option and an enum representing the type of the option for dispatch purposes; all of that happens in gnucash/gnome-utils/dialog-options and gnucash/gnome/business-option-gnome.

This class takes no ownership responsibility, so calling code is responsible for ensuring that the UI_Item is alive. For convenience the public clear_ui_item function can be used as a weak_ptr's destruction callback to ensure that the ptr will be nulled if the ui_item is destroyed elsewhere.

Definition at line 46 of file gnc-option-ui.hpp.


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