Home Reference Source
import SavedState from './ui/components/savedstate.js'
public class | source

SavedState

Extends:

Events → SavedState

saved state of patch and subpatches, set orange icon if unsaved

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public get

isSaved: boolean

Private Members
private
private

_paused: boolean

private
private
private
private

Method Summary

Public Methods
public
public

getStateBlueprint(bp: *): *

public
public

isSavedSubOp(subOpName: *): boolean

public

isSavedSubPatch(subPatchId: *): *

public

log(initiator: *, section: *, savedState: *)

public

pause()

public

resume()

public

setSaved(initiator: *, subpatch: *)

public

setSavedAll(initiator: *)

public

setUnSaved(initiator: *, subpatch: *)

public
public
public

Inherited Summary

From class Events
public

off: *

public

on: *

private
private
private

_log: *

private

_logEvents: boolean

private

_logName: string

public

addEventListener(which: *, cb: *, idPrefix: string): string

add event listener

public

emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *)

emit event

public

hasEventListener(id: *, cb: *): boolean

check event listener registration

public

hasListenerForEventName(eventName: *): boolean

check event listener by name

public

logEvents(enabled: boolean, logName: string)

enable/disable logging of events for the class

public

removeEventListener(id: *, cb: *)

rempve event listener registration

Public Constructors

public constructor() source

Override:

Events#constructor

Public Members

public get isSaved: boolean source

Private Members

private _addedGuiListener: boolean source

private _paused: boolean source

private _statesInitiator: {} source

private _statesSaved: {} source

private _talkerState: * source

private _timeout: * source

Public Methods

public getBlueprint(): * source

Return:

*

public getStateBlueprint(bp: *): * source

Params:

NameTypeAttributeDescription
bp *

Return:

*

public getUnsavedPatchSubPatchOps(): * source

Return:

*

public isSavedSubOp(subOpName: *): boolean source

Params:

NameTypeAttributeDescription
subOpName *

Return:

boolean

public isSavedSubPatch(subPatchId: *): * source

Params:

NameTypeAttributeDescription
subPatchId *

Return:

*

public log(initiator: *, section: *, savedState: *) source

Params:

NameTypeAttributeDescription
initiator *
section *
savedState *

public pause() source

public resume() source

public setSaved(initiator: *, subpatch: *) source

Params:

NameTypeAttributeDescription
initiator *
subpatch *

public setSavedAll(initiator: *) source

Params:

NameTypeAttributeDescription
initiator *

public setUnSaved(initiator: *, subpatch: *) source

Params:

NameTypeAttributeDescription
initiator *
subpatch *

public updateRestrictionDisplay() source

public updateUi() source

public updateUiLater() source