NdefGui:
Filter:
Classes | JITLib > GUI | Live Coding

NdefGui

a gui for a NodeProxy or Ndef
Location: NOT INSTALLED!

Description

NdefGui provides controls for handling and editing a NodeProxy or Ndef, and its monitors. NdefGui replaces NodeProxyEditor. It provides:

Both NodeProxy and Ndef implement a .gui message, which returns a NdefGui for that NodeProxy. Overview: JITLib.

Class Methods

Creation

.new

Arguments:

object

the nodeproxy to be shown and edited, or nil.

numItems

How many sliders or textviews for parameters to provide. Default value is 0.

parent

a parent view where NdefGui is to be shown. If nil, a window is made.

bounds

bounds where the view (or window) will be shown.

makeSkip

a flag whether to create and start a SkipJack for auto-updating.

options

an array of symbols for options of what to display. See list below.

Preset options lists which can be used in *new:

.big

two lines of controls for a big NdefGui, usually in its own window

.full

two lines of controls for a very big NdefGui

.audio

for ar proxies, used in ProxyMixer left hand side

.audioSm

for ar proxies, used in ProxyMixer.small on left hand side

.control

for kr proxies, used in ProxyMixer mid section

Class Variables

.buttonSizes

a dict for the sizes of the different gui elements.

.buttonFuncs

a lookup dict for making the different buttons.

.makeButFuncs

not a class var, but the method that inits buttonFuncs.

Inherited class methods

Instance Methods

Variables

See JITGui for more instance methods.

Various views the NdefGui has if they were present in the options:

.nameView

.typeView

.monitorGui

.paramGui

.fadeBox

.pauseBut

.sendBut

.edBut

.wakeBut

Basic Methods

.edits

the paramGui's widgets (usually, EZSliders)

.editKeys

the currently used param names

.highlight

.unhighlight

highlight and unhighlight a single slider by index

.highlightName

.unhighlightName

highlight and unhighlight the nameView

.highlightParams

highlight a contiguous group of sliders; used for showing assigned MIDI faderboxes etc.

.addReplaceKey

.removeReplaceKey

editKeys with technical names can be replaced with more user-friendly ones.

.proxy

an alias to method object, object_

Standard JITGui Methods

.setDefaults

.accepts

.getState

.checkUpdate

GUI Element Creation

.makeViews

creates all the views given in the options list. Internally this calls the following methods:

.makeNameView

.makeTypeView

.makeClrBut

.makeWakeBut

.makeResetBut

.makeScopeBut

.makeDocBut

.makeEndBut

.makeFadeBox

.makePauseBut

.makeSendBut

.makeEdBut

.makeRipBut

.makePollBut

.makeMonitor

Inherited instance methods

Examples

Some configuration options

Some configuration options

Test - drag and drop proxies between NdefGuis

This seems broken in 3.7.0 - drags are sticky and can't be dropped.

Test - replacing keys

This is used in ProxyChain (JITLibExtensions).