DigitalEventSeriesDataView
DigitalEventSeriesDataView
Table view widget for DigitalEventSeries.
#include <DigitalEventSeriesDataView.hpp>
Inherits from BaseDataView, QWidget, IDataView
Public Signals
| Name | |
|---|---|
| void | moveEventsRequested(std::string const & target_key) Emitted when user requests to move selected events to a target key. |
| void | copyEventsRequested(std::string const & target_key) Emitted when user requests to copy selected events to a target key. |
| void | deleteEventsRequested() Emitted when user requests to delete selected events. |
| void | moveEventsToGroupRequested(int group_id) Emitted when user requests to move selected events to a group. |
| void | removeEventsFromGroupRequested() Emitted when user requests to remove selected events from their groups. |
Public Functions
| Name | |
|---|---|
| DigitalEventSeriesDataView(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) | |
| ~DigitalEventSeriesDataView() override | |
| virtual void | setActiveKey(std::string const & key) override Set the active data key to display. |
| 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 view handles. |
| virtual QString | getTypeName() const override Get a human-readable name for this view type. |
| QTableView * | tableView() const |
| std::vector< EntityId > | getSelectedEntityIds() const Get the selected EntityIds from the table. |
| void | setGroupManager(GroupManager * group_manager) Set the GroupManager for group features. |
| void | setGroupFilter(int group_id) Apply a group filter to the table. |
| void | clearGroupFilter() Clear the group filter. |
Additional inherited members
Public Signals inherited from BaseDataView
| Name | |
|---|---|
| void | frameSelected(TimePosition position) Emitted when user selects a frame to navigate to. |
Public Functions inherited from BaseDataView
| Name | |
|---|---|
| BaseDataView(std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) Construct the base data view. |
|
| ~BaseDataView() override | |
| virtual std::string | getActiveKey() const override Get the current active data key. |
| 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 BaseDataView
| Name | |
|---|---|
| std::shared_ptr< DataManager > | dataManager() const Get the DataManager. |
Protected Attributes inherited from BaseDataView
| Name | |
|---|---|
| std::string | _active_key |
Public Functions inherited from IDataView
| Name | |
|---|---|
| virtual | ~IDataView() =default |
| virtual std::string | getActiveKey() const =0 Get the current active data key. |
Public Signals Documentation
signal moveEventsRequested
void moveEventsRequested(
std::string const & target_key
)Emitted when user requests to move selected events to a target key.
signal copyEventsRequested
void copyEventsRequested(
std::string const & target_key
)Emitted when user requests to copy selected events to a target key.
signal deleteEventsRequested
void deleteEventsRequested()Emitted when user requests to delete selected events.
signal moveEventsToGroupRequested
void moveEventsToGroupRequested(
int group_id
)Emitted when user requests to move selected events to a group.
signal removeEventsFromGroupRequested
void removeEventsFromGroupRequested()Emitted when user requests to remove selected events from their groups.
Public Functions Documentation
function DigitalEventSeriesDataView
explicit DigitalEventSeriesDataView(
std::shared_ptr< DataManager > data_manager,
QWidget * parent =nullptr
)function ~DigitalEventSeriesDataView
~DigitalEventSeriesDataView() overridefunction setActiveKey
virtual void setActiveKey(
std::string const & key
) overrideSet the active data key to display.
Parameters:
- key The data key in DataManager
Reimplements: IDataView::setActiveKey
This method should:
- Remove callbacks from any previously active data
- Store the new key
- Set up callbacks on the new data (if needed)
- Update the view to show the new data
function removeCallbacks
virtual void removeCallbacks() overrideRemove all callbacks from the currently active data.
Reimplements: IDataView::removeCallbacks
Called when the view 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: IDataView::updateView
Called when the underlying data has changed. Should refresh all UI elements (tables, visualizations, etc.) to show current data.
function getDataType
inline virtual DM_DataType getDataType() const overrideGet the data type this view handles.
Return: The DM_DataType enum value
Reimplements: IDataView::getDataType
function getTypeName
inline virtual QString getTypeName() const overrideGet a human-readable name for this view type.
Return: Display name (e.g., “Point Table”, “Line Table”, “Mask Table”)
Reimplements: IDataView::getTypeName
function tableView
inline QTableView * tableView() constfunction getSelectedEntityIds
std::vector< EntityId > getSelectedEntityIds() constGet the selected EntityIds from the table.
Return: Vector of EntityIds for selected rows
function setGroupManager
void setGroupManager(
GroupManager * group_manager
)Set the GroupManager for group features.
Parameters:
- group_manager Pointer to GroupManager (can be nullptr)
function setGroupFilter
void setGroupFilter(
int group_id
)Apply a group filter to the table.
Parameters:
- group_id Group ID to filter by, or -1 to show all groups
function clearGroupFilter
void clearGroupFilter()Clear the group filter.
Updated on 2026-11-13 at 20:25:41 +0000