File: X1elmtree.g

package info (click to toggle)
genesis 2.1-1.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 14,288 kB
  • ctags: 10,667
  • sloc: ansic: 111,959; makefile: 2,240; yacc: 1,797; lex: 976; csh: 54; sh: 13
file content (34 lines) | stat: -rw-r--r-- 654 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
function x1elmtreeSET(action, field, value)

    if (field == "linkmode")
	if (value == "stems")
	    setfield arrowmode none
	end
	if (value == "msgs")
	    setfield arrowmode msgs
	end
	if (value == "both")
	    setfield arrowmode msgs
	end

	return 0
    end

    return {x1highlightSET {action} {field} {value}}
end


create xtree tree

    addfield tree linkmode
    setfield tree linkmode stems arrowmode none treemode tree namemode none

    x1setuphighlight tree 0
    addaction tree SET x1elmtreeSET
    addaction tree CREATE x1pixCREATE

    // this gets remade when the x1elmtree is created

    delete tree/shape[0]

addobject x1elmtree tree