Classes | Public Types | Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Static Protected Member Functions | List of all members
icmpstr::CAttributeEditorComp Class Reference

#include <CAttributeEditorComp.h>

Inheritance diagram for icmpstr::CAttributeEditorComp:
iqtgui::TGuiObserverWrap< iqtgui::TDesignerGuiCompBase< Ui::CAttributeEditorComp >, CElementSelectionInfoManagerBase > imod::IModelEditor istd::IPolymorphic

Classes

struct  AttrInfo
 

Public Types

enum  TabIndex {
  TI_GENERAL, TI_ATTRIBUTES, TI_INTERFACES, TI_EXPORTS,
  TI_FLAGS
}
 
enum  AttrMeaning {
  AM_NONE = 0, AM_REFERENCE, AM_FACTORY, AM_MULTI_REFERENCE,
  AM_MULTI_FACTORY, AM_ATTRIBUTE, AM_BOOL_ATTRIBUTE, AM_MULTI_ATTRIBUTE,
  AM_EXPORTED_ATTR, AM_EXPORTED_COMP, AM_MULTI
}
 
enum  AttributeGroupType { AGT_ATTRIBUTE, AGT_REFERENCE, AGT_FACTORY, AGT_LAST = AGT_FACTORY }
 
enum  AttributeColumns { AC_NAME = 0, AC_VALUE = 1 }
 
enum  AttributeRole {
  AttributeMining = Qt::UserRole + 1, AttributeId, AttributeValue, AttributeTypeId,
  ElementId, InterfaceName
}
 
typedef
iqtgui::TGuiObserverWrap
< iqtgui::TDesignerGuiCompBase
< Ui::CAttributeEditorComp >
, CElementSelectionInfoManagerBase
BaseClass
 

Signals

void AfterAttributesChange ()
 
void AfterInterfacesChange ()
 
void AfterSubcomponentsChange ()
 

Public Member Functions

 CAttributeEditorComp ()
 
virtual const
icomp::IMetaInfoManager
GetMetaInfoManagerPtr () const
 
virtual const
icmpstr::IRegistryConsistInfo
GetConsistencyInfoPtr () const
 

Protected Types

typedef QMap< QByteArray,
AttrInfo
ElementIdToAttrInfoMap
 
typedef QMap< QByteArray,
ElementIdToAttrInfoMap
AttrInfosMap
 

Protected Slots

void on_AttributeTree_itemSelectionChanged ()
 
void on_AttributeTree_itemChanged (QTreeWidgetItem *item, int column)
 
void on_InterfacesTree_itemSelectionChanged ()
 
void on_InterfacesTree_itemChanged (QTreeWidgetItem *item, int column)
 
void on_AutoInstanceCB_toggled (bool checked)
 
void on_IsDetachedCB_toggled (bool checked)
 
void UpdateGeneralView ()
 
void UpdateAttributesView ()
 
void UpdateInterfacesView ()
 
void UpdateFlagsView ()
 
void UpdateSubcomponentsView ()
 

Protected Member Functions

bool SetAttributeToItem (AttributeGroupType groupType, int &itemIndex, const icomp::IRegistry &registry, const QByteArray &attributeId, const ElementIdToAttrInfoMap &infos, const QFont &normalFont, const QFont &importantFont, bool &hasError, bool &hasWarning, bool &hasExport) const
 
bool SetInterfaceToItem (QTreeWidgetItem &item, icomp::IRegistry::ExportedInterfacesMap *interfacesMapPtr, const QByteArray &elementId, const QByteArray &interfaceName, bool &hasWarning, bool &hasExport, bool readOnly) const
 
bool ResetItem (QTreeWidgetItem &item)
 
bool DecodeAttribute (const iser::ISerializable &attribute, QString &text, int &meaning) const
 
bool EncodeAttribute (const QString &text, int meaning, iser::ISerializable &result) const
 
void CreateInterfacesTree (const QByteArray &elementId, const icomp::IElementStaticInfo *infoPtr, icomp::IRegistry::ExportedInterfacesMap &registryInterfaces, QTreeWidgetItem *parentItemPtr, bool &hasWarning, bool &hasExport, bool includeSubelement, bool readOnly)
 
void CreateExportedComponentsTree (const QByteArray &elementId, const QByteArray &globalElementId, const icomp::IElementStaticInfo *elementMetaInfoPtr, QTreeWidgetItem &item, bool &hasWarning, bool &hasExport, bool readOnly) const
 
virtual void OnGuiModelDetached ()
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet)
 
virtual void OnGuiCreated ()
 
virtual void OnGuiDestroyed ()
 

Static Protected Member Functions

static QString DecodeFromEdit (const QString &text)
 
static QString EncodeToEdit (const QString &text)
 

Detailed Description

Definition at line 31 of file CAttributeEditorComp.h.

Member Typedef Documentation

Definition at line 136 of file CAttributeEditorComp.h.

Definition at line 41 of file CAttributeEditorComp.h.

Definition at line 135 of file CAttributeEditorComp.h.

Member Enumeration Documentation

Enumerator
AC_NAME 
AC_VALUE 

Definition at line 85 of file CAttributeEditorComp.h.

Enumerator
AGT_ATTRIBUTE 
AGT_REFERENCE 
AGT_FACTORY 
AGT_LAST 

Definition at line 77 of file CAttributeEditorComp.h.

Enumerator
AttributeMining 
AttributeId 
AttributeValue 
AttributeTypeId 
ElementId 
InterfaceName 

Definition at line 91 of file CAttributeEditorComp.h.

Enumerator
AM_NONE 
AM_REFERENCE 
AM_FACTORY 
AM_MULTI_REFERENCE 
AM_MULTI_FACTORY 
AM_ATTRIBUTE 
AM_BOOL_ATTRIBUTE 
AM_MULTI_ATTRIBUTE 
AM_EXPORTED_ATTR 
AM_EXPORTED_COMP 
AM_MULTI 

Definition at line 62 of file CAttributeEditorComp.h.

Enumerator
TI_GENERAL 
TI_ATTRIBUTES 
TI_INTERFACES 
TI_EXPORTS 
TI_FLAGS 

Definition at line 53 of file CAttributeEditorComp.h.

Constructor & Destructor Documentation

icmpstr::CAttributeEditorComp::CAttributeEditorComp ( )

Member Function Documentation

void icmpstr::CAttributeEditorComp::AfterAttributesChange ( )
signal
void icmpstr::CAttributeEditorComp::AfterInterfacesChange ( )
signal
void icmpstr::CAttributeEditorComp::AfterSubcomponentsChange ( )
signal
void icmpstr::CAttributeEditorComp::CreateExportedComponentsTree ( const QByteArray &  elementId,
const QByteArray &  globalElementId,
const icomp::IElementStaticInfo elementMetaInfoPtr,
QTreeWidgetItem &  item,
bool &  hasWarning,
bool &  hasExport,
bool  readOnly 
) const
protected
void icmpstr::CAttributeEditorComp::CreateInterfacesTree ( const QByteArray &  elementId,
const icomp::IElementStaticInfo infoPtr,
icomp::IRegistry::ExportedInterfacesMap &  registryInterfaces,
QTreeWidgetItem *  parentItemPtr,
bool &  hasWarning,
bool &  hasExport,
bool  includeSubelement,
bool  readOnly 
)
protected
bool icmpstr::CAttributeEditorComp::DecodeAttribute ( const iser::ISerializable attribute,
QString &  text,
int &  meaning 
) const
protected
static QString icmpstr::CAttributeEditorComp::DecodeFromEdit ( const QString &  text)
staticprotected
bool icmpstr::CAttributeEditorComp::EncodeAttribute ( const QString &  text,
int  meaning,
iser::ISerializable result 
) const
protected
static QString icmpstr::CAttributeEditorComp::EncodeToEdit ( const QString &  text)
staticprotected
virtual const icmpstr::IRegistryConsistInfo* icmpstr::CAttributeEditorComp::GetConsistencyInfoPtr ( ) const
virtual
virtual const icomp::IMetaInfoManager* icmpstr::CAttributeEditorComp::GetMetaInfoManagerPtr ( ) const
virtual
void icmpstr::CAttributeEditorComp::on_AttributeTree_itemChanged ( QTreeWidgetItem *  item,
int  column 
)
protectedslot
void icmpstr::CAttributeEditorComp::on_AttributeTree_itemSelectionChanged ( )
protectedslot
void icmpstr::CAttributeEditorComp::on_AutoInstanceCB_toggled ( bool  checked)
protectedslot
void icmpstr::CAttributeEditorComp::on_InterfacesTree_itemChanged ( QTreeWidgetItem *  item,
int  column 
)
protectedslot
void icmpstr::CAttributeEditorComp::on_InterfacesTree_itemSelectionChanged ( )
protectedslot
void icmpstr::CAttributeEditorComp::on_IsDetachedCB_toggled ( bool  checked)
protectedslot
virtual void icmpstr::CAttributeEditorComp::OnGuiCreated ( )
protectedvirtual
virtual void icmpstr::CAttributeEditorComp::OnGuiDestroyed ( )
protectedvirtual
virtual void icmpstr::CAttributeEditorComp::OnGuiModelDetached ( )
protectedvirtual
bool icmpstr::CAttributeEditorComp::ResetItem ( QTreeWidgetItem &  item)
protected
bool icmpstr::CAttributeEditorComp::SetAttributeToItem ( AttributeGroupType  groupType,
int &  itemIndex,
const icomp::IRegistry registry,
const QByteArray &  attributeId,
const ElementIdToAttrInfoMap infos,
const QFont &  normalFont,
const QFont &  importantFont,
bool &  hasError,
bool &  hasWarning,
bool &  hasExport 
) const
protected
bool icmpstr::CAttributeEditorComp::SetInterfaceToItem ( QTreeWidgetItem &  item,
icomp::IRegistry::ExportedInterfacesMap *  interfacesMapPtr,
const QByteArray &  elementId,
const QByteArray &  interfaceName,
bool &  hasWarning,
bool &  hasExport,
bool  readOnly 
) const
protected
void icmpstr::CAttributeEditorComp::UpdateAttributesView ( )
protectedslot
void icmpstr::CAttributeEditorComp::UpdateFlagsView ( )
protectedslot
void icmpstr::CAttributeEditorComp::UpdateGeneralView ( )
protectedslot
virtual void icmpstr::CAttributeEditorComp::UpdateGui ( const istd::IChangeable::ChangeSet changeSet)
protectedvirtual
void icmpstr::CAttributeEditorComp::UpdateInterfacesView ( )
protectedslot
void icmpstr::CAttributeEditorComp::UpdateSubcomponentsView ( )
protectedslot

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy