Types

Link copied to clipboard
data class ActionRejected(val action: GuiAction, val reason: String) : GuiEvent

A dispatched action was rejected outright (e.g. it didn't apply to the current state) with reason.

Link copied to clipboard

An exit request was vetoed/cancelled; the application keeps running.

Link copied to clipboard

The user asked to exit; a frontend may still veto this if documents are dirty.

Link copied to clipboard

The application finished starting up.

Link copied to clipboard
data class DocumentChanged(val documentId: DocumentId, val revision: Long) : GuiEvent

A document's in-memory text changed, now at revision.

Link copied to clipboard
data class DocumentCreated(val documentId: DocumentId) : GuiEvent

A new document was created (scratch or backed by a page).

Link copied to clipboard
data class DocumentSaveCancelled(val documentId: DocumentId) : GuiEvent

The user backed out of a save-destination picker; the document stays dirty.

Link copied to clipboard
data class DocumentSaved(val documentId: DocumentId, val revision: Long) : GuiEvent

A document was successfully persisted at revision.

Link copied to clipboard
data class DocumentSaveFailed(val documentId: DocumentId, val message: String) : GuiEvent

Persisting a document failed with message.

Link copied to clipboard
data class EffectRequested(val effect: GuiEffect) : GuiEvent

A GuiEffect was queued for the hosting platform to perform.

Link copied to clipboard
data class PageClosed(val pageId: PageId) : GuiEvent

A page was closed and removed from the workspace.

Link copied to clipboard
data class PageCreated(val pageId: PageId, val documentId: DocumentId?) : GuiEvent

A new page was created, optionally backed by documentId (null for a scratch page).

Link copied to clipboard
data class PageSelected(val pageId: PageId?) : GuiEvent

The workspace's selected page changed (null when no page is selected, e.g. the workspace is empty).

Link copied to clipboard
data class ResolutionAwaitingContinuation(val pageId: PageId, val resolutionId: ResolutionSessionId) : GuiEvent

A resolution paused after a solution, waiting for a "next"/"stop" action before it can continue.

Link copied to clipboard
data class ResolutionCancelled(val pageId: PageId, val resolutionId: ResolutionSessionId?) : GuiEvent

A resolution was cancelled before completing; resolutionId is null if it was cancelled before one was even assigned.

Link copied to clipboard
data class ResolutionCompleted(val pageId: PageId, val resolutionId: ResolutionSessionId) : GuiEvent

A resolution ran to exhaustion with no further solutions.

Link copied to clipboard
data class ResolutionFailed(val pageId: PageId, val resolutionId: ResolutionSessionId, val message: String) : GuiEvent

A resolution failed with an unrecoverable error.

Link copied to clipboard
data class ResolutionStarted(val pageId: PageId, val resolutionId: ResolutionSessionId, val query: String) : GuiEvent

A page started resolving query.

Link copied to clipboard
data class SolutionProduced(val pageId: PageId, val resolutionId: ResolutionSessionId, val solution: SolutionPresentation) : GuiEvent

A resolution yielded one more solution.

Link copied to clipboard
data class SolverSessionBuilding(val pageId: PageId, val profileId: SolverProfileId) : GuiEvent

A page started building a new solver session for profileId (e.g. after switching profiles).

Link copied to clipboard
data class SolverSessionInvalidated(val pageId: PageId) : GuiEvent

A page's solver session was invalidated (e.g. its source changed) and must be rebuilt before solving again.

Link copied to clipboard
data class SolverSessionReady(val pageId: PageId, val sessionId: SolverSessionId) : GuiEvent

A page's new solver session finished building and is ready to resolve queries.