Setuav Studio Developer Documentation 1.0
SDK and plugin development reference for Setuav Studio
Loading...
Searching...
No Matches
setuav_studio_sdk.contributions.ToolbarContribution Class Reference

Action displayed in the main application toolbar. More...

Collaboration diagram for setuav_studio_sdk.contributions.ToolbarContribution:

Public Member Functions

bool is_in_workspace (self, str|None current_workspace_id)
 Return whether this item belongs to the selected workspace.
 

Detailed Description

Action displayed in the main application toolbar.

Supply exactly one action form: callback, command, or one or more menu_items. Workspace scope and ordering are optional.

Parameters
idGlobally unique, stable toolbar item identifier.
titleUser-visible item label.
iconOptional icon name, file path, or QIcon.
callbackFunction invoked directly by the item.
commandExisting application command identifier to invoke.
menu_itemsCommands displayed in a popup menu.
enabled_whenOptional predicate evaluated during UI refresh.
groupToolbar group name.
orderSort priority within the group.
workspace_idOne workspace, multiple workspaces, or all workspaces.
Exceptions
ValueErrorIf conflicting or missing action forms are supplied.