nqrduck_broadband.view#
This module contains the view of the broadband module.
Classes
|
View class for the Broadband module. |
- class nqrduck_broadband.view.BroadbandView(*args: Any, **kwargs: Any)#
View class for the Broadband module.
- Signals:
start_broadband_measurement: Signal to start a broadband measurement.
- add_info_text(text: str) None#
Add a text to the info box with a timestamp.
- Parameters:
text (str) – The text to add to the info box.
- connect_signals() None#
Connect the signals of the view to the slots of the controller.
- init_plots() None#
Initialize the plots.
- on_LUT_changed() None#
This method is called when the LUT data is changed.
- on_broadband_measurement_added() None#
This method is called when a new broadband measurement is added to the model.
It updates the plots and the progress bar.
- on_editing_finished(value: str) None#
This method is called when the user finished editing a field.
It sets the value of the field in the model.
- Parameters:
value (str) – The value of the field.
- on_frequency_step_change(frequency_step: float) None#
This method is called when the frequency step is changed.
It adjusts the view to the new frequency step.
- Parameters:
frequency_step (float) – The new frequency step.
- on_load_button_clicked() None#
This method is called when the load button is clicked.
It shows a file dialog to the user to select a file to load the measurement from.
- on_save_button_clicked() None#
This method is called when the save button is clicked.
It shows a file dialog to the user to select a file to save the measurement to.
- on_set_averages_failure() None#
This method is called when the averages could not be set.
It sets the border of the averages field to red indicating that the entered value was not valid.
- on_set_frequency_step_failure() None#
This method is called when the frequency step could not be set.
It sets the border of the frequency step field to red indicating that the entered value was not valid.
- on_start_frequency_change(start_frequency: float) None#
This method is called when the start frequency is changed.
It adjusts the view to the new start frequency.
- Parameters:
start_frequency (float) – The new start frequency.
- on_stop_frequency_change(stop_frequency: float) None#
This method is called when the stop frequency is changed.
It adjusts the view to the new stop frequency.
- Parameters:
stop_frequency (float) – The new stop frequency.
- set_broadband_labels() None#
Set the labels of the broadband plot.
- set_frequencydomain_labels() None#
Set the labels of the frequency domain plot.
- set_timedomain_labels() None#
Set the labels of the time domain plot.
- start_measurement_clicked() None#
This method is called when the start measurement button is clicked.
It shows a dialog asking the user if he really wants to start the measurement. If the user clicks yes the start_broadband_measurement signal is emitted.