Public Types | Public Member Functions | Protected Types | Protected Member Functions | List of all members
icmpstr::CVisualRegistry Class Reference

#include <CVisualRegistry.h>

Inheritance diagram for icmpstr::CVisualRegistry:
icomp::CRegistry icmpstr::IComponentNoteController icomp::IRegistry istd::IChangeable iser::ISerializable istd::IPolymorphic istd::IChangeable istd::IPolymorphic

Public Types

enum  MessageId { MI_CANNOT_CREATE_ELEMENT = 650 }
 
typedef icomp::CRegistry BaseClass
 
- Public Types inherited from icomp::CRegistry
enum  ChangeFlags
 
typedef QSet< QByteArray > Ids
 
typedef istd::TDelPtr
< IRegistryElement
ElementPtr
 
typedef QMap< QByteArray,
QByteArray > 
ExportedInterfacesMap
 
typedef QMap< QByteArray,
QByteArray > 
ExportedElementsMap
 
- Public Types inherited from icmpstr::IComponentNoteController
enum  ChangeFlags { CF_NOTE_CHANGED = 0xb6f0c34 }
 Data model change notification flags. More...
 

Public Member Functions

 CVisualRegistry ()
 
virtual bool SerializeComponentsLayout (iser::IArchive &archive)
 
virtual bool SerializeRegistry (iser::IArchive &archive)
 
virtual bool SerializeUserData (iser::IArchive &archive)
 
virtual QString GetComponentNote (const QByteArray &componentName)
 Get the note text to the component with the given name componentName. More...
 
virtual void SetComponentNote (const QByteArray &componentName, const QString &componentNote)
 Add a note componentNote to the component with the given name componentName. More...
 
virtual ElementInfoInsertElementInfo (const QByteArray &elementId, const icomp::CComponentAddress &address, bool ensureElementCreated=true)
 
virtual bool RenameElement (const QByteArray &oldElementId, const QByteArray &newElementId)
 
virtual bool Serialize (iser::IArchive &archive)
 
- Public Member Functions inherited from icomp::CRegistry
virtual Ids GetElementIds () const
 
virtual const ElementInfoGetElementInfo (const QByteArray &elementId) const
 
virtual bool RemoveElementInfo (const QByteArray &elementId)
 
virtual Ids GetEmbeddedRegistryIds () const
 
virtual IRegistryGetEmbeddedRegistry (const QByteArray &registryId) const
 
virtual bool RemoveEmbeddedRegistry (const QByteArray &registryId)
 
virtual bool RenameEmbeddedRegistry (const QByteArray &oldRegistryId, const QByteArray &newRegistryId)
 
virtual const
ExportedInterfacesMap
GetExportedInterfacesMap () const
 
virtual const ExportedElementsMapGetExportedElementsMap () const
 
virtual void SetElementInterfaceExported (const QByteArray &elementId, const QByteArray &interfaceName, bool state=true)
 
virtual void SetElementExported (const QByteArray &exportId, const QByteArray &elementId)
 
virtual const QString & GetDescription () const
 
virtual void SetDescription (const QString &description)
 
virtual const QString & GetKeywords () const
 
virtual void SetKeywords (const QString &keywords)
 
virtual quint32 GetMinimalVersion (int versionId) const
 

Protected Types

typedef imod::TModelWrap
< istd::TChangeDelegator
< CVisualRegistryElement > > 
Element
 
typedef istd::TDelPtr< QIcon > IconPtr
 
typedef QMap
< icomp::CComponentAddress,
IconPtr
IconMap
 
- Protected Types inherited from icomp::CRegistry
typedef imod::TModelWrap
< istd::TChangeDelegator
< CRegistryElement > > 
Element
 
typedef istd::TDelPtr< IRegistryRegistryPtr
 
typedef QMap< QByteArray,
RegistryPtr
EmbeddedRegistriesMap
 

Protected Member Functions

bool SerializeComponentInfo (iser::IArchive &archive, QByteArray &componentName, i2d::CVector2d &position, QString &note)
 
virtual icomp::IRegistryElementCreateRegistryElement (const QByteArray &elementId, const icomp::CComponentAddress &address) const
 
virtual icomp::IRegistryInsertEmbeddedRegistry (const QByteArray &registryId)
 
- Protected Member Functions inherited from icomp::CRegistry
virtual bool SerializeComponents (iser::IArchive &archive)
 
virtual bool SerializeEmbeddedRegistries (iser::IArchive &archive)
 
virtual bool SerializeExportedInterfaces (iser::IArchive &archive)
 
virtual bool SerializeExportedComponents (iser::IArchive &archive)
 

Additional Inherited Members

- Protected Attributes inherited from icomp::CRegistry
EmbeddedRegistriesMap m_embeddedRegistriesMap
 

Detailed Description

Definition at line 20 of file CVisualRegistry.h.

Member Typedef Documentation

Definition at line 26 of file CVisualRegistry.h.

Definition at line 54 of file CVisualRegistry.h.

Definition at line 56 of file CVisualRegistry.h.

Definition at line 55 of file CVisualRegistry.h.

Member Enumeration Documentation

Enumerator
MI_CANNOT_CREATE_ELEMENT 

Definition at line 28 of file CVisualRegistry.h.

Constructor & Destructor Documentation

icmpstr::CVisualRegistry::CVisualRegistry ( )

Member Function Documentation

virtual icomp::IRegistryElement* icmpstr::CVisualRegistry::CreateRegistryElement ( const QByteArray &  elementId,
const icomp::CComponentAddress address 
) const
protectedvirtual

Reimplemented from icomp::CRegistry.

virtual QString icmpstr::CVisualRegistry::GetComponentNote ( const QByteArray &  componentName)
virtual

Get the note text to the component with the given name componentName.

Implements icmpstr::IComponentNoteController.

virtual ElementInfo* icmpstr::CVisualRegistry::InsertElementInfo ( const QByteArray &  elementId,
const icomp::CComponentAddress address,
bool  ensureElementCreated = true 
)
virtual

Reimplemented from icomp::CRegistry.

virtual icomp::IRegistry* icmpstr::CVisualRegistry::InsertEmbeddedRegistry ( const QByteArray &  registryId)
protectedvirtual

Reimplemented from icomp::CRegistry.

virtual bool icmpstr::CVisualRegistry::RenameElement ( const QByteArray &  oldElementId,
const QByteArray &  newElementId 
)
virtual

Reimplemented from icomp::CRegistry.

virtual bool icmpstr::CVisualRegistry::Serialize ( iser::IArchive archive)
virtual

Reimplemented from icomp::CRegistry.

bool icmpstr::CVisualRegistry::SerializeComponentInfo ( iser::IArchive archive,
QByteArray &  componentName,
i2d::CVector2d position,
QString &  note 
)
protected
virtual bool icmpstr::CVisualRegistry::SerializeComponentsLayout ( iser::IArchive archive)
virtual
virtual bool icmpstr::CVisualRegistry::SerializeRegistry ( iser::IArchive archive)
virtual
virtual bool icmpstr::CVisualRegistry::SerializeUserData ( iser::IArchive archive)
virtual
virtual void icmpstr::CVisualRegistry::SetComponentNote ( const QByteArray &  componentName,
const QString &  componentNote 
)
virtual

Add a note componentNote to the component with the given name componentName.

Implements icmpstr::IComponentNoteController.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy