Skip to main content

dl::widget::OutputSlotWidget

dl::widget::OutputSlotWidget

Widget for configuring a single model output slot. More…

#include <OutputSlotWidget.hpp>

Inherits from QWidget

Public Signals

Name
void bindingChanged()
Emitted whenever any parameter in the slot changes.

Public Functions

Name
OutputSlotWidget(dl::TensorSlotDescriptor const & slot, std::shared_ptr< DataManager > dm, QWidget * parent =[nullptr])
Construct a widget for one output slot.
~OutputSlotWidget() override
OutputSlotWidget(OutputSlotWidget const & ) =delete
OutputSlotWidget & operator=(OutputSlotWidget const & ) =delete
OutputSlotWidget(OutputSlotWidget && ) =delete
OutputSlotWidget & operator=(OutputSlotWidget && ) =delete
OutputBindingData binding() const
Return the current slot binding (includes slot_name).
void setBinding(OutputBindingData const & binding)
Set binding values and update the UI.
void refreshDataSources()
Refresh the target combo with current DataManager keys.
void updateDecoderAlternatives(std::vector< std::string > const & allowed_tags)
Restrict visible decoder alternatives (e.g. when post-encoder changes).
std::string const & slotName() const
Return the slot name this widget is bound to.

Detailed Description

class dl::widget::OutputSlotWidget;

Widget for configuring a single model output slot.

Note: Not thread-safe — must be used from the GUI thread only.

Wraps an AutoParamWidget driven by [dl::OutputBindingForm](/api_generated/Classes/structdl_1_1OutputBindingForm.md). The target (data_key) combo is populated dynamically from DataManager based on the decoder’s expected output type.

Public Signals Documentation

signal bindingChanged

void bindingChanged()

Emitted whenever any parameter in the slot changes.

Public Functions Documentation

function OutputSlotWidget

explicit OutputSlotWidget(
    dl::TensorSlotDescriptor const & slot,
    std::shared_ptr< DataManager > dm,
    QWidget * parent =nullptr
)

Construct a widget for one output slot.

Parameters:

  • slot Descriptor for the slot (name, shape, recommended decoder).
  • dm Shared DataManager for populating the target combo.
  • parent Optional parent widget.

Precondition: dm must not be null.

function ~OutputSlotWidget

~OutputSlotWidget() override

function OutputSlotWidget

OutputSlotWidget(
    OutputSlotWidget const & 
) =delete

function operator=

OutputSlotWidget & operator=(
    OutputSlotWidget const & 
) =delete

function OutputSlotWidget

OutputSlotWidget(
    OutputSlotWidget && 
) =delete

function operator=

OutputSlotWidget & operator=(
    OutputSlotWidget && 
) =delete

function binding

OutputBindingData binding() const

Return the current slot binding (includes slot_name).

function setBinding

void setBinding(
    OutputBindingData const & binding
)

Set binding values and update the UI.

function refreshDataSources

void refreshDataSources()

Refresh the target combo with current DataManager keys.

function updateDecoderAlternatives

void updateDecoderAlternatives(
    std::vector< std::string > const & allowed_tags
)

Restrict visible decoder alternatives (e.g. when post-encoder changes).

function slotName

std::string const & slotName() const

Return the slot name this widget is bound to.


Updated on 2026-11-13 at 20:25:42 +0000