diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-13 17:08:41 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-07-13 17:08:41 -0500 |
commit | 34a27d54d6f62d4ea6753667ed78bf5ad4b9db62 (patch) | |
tree | dc80608f4009835adb548c0bd59a6aa2e983e15f /clients/tde/src/part | |
parent | 38c51e3a29bab13192ee194e82954885c7dc8bad (diff) | |
download | ulab-34a27d54d6f62d4ea6753667ed78bf5ad4b9db62.tar.gz ulab-34a27d54d6f62d4ea6753667ed78bf5ad4b9db62.zip |
Add trace offset support
Diffstat (limited to 'clients/tde/src/part')
-rw-r--r-- | clients/tde/src/part/commanalyzer/part.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clients/tde/src/part/commanalyzer/part.cpp b/clients/tde/src/part/commanalyzer/part.cpp index c0200ec..326e506 100644 --- a/clients/tde/src/part/commanalyzer/part.cpp +++ b/clients/tde/src/part/commanalyzer/part.cpp @@ -95,6 +95,7 @@ CommAnalyzerPart::CommAnalyzerPart( TQWidget *parentWidget, const char *widgetNa m_base->traceZoomWidget->setTraceHorizontalUnits(0, "Hz"); m_base->traceZoomWidget->setTraceVerticalUnits(0, "dBm"); connect(m_traceWidget, SIGNAL(zoomBoxChanged(const TQRectF&)), this, SLOT(updateZoomWidgetLimits(const TQRectF&))); + connect(m_traceWidget, SIGNAL(offsetChanged(uint, double)), m_base->traceZoomWidget, SLOT(setTraceOffset(uint, double))); m_base->saRefLevel->setSizePolicy(TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed)); m_base->saRefLevel->setFloatMin(-128); @@ -575,8 +576,8 @@ void CommAnalyzerPart::mainEventLoop() { m_traceWidget->setSamples(0, trace); m_base->traceZoomWidget->setSamples(0, trace); postProcessTrace(); - m_traceWidget->repaint(); - m_base->traceZoomWidget->repaint(); + m_traceWidget->repaint(true); + m_base->traceZoomWidget->repaint(true); } if (result == "ACK") { @@ -702,9 +703,6 @@ void CommAnalyzerPart::updateZoomWidgetLimits(const TQRectF& zoomRect) { TQRectF zoomLimitsRect((fullZoomRect.x()+(widthSpan*(zoomRect.x()/100.0))), (fullZoomRect.y()+(heightSpan*(zoomRect.y()/100.0))), (fullZoomRect.x()+(widthSpan*((zoomRect.x()/100.0)+(zoomRect.width()/100.0)))), (fullZoomRect.y()+(heightSpan*((zoomRect.y()/100.0)+(zoomRect.height()/100.0))))); -printf("[RAJA DEBUG 760.0] Current full limits: x1: %f y1: %f x2: %f y2: %f\n\r", fullZoomRect.x(), fullZoomRect.y(), fullZoomRect.width(), fullZoomRect.height()); fflush(stdout); -printf("[RAJA DEBUG 760.1] Current zoom limits: x1: %f y1: %f x2: %f y2: %f\n\r", zoomLimitsRect.x(), zoomLimitsRect.y(), zoomLimitsRect.width(), zoomLimitsRect.height()); fflush(stdout); - m_base->traceZoomWidget->setDisplayLimits(0, zoomLimitsRect); } @@ -712,7 +710,6 @@ void CommAnalyzerPart::updateGraticule() { m_traceWidget->setNumberOfSamples(0, m_samplesInTrace); m_traceWidget->setNumberOfHorizontalDivisions(m_hdivs); m_traceWidget->setNumberOfVerticalDivisions(m_vdivs); -printf("[RAJA DEBUG 750.0] m_hdivs: %d m_vdivs: %d m_vscale: %E\n\r", m_hdivs, m_vdivs, m_vscale); fflush(stdout); m_base->traceZoomWidget->setNumberOfSamples(0, m_samplesInTrace); m_base->traceZoomWidget->setNumberOfHorizontalDivisions(m_hdivs); m_base->traceZoomWidget->setNumberOfVerticalDivisions(m_vdivs); |