|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
#include <SideBySidePanel.hpp>


Classes | |
| struct | LoadJob |
Signals | |
| void | CloseRequested () |
Public Member Functions | |
| SideBySidePanel (QWidget *parent=nullptr) | |
| ~SideBySidePanel () override | |
| void | OpenLeft (const QString &path) |
| void | OpenRight (const QString &path) |
Static Public Member Functions | |
| static int | FindNearestByTimestamp (db::EventsContainer &container, double target, int fallbackRow) |
Private Types | |
| enum class | SyncMode { Timestamp , Manual , None } |
Private Slots | |
| void | OnOpenLeftFile () |
| void | OnOpenRightFile () |
| void | OnSyncModeChanged (int index) |
| void | OnSetLeftRef () |
| void | OnSetRightRef () |
| void | OnLeftSelectionChanged (int actualRow) |
| void | OnRightSelectionChanged (int actualRow) |
| void | OnLeftLoadFinished () |
| void | OnRightLoadFinished () |
Private Member Functions | |
| void | BuildUi () |
| QWidget * | BuildSide (bool isLeft) |
| void | UpdateManualControls () |
| void | UpdateSyncStatus () |
| void | LoadFile (bool isLeft) |
| void | LoadFileDirect (bool isLeft, const QString &path) |
| void | StartAsyncLoad (bool isLeft, std::unique_ptr< parser::IDataParser > parser, const std::filesystem::path &path) |
| double | GetTimestamp (db::EventsContainer &container, size_t actualRow) const |
| void | SyncFromLeft (int actualRow) |
| void | SyncFromRight (int actualRow) |
Private Attributes | |
| db::EventsContainer | m_leftEvents |
| db::EventsContainer | m_rightEvents |
| EventsTableView * | m_leftView {nullptr} |
| EventsTableView * | m_rightView {nullptr} |
| QLabel * | m_leftFileLabel {nullptr} |
| QLabel * | m_rightFileLabel {nullptr} |
| QPushButton * | m_leftOpenBtn {nullptr} |
| QPushButton * | m_rightOpenBtn {nullptr} |
| QComboBox * | m_syncModeCombo {nullptr} |
| QPushButton * | m_setLeftRefBtn {nullptr} |
| QPushButton * | m_setRightRefBtn {nullptr} |
| QLabel * | m_syncStatusLabel {nullptr} |
| SyncMode | m_syncMode {SyncMode::Timestamp} |
| bool | m_leftRefSet {false} |
| bool | m_rightRefSet {false} |
| double | m_leftRefTs {0.0} |
| double | m_rightRefTs {0.0} |
| int | m_leftRefRow {-1} |
| int | m_rightRefRow {-1} |
| double | m_syncOffset {0.0} |
| bool | m_syncInProgress {false} |
| LoadJob | m_leftJob |
| LoadJob | m_rightJob |
| QFutureWatcher< void > * | m_leftWatcher {nullptr} |
| QFutureWatcher< void > * | m_rightWatcher {nullptr} |
Panel that displays two independently-loaded log files side by side, with three synchronisation modes:
Timestamp — when the user selects a row on one side the other side scrolls to the event with the nearest timestamp.
Manual — the user marks one reference event on each side; the panel computes a constant timestamp offset between the two logs and from then on uses that offset for the nearest-timestamp lookup. Useful when the two files use incompatible time bases (e.g. DLT epoch vs ASC elapsed seconds).
None — the two views are completely independent.
|
strongprivate |
|
explicit |

|
overridedefault |
|
private |

|
private |


|
signal |

|
static |
Returns the row in container whose timestamp is closest to target. Uses binary search (assumes timestamps are monotonically increasing, which is true for virtually all real log files). Falls back to fallbackRow when the container has no parseable timestamps.


|
private |


|
private |


|
private |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


|
privateslot |


| void ui::qt::SideBySidePanel::OpenLeft | ( | const QString & | path | ) |

| void ui::qt::SideBySidePanel::OpenRight | ( | const QString & | path | ) |

|
private |


|
private |


|
private |


|
private |

|
private |

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