From 004b430ca730283bfc8849a52bfc41e3a5ce73d1 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Sun, 23 Aug 2015 15:54:47 -0400 Subject: [PATCH] Added the ability to sync the main window and graph window to the flowview window so that while watching the flow the other two windows stay in sync. This eats processor power. A lot. You probably won't be able to go much faster than 100ms intervals. It won't have any effect. --- flowviewwindow.cpp | 3 ++- flowviewwindow.ui | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/flowviewwindow.cpp b/flowviewwindow.cpp index 1a440fa..51e9747 100644 --- a/flowviewwindow.cpp +++ b/flowviewwindow.cpp @@ -561,8 +561,9 @@ void FlowViewWindow::updatePosition(bool forward) memcpy(refBytes, currBytes, 8); } - memcpy(currBytes, frameCache.at(currentPosition).data, 8); + memcpy(currBytes, frameCache.at(currentPosition).data, 8); + if (ui->cbSync->checkState() == Qt::Checked) emit sendCenterTimeID(frameCache[currentPosition].ID, frameCache[currentPosition].timestamp / 1000000.0); } void FlowViewWindow::updateGraphLocation() diff --git a/flowviewwindow.ui b/flowviewwindow.ui index 2446212..e06b7ae 100644 --- a/flowviewwindow.ui +++ b/flowviewwindow.ui @@ -196,7 +196,7 @@ - + 0 @@ -204,7 +204,7 @@ - Realtime Capture + Synchronize windows