SpectrogramWidget
SpectrogramWidget
Main widget for spectrogram visualization.
#include <SpectrogramWidget.hpp>
Inherits from QWidget
Public Signals
| Name | |
|---|---|
| void | timePositionSelected(TimePosition position) Emitted when a time position is selected in the view. |
Public Functions
| Name | |
|---|---|
| SpectrogramWidget(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) Construct a SpectrogramWidget. |
|
| ~SpectrogramWidget() override | |
| void | setState(std::shared_ptr< SpectrogramState > state) Set the SpectrogramState for this widget. |
| std::shared_ptr< SpectrogramState > | state() const Get the current SpectrogramState (const). |
| SpectrogramState * | state() Get mutable state access. |
| void | _onTimeChanged(const TimePosition & position) Handle time changes from EditorRegistry. |
Public Signals Documentation
signal timePositionSelected
void timePositionSelected(
TimePosition position
)Emitted when a time position is selected in the view.
Parameters:
- position TimePosition to navigate to
Public Functions Documentation
function SpectrogramWidget
SpectrogramWidget(
std::shared_ptr< DataManager > data_manager,
QWidget * parent =nullptr
)Construct a SpectrogramWidget.
Parameters:
- data_manager Shared DataManager for data access
- parent Parent widget
function ~SpectrogramWidget
~SpectrogramWidget() overridefunction setState
void setState(
std::shared_ptr< SpectrogramState > state
)Set the SpectrogramState for this widget.
Parameters:
- state Shared pointer to the state object
The state manages all serializable settings. This widget shares the state with the properties widget.
function state
inline std::shared_ptr< SpectrogramState > state() constGet the current SpectrogramState (const).
Return: Shared pointer to the state object
function state
SpectrogramState * state()Get mutable state access.
Return: Raw pointer to state for modification
function _onTimeChanged
void _onTimeChanged(
const TimePosition & position
)Handle time changes from EditorRegistry.
Parameters:
- position The new TimePosition
Slot for global time changes (e.g. TimeScrollBar). Can be used to update the spectrogram when time changes from other sources.
Updated on 2026-11-13 at 20:25:39 +0000