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