|
ACF $AcfVersion:0$
|
Interactive log viewer component with filtering and commands. More...
#include <CLogGuiComp.h>
Signals | |
| void | EmitAddMessage (const MessagePtr &messagePtr) |
| void | EmitClearAction () |
Public Member Functions | |
| CLogGuiComp () | |
| virtual const ibase::IHierarchicalCommand * | GetCommands () const override |
| Get list of menu commands. | |
Public Member Functions inherited from iqtgui::TGuiComponentBase< WidgetType > | |
| TGuiComponentBase () | |
| virtual WidgetType * | GetQtWidget () const |
| virtual QWidget * | CreateQtWidget (QWidget *parentPtr) override |
| Create slave widget object. | |
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 override |
| Checks if the GUI has been initialized and created. | |
| virtual bool | CreateGui (QWidget *parentPtr) override |
| Initializes the GUI and connects it to the parent widget. | |
| virtual bool | DestroyGui () override |
| Releases GUI resources and disconnects from the parent. | |
| virtual QWidget * | GetWidget () const override |
| Gets access to the internal QWidget object. | |
| virtual void | OnTryClose (bool *ignoredPtr=NULL) override |
| Called when the application is attempting to close. | |
Public Member Functions inherited from iqtgui::TDesignSchemaHandlerWrap< Base > | |
| TDesignSchemaHandlerWrap () | |
| virtual void | EnableDesignHandler (bool enable=true) |
| If enabled, listen to the design schema change events from the application context. | |
Public Member Functions inherited from iqtgui::CIconProvider | |
| virtual QIcon | GetIcon (const QString &iconName) const |
| virtual QString | GetIconPath (const QString &iconName) const |
| virtual QString | GetStyleSheetPath (const QString &styleSheetPath) const |
| QByteArray | GetCurrentThemeId () const |
| void | SetThemeId (const QByteArray &themeId) |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Public Member Functions inherited from istd::THierarchicalBase< IHierarchicalMessageContainer > | |
| THierarchicalBase () | |
| virtual void | SetParentPtr (typename Base::InterfaceType *parentPtr) |
| virtual int | GetHierarchicalFlags () const override |
| virtual typename Base::InterfaceType * | GetParent () const override |
Public Member Functions inherited from istd::TChangeDelegator< Base > | |
| TChangeDelegator () | |
| TChangeDelegator (istd::IChangeable *slavePtr) | |
| virtual void | OnBeginChanges () override |
| Callback function for begin change event. | |
| virtual void | OnEndChanges (const istd::IChangeable::ChangeSet &changeSet) override |
| Callback function for end change event. | |
Public Member Functions inherited from istd::CChangeDelegator | |
| CChangeDelegator () | |
| CChangeDelegator (istd::IChangeable *slavePtr) | |
| virtual void | SetSlavePtr (istd::IChangeable *slavePtr) override |
| Sets the slave object pointer for change delegation. | |
| virtual istd::IChangeable * | GetSlavePtr () const override |
| Gets the slave object pointer. | |
Public Member Functions inherited from istd::IChangeable | |
| virtual void | BeginChanges (const ChangeSet &changeSet) |
| Starts the change transaction. | |
| virtual void | EndChanges (const ChangeSet &changeSet) |
| Ends the change transaction. | |
| virtual void | BeginChangeGroup (const ChangeSet &changeSet) |
| Starts group of changes. | |
| virtual void | EndChangeGroup (const ChangeSet &changeSet) |
| Ends group of changes. | |
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 } |
| enum | CommandGroup { CG_FILTER = 5000 , CG_EDIT } |
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. | |
| virtual QIcon | GetCategoryIcon (int category) const |
| Get icons corresponding to specified information category. | |
| virtual QIcon | GetActionIcon (int functionType) const |
| Get icons corresponding to specified log action. | |
| virtual QString | GetCategoryText (int category) const |
| Get text corresponding to specified information category. | |
| virtual void | SetupCommands () |
| Setup log gui commands. | |
| virtual void | SetCommandsVisuals () |
| Setup log gui command visuals. | |
| virtual bool | IsMessageSupported (int messageCategory=-1, int messageId=-1, const istd::IInformationProvider *messagePtr=NULL) const override |
| Check if a message is supported by this consumer. | |
| virtual void | AddMessage (const MessagePtr &messagePtr) override |
| Adds a message to this consumer. | |
| virtual void | ClearMessages () override |
| virtual void | OnGuiCreated () override |
| Called just after GUI is initialized. | |
| virtual void | OnGuiDestroyed () override |
| Called just before GUI is released. | |
| virtual void | OnGuiRetranslate () override |
| Called from widget event filter when GUI should be retranslated. | |
| virtual void | OnGuiDesignChanged () override |
| virtual void | OnComponentCreated () override |
Protected Member Functions inherited from iqtgui::CGuiComponentBase | |
| virtual void | OnGuiShown () |
| Called from widget event filter when slave widget is shown. | |
| virtual void | OnGuiHidden () |
| Called from widget event filter when slave widget is hidden. | |
| virtual bool | OnKeyPressed (QKeyEvent *event) |
| Called from widget event filter when key is pressed. | |
| virtual void | OnRetranslate () |
| Called when non-GUI elements (like commands) should be retranslated. | |
| void | SetStatusIcon (const QIcon &icon) |
| Set status icon;. | |
| void | SetStatusText (const QString &text) |
| Set status text;. | |
| void | SetDefaultVisualStatus () |
| virtual void | OnLanguageChanged () override |
| virtual void | OnDesignSchemaChanged (const QByteArray &themeId) override |
| virtual bool | eventFilter (QObject *sourcePtr, QEvent *eventPtr) override |
| virtual void | OnComponentDestroyed () override |
Protected Member Functions inherited from iqtgui::CIconProvider | |
| virtual QIcon | CreateIcon (const QString &iconName) const |
Protected Attributes | |
| QAction * | m_infoActionPtr |
| QAction * | m_warningActionPtr |
| QAction * | m_errorActionPtr |
| QAction * | m_clearActionPtr |
| QAction * | m_exportActionPtr |
| QAction * | m_diagnosticModeActionPtr |
| istd::TDelPtr< iqtgui::CHierarchicalCommand > | m_rootCommands |
| istd::TDelPtr< iqtgui::CHierarchicalCommand > | m_infoCommand |
| istd::TDelPtr< iqtgui::CHierarchicalCommand > | m_warningCommand |
| istd::TDelPtr< iqtgui::CHierarchicalCommand > | m_errorCommand |
| istd::TDelPtr< iqtgui::CHierarchicalCommand > | m_clearCommand |
| istd::TDelPtr< iqtgui::CHierarchicalCommand > | m_exportCommand |
| istd::TDelPtr< iqtgui::CHierarchicalCommand > | m_diagnosticCommand |
Protected Attributes inherited from iqtgui::CGuiComponentBase | |
| imod::TModelWrap< VisualStatus > | m_visualStatus |
Protected Attributes inherited from istd::THierarchicalBase< IHierarchicalMessageContainer > | |
| typename Base::InterfaceType * | m_parentPtr |
Additional Inherited Members | |
Static Public Member Functions inherited from istd::IChangeable | |
| static const ChangeSet & | GetNoChanges () |
| Get empty set of changes. | |
| static const ChangeSet & | GetAnyChange () |
| Get anonymous change set. | |
| static const ChangeSet & | GetAllChanges () |
| Get anonymous change set. | |
| static const ChangeSet & | GetDelegatedChanges () |
| Get delegated change set. | |
Interactive log viewer component with filtering and commands.
CLogGuiComp is the primary log viewing component in the iloggui library. It provides a full-featured Qt widget for displaying, filtering, searching, and exporting log messages.
The component combines:
For detailed documentation including configuration, usage examples, and integration patterns, see the iloggui library documentation.
Definition at line 66 of file CLogGuiComp.h.
| typedef iqtgui::TDesignerGuiCompBase<Ui::CLogGuiComp> iloggui::CLogGuiComp::BaseClass |
Base class typedef for GUI functionality.
Definition at line 75 of file CLogGuiComp.h.
Base class typedef for container functionality.
Definition at line 78 of file CLogGuiComp.h.
|
protected |
| Enumerator | |
|---|---|
| AT_CLEAR | |
| AT_EXPORT | |
| AT_DIAGNOSTICS | |
Definition at line 123 of file CLogGuiComp.h.
| Enumerator | |
|---|---|
| CT_ICON | |
| CT_TIME | |
| CT_SOURCE | |
| CT_MESSAGE | |
Definition at line 80 of file CLogGuiComp.h.
|
protected |
| Enumerator | |
|---|---|
| CG_FILTER | |
| CG_EDIT | |
Definition at line 207 of file CLogGuiComp.h.
|
protected |
| Enumerator | |
|---|---|
| DR_CATEGORY | |
Definition at line 130 of file CLogGuiComp.h.
|
protected |
| Enumerator | |
|---|---|
| MM_INFO | |
| MM_WARNING | |
| MM_ERROR | |
| MM_ALL | |
Definition at line 115 of file CLogGuiComp.h.
| iloggui::CLogGuiComp::CLogGuiComp | ( | ) |
|
overrideprotectedvirtual |
Adds a message to this consumer.
This method transfers ownership of the message to the consumer via shared pointer. The consumer may store, display, forward, or otherwise process the message.
Most implementations deliver messages asynchronously using Qt signals/slots to ensure thread safety when messages are added from worker threads.
| messagePtr | Shared pointer to the message. After this call, the message is owned by the shared pointer and will be automatically deleted when no longer referenced. |
Reimplemented from ilog::CMessageContainer.
|
overrideprotectedvirtual |
Reimplemented from ilog::CMessageContainer.
|
protectedvirtual |
Create GUI item corresponding to specified message.
|
signal |
|
signal |
|
protectedslot |
|
protectedvirtual |
Get icons corresponding to specified log action.
|
protectedvirtual |
Get icons corresponding to specified information category.
|
protectedvirtual |
Get text corresponding to specified information category.
|
overridevirtual |
Get list of menu commands.
These commands will be integrated in global menu system, independent from actual selected view. For support of normal pull down menu, depth of this tree structure should be at least 3.
Reimplemented from ibase::ICommandsProvider.
|
overrideprotectedvirtual |
Check if a message is supported by this consumer.
This method allows consumers to filter messages based on category, ID, or the complete message object. It's used to determine whether a message should be sent to this consumer before actually adding it.
| messageCategory | Category of message (IC_NONE, IC_INFO, IC_WARNING, IC_ERROR, IC_CRITICAL) or -1 if category check should be skipped. |
| messageId | Numeric ID of message or -1 if ID check should be skipped. Message IDs are application-defined for filtering and routing. |
| messagePtr | Optional pointer to complete message object for detailed inspection, or NULL if not needed. The consumer will not store this pointer. |
Reimplemented from ilog::CMessageContainer.
|
protectedslot |
|
protectedvirtualslot |
|
protectedvirtualslot |
|
overrideprotectedvirtual |
Reimplemented from iqtgui::CGuiComponentBase.
|
protectedvirtualslot |
|
overrideprotectedvirtual |
Called just after GUI is initialized.
Reimplemented from iqtgui::CGuiComponentBase.
|
overrideprotectedvirtual |
Reimplemented from iqtgui::CGuiComponentBase.
|
overrideprotectedvirtual |
Called just before GUI is released.
Reimplemented from iqtgui::CGuiComponentBase.
|
overrideprotectedvirtual |
Called from widget event filter when GUI should be retranslated.
Reimplemented from iqtgui::CGuiComponentBase.
|
protectedvirtualslot |
|
protectedslot |
|
protectedvirtual |
Setup log gui command visuals.
|
protectedvirtual |
Setup log gui commands.
|
protected |
Definition at line 217 of file CLogGuiComp.h.
|
protected |
Definition at line 226 of file CLogGuiComp.h.
|
protected |
Definition at line 228 of file CLogGuiComp.h.
|
protected |
Definition at line 219 of file CLogGuiComp.h.
|
protected |
Definition at line 216 of file CLogGuiComp.h.
|
protected |
Definition at line 225 of file CLogGuiComp.h.
|
protected |
Definition at line 218 of file CLogGuiComp.h.
|
protected |
Definition at line 227 of file CLogGuiComp.h.
|
protected |
Definition at line 214 of file CLogGuiComp.h.
|
protected |
Definition at line 223 of file CLogGuiComp.h.
|
protected |
Definition at line 222 of file CLogGuiComp.h.
|
protected |
Definition at line 215 of file CLogGuiComp.h.
|
protected |
Definition at line 224 of file CLogGuiComp.h.