39 std::make_unique<ModelHasChangedController>(model, on_model_changed));
47 controller->resetChanged();
74 return p_impl->hasChanged();
81 return p_impl->resetChanged();
bool hasChanged() const
Returns true if the change in the models has been registered since the last call of resetChanged.
ProjectChangedController(const std::vector< SessionModel * > &models, callback_t project_changed_callback={})
void resetChanged()
Reset controller to initial state, pretending that no changes has been registered.
std::function< void()> callback_t
std::unique_ptr< ProjectChangedControllerImpl > p_impl
~ProjectChangedController()
materialitems.h Collection of materials to populate MaterialModel.
callback_t m_project_changed_callback
ProjectChangedControllerImpl(const std::vector< SessionModel * > &models, callback_t callback)
std::vector< std::unique_ptr< ModelHasChangedController > > change_controllers
std::vector< SessionModel * > m_models
bool m_project_has_changed
void onProjectHasChanged()
void create_controllers()