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() constGet 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;