LabelConfigPanel
LabelConfigPanel
#include <LabelConfigPanel.hpp>
Inherits from QWidget
Public Slots
| Name | |
|---|---|
| void | refreshAll() Refresh all combo boxes from current DataManager / group state. |
Public Signals
| Name | |
|---|---|
| void | labelSourceChanged(QString const & type) Emitted when the label source type changes. |
| void | validityChanged(bool valid) Emitted when selection validity changes. |
| void | eventKeyChanged(QString const & key) Emitted when the selected event series key changes. |
Public Functions
| Name | |
|---|---|
| LabelConfigPanel(std::shared_ptr< MLCoreWidgetState > state, std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) Construct the label configuration panel. |
|
| ~LabelConfigPanel() override | |
| bool | hasValidSelection() const Whether the current label configuration is valid for training. |
| std::string | labelSourceType() const Get the current label source type. |
| std::vector< uint64_t > | selectedGroupIds() const Get the currently selected group IDs (for group modes). |
| std::string | selectedEventKey() const Get the currently selected event series key. |
Public Slots Documentation
slot refreshAll
void refreshAll()Refresh all combo boxes from current DataManager / group state.
Called automatically on DataManager or EntityGroupManager changes and on refresh buttons. Preserves current selections if still available.
Public Signals Documentation
signal labelSourceChanged
void labelSourceChanged(
QString const & type
)Emitted when the label source type changes.
Parameters:
- type The new label source type (“intervals”, “groups”, “entity_groups”)
signal validityChanged
void validityChanged(
bool valid
)Emitted when selection validity changes.
Parameters:
- valid Whether the current label configuration is valid
signal eventKeyChanged
void eventKeyChanged(
QString const & key
)Emitted when the selected event series key changes.
Parameters:
- key The new DigitalEventSeries key
Public Functions Documentation
function LabelConfigPanel
explicit LabelConfigPanel(
std::shared_ptr< MLCoreWidgetState > state,
std::shared_ptr< DataManager > data_manager,
QWidget * parent =nullptr
)Construct the label configuration panel.
Parameters:
- state Shared MLCoreWidgetState for reading/writing label settings
- data_manager Shared DataManager for listing interval series, data keys, and accessing EntityGroupManager
- parent Optional parent widget
function ~LabelConfigPanel
~LabelConfigPanel() overridefunction hasValidSelection
bool hasValidSelection() constWhether the current label configuration is valid for training.
- Interval mode: valid if an interval series is selected
- Group modes: valid if at least 2 groups are selected
function labelSourceType
std::string labelSourceType() constGet the current label source type.
Return: “intervals”, “groups”, “entity_groups”, or “events”
function selectedGroupIds
std::vector< uint64_t > selectedGroupIds() constGet the currently selected group IDs (for group modes).
Return: Vector of GroupId values in class order (group[0] = class 0, etc.)
function selectedEventKey
std::string selectedEventKey() constGet the currently selected event series key.
Return: DataManager key for the DigitalEventSeries, or empty if not in events mode
Updated on 2026-11-13 at 20:25:40 +0000