38 I_REGISTER_INTERFACE(IModelEditor);
39 I_REGISTER_INTERFACE(IObserver);
40 I_ASSIGN_MULTI_0(m_observersCompPtr,
"SlaveObservers",
"List of components that observe the model",
true);
41 I_ASSIGN_TO(m_modelEditorsCompPtr, m_observersCompPtr,
false);
64 void EnsureModelDetached();
Component for binding of more observers to a data model.
bool IsModelAttached(const imod::IModel *modelPtr=nullptr) const override
Check if specified model is attached.
icomp::CComponentBase BaseClass
bool IsReadOnly() const override
Returns true if the model data can be changed.
bool OnModelDetached(imod::IModel *modelPtr) override
This call back function will be called, if an observable object is about to be detached.
void UpdateEditor(const istd::IChangeable::ChangeSet &changeSet) override
Updates editor with model data.
void AfterModelChange(imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override
This function will be called after update of the observer contents occures.
CMultiObserverBinderComp()
void OnComponentDestroyed() override
void UpdateModelFromEditor() const override
Updates model from editor.
bool OnModelAttached(imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override
This call back function will be called, if an observable object is about to be attached.
void BeforeModelChange(imod::IModel *modelPtr) override
This function will be called before update of the observer contents occures.
void SetReadOnly(bool state) override
Set flag that the model data can be changed.
Base class for component implementation.
Common interface for an model editor.
Common interface for model objects, that supports Model/Observer design pattern.
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Set of change flags (its IDs).
This namespace contains standard classes based on Qt.