![]() |
Setuav Studio Developer Documentation 1.0
SDK and plugin development reference for Setuav Studio
|
Action displayed in the main application toolbar. More...
Public Member Functions | |
| bool | is_in_workspace (self, str|None current_workspace_id) |
| Return whether this item belongs to the selected workspace. | |
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.
| id | Globally unique, stable toolbar item identifier. |
| title | User-visible item label. |
| icon | Optional icon name, file path, or QIcon. |
| callback | Function invoked directly by the item. |
| command | Existing application command identifier to invoke. |
| menu_items | Commands displayed in a popup menu. |
| enabled_when | Optional predicate evaluated during UI refresh. |
| group | Toolbar group name. |
| order | Sort priority within the group. |
| workspace_id | One workspace, multiple workspaces, or all workspaces. |
| ValueError | If conflicting or missing action forms are supplied. |