SectionBrowser

classes
   accept_action  select         select_action  

SYNTAX

sb = new SectionBrowser()
sb = new SectionBrowser(SectionList)

DESCRIPTION

Class that makes a visible list of all section names. If the optional SectionList arg is present then only those section names are shown in the browser.

SEE ALSO

SectionList , Shape


select

SectionBrowser

SYNTAX

.select()

DESCRIPTION

currently accessed section is highlighted.


select_action

SectionBrowser

SYNTAX

sb.select_action("command")

DESCRIPTION

Command is executed when an item is selected (single click or dragging) by the mouse. Before execution, the selected section is pushed. (and popped after the command completes.) Command is executed in the object context in which select_action registered it.

EXAMPLES

begintemplate Cell
public soma, dend, axon
create soma, dend[3], axon
endtemplate Cell 
 
objref sb, cell[3]
for i=0,2 cell[i] = new Cell()
sb = new SectionBrowser()
sb.select_action("act()")
 
proc act() {
        printf("currently accessed section is %s\n", secname())
}


accept_action

SectionBrowser

SYNTAX

sb.accept_action("command")

DESCRIPTION

Command is executed when an item is accepted (double click) by the mouse. Before execution, the selected section is pushed. (and popped after the command completes.) Command is executed in the objet context in which the accept_action registered it.

EXAMPLES

create soma, dend[3], axon
objref sb
sb = new SectionBrowser()
sb.accept_action("act()")

proc act() {
	printf("currently accessed section is %s\n", secname())
}


neuron/neuron/classes/secbrows.hel : May 13 2012