automationpanel

package
v1.9.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package automationpanel implements the native automatic-task manager and editor. It uses the existing compact palette and system UI fonts; business state is returned to the app through one save callback.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capture

func Capture(state State, text TextFunc, scale float64, dark, editor bool, capture func(windows.Handle) error) error

Capture hosts the real manager or editor for deterministic devtools visual checks without starting the tray or reading user configuration.

func Focus

func Focus() bool

Focus brings the deepest automatic-task dialog to the foreground. It lets a tray click preserve modal ownership instead of closing the disabled parent.

func Hide

func Hide()

func Show

func Show(state State, onSave OnSave, text TextFunc) error

func Update

func Update(state State)

Update publishes the latest authoritative rule state to an open manager. The caller must run on the tray UI thread. Unsaved editor input is preserved and marked stale instead of being overwritten.

Types

type OnSave

type OnSave func(SaveRequest) SaveResult

type SaveRequest

type SaveRequest struct {
	BaseRevision string
	Rules        []automation.Rule
}

type SaveResult

type SaveResult struct {
	State State
	Error string
}

type State

type State struct {
	Rules    []automation.Rule
	Issues   []automation.RuleIssue
	Revision string
	Chinese  bool
	Owner    windows.Handle
	NextText string
}

type TextFunc

type TextFunc func(string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL