tna.gui.gui_signals.TNAController

class tna.gui.gui_signals.TNAController(view)[source]

Controller class for the TNA GUI application.

This class connects the GUI (view) with the data structures (model) and manages all user interactions as well as data processing pipelines.

__init__(view)[source]
Parameters:

view (object) – GUI object (view) containing the Qt widgets.

Methods

__init__(view)

click_load_data_button(*args)

Loads one or more data files via a file dialog.

click_one_d_button(*args)

Executes the 1D data processing pipeline.

click_save_button(*args)

Saves the current data and parameters as pickle files.

click_show_experimental_button(*args)

Displays the loaded raw data in the plots.

click_two_d_button(*args)

Performs 2D data processing.

connect_signals()

Connects GUI signals to the corresponding controller methods.

gui_init_plot_1(plot_window)

Initializes the first Matplotlib plot widget.

gui_init_plot_2(plot_window)

Initializes the second Matplotlib plot widget.

loading_one_file()

Loads a single file depending on the selected dimensionality (1D/2D).

update_checkboxes(*args)

Synchronizes GUI checkboxes with the parameter object.

update_dimension(*args)

Switches between 1D and 2D mode.

update_spinboxes(*args)

Updates parameters from GUI spinbox values.