visualdynamics.gui.settings_panel¶
settings_panel
¶
The pieces every settings panel is built from.
The settings panels (averaging, filter, sine, truncate, wavelet, rigid body, octave, and the geometry panes) share one frame: the grid, the fixed width and the bold title, the editable rows, the rule under them and the derived readings below it. Those are built here once, and each panel keeps what is its own: which rows, which readings, and its button.
Classes:
| Name | Description |
|---|---|
PreviewPlot |
The small plot a panel draws its preview in, such as the filter's |
Functions:
| Name | Description |
|---|---|
panel_grid |
A grid layout on |
add_settings |
Add the editable rows: a name and its editor for each |
add_keyed_settings |
|
add_rule |
Add the sunken line across the panel, at |
add_derived |
Add the read-only rows under the editable ones: a grayed name and |
Classes¶
PreviewPlot
¶
Bases: QWidget
The small plot a panel draws its preview in, such as the filter's
response or the sine extraction's sampled readings. Frequency is on
a log axis, the mouse and the menu are turned off, and the axes are
in the theme's foreground color. A subclass adds its own curves and
sets only how it differs, through HEIGHT, LOG_Y and
AXIS_WIDTH.
Methods:
| Name | Description |
|---|---|
apply_theme |
Redraw the background and the axes in a new theme's colors. |
Source code in src/visualdynamics/gui/settings_panel.py
Methods:¶
apply_theme
¶
Redraw the background and the axes in a new theme's colors.
Source code in src/visualdynamics/gui/settings_panel.py
Functions:¶
panel_grid
¶
A grid layout on panel with title, set in bold, across its
first row. The panel's width is fixed at PANEL_WIDTH.
Source code in src/visualdynamics/gui/settings_panel.py
add_settings
¶
Add the editable rows: a name and its editor for each
(label, editor), from first_row down. Returns the name labels in
order, for a panel that renames or hides a row as its settings
change.
Source code in src/visualdynamics/gui/settings_panel.py
add_keyed_settings
¶
add_keyed_settings(grid: QGridLayout, rows, first_row: int = 1) -> tuple[dict[str, QLabel], dict[str, QWidget]]
add_settings for rows a panel looks up by key, each a
(key, label, editor), so one can be renamed or hidden as the
settings change. Returns two dicts: key → name label and key →
editor.
Source code in src/visualdynamics/gui/settings_panel.py
add_rule
¶
Add the sunken line across the panel, at row, between the
editable rows and the readings that follow from them.
Source code in src/visualdynamics/gui/settings_panel.py
add_derived
¶
Add the read-only rows under the editable ones: a grayed name and
a right-aligned value (a dash until it is set) for each
(key, label), from first_row down. Returns key → (name label,
value label).