/
GUI.hoc
61 lines (50 loc) · 1.05 KB
/
GUI.hoc
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// GUI.hoc - Graphical user interface initialization
//
// Thalamocortical convergence studies
// Sébastien Béhuret, UNIC/CNRS Paris, 2013
//
objref GUIBox, GUIDeck
proc CleanAndExit() {
StopRecording()
DestroyGeometry()
quit()
}
proc BuildGUI() {
nrnmainmenu()
nrncontrolmenu()
GUIBox = new HBox()
GUIBox.intercept(1)
xpanel("main menu")
xlabel("========================")
xlabel("TC CONVERGENCE INTERFACE")
xlabel("========================")
xlabel("")
xbutton("geometry", "GUIDeck.flip_to(0)")
xbutton("inputs", "GUIDeck.flip_to(1)")
xbutton("noise", "GUIDeck.flip_to(2)")
xbutton("recording", "GUIDeck.flip_to(3)")
xlabel("==============================")
xbutton("exit", "CleanAndExit()")
xlabel("")
xpanel()
GUIDeck = new Deck()
GUIDeck.intercept(1)
xpanel("geometry")
GeometryGUI()
xpanel()
xpanel("inputs")
InputsGUI()
xpanel()
xpanel("noise")
NoiseGUI()
xpanel()
xpanel("recording")
RecordingGUI()
xpanel()
GUIDeck.intercept(0)
GUIDeck.map("gui deck")
GUIDeck.flip_to(0)
GUIBox.intercept(0)
GUIBox.map("gui box")
}