aboutsummaryrefslogtreecommitdiff
path: root/exciter/exciter.tk2c
diff options
context:
space:
mode:
Diffstat (limited to 'exciter/exciter.tk2c')
-rwxr-xr-xexciter/exciter.tk2c94
1 files changed, 0 insertions, 94 deletions
diff --git a/exciter/exciter.tk2c b/exciter/exciter.tk2c
deleted file mode 100755
index e201737..0000000
--- a/exciter/exciter.tk2c
+++ /dev/null
@@ -1,94 +0,0 @@
-// ########### exciter procedures -- ydegoyon@free.fr #########
-sys_gui("proc exciter_apply {id} {\n");
-// strip "." from the TK id to make a variable name suffix
-sys_gui("set vid [string trimleft $id .]\n");
-// for each variable, make a local variable to hold its name...
-sys_gui("set var_graph_width [concat graph_width_$vid]\n");
-sys_gui("global $var_graph_width\n");
-sys_gui("set var_graph_height [concat graph_height_$vid]\n");
-sys_gui("global $var_graph_height\n");
-sys_gui("set var_graph_nbevents [concat graph_nbevents_$vid]\n");
-sys_gui("global $var_graph_nbevents\n");
-sys_gui("set var_graph_timegrain [concat graph_timegrain_$vid]\n");
-sys_gui("global $var_graph_timegrain\n");
-sys_gui("set var_graph_loop [concat graph_loop_$vid]\n");
-sys_gui("global $var_graph_loop\n");
-sys_gui("set var_graph_save [concat graph_save_$vid]\n");
-sys_gui("global $var_graph_save\n");
-sys_gui("set cmd [concat $id dialog [eval concat $$var_graph_width] [eval concat $$var_graph_height] [eval concat $$var_graph_nbevents] [eval concat $$var_graph_timegrain] [eval concat $$var_graph_loop] [eval concat $$var_graph_save] \\;]\n");
-// puts stderr $cmd
-sys_gui("pd $cmd\n");
-sys_gui("}\n");
-sys_gui("proc exciter_cancel {id} {\n");
-sys_gui("set cmd [concat $id cancel \\;]\n");
-// puts stderr $cmd
-sys_gui("pd $cmd\n");
-sys_gui("}\n");
-sys_gui("proc exciter_ok {id} {\n");
-sys_gui("exciter_apply $id\n");
-sys_gui("exciter_cancel $id\n");
-sys_gui("}\n");
-sys_gui("proc pdtk_exciter_dialog {id width height nbevents timegrain loop save } {\n");
-sys_gui("set vid [string trimleft $id .]\n");
-sys_gui("set var_graph_width [concat graph_width_$vid]\n");
-sys_gui("global $var_graph_width\n");
-sys_gui("set var_graph_height [concat graph_height_$vid]\n");
-sys_gui("global $var_graph_height\n");
-sys_gui("set var_graph_nbevents [concat graph_nbevents_$vid]\n");
-sys_gui("global $var_graph_nbevents\n");
-sys_gui("set var_graph_timegrain [concat graph_timegrain_$vid]\n");
-sys_gui("global $var_graph_timegrain\n");
-sys_gui("set var_graph_loop [concat graph_loop_$vid]\n");
-sys_gui("global $var_graph_loop\n");
-sys_gui("set var_graph_save [concat graph_save_$vid]\n");
-sys_gui("global $var_graph_save\n");
-sys_gui("set $var_graph_width $width\n");
-sys_gui("set $var_graph_height $height\n");
-sys_gui("set $var_graph_nbevents $nbevents\n");
-sys_gui("set $var_graph_timegrain $timegrain\n");
-sys_gui("set $var_graph_loop $loop\n");
-sys_gui("set $var_graph_save $save\n");
-sys_gui("toplevel $id\n");
-sys_gui("wm title $id {exciter}\n");
-sys_gui("wm protocol $id WM_DELETE_WINDOW [concat exciter_cancel $id]\n");
-sys_gui("label $id.label -text {EXCITER PROPERTIES}\n");
-sys_gui("pack $id.label -side top\n");
-sys_gui("frame $id.buttonframe\n");
-sys_gui("pack $id.buttonframe -side bottom -fill x -pady 2m\n");
-sys_gui("button $id.buttonframe.cancel -text {Cancel} -command \"exciter_cancel $id\"\n");
-sys_gui("button $id.buttonframe.apply -text {Apply} -command \"exciter_apply $id\"\n");
-sys_gui("button $id.buttonframe.ok -text {OK} -command \"exciter_ok $id\"\n");
-sys_gui("pack $id.buttonframe.cancel -side left -expand 1\n");
-sys_gui("pack $id.buttonframe.apply -side left -expand 1\n");
-sys_gui("pack $id.buttonframe.ok -side left -expand 1\n");
-sys_gui("frame $id.1rangef\n");
-sys_gui("pack $id.1rangef -side top\n");
-sys_gui("label $id.1rangef.lwidth -text \"Width :\"\n");
-sys_gui("entry $id.1rangef.width -textvariable $var_graph_width -width 7\n");
-sys_gui("pack $id.1rangef.lwidth $id.1rangef.width -side left\n");
-sys_gui("frame $id.2rangef\n");
-sys_gui("pack $id.2rangef -side top\n");
-sys_gui("label $id.2rangef.lheight -text \"Height :\"\n");
-sys_gui("entry $id.2rangef.height -textvariable $var_graph_height -width 7\n");
-sys_gui("pack $id.2rangef.lheight $id.2rangef.height -side left\n");
-sys_gui("frame $id.3rangef\n");
-sys_gui("pack $id.3rangef -side top\n");
-sys_gui("label $id.3rangef.lnbevents -text \"Nb Events :\"\n");
-sys_gui("entry $id.3rangef.nbevents -textvariable $var_graph_nbevents -width 7\n");
-sys_gui("pack $id.3rangef.lnbevents $id.3rangef.nbevents -side left\n");
-sys_gui("frame $id.4rangef\n");
-sys_gui("pack $id.4rangef -side top\n");
-sys_gui("label $id.4rangef.ltimegrain -text \"Time Grain (seconds) :\"\n");
-sys_gui("entry $id.4rangef.timegrain -textvariable $var_graph_timegrain -width 7\n");
-sys_gui("pack $id.4rangef.ltimegrain $id.4rangef.timegrain -side left\n");
-sys_gui("checkbutton $id.loop -text {Loop} -variable $var_graph_loop -anchor w\n");
-sys_gui("pack $id.loop -side top\n");
-sys_gui("checkbutton $id.save -text {Save contents} -variable $var_graph_save -anchor w\n");
-sys_gui("pack $id.save -side top\n");
-sys_gui("bind $id.1rangef.width <KeyPress-Return> [concat exciter_ok $id]\n");
-sys_gui("bind $id.2rangef.height <KeyPress-Return> [concat exciter_ok $id]\n");
-sys_gui("bind $id.3rangef.nbevents <KeyPress-Return> [concat exciter_ok $id]\n");
-sys_gui("bind $id.4rangef.timegrain <KeyPress-Return> [concat exciter_ok $id]\n");
-sys_gui("focus $id.1rangef.width\n");
-sys_gui("}\n");
-// ########### exciter procedures END -- ydegoyon@free.fr #########