RegionSelectionPanel
RegionSelectionPanel
#include <RegionSelectionPanel.hpp>
Inherits from QWidget
Public Slots
| Name | |
|---|---|
| void | refreshRegionList() Refresh the list of available DigitalIntervalSeries keys. |
Public Signals
| Name | |
|---|---|
| void | regionSelectionChanged(QString const & key) Emitted when the selected region changes. |
| void | validityChanged(bool valid) Emitted when selection validity changes. |
| void | allFramesToggled(bool all_frames) Emitted when the “All frames” checkbox state changes. |
Public Functions
| Name | |
|---|---|
| RegionSelectionPanel(std::shared_ptr< MLCoreWidgetState > state, std::shared_ptr< DataManager > data_manager, RegionMode mode, QWidget * parent =[nullptr]) Construct the region selection panel. |
|
| ~RegionSelectionPanel() override | |
| bool | hasValidSelection() const Whether a valid region is currently configured. |
| std::string | selectedRegionKey() const Get the currently selected region key. |
| bool | isAllFramesChecked() const Whether the “All frames” checkbox is checked. |
Public Slots Documentation
slot refreshRegionList
void refreshRegionList()Refresh the list of available DigitalIntervalSeries keys.
Called automatically on DataManager changes and on the refresh button. Preserves the current selection if still available.
Public Signals Documentation
signal regionSelectionChanged
void regionSelectionChanged(
QString const & key
)Emitted when the selected region changes.
Parameters:
- key The new region key (empty if “All frames” or cleared)
signal validityChanged
void validityChanged(
bool valid
)Emitted when selection validity changes.
Parameters:
- valid Whether the current configuration is valid for ML workflows
signal allFramesToggled
void allFramesToggled(
bool all_frames
)Emitted when the “All frames” checkbox state changes.
Parameters:
- all_frames Whether “All frames” is now checked
Public Functions Documentation
function RegionSelectionPanel
explicit RegionSelectionPanel(
std::shared_ptr< MLCoreWidgetState > state,
std::shared_ptr< DataManager > data_manager,
RegionMode mode,
QWidget * parent =nullptr
)Construct the region selection panel.
Parameters:
- state Shared MLCoreWidgetState for reading/writing the region key
- data_manager Shared DataManager for listing DigitalIntervalSeries keys
- mode Whether this panel manages the training or prediction region
- parent Optional parent widget
function ~RegionSelectionPanel
~RegionSelectionPanel() overridefunction hasValidSelection
bool hasValidSelection() constWhether a valid region is currently configured.
Returns true if “All frames” is checked, or if the combo box has a non-empty selection that resolves to a non-null DigitalIntervalSeries with at least one interval.
function selectedRegionKey
std::string selectedRegionKey() constGet the currently selected region key.
Return: The DataManager key of the selected DigitalIntervalSeries, or empty string if “All frames” is checked or nothing is selected
function isAllFramesChecked
bool isAllFramesChecked() constWhether the “All frames” checkbox is checked.
Updated on 2026-11-13 at 20:25:40 +0000