Skip to main content

MediaToolStrip_Widget

MediaToolStrip_Widget

Inkscape-style vertical tool palette along the left edge of the Media Viewer. More…

#include <MediaToolStrip_Widget.hpp>

Inherits from QWidget

Public Signals

Name
void activeToolChanged(MediaToolId tool)
Emitted when the user selects a different tool.

Public Functions

Name
MediaToolStrip_Widget(QWidget * parent =[nullptr])
MediaToolId activeTool() const
Get the currently selected tool.
void setActiveTool(MediaToolId tool)
Select a tool and update button checked state.

Public Attributes

Name
int kStripWidth
int kButtonSize

Detailed Description

class MediaToolStrip_Widget;

Inkscape-style vertical tool palette along the left edge of the Media Viewer.

At most one tool button may be selected at a time. Clicking the active tool again deactivates it (no tool selected). Tool identity is exposed via activeToolChanged.

Public Signals Documentation

signal activeToolChanged

void activeToolChanged(
    MediaToolId tool
)

Emitted when the user selects a different tool.

Parameters:

  • tool Newly active tool

Public Functions Documentation

function MediaToolStrip_Widget

explicit MediaToolStrip_Widget(
    QWidget * parent =nullptr
)

function activeTool

inline MediaToolId activeTool() const

Get the currently selected tool.

Return: Active tool identifier

function setActiveTool

void setActiveTool(
    MediaToolId tool
)

Select a tool and update button checked state.

Parameters:

  • tool Tool to activate

Precondition: tool must correspond to a registered toolbar button

Public Attributes Documentation

variable kStripWidth

static int kStripWidth = 36;

variable kButtonSize

static int kButtonSize = 32;

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