Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
iqtgui::TGuiObserverWrap< Gui, Observer > Class Template Reference

Join functionality of iqtgui::IGuiObject interface and imod::IObserver. More...

#include <TGuiObserverWrap.h>

Inheritance diagram for iqtgui::TGuiObserverWrap< Gui, Observer >:
imod::IModelEditor istd::IPolymorphic

Classes

class  UpdateBlocker
 

Public Member Functions

 TGuiObserverWrap ()
 
virtual bool OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
 
virtual bool OnModelDetached (imod::IModel *modelPtr)
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

virtual void OnGuiModelShown ()
 Called when model is attached and GUI is shown. More...
 
virtual void OnGuiModelHidden ()
 Called when model is detached or GUI is hidden. More...
 
virtual void OnGuiModelAttached ()
 Called when model is attached and GUI is created. More...
 
virtual void OnGuiModelDetached ()
 Called when model is detached or GUI is destroyed. More...
 
bool IsUpdateBlocked () const
 Check if GUI updating is blocked. More...
 
bool DoUpdateModel () const
 Secure update model. More...
 
virtual void UpdateModel () const
 Do update of the model to reflect the current contents of GUI. More...
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet)
 Do update of the GUI to reflect the state of model. More...
 
virtual void UpdateEditor (const istd::IChangeable::ChangeSet &changeSet)
 Updates editor with model data. More...
 
virtual void UpdateModelFromEditor () const
 Updates model from editor. More...
 
virtual void OnGuiShown ()
 
virtual void OnGuiHidden ()
 
virtual void OnGuiRetranslate ()
 
virtual void OnGuiCreated ()
 
virtual void OnGuiDestroyed ()
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 
virtual bool IsReadOnly () const
 Returns true if the model data can be changed. More...
 
virtual void SetReadOnly (bool state)
 Set flag that the model data can be changed. More...
 
void SetDisableUiIfReadOnly (bool state)
 Control if GUI should be disaled for read-only editors. More...
 

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...
 

Detailed Description

template<class Gui, class Observer>
class iqtgui::TGuiObserverWrap< Gui, Observer >

Join functionality of iqtgui::IGuiObject interface and imod::IObserver.

Definition at line 28 of file TGuiObserverWrap.h.

Constructor & Destructor Documentation

template<class Gui , class Observer >
iqtgui::TGuiObserverWrap< Gui, Observer >::TGuiObserverWrap ( )

Definition at line 143 of file TGuiObserverWrap.h.

Member Function Documentation

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::AfterUpdate ( imod::IModel modelPtr,
const istd::IChangeable::ChangeSet changeSet 
)
protectedvirtual
template<class Gui , class Observer >
bool iqtgui::TGuiObserverWrap< Gui, Observer >::DoUpdateModel ( ) const
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.

template<class Gui , class Observer >
bool iqtgui::TGuiObserverWrap< Gui, Observer >::IsReadOnly ( ) const
protectedvirtual

Returns true if the model data can be changed.

Implements imod::IModelEditor.

Definition at line 395 of file TGuiObserverWrap.h.

template<class Gui , class Observer >
bool iqtgui::TGuiObserverWrap< Gui, Observer >::IsUpdateBlocked ( ) const
protected

Check if GUI updating is blocked.

Definition at line 234 of file TGuiObserverWrap.h.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiCreated ( )
protectedvirtual

Reimplemented in iqt2d::CMultiBitmapViewComp, iqtprm::CSelectionParamGuiComp, iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >, iqt2d::TPolygonBasedParamsGuiComp< iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TPolygonBasedParamsGuiComp< iview::CPolygonShape, i2d::CPolygon >, iqt2d::TPolygonBasedParamsGuiComp< iview::CPolylineShape, i2d::CPolyline >, iqtprm::CParamsManagerGuiCompBase, ifilegui::CFileSystemExplorerGuiComp, iqtprm::COptionsManagerGuiComp, ifilegui::CFileTreeViewGuiComp, iqtprm::COptionsManagerEditorComp, iqtprm::CComposedParamsSetGuiComp, ifilegui::CFilePreviewGuiComp, iqtprm::CVariableParamGuiComp, iqtprm::CExtParamsManagerGuiComp, iqtprm::COptionsListEditorComp, iqtprm::CNameParamGuiComp, iqtprm::CFileNameParamGuiComp, iqtprm::CExtComposedParamsSetGuiComp, ifilegui::CSimpleFilePathParamGuiComp, iqtgui::TDesignerGuiObserverCompBase< UI, Model, WidgetType >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileTreeViewGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CAnnulusSegment >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CLine2d >, iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsManagerGuiComp, iprm::IOptionsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui, PolygonBasedModel >, iqtgui::TDesignerGuiObserverCompBase< Ui::CImagePropertiesFrameComp, iimg::IBitmap >, iqtgui::TDesignerGuiObserverCompBase< Ui, ShapeModel >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CPolygon >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CRectangle >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CPosition2d >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CArc >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFilePreviewGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::COrientedCircle >, iqtgui::TDesignerGuiObserverCompBase< Ui::CParamsManagerGuiCompBase, iprm::IParamsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileListProviderGuiComp, ifile::IFileListProvider >, iqtgui::TDesignerGuiObserverCompBase< Ui::CExtParamsManagerGuiComp, iprm::IParamsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsManagerEditorComp, iprm::IOptionsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectableGuiComp, iprm::ISelectionParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::CButtonBasedSelectionParamGuiComp, iprm::ISelectionParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CTubePolyline >, iqtgui::TDesignerGuiObserverCompBase< Ui::CComposedParamsSetGuiComp, iprm::IParamsSet >, iqtgui::TDesignerGuiObserverCompBase< Ui::CVariableParamGuiComp, iprm::IVariableParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CAffineTransformation2d >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CAnnulus >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CPolyline >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileNameParamGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsListEditorComp, iprm::IOptionsList >, iqtgui::TDesignerGuiObserverCompBase< Ui::CTextLogGuiComp, ilog::IMessageContainer >, iqtgui::TDesignerGuiObserverCompBase< Ui::CSimpleFilePathParamGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::CNameParamGuiComp, iprm::INameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CCircle >, iqtgui::TDesignerGuiObserverCompBase< Ui::CImagePropertyGuiComp, iimg::IBitmap >, iqtgui::TDesignerGuiObserverCompBase< Ui, CircleBasedModel >, iqtgui::TDesignerGuiObserverCompBase< Ui::CCheckableOptionsEditorComp, iprm::IOptionsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileSystemExplorerGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CQuadrangle >, iqtgui::TDesignerGuiObserverCompBase< Ui::CEnableableParamGuiComp, iprm::IEnableableParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::CShapeInfoGuiComp, IShapeStatusInfo >, iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectionParamGuiComp, iprm::ISelectionParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectionParamIndexGuiComp, iprm::ISelectionParam >, iqtdoc::CDocumentMetaInfoEditorComp, iqtprm::CSelectableGuiComp, iqt2d::CLine2dParamsGuiComp, iqtprm::CMultiParamsManagerGuiComp, iqt2d::CPosition2dParamsGuiComp, iqtgui::TItemModelEditorCompBase< ItemWidgetClass >, iqtgui::TItemModelEditorCompBase< QTableView >, iqtgui::CStatusGuiComp, iqt2d::CAnnulusParamsGuiComp, iqt2d::CQuadrangleParamsGuiComp, iqt2d::CAnnulusSegmentParamsGuiComp, iqt2d::CArcParamsGuiComp, iqt2d::CImageViewComp, iloggui::CTextLogGuiComp, iqt2d::TCircleBasedParamsGuiComp< CircleBasedShape, CircleBasedModel >, iqt2d::TCircleBasedParamsGuiComp< iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TCircleBasedParamsGuiComp< iview::CCircleShape, i2d::CCircle >, iqtgui::CTableBasedModelEditorComp, iqtprm::CParamsManagerGuiComp, and iqtprm::CEnableableParamGuiComp.

Definition at line 346 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiDestroyed ( )
protectedvirtual

Reimplemented in iqtprm::CSelectionParamGuiComp, iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc >, iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus >, iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::CCircleShape, i2d::CCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolygonShape, i2d::CPolygon >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, CircleBasedShape, CircleBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolylineShape, i2d::CPolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle >, iqtprm::COptionsManagerGuiComp, iqtprm::CComposedParamsSetGuiComp, ifilegui::CFilePreviewGuiComp, iqtprm::CVariableParamGuiComp, iqtprm::CExtComposedParamsSetGuiComp, iqtprm::CSelectableGuiComp, iqt2d::CLine2dParamsGuiComp, iqtprm::CMultiParamsManagerGuiComp, iqt2d::CPosition2dParamsGuiComp, iqt2d::CAnnulusParamsGuiComp, iqt2d::CQuadrangleParamsGuiComp, iqt2d::CAnnulusSegmentParamsGuiComp, iqt2d::CArcParamsGuiComp, iqt2d::CImageViewComp, and iqtprm::CParamsManagerGuiComp.

Definition at line 364 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiHidden ( )
protectedvirtual

Reimplemented in iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc >, iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus >, iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::CCircleShape, i2d::CCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolygonShape, i2d::CPolygon >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, CircleBasedShape, CircleBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolylineShape, i2d::CPolyline >, and iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle >.

Definition at line 325 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiModelAttached ( )
protectedvirtual

Called when model is attached and GUI is created.

Reimplemented in iqt2d::CMultiBitmapViewComp, iqtprm::CSelectionParamGuiComp, iqtprm::CParamsManagerGuiCompBase, iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc >, iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus >, iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::CCircleShape, i2d::CCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolygonShape, i2d::CPolygon >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, CircleBasedShape, CircleBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolylineShape, i2d::CPolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle >, iqtprm::CComposedParamsSetGuiComp, iqtprm::COptionsManagerGuiComp, iqtprm::COptionsManagerEditorComp, iqtprm::CExtComposedParamsSetGuiComp, ifilegui::CFilePreviewGuiComp, iqtprm::CFileNameParamGuiComp, iqtprm::CButtonBasedSelectionParamGuiComp, iqtprm::COptionsListEditorComp, iqtgui::TItemModelEditorCompBase< ItemWidgetClass >, iqtgui::TItemModelEditorCompBase< QTableView >, ifilegui::CSimpleFilePathParamGuiComp, iqtdoc::CDocumentMetaInfoEditorComp, iqtprm::CSelectableGuiComp, iqt2d::CAffineTransformationParamsGuiComp, iqt2d::CRectangleParamsGuiComp, iqtprm::CEnableableParamGuiComp, iqtprm::CSelectableParamsSetGuiComp, iqt2d::TCircleBasedParamsGuiComp< CircleBasedShape, CircleBasedModel >, iqt2d::TCircleBasedParamsGuiComp< iview::COrientedCircleShape, i2d::COrientedCircle >, and iqt2d::TCircleBasedParamsGuiComp< iview::CCircleShape, i2d::CCircle >.

Definition at line 211 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiModelDetached ( )
protectedvirtual

Called when model is detached or GUI is destroyed.

Reimplemented in iqtprm::CSelectionParamGuiComp, iqtprm::CParamsManagerGuiCompBase, iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc >, iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus >, iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::CCircleShape, i2d::CCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolygonShape, i2d::CPolygon >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, CircleBasedShape, CircleBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolylineShape, i2d::CPolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle >, iqtprm::CComposedParamsSetGuiComp, iqtprm::COptionsManagerGuiComp, iqtprm::COptionsManagerEditorComp, iqtprm::CExtComposedParamsSetGuiComp, ifilegui::CFilePreviewGuiComp, iqtprm::CButtonBasedSelectionParamGuiComp, iqtprm::COptionsListEditorComp, iqtdoc::CDocumentMetaInfoEditorComp, iqtprm::CSelectableGuiComp, iqt2d::CAffineTransformationParamsGuiComp, iqt2d::CRectangleParamsGuiComp, iqtprm::CSelectableParamsSetGuiComp, and iqtgui::CImagePropertiesFrameComp.

Definition at line 222 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiModelHidden ( )
protectedvirtual

Called when model is detached or GUI is hidden.

Definition at line 205 of file TGuiObserverWrap.h.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiModelShown ( )
protectedvirtual

Called when model is attached and GUI is shown.

Definition at line 199 of file TGuiObserverWrap.h.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiRetranslate ( )
protectedvirtual
template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::OnGuiShown ( )
protectedvirtual

Reimplemented in iqtprm::CSelectionParamGuiComp, iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc >, iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus >, iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::CCircleShape, i2d::CCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolygonShape, i2d::CPolygon >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, CircleBasedShape, CircleBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolylineShape, i2d::CPolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle >, and iqtprm::COptionsManagerGuiComp.

Definition at line 305 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
bool iqtgui::TGuiObserverWrap< Gui, Observer >::OnModelAttached ( imod::IModel modelPtr,
istd::IChangeable::ChangeSet changeMask 
)
virtual

Reimplemented in iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc >, iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus >, iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::CCircleShape, i2d::CCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolygonShape, i2d::CPolygon >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, CircleBasedShape, CircleBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolylineShape, i2d::CPolyline >, and iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle >.

Definition at line 156 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
bool iqtgui::TGuiObserverWrap< Gui, Observer >::OnModelDetached ( imod::IModel modelPtr)
virtual

Reimplemented in iqt2d::TShapeParamsGuiCompBase< Ui, Shape, ShapeModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CArcParamsGuiComp, iview::CArcShape, i2d::CArc >, iqt2d::TShapeParamsGuiCompBase< Ui::CAffineTransformationParamsGui, iview::CAffineTransformation2dShape, i2d::CAffineTransformation2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CLine2dParamsGuiComp, iview::CLineShape, i2d::CLine2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CRectangleParamsGuiComp, iview::CRectangleShape, i2d::CRectangle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, PolygonBasedShape, PolygonBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusParamsGuiComp, iview::CAnnulusShape, i2d::CAnnulus >, iqt2d::TShapeParamsGuiCompBase< Ui::CPosition2dParamsGuiComp, iview::CPinShape, i2d::CPosition2d >, iqt2d::TShapeParamsGuiCompBase< Ui::CAnnulusSegmentParamsGuiComp, iview::CAnnulusSegmentShape, i2d::CAnnulusSegment >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, iview::CCircleShape, i2d::CCircle >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolygonShape, i2d::CPolygon >, iqt2d::TShapeParamsGuiCompBase< Ui::CCircleParamsGuiComp, CircleBasedShape, CircleBasedModel >, iqt2d::TShapeParamsGuiCompBase< Ui::CPolygonParamsGuiComp, iview::CPolylineShape, i2d::CPolyline >, iqt2d::TShapeParamsGuiCompBase< Ui::CQuadrangleParamsGuiComp, iview::CParallelogramShape, i2d::CQuadrangle >, and iqtprm::CVariableParamGuiComp.

Definition at line 177 of file TGuiObserverWrap.h.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::SetDisableUiIfReadOnly ( bool  state)
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.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::SetReadOnly ( bool  state)
protectedvirtual

Set flag that the model data can be changed.

Returns
true, if this feature is supported.

Implements imod::IModelEditor.

Reimplemented in iqtprm::CExtComposedParamsSetGuiComp, iqtgui::TDesignerGuiObserverCompBase< UI, Model, WidgetType >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileTreeViewGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CAnnulusSegment >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CLine2d >, iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsManagerGuiComp, iprm::IOptionsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui, PolygonBasedModel >, iqtgui::TDesignerGuiObserverCompBase< Ui::CImagePropertiesFrameComp, iimg::IBitmap >, iqtgui::TDesignerGuiObserverCompBase< Ui, ShapeModel >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CPolygon >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CRectangle >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CPosition2d >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CArc >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFilePreviewGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::COrientedCircle >, iqtgui::TDesignerGuiObserverCompBase< Ui::CParamsManagerGuiCompBase, iprm::IParamsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileListProviderGuiComp, ifile::IFileListProvider >, iqtgui::TDesignerGuiObserverCompBase< Ui::CExtParamsManagerGuiComp, iprm::IParamsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsManagerEditorComp, iprm::IOptionsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectableGuiComp, iprm::ISelectionParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::CButtonBasedSelectionParamGuiComp, iprm::ISelectionParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CTubePolyline >, iqtgui::TDesignerGuiObserverCompBase< Ui::CComposedParamsSetGuiComp, iprm::IParamsSet >, iqtgui::TDesignerGuiObserverCompBase< Ui::CVariableParamGuiComp, iprm::IVariableParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CAffineTransformation2d >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CAnnulus >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CPolyline >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileNameParamGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::COptionsListEditorComp, iprm::IOptionsList >, iqtgui::TDesignerGuiObserverCompBase< Ui::CTextLogGuiComp, ilog::IMessageContainer >, iqtgui::TDesignerGuiObserverCompBase< Ui::CSimpleFilePathParamGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::CNameParamGuiComp, iprm::INameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CCircle >, iqtgui::TDesignerGuiObserverCompBase< Ui::CImagePropertyGuiComp, iimg::IBitmap >, iqtgui::TDesignerGuiObserverCompBase< Ui, CircleBasedModel >, iqtgui::TDesignerGuiObserverCompBase< Ui::CCheckableOptionsEditorComp, iprm::IOptionsManager >, iqtgui::TDesignerGuiObserverCompBase< Ui::CFileSystemExplorerGuiComp, ifile::IFileNameParam >, iqtgui::TDesignerGuiObserverCompBase< Ui, i2d::CQuadrangle >, iqtgui::TDesignerGuiObserverCompBase< Ui::CEnableableParamGuiComp, iprm::IEnableableParam >, iqtgui::TDesignerGuiObserverCompBase< Ui::CShapeInfoGuiComp, IShapeStatusInfo >, iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectionParamGuiComp, iprm::ISelectionParam >, and iqtgui::TDesignerGuiObserverCompBase< Ui::CSelectionParamIndexGuiComp, iprm::ISelectionParam >.

Definition at line 402 of file TGuiObserverWrap.h.

References NULL.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::UpdateEditor ( const istd::IChangeable::ChangeSet changeSet)
protectedvirtual

Updates editor with model data.

This method will be called only if GUI is connected.

Parameters
changeSetthe same as changeSet in istd::IChangeable.

Implements imod::IModelEditor.

Reimplemented in iqtprm::CComposedParamsSetGuiComp, and iqtprm::CExtComposedParamsSetGuiComp.

Definition at line 280 of file TGuiObserverWrap.h.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::UpdateGui ( const istd::IChangeable::ChangeSet changeSet)
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 iqt2d::TPolygonBasedParamsGuiComp< PolygonBasedShape, PolygonBasedModel >, iqt2d::TPolygonBasedParamsGuiComp< iview::CTubePolylineShape, i2d::CTubePolyline >, iqt2d::TPolygonBasedParamsGuiComp< iview::CPolygonShape, i2d::CPolygon >, iqt2d::TPolygonBasedParamsGuiComp< iview::CPolylineShape, i2d::CPolyline >, iqtprm::CSelectionParamGuiComp, iqt2d::CMultiBitmapViewComp, iqtprm::CParamsManagerGuiCompBase, ifilegui::CFileTreeViewGuiComp, ifilegui::CFileSystemExplorerGuiComp, iqtprm::COptionsManagerGuiComp, iqtprm::COptionsManagerEditorComp, ifilegui::CFilePreviewGuiComp, iqtprm::CVariableParamGuiComp, iqtprm::CFileNameParamGuiComp, iqtprm::CButtonBasedSelectionParamGuiComp, iqtprm::CExtParamsManagerGuiComp, iqtprm::COptionsListEditorComp, iqtprm::CNameParamGuiComp, ifilegui::CSimpleFilePathParamGuiComp, iqt2d::CAffineTransformationParamsGuiComp, iqtdoc::CDocumentMetaInfoEditorComp, iqtprm::CSelectableGuiComp, iqt2d::CLine2dParamsGuiComp, iqt2d::CPosition2dParamsGuiComp, iqtgui::CStatusGuiComp, iqt2d::CRectangleParamsGuiComp, iqt2d::CAnnulusParamsGuiComp, iqt2d::CQuadrangleParamsGuiComp, iqtprm::CEnableableParamGuiComp, iqt2d::CAnnulusSegmentParamsGuiComp, iqt2d::CArcParamsGuiComp, iqt2d::CImageViewComp, iqtprm::CCheckableOptionsEditorComp, iloggui::CTextLogGuiComp, iqt2d::TCircleBasedParamsGuiComp< CircleBasedShape, CircleBasedModel >, iqt2d::TCircleBasedParamsGuiComp< iview::COrientedCircleShape, i2d::COrientedCircle >, iqt2d::TCircleBasedParamsGuiComp< iview::CCircleShape, i2d::CCircle >, iqtprm::CSelectionParamIndexGuiComp, ifilegui::CFileListProviderGuiComp, iqtgui::CImagePropertiesFrameComp, iqtgui::CImagePropertyGuiComp, and iview::CShapeInfoGuiComp.

Definition at line 272 of file TGuiObserverWrap.h.

template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::UpdateModel ( ) const
protectedvirtual
template<class Gui , class Observer >
void iqtgui::TGuiObserverWrap< Gui, Observer >::UpdateModelFromEditor ( ) const
protectedvirtual

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.

Member Data Documentation

template<class Gui, class Observer>
bool iqtgui::TGuiObserverWrap< Gui, Observer >::m_isReadOnly
protected

Definition at line 119 of file TGuiObserverWrap.h.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy