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:
- window Non-owning Media_Window pointer
function setState
void setState(
MediaWidgetState * state
)Set shared widget state for preference reads and key sync.
Parameters:
- state Non-owning MediaWidgetState pointer
function setActive
void setActive(
bool active
)Enable or disable unified Select-tool behavior on the canvas.
Parameters:
- active True when MediaToolId::Select is active
function isActive
inline bool isActive() constWhether unified Select-tool behavior is active.
Return: True when the Select tool is active
Updated on 2026-11-13 at 20:25:40 +0000