Button Array Command - hev-buttonArray
General stand alone FLTK based GUI command that implements an
array of buttons and associated actions:
Input in the form:
"label" "command1" "command2"
command1 executed when button "label" pressed
command2 executed when button "label" released
Example 8a: (Shell script to create input file)
#! /bin/sh
for file in T*.pfb
do
name=`basename $file .pfb`
echo \"$name\" \"hev-sgEditor on $name world\" \"hev-sgEditor off $name \" 1
done > buttonArray.dat
>cat buttonArray.dat
"T0020_L007" "hev-sgEditor on T0020_L007 world" "hev-sgEditor off T0020_L007 " 1
"T0020_L008" "hev-sgEditor on T0020_L008 world" "hev-sgEditor off T0020_L008 " 1
"T0020_L009" "hev-sgEditor on T0020_L009 world" "hev-sgEditor off T0020_L009 " 1
"T0020_L010" "hev-sgEditor on T0020_L010 world" "hev-sgEditor off T0020_L010 " 1
"T0020_L011" "hev-sgEditor on T0020_L011 world" "hev-sgEditor off T0020_L011 " 1
"T0020_L012" "hev-sgEditor on T0020_L012 world" "hev-sgEditor off T0020_L012 " 1
Example 8b: (In a separate shell window)
hev-buttonArray < buttonArray.dat
The actions can of course be any shell command.
Next
Slide11 (8/4/05)
Prev