Public Types | Signals | Public Member Functions | Protected Types | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
iloggui::CLogGuiComp Class Reference

Message container displaying messages as log list. More...

#include <CLogGuiComp.h>

Inheritance diagram for iloggui::CLogGuiComp:
iqtgui::TDesignerGuiCompBase< Ui::CLogGuiComp > ilog::CMessageContainer iqtgui::TGuiComponentBase< QWidget > istd::THierarchicalBase< IHierarchicalMessageContainer > ilog::IMessageConsumer iqtgui::CGuiComponentBase istd::TChangeDelegator< IHierarchicalMessageContainer > istd::IPolymorphic ibase::TLocalizableWrap< icomp::CComponentBase > iqtgui::IGuiObject istd::CChangeDelegator icomp::CComponentBase istd::IPolymorphic istd::IChangeDelegator icomp::IComponent istd::IChangeable istd::IPolymorphic istd::IPolymorphic

Public Types

enum  ColumnType { CT_ICON, CT_TIME, CT_SOURCE, CT_MESSAGE }
 
typedef
iqtgui::TDesignerGuiCompBase
< Ui::CLogGuiComp > 
BaseClass
 
typedef ilog::CMessageContainer BaseClass2
 
- Public Types inherited from iqtgui::TGuiComponentBase< QWidget >
typedef CGuiComponentBase BaseClass
 
- Public Types inherited from iqtgui::CGuiComponentBase
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from istd::THierarchicalBase< IHierarchicalMessageContainer >
typedef istd::TChangeDelegator
< IHierarchicalMessageContainer > 
BaseClass
 
- Public Types inherited from istd::TChangeDelegator< IHierarchicalMessageContainer >
typedef
IHierarchicalMessageContainer 
BaseClass
 
typedef CChangeDelegator BaseClass2
 
- Public Types inherited from istd::CChangeDelegator
typedef istd::IChangeable BaseClass
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 0, CF_ALL_DATA, CF_ANY, CF_DESTROYING,
  CF_DELEGATED, CF_NO_UNDO
}
 Data model change notification flags. More...
 
enum  SupportedOperations {
  SO_NONE = 0, SO_OBSERVE = 1 << 0, SO_COPY = 1 << 1, SO_CLONE = 1 << 2,
  SO_COMPARE = 1 << 3, SO_RESET = 1 << 4
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 
- Public Types inherited from ilog::IMessageConsumer
typedef istd::TSmartPtr< const
istd::IInformationProvider
MessagePtr
 

Signals

void EmitAddMessage (const MessagePtr &messagePtr)
 

Public Member Functions

 CLogGuiComp ()
 
- Public Member Functions inherited from iqtgui::TGuiComponentBase< QWidget >
 TGuiComponentBase ()
 
virtual QWidget * GetQtWidget () const
 
- Public Member Functions inherited from iqtgui::CGuiComponentBase
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, IVisualStatus, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, istd::IChangeable, ExtractVisualStatus)
 
 I_REGISTER_SUBELEMENT_INTERFACE_T (VisualStatus, imod::IModel, ExtractVisualStatus)
 
 CGuiComponentBase ()
 
bool IsGuiShown () const
 
virtual bool IsGuiCreated () const
 Inform if GUI was initilized. More...
 
virtual bool CreateGui (QWidget *parentPtr)
 Initialize GUI and connect it to the parent. More...
 
virtual bool DestroyGui ()
 Release GUI and disconnect it from parent. More...
 
virtual QWidget * GetWidget () const
 Get access to internal QWidget object. More...
 
virtual void OnTryClose (bool *ignoredPtr=NULL)
 Called on trying to close application. More...
 
- Public Member Functions inherited from ibase::TLocalizableWrap< icomp::CComponentBase >
 TLocalizableWrap ()
 
virtual void EnableLocalization (bool enableLocalization=true)
 If enabled, listen to the language change event from the application context. More...
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from ilog::CMessageContainer
 CMessageContainer ()
 
 CMessageContainer (const CMessageContainer &container)
 
int GetMessagesCount () const
 Get the number of messages in the container. More...
 
virtual void AddChildContainer (IHierarchicalMessageContainer *childContainerPtr)
 Add a child message container to this object. More...
 
void SetSlaveConsumer (ilog::IMessageConsumer *consumerPtr)
 Set slave message consumer. More...
 
void SetMaxMessageCount (int maxMessageCount=-1)
 Set maximal number of messages in the container. More...
 
virtual bool Serialize (iser::IArchive &archive)
 
virtual int GetWorstCategory () const
 
virtual Messages GetMessages () const
 
virtual int GetChildsCount () const
 
virtual
IHierarchicalMessageContainer
GetChild (int index) const
 
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool CopyFrom (const istd::IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one. More...
 
virtual bool IsEqual (const istd::IChangeable &object) const
 Compare this object with another object. More...
 
virtual istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 
virtual bool ResetData (CompatibilityMode mode)
 Reset data to its default state. More...
 
- Public Member Functions inherited from istd::THierarchicalBase< IHierarchicalMessageContainer >
 THierarchicalBase ()
 
virtual void SetParentPtr (typename IHierarchicalMessageContainer::InterfaceType *parentPtr)
 
virtual int GetHierarchicalFlags () const
 
virtual typename
IHierarchicalMessageContainer::InterfaceType * 
GetParent () const
 
- Public Member Functions inherited from istd::TChangeDelegator< IHierarchicalMessageContainer >
 TChangeDelegator ()
 
 TChangeDelegator (istd::IChangeable *slavePtr)
 
virtual void OnBeginChanges ()
 Callback function for begin change event. More...
 
virtual void OnEndChanges (const istd::IChangeable::ChangeSet &changeSet)
 Callback function for end change event. More...
 
- Public Member Functions inherited from istd::CChangeDelegator
 CChangeDelegator ()
 
 CChangeDelegator (istd::IChangeable *slavePtr)
 
virtual void SetSlavePtr (istd::IChangeable *slavePtr)
 Gets the slave object pointer. More...
 
virtual istd::IChangeableGetSlavePtr () const
 Sets the slave object pointer. More...
 
- Public Member Functions inherited from istd::IChangeable
virtual void BeginChanges (const ChangeSet &changeSet)
 Starts the change transaction. More...
 
virtual void EndChanges (const ChangeSet &changeSet)
 Ends the change transaction. More...
 
virtual void BeginChangeGroup (const ChangeSet &changeSet)
 Starts group of changes. More...
 
virtual void EndChangeGroup (const ChangeSet &changeSet)
 Ends group of changes. More...
 

Protected Types

enum  MessageMode { MM_INFO = istd::IInformationProvider::IC_NONE, MM_WARNING = istd::IInformationProvider::IC_WARNING, MM_ERROR = istd::IInformationProvider::IC_ERROR, MM_ALL = istd::IInformationProvider::IC_CRITICAL }
 
enum  ActionType { AT_CLEAR, AT_EXPORT, AT_DIAGNOSTICS }
 
enum  DataRole { DR_CATEGORY = Qt::UserRole }
 
- Protected Types inherited from ilog::CMessageContainer
typedef QVector
< IHierarchicalMessageContainer * > 
Childs
 

Protected Slots

virtual void OnAddMessage (const MessagePtr &messagePtr)
 
virtual void OnMessageModeChanged ()
 
virtual void OnClearAction ()
 
virtual void OnExportAction ()
 
void OnRemoveMessagesTimer ()
 
void EnableDiagnosticMessages (bool state)
 
void on_FilterText_textChanged (const QString &filterText)
 

Protected Member Functions

virtual QTreeWidgetItem * CreateGuiItem (const istd::IInformationProvider &message)
 Create GUI item corresponding to specified message. More...
 
virtual QIcon GetCategoryIcon (int category) const
 Get icons corresponding to specified information category. More...
 
virtual QIcon GetActionIcon (int functionType) const
 Get icons corresponding to specified log action. More...
 
virtual QString GetCategoryText (int category) const
 Get text corresponding to specified information category. More...
 
virtual bool IsMessageSupported (int messageCategory=-1, int messageId=-1, const istd::IInformationProvider *messagePtr=NULL) const
 Check if some messge is supported. More...
 
virtual void AddMessage (const MessagePtr &messagePtr)
 Adds a message item to the container. More...
 
virtual void ClearMessages ()
 
virtual void OnGuiCreated ()
 Called just after GUI is initialized. More...
 
virtual void OnGuiDestroyed ()
 Called just before GUI is released. More...
 
virtual void OnComponentCreated ()
 
- Protected Member Functions inherited from iqtgui::CGuiComponentBase
virtual void OnGuiShown ()
 Called from widget event filter when slave widget is shown. More...
 
virtual void OnGuiHidden ()
 Called from widget event filter when slave widget is hidden. More...
 
virtual bool OnKeyPressed (QKeyEvent *event)
 Called from widget event filter when key is pressed. More...
 
virtual void OnRetranslate ()
 Called when non-GUI elements (like commands) should be retranslated. More...
 
void SetStatusIcon (const QIcon &icon)
 Set status icon;. More...
 
void SetStatusText (const QString &text)
 Set status text;. More...
 
virtual void OnLanguageChanged ()
 
virtual bool eventFilter (QObject *sourcePtr, QEvent *eventPtr)
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual void OnComponentDestroyed ()
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 

Protected Attributes

QAction * m_infoActionPtr
 
QAction * m_warningActionPtr
 
QAction * m_errorActionPtr
 
QAction * m_clearActionPtr
 
QAction * m_exportActionPtr
 
QAction * m_diagnosticModeActionPtr
 
- Protected Attributes inherited from iqtgui::CGuiComponentBase
imod::TModelWrap< VisualStatusm_visualStatus
 
- Protected Attributes inherited from ilog::CMessageContainer
Messages m_messages
 
Childs m_childContainers
 
ilog::IMessageConsumerm_slaveConsumerPtr
 
int m_maxMessagesCount
 
int m_worstCategory
 
- Protected Attributes inherited from istd::THierarchicalBase< IHierarchicalMessageContainer >
typename
IHierarchicalMessageContainer::InterfaceType * 
m_parentPtr
 

Additional Inherited Members

- Static Public Member Functions inherited from ilog::CMessageContainer
template<typename MessageType >
static bool RegisterMessageType (const QByteArray &messageTypeId=QByteArray())
 Register a new message type. More...
 
- Static Public Member Functions inherited from istd::IChangeable
static const ChangeSetGetNoChanges ()
 Get empty set of changes. More...
 
static const ChangeSetGetAnyChange ()
 Get anonymous change set. More...
 
static const ChangeSetGetAllChanges ()
 Get anonymous change set. More...
 
static const ChangeSetGetDelegatedChanges ()
 Get delegated change set. More...
 
- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 

Detailed Description

Message container displaying messages as log list.

Definition at line 29 of file CLogGuiComp.h.

Member Typedef Documentation

Definition at line 36 of file CLogGuiComp.h.

Definition at line 37 of file CLogGuiComp.h.

Member Enumeration Documentation

Enumerator
AT_CLEAR 
AT_EXPORT 
AT_DIAGNOSTICS 

Definition at line 76 of file CLogGuiComp.h.

Enumerator
CT_ICON 
CT_TIME 
CT_SOURCE 
CT_MESSAGE 

Definition at line 39 of file CLogGuiComp.h.

Enumerator
DR_CATEGORY 

Definition at line 83 of file CLogGuiComp.h.

Enumerator
MM_INFO 
MM_WARNING 
MM_ERROR 
MM_ALL 

Definition at line 68 of file CLogGuiComp.h.

Constructor & Destructor Documentation

iloggui::CLogGuiComp::CLogGuiComp ( )

Member Function Documentation

virtual void iloggui::CLogGuiComp::AddMessage ( const MessagePtr messagePtr)
protectedvirtual

Adds a message item to the container.

Reimplemented from ilog::CMessageContainer.

virtual void iloggui::CLogGuiComp::ClearMessages ( )
protectedvirtual

Reimplemented from ilog::CMessageContainer.

virtual QTreeWidgetItem* iloggui::CLogGuiComp::CreateGuiItem ( const istd::IInformationProvider message)
protectedvirtual

Create GUI item corresponding to specified message.

void iloggui::CLogGuiComp::EmitAddMessage ( const MessagePtr messagePtr)
signal
void iloggui::CLogGuiComp::EnableDiagnosticMessages ( bool  state)
protectedslot
virtual QIcon iloggui::CLogGuiComp::GetActionIcon ( int  functionType) const
protectedvirtual

Get icons corresponding to specified log action.

virtual QIcon iloggui::CLogGuiComp::GetCategoryIcon ( int  category) const
protectedvirtual

Get icons corresponding to specified information category.

virtual QString iloggui::CLogGuiComp::GetCategoryText ( int  category) const
protectedvirtual

Get text corresponding to specified information category.

virtual bool iloggui::CLogGuiComp::IsMessageSupported ( int  messageCategory = -1,
int  messageId = -1,
const istd::IInformationProvider messagePtr = NULL 
) const
protectedvirtual

Check if some messge is supported.

Parameters
messageCategorycategory of message or -1 if undefined,
See Also
istd::IInformationProvider::InformationCategory.
Parameters
messageIdID of message as defined in istd::IInformationProvider or -1 if undefined.
messagePtroptional message object, or NULL if undefined. Please note, this object will not be stored by receiver.

Reimplemented from ilog::CMessageContainer.

void iloggui::CLogGuiComp::on_FilterText_textChanged ( const QString &  filterText)
protectedslot
virtual void iloggui::CLogGuiComp::OnAddMessage ( const MessagePtr messagePtr)
protectedvirtualslot
virtual void iloggui::CLogGuiComp::OnClearAction ( )
protectedvirtualslot
virtual void iloggui::CLogGuiComp::OnComponentCreated ( )
protectedvirtual

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iloggui::CLogGuiComp::OnExportAction ( )
protectedvirtualslot
virtual void iloggui::CLogGuiComp::OnGuiCreated ( )
protectedvirtual

Called just after GUI is initialized.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iloggui::CLogGuiComp::OnGuiDestroyed ( )
protectedvirtual

Called just before GUI is released.

Reimplemented from iqtgui::CGuiComponentBase.

virtual void iloggui::CLogGuiComp::OnMessageModeChanged ( )
protectedvirtualslot
void iloggui::CLogGuiComp::OnRemoveMessagesTimer ( )
protectedslot

Member Data Documentation

QAction* iloggui::CLogGuiComp::m_clearActionPtr
protected

Definition at line 150 of file CLogGuiComp.h.

QAction* iloggui::CLogGuiComp::m_diagnosticModeActionPtr
protected

Definition at line 152 of file CLogGuiComp.h.

QAction* iloggui::CLogGuiComp::m_errorActionPtr
protected

Definition at line 149 of file CLogGuiComp.h.

QAction* iloggui::CLogGuiComp::m_exportActionPtr
protected

Definition at line 151 of file CLogGuiComp.h.

QAction* iloggui::CLogGuiComp::m_infoActionPtr
protected

Definition at line 147 of file CLogGuiComp.h.

QAction* iloggui::CLogGuiComp::m_warningActionPtr
protected

Definition at line 148 of file CLogGuiComp.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy