NEURON
ocnoiv1.cpp
Go to the documentation of this file.
1 #include <../../nrnconf.h>
2 
3 #if !HAVE_IV // to end of file
4 
5 // things we DO NOT want
6 
7 #include "hocdec.h"
8 
9 extern void hoc_ret();
10 extern void hoc_pushx(double);
11 extern "C" void nrn_shape_update();
12 extern Object** (*nrnpy_gui_helper_)(const char* name, Object* obj);
13 extern Object** (*nrnpy_gui_helper3_)(const char* name, Object* obj, int handle_strptr);
14 extern double (*nrnpy_object_to_double_)(Object*);
15 
16 void ivoc_help(const char*) {}
17 void ivoc_cleanup() {}
18 int hoc_readcheckpoint(char*) {
19  return 0;
20 }
21 
22 void hoc_notify_iv() {
24  hoc_ret();
25  hoc_pushx(0.);
26 }
27 void hoc_xpvalue() {
28  if (nrnpy_gui_helper_) {
29  nrnpy_gui_helper_("xpvalue", NULL);
30  }
31  hoc_ret();
32  hoc_pushx(0.);
33 }
34 void hoc_xlabel() {
35  if (nrnpy_gui_helper_) {
36  nrnpy_gui_helper_("xlabel", NULL);
37  }
38  hoc_ret();
39  hoc_pushx(0.);
40 }
41 void hoc_xbutton() {
42  if (nrnpy_gui_helper_) {
43  nrnpy_gui_helper_("xbutton", NULL);
44  }
45  hoc_ret();
46  hoc_pushx(0.);
47 }
48 void hoc_xcheckbox() {
49  if (nrnpy_gui_helper_) {
50  nrnpy_gui_helper_("xcheckbox", NULL);
51  }
52  hoc_ret();
53  hoc_pushx(0.);
54 }
56  if (nrnpy_gui_helper_) {
57  nrnpy_gui_helper_("xstatebutton", NULL);
58  }
59  hoc_ret();
60  hoc_pushx(0.);
61 }
62 void hoc_xmenu() {
63  if (nrnpy_gui_helper_) {
64  nrnpy_gui_helper_("xmenu", NULL);
65  }
66  hoc_ret();
67  hoc_pushx(0.);
68 }
69 void hoc_xvalue() {
70  if (nrnpy_gui_helper_) {
71  nrnpy_gui_helper_("xvalue", NULL);
72  }
73  hoc_ret();
74  hoc_pushx(0.);
75 }
76 void hoc_xpanel() {
77  if (nrnpy_gui_helper_) {
78  nrnpy_gui_helper_("xpanel", NULL);
79  }
80  hoc_ret();
81  hoc_pushx(0.);
82 }
84  if (nrnpy_gui_helper_) {
85  nrnpy_gui_helper_("xradiobutton", NULL);
86  }
87  hoc_ret();
88  hoc_pushx(0.);
89 }
91  if (nrnpy_gui_helper_) {
92  nrnpy_gui_helper_("xfixedvalue", NULL);
93  }
94  hoc_ret();
95  hoc_pushx(0.);
96 }
97 void hoc_xvarlabel() {
98  if (nrnpy_gui_helper3_) {
99  nrnpy_gui_helper3_("xvarlabel", NULL, 1);
100  }
101  hoc_ret();
102  hoc_pushx(0.);
103 }
104 void hoc_xslider() {
105  if (nrnpy_gui_helper_) {
106  nrnpy_gui_helper_("xslider", NULL);
107  }
108  hoc_ret();
109  hoc_pushx(0.);
110 }
112  if (nrnpy_gui_helper_) {
113  Object** const result = nrnpy_gui_helper_("boolean_dialog", NULL);
114  if (result) {
115  hoc_ret();
117  return;
118  }
119  }
120  hoc_ret();
121  hoc_pushx(0.);
122 }
124  if (nrnpy_gui_helper_) {
125  nrnpy_gui_helper_("continue_dialog", NULL);
126  }
127  hoc_ret();
128  hoc_pushx(0.);
129 }
131  // TODO: needs to work with strrefs so can actually change the string
132  if (nrnpy_gui_helper_) {
133  Object** const result = nrnpy_gui_helper_("string_dialog", NULL);
134  if (result) {
135  hoc_ret();
137  }
138  }
139  hoc_ret();
140  hoc_pushx(0.);
141 }
143  // not redirecting checkpoint because not a GUI function
144  /*if (nrnpy_gui_helper_) {
145  nrnpy_gui_helper_("checkpoint", NULL);
146  } */
147  hoc_ret();
148  hoc_pushx(0.);
149 }
151  if (nrnpy_gui_helper_) {
152  nrnpy_gui_helper_("pwman_place", NULL);
153  }
154  hoc_ret();
155  hoc_pushx(0.);
156 }
158  if (nrnpy_gui_helper_) {
159  nrnpy_gui_helper_("save_session", NULL);
160  }
161  hoc_ret();
162  hoc_pushx(0.);
163 }
165  if (nrnpy_gui_helper_) {
166  nrnpy_gui_helper_("print_session", NULL);
167  }
168  hoc_ret();
169  hoc_pushx(0.);
170 }
171 void ivoc_style() {
172  if (nrnpy_gui_helper_) {
173  nrnpy_gui_helper_("ivoc_style", NULL);
174  }
175  hoc_ret();
176  hoc_pushx(0.);
177 }
178 #endif
void ivoc_help(const char *)
Definition: ocnoiv1.cpp:16
void ivoc_cleanup()
Definition: ocnoiv1.cpp:17
char * name
Definition: init.cpp:16
void hoc_continue_dialog()
Definition: ocnoiv1.cpp:123
void hoc_notify_iv()
Definition: ocnoiv1.cpp:22
void hoc_xpanel()
Definition: ocnoiv1.cpp:76
void hoc_xvalue()
Definition: ocnoiv1.cpp:69
void hoc_xbutton()
Definition: ocnoiv1.cpp:41
void hoc_ret()
Definition: code.cpp:1482
void hoc_xfixedvalue()
Definition: ocnoiv1.cpp:90
void hoc_save_session()
Definition: ocnoiv1.cpp:157
Object **(* nrnpy_gui_helper_)(const char *name, Object *obj)
Definition: xmenu.cpp:13
void hoc_xlabel()
Definition: ocnoiv1.cpp:34
void hoc_xstatebutton()
Definition: ocnoiv1.cpp:55
double(* nrnpy_object_to_double_)(Object *)
Definition: xmenu.cpp:14
void hoc_xmenu()
Definition: ocnoiv1.cpp:62
int hoc_readcheckpoint(char *)
Definition: ocnoiv1.cpp:18
void ivoc_style()
Definition: ocnoiv1.cpp:171
void hoc_xpvalue()
Definition: ocnoiv1.cpp:27
void hoc_xvarlabel()
Definition: ocnoiv1.cpp:97
Object **(* nrnpy_gui_helper3_)(const char *name, Object *obj, int handle_strptr)
Definition: xmenu.cpp:15
void hoc_xslider()
Definition: ocnoiv1.cpp:104
void hoc_boolean_dialog()
Definition: ocnoiv1.cpp:111
void hoc_pushx(double)
void nrn_shape_update()
Definition: treeset.cpp:945
void hoc_print_session()
Definition: ocnoiv1.cpp:164
void hoc_checkpoint()
Definition: ocnoiv1.cpp:142
void hoc_xradiobutton()
Definition: ocnoiv1.cpp:83
void hoc_xcheckbox()
Definition: ocnoiv1.cpp:48
void hoc_pwman_place()
Definition: ocnoiv1.cpp:150
void hoc_string_dialog()
Definition: ocnoiv1.cpp:130
#define NULL
Definition: sptree.h:16
Definition: hocdec.h:227