Classes | Public Types | Public Member Functions | Protected Slots | Protected Member Functions | Friends | List of all members
icmpstr::CRegistryTreeViewComp Class Reference

#include <CRegistryTreeViewComp.h>

Inheritance diagram for icmpstr::CRegistryTreeViewComp:
iqtgui::TDesignerGuiObserverCompBase< Ui::CRegistryTreeViewComp, icomp::IRegistry >

Classes

class  EnvironmentObserver
 

Public Types

enum  DataRole {
  DR_MESSAGE_LIST = Qt::UserRole + 1, DR_ELEMENT_NAME = Qt::UserRole + 2, DR_ELEMENT_ID = Qt::UserRole + 3, DR_ELEMENT_PACKAGE_ID = Qt::UserRole + 4,
  DR_REGISTRY = Qt::UserRole + 5
}
 
enum  ColumnTypes { CT_NAME, CT_ID, CT_PACKAGE }
 
typedef
iqtgui::TDesignerGuiObserverCompBase
< Ui::CRegistryTreeViewComp,
icomp::IRegistry
BaseClass
 

Public Member Functions

 CRegistryTreeViewComp ()
 
void AddSubcomponents (const icomp::IRegistry &registry, const icomp::CComponentAddress &address, QTreeWidgetItem *registryElementItemPtr)
 
void CreateRegistryTree (const icomp::IRegistry &registry, QTreeWidgetItem *registryRootItemPtr)
 

Protected Slots

void on_RegistryTree_itemSelectionChanged ()
 
void on_RegistryTree_itemDoubleClicked (QTreeWidgetItem *itemPtr, int column)
 
void on_FilterEdit_textChanged (const QString &filterText)
 
void on_ShowOnlyErrorsCheck_stateChanged (int state)
 
void on_ShowStatisticsButton_clicked ()
 

Protected Member Functions

QTreeWidgetItem * AddRegistryElementItem (const icomp::IRegistry &registry, const icomp::IRegistry::ElementInfo *elementPtr, const QByteArray &elementId, QTreeWidgetItem *parentItemPtr)
 Create instance of shape representing some element. More...
 
bool IsRegistryValid (const icomp::IRegistry &registry) const
 Calculate visual status of the entire registry tree. More...
 
void UpdateRegistryStatus ()
 Update visual state of the registry validation. More...
 
void UpdateTreeItemsVisibility ()
 Update visibility state of the registry tree elements according to the settings of the item filter. More...
 
virtual void UpdateGui (const istd::IChangeable::ChangeSet &changeSet)
 
virtual void OnGuiModelDetached ()
 
virtual void OnGuiCreated ()
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 
virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 

Friends

class imod::TModelWrap< SelectionInfoImpl >
 

Detailed Description

Definition at line 33 of file CRegistryTreeViewComp.h.

Member Typedef Documentation

Definition at line 41 of file CRegistryTreeViewComp.h.

Member Enumeration Documentation

Enumerator
CT_NAME 
CT_ID 
CT_PACKAGE 

Definition at line 52 of file CRegistryTreeViewComp.h.

Enumerator
DR_MESSAGE_LIST 
DR_ELEMENT_NAME 
DR_ELEMENT_ID 
DR_ELEMENT_PACKAGE_ID 
DR_REGISTRY 

Definition at line 43 of file CRegistryTreeViewComp.h.

Constructor & Destructor Documentation

icmpstr::CRegistryTreeViewComp::CRegistryTreeViewComp ( )

Member Function Documentation

QTreeWidgetItem* icmpstr::CRegistryTreeViewComp::AddRegistryElementItem ( const icomp::IRegistry registry,
const icomp::IRegistry::ElementInfo elementPtr,
const QByteArray &  elementId,
QTreeWidgetItem *  parentItemPtr 
)
protected

Create instance of shape representing some element.

The shape will be automatically connected to element using model/observer pattern.

See Also
imod.
void icmpstr::CRegistryTreeViewComp::AddSubcomponents ( const icomp::IRegistry registry,
const icomp::CComponentAddress address,
QTreeWidgetItem *  registryElementItemPtr 
)
virtual void icmpstr::CRegistryTreeViewComp::AfterUpdate ( imod::IModel modelPtr,
const istd::IChangeable::ChangeSet changeSet 
)
protectedvirtual
void icmpstr::CRegistryTreeViewComp::CreateRegistryTree ( const icomp::IRegistry registry,
QTreeWidgetItem *  registryRootItemPtr 
)
bool icmpstr::CRegistryTreeViewComp::IsRegistryValid ( const icomp::IRegistry registry) const
protected

Calculate visual status of the entire registry tree.

void icmpstr::CRegistryTreeViewComp::on_FilterEdit_textChanged ( const QString &  filterText)
protectedslot
void icmpstr::CRegistryTreeViewComp::on_RegistryTree_itemDoubleClicked ( QTreeWidgetItem *  itemPtr,
int  column 
)
protectedslot
void icmpstr::CRegistryTreeViewComp::on_RegistryTree_itemSelectionChanged ( )
protectedslot
void icmpstr::CRegistryTreeViewComp::on_ShowOnlyErrorsCheck_stateChanged ( int  state)
protectedslot
void icmpstr::CRegistryTreeViewComp::on_ShowStatisticsButton_clicked ( )
protectedslot
virtual void icmpstr::CRegistryTreeViewComp::OnComponentCreated ( )
protectedvirtual
virtual void icmpstr::CRegistryTreeViewComp::OnComponentDestroyed ( )
protectedvirtual
virtual void icmpstr::CRegistryTreeViewComp::OnGuiCreated ( )
protectedvirtual
virtual void icmpstr::CRegistryTreeViewComp::OnGuiModelDetached ( )
protectedvirtual
virtual void icmpstr::CRegistryTreeViewComp::UpdateGui ( const istd::IChangeable::ChangeSet changeSet)
protectedvirtual
void icmpstr::CRegistryTreeViewComp::UpdateRegistryStatus ( )
protected

Update visual state of the registry validation.

void icmpstr::CRegistryTreeViewComp::UpdateTreeItemsVisibility ( )
protected

Update visibility state of the registry tree elements according to the settings of the item filter.

Friends And Related Function Documentation

friend class imod::TModelWrap< SelectionInfoImpl >
friend

Definition at line 165 of file CRegistryTreeViewComp.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy