Skip to main content

MediaSelectToolController

MediaSelectToolController

Enables unified selection on the canvas and syncs hits to MediaWidgetState. More…

#include <MediaSelectToolController.hpp>

Inherits from QObject

Public Functions

Name
MediaSelectToolController(QObject * parent =[nullptr])
void setMediaWindow(Media_Window * window)
Set the canvas scene used for selection.
void setState(MediaWidgetState * state)
Set shared widget state for preference reads and key sync.
void setActive(bool active)
Enable or disable unified Select-tool behavior on the canvas.
bool isActive() const
Whether unified Select-tool behavior is active.

Detailed Description

class MediaSelectToolController;

Enables unified selection on the canvas and syncs hits to MediaWidgetState.

Active when the Media Viewer Select tool is selected in the left tool strip.

Public Functions Documentation

function MediaSelectToolController

explicit MediaSelectToolController(
    QObject * parent =nullptr
)

function setMediaWindow

void setMediaWindow(
    Media_Window * window
)

Set the canvas scene used for selection.

Parameters:

function setState

void setState(
    MediaWidgetState * state
)

Set shared widget state for preference reads and key sync.

Parameters:

function setActive

void setActive(
    bool active
)

Enable or disable unified Select-tool behavior on the canvas.

Parameters:

function isActive

inline bool isActive() const

Whether unified Select-tool behavior is active.

Return: True when the Select tool is active


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