|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Enhanced bookmark and annotation panel (v1.10.0). More...
#include <BookmarksPanel.hpp>


Classes | |
| struct | Bookmark |
| struct | Category |
Public Slots | |
| void | AddBookmarkForRow (int actualRow) |
| Bookmark the given event row (called from the events-table context menu). | |
Signals | |
| void | NavigateToEvent (int actualRow) |
Public Member Functions | |
| BookmarksPanel (db::EventsContainer &events, EventsTableView *eventsView, QWidget *parent=nullptr) | |
| nlohmann::json | GetSessionData () const |
| void | LoadSessionData (const nlohmann::json &data) |
Private Slots | |
| void | OnCurrentRowChanged (int actualRow) |
| void | OnAddBookmark () |
| void | OnGoTo () |
| void | OnRemove () |
| void | OnExport () |
| void | OnImport () |
| void | OnSearchTextChanged (const QString &text) |
| void | OnCategoryFilterChanged (const QString &category) |
| void | OnAddCategory () |
| void | OnRemoveCategory () |
Private Member Functions | |
| void | BuildLayout () |
| void | DoAddBookmark (int actualRow, const std::string &label, const std::string &category) |
| void | RebuildTable () |
| void | RebuildCategoryFilter () |
| void | UpdateCategoryCounts () |
| int | SelectedTableRow () const |
| Returns the selected table row, or -1 if nothing is selected. | |
| void | ApplyFilters () |
| Apply search and category filters to visible bookmarks. | |
Static Private Member Functions | |
| static std::vector< Category > | GetDefaultCategories () |
| Get default categories. | |
Private Attributes | |
| db::EventsContainer & | m_events |
| EventsTableView * | m_eventsView |
| int | m_currentRow {-1} |
| Currently selected event in events view. | |
| std::vector< Category > | m_categories |
| std::unordered_map< std::string, int > | m_categoryColorMap |
| QLineEdit * | m_labelEdit {nullptr} |
| QComboBox * | m_categoryCombo {nullptr} |
| QPushButton * | m_addCategoryBtn {nullptr} |
| QPushButton * | m_removeCategoryBtn {nullptr} |
| QPushButton * | m_addBtn {nullptr} |
| QTableWidget * | m_table {nullptr} |
| QLineEdit * | m_searchEdit {nullptr} |
| QComboBox * | m_categoryFilterCombo {nullptr} |
| QPushButton * | m_goToBtn {nullptr} |
| QPushButton * | m_removeBtn {nullptr} |
| QPushButton * | m_exportBtn {nullptr} |
| QPushButton * | m_importBtn {nullptr} |
| QLabel * | m_statusLabel {nullptr} |
| std::vector< Bookmark > | m_bookmarks |
| std::vector< Bookmark > | m_filteredBookmarks |
Enhanced bookmark and annotation panel (v1.10.0).
Improvements:
Users can mark events with labels and assign categories. Bookmarks persist in JSON across sessions with category and color metadata.
|
explicit |

|
slot |
Bookmark the given event row (called from the events-table context menu).

|
private |
Apply search and category filters to visible bookmarks.

|
private |


|
private |


|
staticprivate |
Get default categories.

| nlohmann::json ui::qt::BookmarksPanel::GetSessionData | ( | ) | const |
| void ui::qt::BookmarksPanel::LoadSessionData | ( | const nlohmann::json & | data | ) |

|
signal |
Emitted when the user activates a bookmark. MainWindow switches to the Events tab and scrolls to actualRow.

|
privateslot |


|
privateslot |

|
privateslot |

|
privateslot |

|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |

|
privateslot |

|
private |

|
private |

|
private |
Returns the selected table row, or -1 if nothing is selected.

|
private |

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Currently selected event in events view.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |