Editor:
Filter:
Classes (extension) | Libraries > crucial > Editors

Editor : Object
ExtensionExtension

holds a value that can be edited with a GUI, saves as the value

Description

This is the parent class for all Editors and also has a repository of handlers that are used to find the appropriate editor for a given object.

In some cases not only is an Editor found for the object, but objects within the object are converted to Editors. For instance when editing a Patch it is actually the patch's inputs that are converted to Editors (NumberEditor, EnvEditor etc).

Note that an Editor has a separate GUI class, and does not in fact have to have an open GUI in order to use or interact with it.

Class Methods

Editor.for(object ... args)

Find the appropriate Editor for the given object

Arguments:

object
... args

additional arguments are supplied to the purveyor function

Editor.editorFor

private. this is the handler dictionary

Inherited class methods

Instance Methods

.action

.action = value

Like a view, an editor has an action function which will fire when the value is set. Note that an Editor does not have to have an open GUI.

.value

.value = value

Get the current value of the edited object

.patchOut

.storeOn(stream)

Editors always store the value. In other words, when saving they do not store an Editor, they store the edited object.

Arguments:

stream

.next

Returns:

current edited value

.poll

.dereference

Returns:

current edited value

.embedInStream(inval)

Arguments:

inval

.asStream

an Editor can be used as a stream. it would return the current edited value on each iteration

Returns:

FuncStream(this)

.setPatchOut(po)

Arguments:

po

.makePatchOut

.stopToBundle(b)

Arguments:

b

.freePatchOutToBundle(bundle)

Arguments:

bundle

.synthArg

.instrArgFromControl(control)

Arguments:

control

.editWithCallback(callback)

Arguments:

callback

.set(val)

Arguments:

val

.activeValue = val

Arguments:

val

.valueAction = val

Arguments:

val

.spec

.copy

.guiClass

.addToDefName(stream)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/crucial-library/Instr/instrSupport.sc

Arguments:

stream

.state: METHOD NOT FOUND!

Arguments:

val

Inherited instance methods