|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Scenario builder panel. More...
#include <ScenariosPanel.hpp>


Classes | |
| struct | Scenario |
| struct | ScenarioEvent |
Public Slots | |
| void | AddEventFromRow (int actualRow) |
Public Member Functions | |
| ScenariosPanel (db::EventsContainer &events, EventsTableView *eventsView, QWidget *parent=nullptr) | |
| nlohmann::json | GetSessionData () const |
| void | LoadSessionData (const nlohmann::json &data) |
Private Slots | |
| void | OnNewScenario () |
| void | OnRenameScenario () |
| void | OnDeleteScenario () |
| void | OnScenarioChanged (int comboIndex) |
| void | OnAddSelectedEvent () |
| void | OnRemoveEvent () |
| void | OnMoveUp () |
| void | OnMoveDown () |
| void | OnExport () |
Private Member Functions | |
| void | BuildLayout () |
| void | RebuildEventsTable () |
| void | UpdateScenarioCombo (int selectIndex=-1) |
| void | UpdateButtonStates () |
| int | SelectedEventRow () const |
| Returns the index of the selected row in m_eventsTable, or -1. | |
| Scenario * | ActiveScenario () |
| Returns a pointer to the active Scenario, or nullptr if none. | |
| void | FillEventStrings (ScenarioEvent &se) const |
Build event-item summary strings for actualRow (cached on add). | |
| void | SaveToSettings () const |
| Persist m_scenarios to QSettings so they survive without a session file. | |
| void | LoadFromSettings () |
| Restore m_scenarios from QSettings (called once at construction). | |
Private Attributes | |
| db::EventsContainer & | m_events |
| EventsTableView * | m_eventsView |
| QComboBox * | m_scenarioCombo {nullptr} |
| QPushButton * | m_newBtn {nullptr} |
| QPushButton * | m_renameBtn {nullptr} |
| QPushButton * | m_deleteBtn {nullptr} |
| QTableWidget * | m_eventsTable {nullptr} |
| QPushButton * | m_addBtn {nullptr} |
| QPushButton * | m_removeBtn {nullptr} |
| QPushButton * | m_upBtn {nullptr} |
| QPushButton * | m_downBtn {nullptr} |
| QPushButton * | m_exportBtn {nullptr} |
| QLabel * | m_statusLabel {nullptr} |
| std::vector< Scenario > | m_scenarios |
| int | m_activeScenario {-1} |
Scenario builder panel.
A scenario is a named, ordered collection of log events assembled by the analyst. Events can be added from the Events table (via button or right-click context menu), reordered, and removed. The whole scenario can be exported as plain text, a Markdown table, or JSON Lines — with a field selector dialog to control which event items appear in the output.
Multiple independent scenarios are supported via the combo box selector. Scenarios persist in QSettings across sessions.
|
explicit |

|
private |
Returns a pointer to the active Scenario, or nullptr if none.

|
slot |
Add the event at actualRow to the currently active scenario. If no scenario exists yet a default one is created automatically.


|
private |


|
private |
Build event-item summary strings for actualRow (cached on add).


| nlohmann::json ui::qt::ScenariosPanel::GetSessionData | ( | ) | const |
|
private |
Restore m_scenarios from QSettings (called once at construction).


| void ui::qt::ScenariosPanel::LoadSessionData | ( | const nlohmann::json & | data | ) |
|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
private |


|
private |
Persist m_scenarios to QSettings so they survive without a session file.

|
private |
Returns the index of the selected row in m_eventsTable, or -1.

|
private |


|
private |


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |