Skip to content

Commit

Permalink
fft: Disable the measurements panel until they are implemented
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei-Fabian-Pop <[email protected]>
  • Loading branch information
Andrei-Fabian-Pop committed Sep 26, 2024
1 parent 6d34337 commit 866305e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions plugins/adc/src/adcfftinstrumentcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ void ADCFFTInstrumentController::init()
m_fftPlotSettingsComponent->addPlot(dynamic_cast<FFTPlotComponent *>(m_plotComponentManager->plot(tmp)));

m_measureComponent = new MeasureComponent(m_ui->getToolTemplate(), m_plotComponentManager, this);
m_measureComponent->measureSettings()->getMeasureSection()->setVisible(false);
// m_measureComponent->addPlotComponent(m_plotComponentManager);

addComponent(m_measureComponent);
Expand Down
6 changes: 6 additions & 0 deletions plugins/adc/src/freq/fftplotmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ FFTPlotComponent *FFTPlotManager::plot(uint32_t uuid)
return dynamic_cast<FFTPlotComponent *>(PlotManager::plot(uuid));
}

void FFTPlotManager::enableMeasurementPanel(bool)
{
// TODO: Remove this whole function once the measurements for fft
// are implemented. This is just a placeholder.
}

void FFTPlotManager::multiPlotUpdate()
{
bool b = m_plots.count() > 1;
Expand Down
1 change: 1 addition & 0 deletions plugins/adc/src/freq/fftplotmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class SCOPY_ADC_EXPORT FFTPlotManager : public PlotManager
virtual uint32_t addPlot(QString name) override;
virtual void removePlot(uint32_t uuid) override;
FFTPlotComponent *plot(uint32_t uuid);
void enableMeasurementPanel(bool) override;

private:
PlotComponent *m_primary;
Expand Down

0 comments on commit 866305e

Please sign in to comment.