Skip to main content

MediaPropertiesWidget

MediaPropertiesWidget

Properties panel for Media Widget. More…

#include <MediaPropertiesWidget.hpp>

Inherits from QWidget

Public Signals

Name
void featureEnabledChanged(QString const & feature, bool enabled)
Emitted when a feature is enabled or disabled.
void featureSelected(QString const & feature)
Emitted when a feature is selected in the table.

Public Functions

Name
MediaPropertiesWidget(std::shared_ptr< MediaWidgetState > state, std::shared_ptr< DataManager > data_manager, Media_Window * media_window =[nullptr], QWidget * parent =[nullptr])
Construct a MediaPropertiesWidget.
~MediaPropertiesWidget() override
void setMediaWindow(Media_Window * media_window)
Set the Media_Window reference for drawing coordination.
Media_Window * getMediaWindow() const
Get the current Media_Window reference.

Detailed Description

class MediaPropertiesWidget;

Properties panel for Media Widget.

Displays feature table, text overlays, and data-type specific controls. Shares state with Media_Widget (view) via MediaWidgetState.

Public Signals Documentation

signal featureEnabledChanged

void featureEnabledChanged(
    QString const & feature,
    bool enabled
)

Emitted when a feature is enabled or disabled.

Media_Widget listens to this to update the canvas display.

signal featureSelected

void featureSelected(
    QString const & feature
)

Emitted when a feature is selected in the table.

Media_Widget may use this to synchronize selection.

Public Functions Documentation

function MediaPropertiesWidget

explicit MediaPropertiesWidget(
    std::shared_ptr< MediaWidgetState > state,
    std::shared_ptr< DataManager > data_manager,
    Media_Window * media_window =nullptr,
    QWidget * parent =nullptr
)

Construct a MediaPropertiesWidget.

Parameters:

  • state Shared state with the view widget
  • data_manager DataManager for feature queries
  • media_window Media_Window for drawing coordination (may be nullptr initially)
  • parent Parent widget

function ~MediaPropertiesWidget

~MediaPropertiesWidget() override

function setMediaWindow

void setMediaWindow(
    Media_Window * media_window
)

Set the Media_Window reference for drawing coordination.

Parameters:

Called after construction when the view creates its Media_Window. This allows the properties panel to coordinate with the canvas.

function getMediaWindow

inline Media_Window * getMediaWindow() const

Get the current Media_Window reference.

Return: Pointer to Media_Window or nullptr if not set


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