Makes component and model from some class implementing interface istd::IChangeable
.
More...
#include <TModelCompWrap.h>
Public Types | |
typedef icomp::TComponentCloneWrap < imod::TModelWrap< Base > > | BaseClass |
![]() | |
typedef iser::TCopySerializedWrap < Base > | BaseClass |
typedef imod::CModelBase | BaseClass2 |
![]() | |
typedef Base | BaseClass |
![]() | |
typedef QSet< IObserver * > | Observers |
Protected Member Functions | |
virtual void | OnComponentDestroyed () |
![]() | |
virtual void | OnBeginGlobalChanges () |
Called before global changes will be started. More... | |
virtual void | OnEndGlobalChanges (const istd::IChangeable::ChangeSet &changeSet) |
Called after global changes are finished. More... | |
![]() | |
void | NotifyBeforeChange (const istd::IChangeable::ChangeSet &changeSet, bool isGroup) |
Called before each change. More... | |
void | NotifyAfterChange (const istd::IChangeable::ChangeSet &changeSet) |
Called after each change. More... | |
Additional Inherited Members | |
![]() | |
virtual istd::IChangeable * | CloneMe (istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) const |
![]() | |
TModelWrap () | |
void | SetBaseObject (const Base &baseObject) |
virtual int | GetSupportedOperations () const |
virtual void | BeginChanges (const istd::IChangeable::ChangeSet &changeSet) |
virtual void | EndChanges (const istd::IChangeable::ChangeSet &changeSet) |
virtual void | BeginChangeGroup (const istd::IChangeable::ChangeSet &changeSet) |
virtual void | EndChangeGroup (const istd::IChangeable::ChangeSet &changeSet) |
![]() | |
virtual bool | CopyFrom (const istd::IChangeable &object, istd::IChangeable::CompatibilityMode mode=istd::IChangeable::CM_WITHOUT_REFS) |
virtual bool | IsEqual (const istd::IChangeable &object) const |
![]() | |
CModelBase () | |
virtual | ~CModelBase () |
virtual int | GetObserverCount () const |
Returns count of connected observers. More... | |
virtual Observers | GetObservers () const |
Returns set of all observers. More... | |
const istd::IChangeable::ChangeSet & | GetCumulatedChanges () const |
virtual bool | AttachObserver (imod::IObserver *observerPtr) |
Attaches model object to observer observerPtr . More... | |
virtual void | DetachObserver (imod::IObserver *observerPtr) |
Detaches model object from observer observerPtr . More... | |
virtual void | DetachAllObservers () |
Detaches all attached observers. More... | |
virtual bool | IsAttached (const imod::IObserver *observerPtr) const |
Returns true if observer observer is attached to this model object. More... | |
![]() | |
virtual | ~IPolymorphic () |
![]() | |
template<class Interface > | |
static Interface * | ExtractInterface (IComponent *componentPtr, const QByteArray &subId="") |
Extract interface from component. More... | |
![]() | |
static bool | SplitId (const QByteArray &complexId, QByteArray &baseId, QByteArray &subId) |
Split component ID into separated ID's. More... | |
static QByteArray | JoinId (const QByteArray &baseId, const QByteArray &subId) |
Join base component ID and sub ID into composed component ID. More... | |
Makes component and model from some class implementing interface istd::IChangeable
.
This model wrapper extends functionality of icomp::TModelWrap
for components.
Definition at line 24 of file TModelCompWrap.h.
typedef icomp::TComponentCloneWrap<imod::TModelWrap<Base> > icomp::TModelCompWrap< Base >::BaseClass |
Definition at line 27 of file TModelCompWrap.h.
|
protectedvirtual |
Definition at line 45 of file TModelCompWrap.h.
References imod::CModelBase::DetachAllObservers().
© 2007-2017 Witold Gantzke and Kirill Lepskiy