|
ACF $AcfVersion:0$
|
Join functionality of iqtgui::IGuiObject interface and imod::IObserver.
More...
#include <TGuiObserverWrap.h>
Classes | |
| class | UpdateBlocker |
Public Member Functions | |
| TGuiObserverWrap () | |
| virtual bool | OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override |
| virtual bool | OnModelDetached (imod::IModel *modelPtr) override |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Protected Member Functions | |
| virtual void | OnGuiModelShown () |
| Called when model is attached and GUI is shown. | |
| virtual void | OnGuiModelHidden () |
| Called when model is detached or GUI is hidden. | |
| virtual void | OnGuiModelAttached () |
| Called when model is attached and GUI is created. | |
| virtual void | OnGuiModelDetached () |
| Called when model is detached or GUI is destroyed. | |
| bool | IsUpdateBlocked () const |
| Check if GUI updating is blocked. | |
| bool | DoUpdateModel () const |
| Secure update model. | |
| virtual void | UpdateModel () const |
| Do update of the model to reflect the current contents of GUI. | |
| virtual void | UpdateGui (const istd::IChangeable::ChangeSet &changeSet) |
| Do update of the GUI to reflect the state of model. | |
| virtual void | UpdateEditor (const istd::IChangeable::ChangeSet &changeSet) override |
| Updates editor with model data. | |
| virtual void | UpdateModelFromEditor () const override |
| Updates model from editor. | |
| virtual void | OnGuiShown () override |
| virtual void | OnGuiHidden () override |
| virtual void | OnGuiRetranslate () override |
| virtual void | OnGuiCreated () override |
| virtual void | OnGuiDestroyed () override |
| virtual void | AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override |
| virtual bool | IsReadOnly () const override |
Returns true if the model data can be changed. | |
| virtual void | SetReadOnly (bool state) override |
| Set flag that the model data can be changed. | |
| void | SetDisableUiIfReadOnly (bool state) |
| Control if GUI should be disaled for read-only editors. | |
Protected Attributes | |
| bool | m_isReadOnly |
Additional Inherited Members | |
Public Types inherited from imod::IModelEditor | |
| enum | ChangeFlags { CF_INIT_EDITOR = 0x3720694 } |
| Data model change notification flags. More... | |
Join functionality of iqtgui::IGuiObject interface and imod::IObserver.
Definition at line 28 of file TGuiObserverWrap.h.
| iqtgui::TGuiObserverWrap< Gui, Observer >::TGuiObserverWrap | ( | ) |
Definition at line 143 of file TGuiObserverWrap.h.
|
overrideprotectedvirtual |
Definition at line 377 of file TGuiObserverWrap.h.
References istd::IChangeable::CF_DESTROYING, istd::IChangeable::ChangeSet::ContainsExplicit(), and NULL.
|
protected |
Secure update model.
It use GUI block mechanism and it is designed to be called directly from UI slot.
Definition at line 250 of file TGuiObserverWrap.h.
|
overrideprotectedvirtual |
Returns true if the model data can be changed.
Implements imod::IModelEditor.
Definition at line 395 of file TGuiObserverWrap.h.
|
protected |
Check if GUI updating is blocked.
Definition at line 234 of file TGuiObserverWrap.h.
|
overrideprotectedvirtual |
Reimplemented in CTextEditorComp, iqt2d::CMultiBitmapViewComp, iqtdoc::CDocumentMetaInfoEditorComp, iqtgui::CStatusGuiComp, iqtgui::TItemModelEditorCompBase< ItemWidgetClass >, and iqtprm::CExtComposedParamsSetGuiComp.
Definition at line 346 of file TGuiObserverWrap.h.
References NULL.
|
overrideprotectedvirtual |
Reimplemented in iqtprm::CExtComposedParamsSetGuiComp.
Definition at line 364 of file TGuiObserverWrap.h.
References NULL.
|
overrideprotectedvirtual |
Definition at line 325 of file TGuiObserverWrap.h.
References NULL.
|
protectedvirtual |
Called when model is attached and GUI is created.
Reimplemented in iqt2d::CImageViewComp, iqt2d::CMultiBitmapViewComp, iqtdoc::CDocumentMetaInfoEditorComp, iqtgui::TItemModelEditorCompBase< ItemWidgetClass >, and iqtprm::CExtComposedParamsSetGuiComp.
Definition at line 211 of file TGuiObserverWrap.h.
References NULL.
|
protectedvirtual |
Called when model is detached or GUI is destroyed.
Reimplemented in iqt2d::CImageViewComp, iqtdoc::CDocumentMetaInfoEditorComp, and iqtprm::CExtComposedParamsSetGuiComp.
Definition at line 222 of file TGuiObserverWrap.h.
References NULL.
|
protectedvirtual |
Called when model is detached or GUI is hidden.
Definition at line 205 of file TGuiObserverWrap.h.
|
protectedvirtual |
Called when model is attached and GUI is shown.
Definition at line 199 of file TGuiObserverWrap.h.
|
overrideprotectedvirtual |
Definition at line 336 of file TGuiObserverWrap.h.
|
overrideprotectedvirtual |
Definition at line 305 of file TGuiObserverWrap.h.
References NULL.
|
overridevirtual |
Definition at line 156 of file TGuiObserverWrap.h.
References NULL.
|
overridevirtual |
Definition at line 177 of file TGuiObserverWrap.h.
|
protected |
Control if GUI should be disaled for read-only editors.
By default it is set to true.
Definition at line 241 of file TGuiObserverWrap.h.
|
overrideprotectedvirtual |
Set flag that the model data can be changed.
Implements imod::IModelEditor.
Reimplemented in iqtprm::CExtComposedParamsSetGuiComp.
Definition at line 402 of file TGuiObserverWrap.h.
References NULL.
|
overrideprotectedvirtual |
Updates editor with model data.
This method will be called only if GUI is connected.
| changeSet | the same as changeSet in istd::IChangeable. |
Implements imod::IModelEditor.
Reimplemented in iqtprm::CExtComposedParamsSetGuiComp.
Definition at line 280 of file TGuiObserverWrap.h.
|
protectedvirtual |
Do update of the GUI to reflect the state of model.
This method should be implmented by derived classes instead of imod::IModelEditor::UpdateEditor().
Reimplemented in CTextEditorComp, iqt2d::CImageViewComp, iqt2d::CMultiBitmapViewComp, iqtdoc::CDocumentMetaInfoEditorComp, and iqtgui::CStatusGuiComp.
Definition at line 272 of file TGuiObserverWrap.h.
|
protectedvirtual |
Do update of the model to reflect the current contents of GUI.
This method should be implmented by derived classes instead of imod::IModelEditor::UpdateModelFromEditor().
Reimplemented in CTextEditorComp, and iqtprm::CExtComposedParamsSetGuiComp.
Definition at line 266 of file TGuiObserverWrap.h.
|
overrideprotectedvirtual |
Updates model from editor.
This method will be called only if GUI is connected and model is attached.
Implements imod::IModelEditor.
Definition at line 294 of file TGuiObserverWrap.h.
|
protected |
Definition at line 119 of file TGuiObserverWrap.h.