GnuCash
5.6-150-g038405b370+
|
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>
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 |
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.