![]() |
ICF 3.0.5.47
Technical documentation of ICF Libraries
|
Component realizing static connection between GUI and model components. More...
#include <CModelEditorGuiComp.h>
Public Types | |
typedef icomp::CComponentBase | BaseClass |
![]() | |
enum | ChangeFlags { CF_INIT_EDITOR = 0x3720694 } |
Data model change notification flags. More... | |
Public Member Functions | |
CModelEditorGuiComp () | |
bool | IsGuiCreated () const override |
Inform if GUI was initilized. | |
bool | CreateGui (QWidget *parentPtr) override |
Initialize GUI and connect it to the parent. | |
bool | DestroyGui () override |
Release GUI and disconnect it from parent. | |
QWidget * | GetWidget () const override |
Get access to internal QWidget object. | |
void | OnTryClose (bool *ignoredPtr=nullptr) override |
Called on trying to close application. | |
void | UpdateEditor (const istd::IChangeable::ChangeSet &changeSet) override |
Updates editor with model data. | |
void | UpdateModelFromEditor () const override |
Updates model from editor. | |
bool | IsReadOnly () const override |
Returns true if the model data can be changed. | |
void | SetReadOnly (bool state) override |
Set flag that the model data can be changed. | |
![]() | |
CComponentBase () | |
Create component and assign it to specific context. | |
CComponentBase (const CComponentBase &)=delete | |
CComponentBase & | operator= (const CComponentBase &)=delete |
virtual const ICompositeComponent * | GetParentComponent (bool ownerOnly=false) const |
Get parent of this component. | |
virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") |
Get access to specified component interface. | |
virtual const IComponentContext * | GetComponentContext () const |
Get access to component context describing all application-specified component information loaded from components registry. | |
virtual void | SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner) |
Set component context of this component. | |
![]() | |
![]() | |
![]() |
Protected Member Functions | |
void | OnComponentCreated () override |
void | OnComponentDestroyed () override |
![]() | |
bool | IsComponentActive () const |
Check if component is active. | |
virtual const IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
Get access to static info of this component. | |
Additional Inherited Members | |
![]() | |
static const IRealComponentStaticInfo & | InitStaticInfo (IComponent *componentPtr) |
static QByteArray | GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray()) |
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 28 of file CModelEditorGuiComp.h.
Definition at line 34 of file CModelEditorGuiComp.h.
istdgui::CModelEditorGuiComp::CModelEditorGuiComp | ( | ) |
|
overridevirtual |
Initialize GUI and connect it to the parent.
Implements istdgui::IGuiObject.
|
overridevirtual |
Release GUI and disconnect it from parent.
Implements istdgui::IGuiObject.
|
overridevirtual |
Get access to internal QWidget object.
Implements istdgui::IGuiObject.
|
overridevirtual |
Inform if GUI was initilized.
Implements istdgui::IGuiObject.
|
overridevirtual |
Returns true
if the model data can be changed.
Implements imod::IModelEditor.
|
overrideprotectedvirtual |
Reimplemented from icomp::CComponentBase.
|
overrideprotectedvirtual |
Reimplemented from icomp::CComponentBase.
|
overridevirtual |
Called on trying to close application.
ignoredPtr | if it is not nullptr, ignoring of close is allowed. In this case implementation should set pointed value to true. |
Implements istdgui::IGuiObject.
|
overridevirtual |
Set flag that the model data can be changed.
Implements imod::IModelEditor.
|
overridevirtual |
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.
|
overridevirtual |
Updates model from editor.
This method will be called only if GUI is connected and model is attached.
Implements imod::IModelEditor.
© Witold Gantzke and Kirill Lepskiy