Documentation
¶
Index ¶
Constants ¶
View Source
const ( TreeFocused = "TreeFocused" LogFocused = "LogFocused" TimelineTxsFocused = "TimelineTxsFocused" TimelineStepsFocused = "TimelineStepsFocused" MatrixFocused = "MatrixFocused" DialogFocused = "DialogFocused" ClientMsg = "ClientMsg" StateNameSelected = "StateNameSelected" Start = "Start" Playing = "Playing" Paused = "Paused" // TailMode always shows the latest transition TailMode = "TailMode" // UserFwd is a user generated event UserFwd = "UserFwd" // Fwd moves to the next transition Fwd = "Fwd" // UserBack is a user generated event UserBack = "UserBack" // Back moves to the previous transition Back = "Back" // UserFwdStep is a user generated event UserFwdStep = "UserFwdStep" // UserBackStep is a user generated event UserBackStep = "UserBackStep" // FwdStep moves to the next transition's steps FwdStep = "FwdStep" // BackStep moves to the previous transition's steps BackStep = "BackStep" ConnectEvent = "ConnectEvent" DisconnectEvent = "DisconnectEvent" SidebarFocused = "SidebarFocused" RemoveClient = "RemoveClient" ClientSelected = "ClientSelected" SelectingClient = "SelectingClient" HelpDialog = "HelpDialog" ExportDialog = "ExportDialog" MatrixView = "MatrixView" TreeLogView = "TreeLogView" TreeMatrixView = "TreeMatrixView" LogUserScrolled = "LogUserScrolled" ScrollToTx = "ScrollToTx" Ready = "Ready" )
Variables ¶
View Source
var ( GroupFocused = S{ TreeFocused, LogFocused, TimelineTxsFocused, TimelineStepsFocused, SidebarFocused, MatrixFocused, DialogFocused, } GroupPlaying = S{ Playing, Paused, TailMode, } GroupDialog = S{ HelpDialog, ExportDialog, } GroupViews = S{ MatrixView, TreeLogView, TreeMatrixView, } )
View Source
var Names = S{ ClientMsg, ConnectEvent, DisconnectEvent, UserFwd, UserBack, UserFwdStep, UserBackStep, TreeFocused, LogFocused, SidebarFocused, TimelineTxsFocused, TimelineStepsFocused, MatrixFocused, DialogFocused, StateNameSelected, HelpDialog, ExportDialog, LogUserScrolled, Ready, Start, TreeLogView, MatrixView, TreeMatrixView, TailMode, Playing, Paused, Fwd, Back, FwdStep, BackStep, ScrollToTx, ClientSelected, SelectingClient, RemoveClient, am.Exception, }
Names is an ordered list of all the state names.
View Source
var States = am.Struct{ ClientMsg: {Multi: true}, ConnectEvent: {Multi: true}, DisconnectEvent: {Multi: true}, UserFwd: { Add: S{Fwd}, Remove: GroupPlaying, }, UserBack: { Add: S{Back}, Remove: GroupPlaying, }, UserFwdStep: { Add: S{FwdStep}, Require: S{ClientSelected}, Remove: am.SMerge(GroupPlaying, S{LogUserScrolled}), }, UserBackStep: { Add: S{BackStep}, Require: S{ClientSelected}, Remove: am.SMerge(GroupPlaying, S{LogUserScrolled}), }, TreeFocused: {Remove: GroupFocused}, LogFocused: {Remove: GroupFocused}, SidebarFocused: {Remove: GroupFocused}, TimelineTxsFocused: {Remove: GroupFocused}, TimelineStepsFocused: {Remove: GroupFocused}, MatrixFocused: {Remove: GroupFocused}, DialogFocused: {Remove: GroupFocused}, StateNameSelected: {Require: S{ClientSelected}}, HelpDialog: {Remove: GroupDialog}, ExportDialog: { Require: S{ClientSelected}, Remove: GroupDialog, }, LogUserScrolled: {}, Ready: {Require: S{Start}}, Start: {}, TreeLogView: { Auto: true, Remove: GroupViews, }, MatrixView: {Remove: GroupViews}, TreeMatrixView: {Remove: GroupViews}, TailMode: { Require: S{ClientSelected}, Remove: GroupPlaying, }, Playing: { Require: S{ClientSelected}, Remove: am.SMerge(GroupPlaying, S{LogUserScrolled}), }, Paused: { Auto: true, Require: S{ClientSelected}, Remove: GroupPlaying, }, Fwd: { Require: S{ClientSelected}, Remove: S{Playing}, }, Back: { Require: S{ClientSelected}, Remove: S{Playing}, }, FwdStep: { Require: S{ClientSelected}, Remove: S{Playing}, }, BackStep: { Require: S{ClientSelected}, Remove: S{Playing}, }, ScrollToTx: {Require: S{ClientSelected}}, SelectingClient: {Remove: S{ClientSelected}}, ClientSelected: { Remove: S{SelectingClient, LogUserScrolled}, }, RemoveClient: {Require: S{ClientSelected}}, }
States map defines relations and properties of states.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.