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.
This commit is contained in:
+2
-1
@@ -561,8 +561,9 @@ void FlowViewWindow::updatePosition(bool forward)
|
|||||||
memcpy(refBytes, currBytes, 8);
|
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()
|
void FlowViewWindow::updateGraphLocation()
|
||||||
|
|||||||
+2
-2
@@ -196,7 +196,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="cbCapture">
|
<widget class="QCheckBox" name="cbSync">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
@@ -204,7 +204,7 @@
|
|||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Realtime Capture</string>
|
<string>Synchronize windows</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user