From c23c82523b32dccc912720dc83030f8abfab70cf Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 30 Sep 2023 14:36:13 +0200 Subject: Make Ethernet / Port editable. * CMake: Thread Sanitizer * Main Window status bar updater * Track mouse movement Signed-off-by: Toni Uhlig --- mainwindow.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'mainwindow.h') diff --git a/mainwindow.h b/mainwindow.h index 9ccf159..a7d3a37 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -5,6 +5,7 @@ #include "pcapplusplus.h" #include "qhexedit2/src/qhexedit.h" +#include #include #include #include @@ -25,6 +26,9 @@ public: bool updateTableRow(size_t index); private: + bool eventFilter(QObject *obj, QEvent *event); + void updateStatusBarMessage(const QString & message); + struct { QMenu menu; QAction randomize; @@ -37,12 +41,19 @@ private: QAction deleteBytes; QAction deleteSelection; QHexEdit editor; - ByteWindow bytewindow; + ByteWindow *bytewindow = nullptr; } myHexEdit; - time_t firstPacketTs; - Ui::MainWindow *ui; - PcapPlusPlus *ppp; + struct { + int x; + int y; + } mouse; + + time_t firstPacketTs = 0; + Ui::MainWindow *ui = nullptr; + QString statusbarMessage; + PcapPlusPlus *ppp = nullptr; + std::atomic isProcessing = false; signals: void processPcap(); -- cgit v1.2.3