|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Left-dock panel for defining named actors by regular expression. More...
#include <ActorDefinitionsPanel.hpp>


Public Slots | |
| void | UpdateActorDirection (const QString &defName, const QString &actorName, bool isSubActor, const QString &target) |
Signals | |
| void | DefinitionsChanged (const std::vector< ActorDefinition > &defs) |
| void | RequestApplyFilter () |
| void | RequestClearFilter () |
| Emitted when the user clicks "Clear Filter". | |
Public Member Functions | |
| ActorDefinitionsPanel (QWidget *parent=nullptr) | |
| const std::vector< ActorDefinition > & | Definitions () const |
| void | SetEventsSource (db::EventsContainer *events) |
Private Slots | |
| void | HandleAdd () |
| void | HandleEdit () |
| void | HandleRemove () |
| void | HandleSave () |
| void | HandleSaveAs () |
| void | HandleLoad () |
| void | HandleDiscover () |
| void | HandleSelectionChanged () |
| void | HandleItemChanged (QTableWidgetItem *item) |
Private Member Functions | |
| void | BuildLayout () |
| void | RebuildTable () |
| void | EmitAndSave () |
| void | SetStatus (const QString &msg, bool isError) |
| bool | EditDefinition (ActorDefinition &def, bool isNew) |
| Open an add/edit dialog; returns false if user cancelled. | |
Static Private Member Functions | |
| static std::string | DefaultFilePath () |
| Default file path in the application config directory. | |
Private Attributes | |
| QTableWidget * | m_table {nullptr} |
| QPushButton * | m_editBtn {nullptr} |
| QPushButton * | m_removeBtn {nullptr} |
| QPushButton * | m_applyFilterBtn {nullptr} |
| QPushButton * | m_clearFilterBtn {nullptr} |
| QLabel * | m_statusLabel {nullptr} |
| std::vector< ActorDefinition > | m_definitions |
| std::string | m_currentFilePath |
| last saved/loaded path | |
| bool | m_rebuilding {false} |
| true while RebuildTable runs | |
| db::EventsContainer * | m_events {nullptr} |
Left-dock panel for defining named actors by regular expression.
Each actor definition specifies:
Definitions can be saved to / loaded from a JSON file. When the definition list changes the DefinitionsChanged signal is emitted so the Actors panel can refresh its results.
|
explicit |

|
private |


|
staticprivate |
Default file path in the application config directory.


|
inline |
|
signal |

|
private |
Open an add/edit dialog; returns false if user cancelled.

|
private |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |

|
private |


|
signal |
Emitted when the user clicks "Apply Filter" — caller should filter events to those matching the current enabled actor definitions.

|
signal |
Emitted when the user clicks "Clear Filter".

|
inline |

|
private |

|
slot |
Called from ActorsPanel when the user sets or clears a directed-to relationship via the context menu in the Actors tree.

|
private |
|
private |
|
private |
last saved/loaded path
|
private |
|
private |
|
private |
|
private |
true while RebuildTable runs
|
private |
|
private |
|
private |