pySimBlocks.gui.dialogs.settings.plots

class pySimBlocks.gui.dialogs.settings.plots.PlotSettingsWidget(project_state: ProjectState, project_controller: ProjectController)[source]

Bases: QWidget

Edit the set of named plots stored in the project.

project_state

Project state edited by the widget.

project_controller

Controller applying plot changes.

edit_index

Index of the plot currently being edited, or None.

refresh_from_project()[source]

Synchronize the plot editor with the current project state.

refresh_plot_list()[source]

Refresh the plot titles shown in the list widget.

populate_signal_list(checked=None)[source]

Populate the signal checklist.

Parameters:

checked – Optional iterable of signal names to preselect.

collect_selected_signals() list[str][source]

Return the currently selected signal names.

Returns:

Selected signal names from the checklist.

reset_form()[source]

Clear the editor fields and uncheck all signals.

update_buttons_state()[source]

Enable or disable actions based on the current selection state.

load_plot(index)[source]

Load the selected plot into the editor.

Parameters:

index – Index of the plot selected in the list.

new_plot()[source]

Start editing a new plot definition.

save_plot()[source]

Create or update the currently edited plot.

delete_plot()[source]

Delete the currently selected plot.

staticMetaObject = PySide6.QtCore.QMetaObject("PlotSettingsWidget" inherits "QWidget": )