void process_change()
Sets 'has_changed' flag and reports back to client.
ModelHasChangedController(SessionModel *model, callback_t callback={})
Constructor of ModelHasChangedController.
std::function< void()> callback_t
bool hasChanged() const
Returns true if the model was changed since last call of resetChanged.
void resetChanged()
Reset has_changed flag.
void setOnItemRemoved(Callbacks::item_tagrow_t f, Callbacks::slot_t client={}) override
Sets callback to be notified on item remove.
void setOnItemInserted(Callbacks::item_tagrow_t f, Callbacks::slot_t client={}) override
Sets callback to be notified on item insert.
void setOnDataChange(Callbacks::item_int_t f, Callbacks::slot_t client={}) override
Sets callback to be notified on item's data change.
void setOnModelReset(Callbacks::model_t f, Callbacks::slot_t client={}) override
Sets the callback to be notified after model was fully reset (root item recreated).
Templated class for all objects willing to listen for changes in concrete SessionModel.
Main class to hold hierarchy of SessionItem objects.
materialitems.h Collection of materials to populate MaterialModel.