diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2011-07-31 03:59:16 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@iem.at> | 2015-10-14 15:23:30 +0200 |
commit | d145fa6f792d6c44da2feec90507adb94e40323e (patch) | |
tree | ae3aaf213dbb4273331745802ef1259dce8e2986 /scratcher~/scratcher~.tk2c | |
parent | 67af8f6b3f179d5b4ba0747ab971abbeecbedd45 (diff) |
got everything building using the template Makefile
svn path=/trunk/externals/unauthorized/; revision=15173
Diffstat (limited to 'scratcher~/scratcher~.tk2c')
-rwxr-xr-x | scratcher~/scratcher~.tk2c | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/scratcher~/scratcher~.tk2c b/scratcher~/scratcher~.tk2c deleted file mode 100755 index 8c07523..0000000 --- a/scratcher~/scratcher~.tk2c +++ /dev/null @@ -1,58 +0,0 @@ -// ########### scratcher procedures -- ydegoyon@free.fr ######### -sys_gui("proc scratcher_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 cmd [concat $id dialog [eval concat $$var_graph_width] [eval concat $$var_graph_height] \\;]\n"); -// puts stderr $cmd -sys_gui("pd $cmd\n"); -sys_gui("}\n"); -sys_gui("proc scratcher_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 scratcher_ok {id} {\n"); -sys_gui("scratcher_apply $id\n"); -sys_gui("scratcher_cancel $id\n"); -sys_gui("}\n"); -sys_gui("proc pdtk_scratcher_dialog {id width height} {\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_width $width\n"); -sys_gui("set $var_graph_height $height\n"); -sys_gui("toplevel $id\n"); -sys_gui("wm title $id {scratcher}\n"); -sys_gui("wm protocol $id WM_DELETE_WINDOW [concat scratcher_cancel $id]\n"); -sys_gui("label $id.label -text {SCRATCHER 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 \"scratcher_cancel $id\"\n"); -sys_gui("button $id.buttonframe.apply -text {Apply} -command \"scratcher_apply $id\"\n"); -sys_gui("button $id.buttonframe.ok -text {OK} -command \"scratcher_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("bind $id.1rangef.name <KeyPress-Return> [concat scratcher_ok $id]\n"); -sys_gui("bind $id.2rangef.height <KeyPress-Return> [concat scratcher_ok $id]\n"); -sys_gui("focus $id.1rangef.name\n"); -sys_gui("}\n"); -// ########### scratcher procedures END -- ydegoyon@free.fr ######### |