Public Types | Public Member Functions | Protected Member Functions | List of all members
iqtgui::CModelEditorGuiComp Class Reference

Component realizing static connection between GUI and model components. More...

#include <CModelEditorGuiComp.h>

Inheritance diagram for iqtgui::CModelEditorGuiComp:
icomp::CComponentBase iqtgui::IGuiObject imod::IModelEditor icomp::IComponent istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from imod::IModelEditor
enum  ChangeFlags { CF_INIT_EDITOR = 0x3720694 }
 Data model change notification flags. More...
 

Public Member Functions

 CModelEditorGuiComp ()
 
virtual bool IsGuiCreated () const
 Inform if GUI was initilized. More...
 
virtual bool CreateGui (QWidget *parentPtr)
 Initialize GUI and connect it to the parent. More...
 
virtual bool DestroyGui ()
 Release GUI and disconnect it from parent. More...
 
virtual QWidget * GetWidget () const
 Get access to internal QWidget object. More...
 
virtual void OnTryClose (bool *ignoredPtr=NULL)
 Called on trying to close application. 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 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...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Protected Member Functions

virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 

Detailed Description

Component realizing static connection between GUI and model components.

It allows to use boundle of model and GUI-observer components as simple GUI object.

Definition at line 23 of file CModelEditorGuiComp.h.

Member Typedef Documentation

Definition at line 29 of file CModelEditorGuiComp.h.

Constructor & Destructor Documentation

iqtgui::CModelEditorGuiComp::CModelEditorGuiComp ( )

Member Function Documentation

virtual bool iqtgui::CModelEditorGuiComp::CreateGui ( QWidget *  parentPtr)
virtual

Initialize GUI and connect it to the parent.

Returns
true if initialization successed.

Implements iqtgui::IGuiObject.

virtual bool iqtgui::CModelEditorGuiComp::DestroyGui ( )
virtual

Release GUI and disconnect it from parent.

Returns
true if this operation successed.

Implements iqtgui::IGuiObject.

virtual QWidget* iqtgui::CModelEditorGuiComp::GetWidget ( ) const
virtual

Get access to internal QWidget object.

Implements iqtgui::IGuiObject.

virtual bool iqtgui::CModelEditorGuiComp::IsGuiCreated ( ) const
virtual

Inform if GUI was initilized.

Implements iqtgui::IGuiObject.

virtual bool iqtgui::CModelEditorGuiComp::IsReadOnly ( ) const
virtual

Returns true if the model data can be changed.

Implements imod::IModelEditor.

virtual void iqtgui::CModelEditorGuiComp::OnComponentCreated ( )
protectedvirtual

Reimplemented from icomp::CComponentBase.

virtual void iqtgui::CModelEditorGuiComp::OnComponentDestroyed ( )
protectedvirtual

Reimplemented from icomp::CComponentBase.

virtual void iqtgui::CModelEditorGuiComp::OnTryClose ( bool *  ignoredPtr = NULL)
virtual

Called on trying to close application.

Parameters
ignoredPtrif it is not NULL, ignoring of close is allowed. In this case implementation should set pointed value to true.

Implements iqtgui::IGuiObject.

virtual void iqtgui::CModelEditorGuiComp::SetReadOnly ( bool  state)
virtual

Set flag that the model data can be changed.

Returns
true, if this feature is supported.

Implements imod::IModelEditor.

virtual void iqtgui::CModelEditorGuiComp::UpdateEditor ( const istd::IChangeable::ChangeSet changeSet)
virtual

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.

virtual void iqtgui::CModelEditorGuiComp::UpdateModelFromEditor ( ) const
virtual

Updates model from editor.

This method will be called only if GUI is connected and model is attached.

Implements imod::IModelEditor.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy