DigitalIntervalSeriesInspector
DigitalIntervalSeriesInspector
Inspector widget for DigitalIntervalSeries. More…
#include <DigitalIntervalSeriesInspector.hpp>
Inherits from BaseInspector, QWidget, IDataInspector
Public Functions
| Name | |
|---|---|
| DigitalIntervalSeriesInspector(std::shared_ptr< DataManager > data_manager, GroupManager * group_manager =[nullptr], QWidget * parent =[nullptr]) Construct the digital interval series inspector. |
|
| ~DigitalIntervalSeriesInspector() override | |
| virtual void | setActiveKey(std::string const & key) override Set the active data key to inspect. |
| virtual void | removeCallbacks() override Remove all callbacks from the currently active data. |
| virtual void | updateView() override Update the view to reflect current data state. |
| virtual DM_DataType | getDataType() const override Get the data type this inspector handles. |
| virtual QString | getTypeName() const override Get a human-readable name for this inspector type. |
| virtual bool | supportsExport() const override Check if this inspector supports export functionality. |
| void | setDataView(DigitalIntervalSeriesDataView * view) Set the data view to use for selection and group coordination. |
| void | setGroupManager(GroupManager * group_manager) Set the group manager for group features. |
| void | setSelectionProvider(std::function< std::vector< TimeFrameInterval >()> provider) Set a callback function to get selected intervals from the view panel. |
| void | setKeymapManager(KeymapSystem::KeymapManager * manager) Connect to the application keymap manager for configurable shortcuts. |
Additional inherited members
Public Signals inherited from BaseInspector
| Name | |
|---|---|
| void | frameSelected(TimePosition position) Emitted when user selects a frame to navigate to. |
Public Functions inherited from BaseInspector
| Name | |
|---|---|
| BaseInspector(std::shared_ptr< DataManager > data_manager, GroupManager * group_manager =[nullptr], QWidget * parent =[nullptr]) Construct the base inspector. |
|
| ~BaseInspector() override | |
| virtual std::string | getActiveKey() const override Get the current active data key. |
| virtual bool | supportsGroupFiltering() const override Check if group filtering is supported. |
| GroupManager * | groupManager() const Get the current GroupManager. |
| void | setCommandRecorder(commands::CommandRecorder * recorder) Set the CommandRecorder for recording command executions. |
| void | setState(std::shared_ptr< DataInspectorState > state) Set the DataInspectorState for time position access. |
| std::shared_ptr< DataInspectorState > | state() const Get the DataInspectorState. |
Protected Functions inherited from BaseInspector
| Name | |
|---|---|
| std::shared_ptr< DataManager > | dataManager() const Get the DataManager. |
| commands::CommandRecorder * | commandRecorder() const Get the CommandRecorder for recording command executions. |
| void | removeCallbackFromData(std::string const & key, int & callback_id) Helper to remove a callback from data. |
Protected Attributes inherited from BaseInspector
| Name | |
|---|---|
| std::string | _active_key The currently active data key. |
| int | _callback_id Callback ID for data observer (-1 if not registered). |
Public Functions inherited from IDataInspector
| Name | |
|---|---|
| virtual | ~IDataInspector() =default |
| virtual std::string | getActiveKey() const =0 Get the current active data key. |
| virtual bool | supportsGroupFiltering() const Check if this inspector supports group filtering. |
Detailed Description
class DigitalIntervalSeriesInspector;Inspector widget for DigitalIntervalSeries.
Provides functionality for digital interval series inspection and management.
Public Functions Documentation
function DigitalIntervalSeriesInspector
explicit DigitalIntervalSeriesInspector(
std::shared_ptr< DataManager > data_manager,
GroupManager * group_manager =nullptr,
QWidget * parent =nullptr
)Construct the digital interval series inspector.
Parameters:
- data_manager Shared DataManager for data access
- group_manager Optional GroupManager for group features (not used)
- parent Parent widget
function ~DigitalIntervalSeriesInspector
~DigitalIntervalSeriesInspector() overridefunction setActiveKey
virtual void setActiveKey(
std::string const & key
) overrideSet the active data key to inspect.
Parameters:
- key The data key in DataManager
Reimplements: IDataInspector::setActiveKey
This method should:
- Remove callbacks from any previously active data
- Store the new key
- Set up callbacks on the new data
- Update the view to show the new data
function removeCallbacks
virtual void removeCallbacks() overrideRemove all callbacks from the currently active data.
Reimplements: IDataInspector::removeCallbacks
Called when the inspector is being destroyed or when switching to a different data key. Must clean up any registered observers.
function updateView
virtual void updateView() overrideUpdate the view to reflect current data state.
Reimplements: IDataInspector::updateView
Called when the underlying data has changed. Should refresh all UI elements (tables, labels, etc.) to show current data.
function getDataType
inline virtual DM_DataType getDataType() const overrideGet the data type this inspector handles.
Return: The DM_DataType enum value
Reimplements: IDataInspector::getDataType
function getTypeName
inline virtual QString getTypeName() const overrideGet a human-readable name for this inspector type.
Return: Display name (e.g., “Point”, “Line”, “Mask”)
Reimplements: IDataInspector::getTypeName
function supportsExport
inline virtual bool supportsExport() const overrideCheck if this inspector supports export functionality.
Return: true if export is supported, false otherwise
Reimplements: IDataInspector::supportsExport
Default returns false. Override in inspectors that support data export.
function setDataView
void setDataView(
DigitalIntervalSeriesDataView * view
)Set the data view to use for selection and group coordination.
Parameters:
- view Pointer to the DigitalIntervalSeriesDataView (can be nullptr)
This connects the widget’s selection operations to the view panel’s table. Also sets up group manager and context menu signals on the view. Should be called when both the inspector and view are created.
function setGroupManager
void setGroupManager(
GroupManager * group_manager
)Set the group manager for group features.
Parameters:
- group_manager Pointer to GroupManager (can be nullptr)
function setSelectionProvider
void setSelectionProvider(
std::function< std::vector< TimeFrameInterval >()> provider
)Set a callback function to get selected intervals from the view panel.
Parameters:
- provider Function that returns currently selected intervals
function setKeymapManager
void setKeymapManager(
KeymapSystem::KeymapManager * manager
)Connect to the application keymap manager for configurable shortcuts.
Parameters:
- manager Non-owning pointer to the KeymapManager (can be nullptr)
Registers a KeyActionAdapter for the three interval marking actions:
- digital_interval_series.mark_contact_start
- digital_interval_series.mark_contact_end
- digital_interval_series.flip_current_frame
Updated on 2026-11-13 at 20:25:41 +0000