Skip to main content

Media_Widget

Media_Widget

#include <Media_Widget.hpp>

Inherits from QWidget

Public Functions

Name
Media_Widget(EditorRegistry * editor_registry, QWidget * parent =[nullptr])
~Media_Widget() override
void setDataManager(std::shared_ptr< DataManager > data_manager)
Media_Window * getMediaWindow() const
Get the Media_Window owned by this widget.
std::shared_ptr< MediaWidgetState > getState() const
Get the state object for this widget.
void updateMedia()
void setFeatureColor(std::string const & feature, std::string const & hex_color)
void LoadFrame(TimePosition const & position)
void zoomIn()
void zoomOut()
void resetZoom()
void restoreFromState()
Restore widget state from the state object.
void setFeatureEnabled(QString const & feature, bool enabled)
Enable or disable a feature in the display.

Protected Functions

Name
void resizeEvent(QResizeEvent * event) override
bool eventFilter(QObject * watched, QEvent * event) override

Public Functions Documentation

function Media_Widget

explicit Media_Widget(
    EditorRegistry * editor_registry,
    QWidget * parent =nullptr
)

function ~Media_Widget

~Media_Widget() override

function setDataManager

void setDataManager(
    std::shared_ptr< DataManager > data_manager
)

function getMediaWindow

inline Media_Window * getMediaWindow() const

Get the Media_Window owned by this widget.

Return: Pointer to the Media_Window

function getState

inline std::shared_ptr< MediaWidgetState > getState() const

Get the state object for this widget.

Return: Shared pointer to MediaWidgetState

function updateMedia

void updateMedia()

function setFeatureColor

void setFeatureColor(
    std::string const & feature,
    std::string const & hex_color
)

function LoadFrame

void LoadFrame(
    TimePosition const & position
)

function zoomIn

void zoomIn()

function zoomOut

void zoomOut()

function resetZoom

void resetZoom()

function restoreFromState

void restoreFromState()

Restore widget state from the state object.

Call this after loading a workspace to apply serialized state (zoom, pan, display options, etc.) to the widget.

function setFeatureEnabled

void setFeatureEnabled(
    QString const & feature,
    bool enabled
)

Enable or disable a feature in the display.

Parameters:

  • feature Feature key (data manager key)
  • enabled Whether to show or hide the feature

This method is called by MediaPropertiesWidget when features are toggled in the feature table.

Protected Functions Documentation

function resizeEvent

void resizeEvent(
    QResizeEvent * event
) override

function eventFilter

bool eventFilter(
    QObject * watched,
    QEvent * event
) override

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