Documentation ¶
Overview ¶
wave core application coordinator
Index ¶
- func ChangeTabPinning(ctx context.Context, workspaceId string, tabId string, pinned bool) error
- func CheckAndFixWindow(ctx context.Context, windowId string) *waveobj.Window
- func CloseWindow(ctx context.Context, windowId string, fromElectron bool) error
- func CreateBlock(ctx context.Context, tabId string, blockDef *waveobj.BlockDef, ...) (rtnBlock *waveobj.Block, rtnErr error)
- func CreateClient(ctx context.Context) (*waveobj.Client, error)
- func CreateSubBlock(ctx context.Context, blockId string, blockDef *waveobj.BlockDef) (*waveobj.Block, error)
- func CreateTab(ctx context.Context, workspaceId string, tabName string, activateTab bool, ...) (string, error)
- func CreateWindow(ctx context.Context, winSize *waveobj.WinSize, workspaceId string) (*waveobj.Window, error)
- func CreateWorkspace(ctx context.Context, name string, icon string, color string) (*waveobj.Workspace, error)
- func DeleteBlock(ctx context.Context, blockId string, recursive bool) error
- func DeleteTab(ctx context.Context, workspaceId string, tabId string, recursive bool) (string, error)
- func DeleteWorkspace(ctx context.Context, workspaceId string, force bool) (bool, error)
- func EnsureInitialData() error
- func FocusWindow(ctx context.Context, windowId string) error
- func GetClientData(ctx context.Context) (*waveobj.Client, error)
- func GetWindow(ctx context.Context, windowId string) (*waveobj.Window, error)
- func GetWorkspace(ctx context.Context, wsID string) (*waveobj.Workspace, error)
- func ListWorkspaces(ctx context.Context) (waveobj.WorkspaceList, error)
- func SendActiveTabUpdate(ctx context.Context, workspaceId string, newActiveTabId string)
- func SetActiveTab(ctx context.Context, workspaceId string, tabId string) error
- func SetColor(workspaceId string, color string) error
- func SetIcon(workspaceId string, icon string) error
- func SetName(workspaceId string, name string) error
- func SwitchWorkspace(ctx context.Context, windowId string, workspaceId string) (*waveobj.Workspace, error)
- func UpdateWorkspaceTabIds(ctx context.Context, workspaceId string, tabIds []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeTabPinning ¶ added in v0.10.0
func CheckAndFixWindow ¶ added in v0.10.0
func CloseWindow ¶ added in v0.10.0
CloseWindow closes a window and deletes its workspace if it is empty and not named. If fromElectron is true, it does not send an event to Electron.
func CreateBlock ¶
func CreateSubBlock ¶ added in v0.9.0
func CreateTab ¶
func CreateTab(ctx context.Context, workspaceId string, tabName string, activateTab bool, pinned bool) (string, error)
returns tabid
func CreateWindow ¶
func CreateWorkspace ¶ added in v0.10.0
func DeleteBlock ¶
Must delete all blocks individually first. Also deletes LayoutState. recursive: if true, will recursively close parent tab, window, workspace, if they are empty. Returns new active tab id, error.
func DeleteTab ¶
func DeleteTab(ctx context.Context, workspaceId string, tabId string, recursive bool) (string, error)
Must delete all blocks individually first. Also deletes LayoutState. recursive: if true, will recursively close parent window, workspace, if they are empty. Returns new active tab id, error.
func DeleteWorkspace ¶ added in v0.10.0
If force is true, it will delete even if workspace is named. If workspace is empty, it will be deleted, even if it is named. Returns true if workspace was deleted, false if it was not deleted.
func EnsureInitialData ¶
func EnsureInitialData() error
Ensures that the initial data is present in the store, creates an initial window if needed
func GetClientData ¶ added in v0.10.0
func GetWorkspace ¶ added in v0.10.0
func ListWorkspaces ¶ added in v0.10.0
func ListWorkspaces(ctx context.Context) (waveobj.WorkspaceList, error)
func SendActiveTabUpdate ¶ added in v0.10.0
func SetActiveTab ¶ added in v0.10.0
func SwitchWorkspace ¶ added in v0.10.0
Types ¶
This section is empty.