Debian Codegraph @

reports/menu.ll

raw
1 /*
2 * @progname menu.ll
3 * @version 1.0
4 * @author ?
5 * @category
6 * @output GUI
7 * @description
8
9 Menu driven shell for LifeLines report programs
10
11 menu.ll - Menu driven shell for LifeLines report programs
12
13 To use this shell, rename "proc main()" in a report to "proc <call_name>()",
14 then add the file/description/call names in three places here.
15
16 The menu loops until the first item is selected so pressing "q"
17 from LifeLines user interface does not result in quitting.
18
19 */
20
21 include("eol.li")
22 include("longline.li")
23 include("stat9.li")
24
25 /* more file inclusions go here */
26
27 proc main() {
28 list(mnu)
29 enqueue(mnu, " >> EXIT to LifeLines MAIN MENU << ")
30 enqueue(mnu, "eol2.ll - End of Line Ancestors - Tom Wetmore, John Chandler")
31 enqueue(mnu, "longline.ll - Longest Lines - John Chandler")
32 enqueue(mnu, "stat9.ll - Statistics - Jim Eggert")
33
34 /* more report descriptions go here */
35
36 set(xitem, 0)
37 while (ne(1, xitem)) {
38 set(xitem, menuchoose(mnu, "Choose the program to run"))
39
40 if (eq(xitem, 2)) { call eol() }
41 elsif (eq(xitem, 3)) { call longline() }
42 elsif (eq(xitem, 4)) { call stat9() }
43
44 /* more procedure calls go here */
45
46 }
47 }