DisU.pl untested

filter: Statementstmt 0.0% 0 / 379 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 385 CC 3 SCAR 24.8
CC
3
Cov
0%
display_usage
12.0
CRAP 12.0
1  
2 sub display_usage {
3  
4 my($version) = @ARG;
5  
6 # Open a Toplevel widget and insert some fanciful help text.
7  
8 if (Exists($USAGE)) {
9 $USAGE->deiconify;
10 return;
11 }
12  
13 $USAGE = $genPerlTk_mw->Toplevel;
14 $USAGE->title('Usage');
15 $USAGE->iconname('Usage');
16  
17 $uhf = $USAGE->Frame;
18 $uht = $uhf->Text(qw(-relief raised -bd 1 -setgrid true -height 36
19 -wrap word),
20 );
21 $uhs = $uhf->Scrollbar(qw(-relief flat), -command => [$uht => 'yview']);
22 $uht->configure(-yscrollcommand => [$uhs => 'set']);
23 $uht->pack(qw(-side left -expand yes -fill both));
24 $uhs->pack(qw(-side right -fill y));
25  
26 $uhm = $USAGE->Frame(qw/-borderwidth 2 -relief raised/);
27 $uhm->pack(qw(-side top -fill x -expand yes));
28 $uhmf = $uhm->Menubutton(qw(-text File -underline 0 -relief raised));
29 $uhmf->pack(qw(-side left));
30 $uhmf->command(
31 -label => 'Close',
32 -command => [$USAGE => 'withdraw'],
33 -underline => 0,
34 );
35 $uhf->pack(qw(-side left -expand yes -fill both));
36  
37 $uhl = $USAGE->Frame(-borderwidth => 5);
38 $uhl->pack(qw( -side right -fill y));
39 $uhl_label = $uhl->Label(-text => 'Table of Contents');
40 $uhl_label->pack(qw(-side top -fill x));
41 $uhll = $uhl->Listbox(
42 qw(-relief sunken -setgrid 1),
43 -selectbackground => $genPerlTk_highlight,
44 );
45 $uhll->pack(qw(-side left -fill y));
46 $uhll->bind('<Double-1>' => [sub {
47 my($l, $uht) = @ARG;
48 my $mark = $l->get('active');
49 $mark =~ s/ /_/g;
50 $uht->yview("mark_usage_help_${mark}");
51 }, $uht]);
52 $uhl->AddScrollbars($uhll);
53 $uhl->configure(-scrollbars => 'e');
54  
55 $uhll->insert('end', 'Introduction');
56 $uhll->insert('end', 'Quick Start');
57 $uhll->insert('end', 'Unix Command Syntax');
58 $uhll->insert('end', ' The Problem');
59 $uhll->insert('end', ' A Solution');
60 $uhll->insert('end', 'Parameter Types');
61 $uhll->insert('end', ' String');
62 $uhll->insert('end', ' Integer');
63 $uhll->insert('end', ' Real');
64 $uhll->insert('end', ' File');
65 $uhll->insert('end', ' Key');
66 $uhll->insert('end', ' Boolean');
67 $uhll->insert('end', ' Switch');
68 $uhll->insert('end', ' Name');
69 $uhll->insert('end', ' Application');
70 $uhll->insert('end', 'Lists');
71 $uhll->insert('end', 'The `Do It\' Button');
72 $uhll->insert('end', 'Windows');
73 $uhll->insert('end', ' Main Window');
74 $uhll->insert('end', ' Main File Menu');
75 $uhll->insert('end', ' Main Edit Menu');
76 $uhll->insert('end', ' Main Help Menu');
77 $uhll->insert('end', ' Output Window');
78 $uhll->insert('end', ' Output File Menu');
79 $uhll->insert('end', ' Help Window');
80 $uhll->insert('end', ' Help File Menu');
81 $uhll->insert('end', 'Revision History');
82 $uhll->insert('end', 'Credits');
83  
84 $uht->tag('configure', qw(bold -font -Adobe-Courier-Bold-O-Normal-*-120-*));
85 $uht->tag('configure', qw(big -font -Adobe-Courier-Bold-R-Normal-*-140-*));
86 $uht->tag('configure', qw(verybig -font -Adobe-Helvetica-Bold-R-Normal-*-240-*));
87 if ($USAGE->depth > 1) {
88 $uht->tag('configure', qw(color2 -foreground blue));
89 } else {
90 $uht->tag('configure', qw(color2 -background black -foreground white));
91 }
92 $uht->tag('configure', qw(bgstipple -background black -borderwidth 0
93 -bgstipple gray25));
94 $uht->tag('configure', qw(fgstipple -fgstipple gray50));
95 $uht->tag('configure', qw(underline -underline on));
96  
97 ####### New section #######
98  
99 $uht->insert('end', '
100  
101 Introduction
102  
103 ', 'big');
104 my $start;
105 $start = $uht->index('end') - 4;
106 $uht->mark('set', 'mark_usage_help_Introduction', "$start.0");
107 $uht->insert('end', 'You are interacting with an X11 Perl/Tk Graphical User Interface for a typical Unix program. Although unimportant to you, this program uses as its command line interface the function ');
108 $uht->insert('end', "Evaluate Parameters", 'color2');
109 $uht->insert('end', ', which makes the creation of this GUI possible. By filling out a form and pushing buttons you can easily run this Unix program, avoiding most if not all of the pitfalls that Unix throws at you!
110  
111 This program is brought to you courtesy of ');
112 $uht->insert('end', 'generate_PerlTk_program', 'color2');
113 $uht->insert('end', ', ');
114 $uht->insert('end', 'Perl', 'color2');
115 $uht->insert('end', ', ',);
116 $uht->insert('end', 'Tk', 'color2');
117 $uht->insert('end', ' and '),
118 $uht->insert('end', 'Evaluate Parameters', 'color2');
119 $uht->insert('end', '.');
120  
121 ####### New section #######
122  
123 $uht->insert('end', '
124  
125 Quick Start
126  
127 ', 'big');
128 $start = $uht->index('end') - 4;
129 $uht->mark('set', 'mark_usage_help_Quick_Start', "$start.0");
130 $uht->insert('end', 'In 25 words or less: fill in the blanks, push the required buttons and click on `Do It\'. That\'s really all there is to it.
131  
132 Some parameters ');
133 $uht->insert('end', 'require', 'bold');
134 $uht->insert('end', ' a value: for parameters with an Entry box the value `$REQUIRED\' is displayed; for parameters with Radio or Check buttons none of the buttons are highlighted, so you must click on at least one.
135  
136 Scroll through the window containing the command\'s help text to see what information the programmer has provided for you.
137  
138 If the parameter is a list you may enter multiple space-separated items.
139  
140 At the bottom of the main window is a box that displays the Unix command. As parameter values are entered you can watch the command update in realtime.
141  
142 An output window opens to capture the command\'s standard output and standard error, which you can view, save to a file or send to a command pipeline.');
143  
144 ####### New section #######
145  
146 $uht->insert('end', '
147  
148 Unix Command Syntax
149  
150 ', 'big');
151 $start = $uht->index('end') - 4;
152 $uht->mark('set', 'mark_usage_help_Unix_Command_Syntax', "$start.0");
153 $uht->insert('end', 'Generally, Unix commands consist of cryptic command line parameters whose meanings and functions are nearly impossible to determine. Because there are no conventions in the Unix world for naming command line parameters and parsing the command line, the user interface changes from program to program.');
154  
155 ####### New section #######
156  
157 $uht->insert('end', '
158  
159 The Problem
160  
161 ', 'big');
162 $start = $uht->index('end') - 4;
163 $uht->mark('set', 'mark_usage_help___The_Problem', "$start.0");
164 $uht->insert('end', 'For example, typical Unix programs expect either standalone switches or parameters, preceeded by a `-\', with the value of non-switch parameters to follow immediately. Sometimes an optional list of file names is expected:
165  
166 ');
167 $uht->insert('end', 'cc', 'bold');
168 $uht->insert('end', ' -O -o my_prog.exe -L/usr/local/lib -levap my_prog.c
169  
170 Notice that some parameters like ');
171 $uht->insert('end', '-o', 'bold');
172 $uht->insert('end', ' must have a space between them and their value, but other parameters line ');
173 $uht->insert('end', '-L', 'bold');
174 $uht->insert('end', ' and ');
175 $uht->insert('end', '-l', 'bold');
176 $uht->insert('end', ' cannot have a space.
177  
178 As another example take the ');
179 $uht->insert('end', 'tar', 'bold');
180 $uht->insert('end', ' command, where command line options are bundled together after the `-\' and values follow in a one-to-one correspondence:
181  
182 ');
183 $uht->insert('end', 'tar', 'bold');
184 $uht->insert('end', ' -cvf my_tar.tar *
185  
186 Some Unix developers go so far as to dispense with the dash as a parameter indicator and disallow it entirely, as in the ');
187 $uht->insert('end', 'ar', 'bold');
188 $uht->insert('end', ' command:
189  
190 ');
191 $uht->insert('end', 'ar', 'bold');
192 $uht->insert('end', ' rcv my_archive.a *.o
193  
194 So as you can see, the only thing consistent about command line parsing in Unix is its inconsistency :-).
195  
196 To further complicate matters there is no regularity in command usage information - some commands provide it and some do not. If you\'re lucky enough to see usage information it always varies from program to program.');
197  
198 ####### New section #######
199  
200 $uht->insert('end', '
201  
202 A Solution
203  
204 ', 'big');
205 $start = $uht->index('end') - 4;
206 $uht->mark('set', 'mark_usage_help___A_Solution', "$start.0");
207 $uht->insert('end', 'All these considerations spurred the developement of ');
208 $uht->insert('end', 'Evaluate Parameters', 'color2');
209 $uht->insert('end', ' for Unix.
210  
211 There are C, Perl and Tcl implementations which provide for a simple and consistent user interface, type-check parameter values and provide three levels of command and parameter help. Because there is so much consistency it was possible to write a new program called ');
212 $uht->insert('end', 'generate_PerlTk_program', 'color2');
213 $uht->insert('end', ' that can create a Graphical User Interface like this one for ');
214 $uht->insert('end', 'any', 'bold');
215 $uht->insert('end', ' program using ');
216 $uht->insert('end', 'Evaluate Parameters', 'color2');
217 $uht->insert('end', ' to parse its command line. What you are seeing and using is a GUI front-end that was generated ');
218 $uht->insert('end', 'automatically', 'bold');
219 $uht->insert('end', ' by ');
220 $uht->insert('end', 'generate_PerlTk_program', 'color2');
221 $uht->insert('end', '!');
222  
223 ####### New section #######
224  
225 $uht->insert('end', '
226  
227 Parameter Types
228  
229 ', 'big');
230 $start = $uht->index('end') - 4;
231 $uht->mark('set', 'mark_usage_help_Parameter_Types', "$start.0");
232 $uht->insert('end', 'All values that you enter for command line parameters must be of the appropriate type. For instance, if a parameter expects an integer you must supply a positive or negative number. The following types are supported:
233  
234 ');
235 $uht->insert('end', 's', [qw(underline color2)]);
236 $uht->insert('end', 'tring ');
237 $uht->insert('end', 'i', [qw(underline color2)]);
238 $uht->insert('end', 'nteger ');
239 $uht->insert('end', 'r', [qw(underline color2)]);
240 $uht->insert('end', 'eal ');
241 $uht->insert('end', 'f', [qw(underline color2)]);
242 $uht->insert('end', 'ile ');
243 $uht->insert('end', 'k', [qw(underline color2)]);
244 $uht->insert('end', 'ey ');
245 $uht->insert('end', 'b', [qw(underline color2)]);
246 $uht->insert('end', 'oolean ');
247 $uht->insert('end', 'sw', [qw(underline color2)]);
248 $uht->insert('end', 'itch ');
249 $uht->insert('end', 'n', [qw(underline color2)]);
250 $uht->insert('end', 'ame ');
251 $uht->insert('end', 'a', [qw(underline color2)]);
252 $uht->insert('end', 'pplication');
253 $uht->insert('end', '
254  
255 Do you really care what type of value a command line parameter expects? Well, yes! If the program wants a number and you give it letters you will be yelled at.
256  
257 If you look at the main window, to the right of the names of the command line parameters and to the left of where you specify their values, you see some coded information in parentheses, like:
258  
259 (s )
260 (i )
261 (r )
262 (sw)
263  
264 This one-letter code corresponds to the first letter of the parameter\'s type,
265 except for ');
266 $uht->insert('end', 'sw', [qw(underline color2)]);
267 $uht->insert('end', 'itch');
268 $uht->insert('end', ' parameters which use the first two letters to distinguish them from ');
269 $uht->insert('end', 's', [qw(underline color2)]);
270 $uht->insert('end', 'tring parameters.
271  
272 If you see the letter `l\' following a type code you know that the parameter can be a list, which means that multiple value can be specified. For more details on lists, see the section ');
273 $uht->insert('end', 'Lists', 'bold');
274 $uht->insert('end', ' which follows.');
275  
276 ####### New section #######
277  
278 $uht->insert('end', '
279  
280 String
281  
282 ', 'big');
283 $start = $uht->index('end') - 4;
284 $uht->mark('set', 'mark_usage_help___String', "$start.0");
285 $uht->insert('end', 'A ');
286 $uht->insert('end', 'string', 'bold');
287 $uht->insert('end', ' parameter is a list of characters, which may include whitespace, enclosed in either single or double quotes. You specify value(s) by typing in the Entry box.
288  
289 "Hello world!"
290 \'Hello World!\'');
291  
292 ####### New section #######
293  
294 $uht->insert('end', '
295  
296 Integer
297
298 ', 'big');
299 $start = $uht->index('end') - 4;
300 $uht->mark('set', 'mark_usage_help___Integer', "$start.0");
301 $uht->insert('end', 'An ');
302 $uht->insert('end', 'integer', 'bold');
303 $uht->insert('end', ' parameter is a list of digts, with an optional leading sign. You specify value(s) by typing in the Entry box.
304  
305 945
306 -23');
307  
308 ####### New section #######
309  
310 $uht->insert('end', '
311  
312 Real
313  
314 ', 'big');
315 $start = $uht->index('end') - 4;
316 $uht->mark('set', 'mark_usage_help___Real', "$start.0");
317 $uht->insert('end', 'A ');
318 $uht->insert('end', 'real', 'bold');
319 $uht->insert('end', ' parameter is a list of digits, with an optional leading sign, possibly a decimal point, and an optional trailing exponent. You specify value(s) by typing in the Entry box.
320  
321 -0.345
322 +1.1e-7');
323  
324 ####### New section #######
325  
326 $uht->insert('end', '
327  
328 File
329  
330 ', 'big');
331 $start = $uht->index('end') - 4;
332 $uht->mark('set', 'mark_usage_help___File', "$start.0");
333 $uht->insert('end', 'A ');
334 $uht->insert('end', 'file', 'bold');
335 $uht->insert('end', ' parameter is a Unix file name. You specify value(s) by typing in the Entry box.
336  
337 my_file
338 /home/lusol/.profile');
339  
340 ####### New section #######
341  
342 $uht->insert('end', '
343  
344 Key
345  
346 ', 'big');
347 $start = $uht->index('end') - 4;
348 $uht->mark('set', 'mark_usage_help___Key', "$start.0");
349 $uht->insert('end', 'A ');
350 $uht->insert('end', 'key', 'bold');
351 $uht->insert('end', ' parameter can be given only certain value(s) that the programmer has allowed. You specify value(s) by pushing a Radiobutton or, in the case of a list, one or more Checkbuttons.');
352  
353 ####### New section #######
354  
355 $uht->insert('end', '
356  
357 Boolean
358  
359 ', 'big');
360 $start = $uht->index('end') - 4;
361 $uht->mark('set', 'mark_usage_help___Boolean', "$start.0");
362 $uht->insert('end', 'A ');
363 $uht->insert('end', 'boolean', 'bold');
364 $uht->insert('end', ' parameter can be in one of two states: on or off. You specify value(s) by pushing a Radiobutton or, in the case of a list, typing in the Entry box.
365  
366 TRUE or YES or ON or 1
367 FALSE or NO or OFF or 0');
368  
369 ####### New section #######
370  
371 $uht->insert('end', '
372  
373 Switch
374  
375 ', 'big');
376 $start = $uht->index('end') - 4;
377 $uht->mark('set', 'mark_usage_help___Switch', "$start.0");
378 $uht->insert('end', 'A ');
379 $uht->insert('end', 'switch', 'bold');
380 $uht->insert('end', ' parameter can be in one of two states: on or off. If the ');
381 $uht->insert('end', 'switch', 'bold');
382 $uht->insert('end', ' is specified on the command line it is 1, otherwise it is 0. You specify a value by pushing a Radiobutton.
383  
384 -verbose');
385  
386 ####### New section #######
387  
388 $uht->insert('end', '
389  
390 Name
391  
392 ', 'big');
393 $start = $uht->index('end') - 4;
394 $uht->mark('set', 'mark_usage_help___Name', "$start.0");
395 $uht->insert('end', 'A ');
396 $uht->insert('end', 'name', 'bold');
397 $uht->insert('end', ' parameter is similar to a ');
398 $uht->insert('end', 'string', 'bold');
399 $uht->insert('end', ' except that embedded whitespace is not permitted, therefore bounding quotes are not required. You specify value(s) by typing in the Entry box.
400  
401 NoQuotesRequired');
402  
403 ####### New section #######
404  
405 $uht->insert('end', '
406  
407 Application
408  
409 ', 'big');
410 $start = $uht->index('end') - 4;
411 $uht->mark('set', 'mark_usage_help___Application', "$start.0");
412 $uht->insert('end', 'An ');
413 $uht->insert('end', 'application', 'bold');
414 $uht->insert('end', ' parameter is special in that no type checking is performed. The interpretation of this parameter is application specific. You will rarely see this parameter type. You specify value(s) by typing in the Entry box.
415  
416 "A special type, application specific!"');
417  
418 ####### New section #######
419  
420 $uht->insert('end', '
421  
422 Lists
423  
424 ', 'big');
425 $start = $uht->index('end') - 4;
426 $uht->mark('set', 'mark_usage_help_Lists', "$start.0");
427 $uht->insert('end', 'Except for ');
428 $uht->insert('end', 'switches', 'bold');
429 $uht->insert('end', ', all parameter types can be lists, which simply means that multiple values can be supplied to the program. You can tell if a parameter can take a list by inspecting the type-code field in the main window - the letter `l\' indicates a list parameter.
430  
431 For most types you can simply enter your values separated by spaces, but don\'t forget to quote ');
432 $uht->insert('end', 'strings', 'bold');
433 $uht->insert('end', '. A list of ');
434 $uht->insert('end', 'keys', 'bold');
435 $uht->insert('end', ' is specified by pushing one or more Checkbuttons.');
436  
437 ####### New section #######
438  
439 $uht->insert('end', '
440  
441 The `Do It\' Button
442  
443 ', 'big');
444 $start = $uht->index('end') - 4;
445 $uht->mark('set', 'mark_usage_help_The_`Do_It\'_Button', "$start.0");
446 $uht->insert('end', 'After you are through customizing parameter values, click on ');
447 $uht->insert('end', 'Do It', 'bold');
448 $uht->insert('end', ' to start command execution. The button changes to ');
449 $uht->insert('end', 'Working ...', 'bold');
450 $uht->insert('end', ' and an Output window opens.
451  
452 The button now changes to ');
453 $uht->insert('end', 'Cancel', 'bold');
454 $uht->insert('end', ' and begins blinking.');
455 $uht->insert('end', ' This means that you can abort the command at any time.');
456  
457 ####### New section #######
458  
459 $uht->insert('end', '
460  
461 Windows
462  
463 ', 'big');
464 $start = $uht->index('end') - 4;
465 $uht->mark('set', 'mark_usage_help_Windows', "$start.0");
466 $uht->insert('end', 'This section describes this application\'s Toplevel windows. The Main window is already open, you are using the Help window now, and there is an Output window which may or may not be open at this time.');
467  
468 ####### New section #######
469  
470 $uht->insert('end', '
471  
472 Main Window
473  
474 ', 'big');
475 $start = $uht->index('end') - 4;
476 $uht->mark('set', 'mark_usage_help___Main_Window', "$start.0");
477 $uht->insert('end', 'The Main window is the one you use most often. It contains the main controls for this X11 application which allow you to enter or change command parameter values, view help information, execute the Unix command and exit this X11 application. All these actions are performed by pulling down menus or pushing the ');
478 $uht->insert('end', 'Do It', 'bold');
479 $uht->insert('end', ' button. The menus are described below.');
480  
481 ####### New section #######
482  
483 $uht->insert('end', '
484  
485 Main File Menu
486  
487 ', 'big');
488 $start = $uht->index('end') - 4;
489 $uht->mark('set', 'mark_usage_help_____Main_File_Menu', "$start.0");
490 $uht->insert('end', 'The Main window ');
491 $uht->insert('end', 'File', 'bold');
492 $uht->insert('end', ' menu contains these selections:
493  
494 ');
495 $uht->insert('end', ' Open ...
496 ', 'bold');
497  
498 $uht->tag('configure', qw(lmargin -lmargin1 90 -lmargin2 90));
499 $uht->tag('configure', qw(rmargin -rmargin 90));
500  
501 $uht->insert('end', 'If the Unix program expects a trailing File Name you see this selection to browse your directory tree for the desired file. After a selection is made the file name is appended to the generated Unix command. If you are using a color monitor the Entry box is highlighted. Of course, you can type this file name in the Entry box manually.
502  
503 ', [qw(lmargin rmargin)]);
504 $uht->insert('end', ' Quit
505 ', 'bold');
506 $uht->insert('end', 'Make this selection to quit the X11 application.
507 ', [qw(lmargin rmargin)]);
508  
509 ####### New section #######
510  
511 $uht->insert('end', '
512  
513 Main Edit Menu
514  
515 ', 'big');
516 $start = $uht->index('end') - 4;
517 $uht->mark('set', 'mark_usage_help_____Main_Edit_Menu', "$start.0");
518 $uht->insert('end', 'The Main window ');
519 $uht->insert('end', 'Edit', 'bold');
520 $uht->insert('end', ' menu contains this selection:
521  
522 ');
523 $uht->insert('end', 'Undo All
524 ', 'bold');
525 $uht->insert('end', 'Make this selection to reset all parameter values to their default values.', [qw(lmargin rmargin)]);
526  
527 ####### New section #######
528  
529 $uht->insert('end', '
530  
531 Main Help Menu
532  
533 ', 'big');
534 $start = $uht->index('end') - 4;
535 $uht->mark('set', 'mark_usage_help_____Main_Help_Menu', "$start.0");
536 $uht->insert('end', 'The Main window ');
537 $uht->insert('end', 'Help', 'bold');
538 $uht->insert('end', ' menu contains these selections:
539  
540 ');
541 $uht->insert('end', ' About
542 ', 'bold');
543 $uht->insert('end', 'This selection tells you a little bit about the Unix program, and gives me some credit! (-:
544 ', [qw(lmargin rmargin)]);
545 $uht->insert('end', '
546 Usage
547 ', 'bold');
548 $uht->insert('end', 'This selction opens the Help window which you are currently using.
549 ', [qw(lmargin rmargin)]);
550  
551 ####### New section #######
552  
553 $uht->insert('end', '
554  
555 Output Window
556  
557 ', 'big');
558 $start = $uht->index('end') - 4;
559 $uht->mark('set', 'mark_usage_help___Output_Window', "$start.0");
560 $uht->insert('end', 'The Output window holds standard output and standard error resulting from the execution of the Unix command. After clicking on the ');
561 $uht->insert('end', 'Do It', 'bold');
562 $uht->insert('end', ' button this window appears.
563 ');
564  
565 ####### New section #######
566  
567 $uht->insert('end', '
568  
569 Output File Menu
570  
571 ', 'big');
572 $start = $uht->index('end') - 4;
573 $uht->mark('set', 'mark_usage_help_____Output_File_Menu', "$start.0");
574 $uht->insert('end', 'The Output window ');
575 $uht->insert('end', 'File', 'bold');
576 $uht->insert('end', ' menu contains these selections:
577 ');
578 $uht->insert('end', '
579 Save As ...
580 ', 'bold');
581 $uht->insert('end', 'Use this selection to save the contents of the Output window to a file.
582 ', [qw(lmargin rmargin)]);
583 $uht->insert('end', '
584 Pipe To ...
585 ', 'bold');
586 $uht->insert('end', 'Use this selection to write the contents of the Output window to a command pipeline. You might print or mail the window contents using this feature.
587 ', [qw(lmargin rmargin)]);
588 $uht->insert('end', '
589 Close
590 ', 'bold');
591 $uht->insert('end', 'Make this selection to close the Output window.
592 ', [qw(lmargin rmargin)]);
593  
594 ####### New section #######
595  
596 $uht->insert('end', '
597  
598 Help Window
599  
600 ', 'big');
601 $start = $uht->index('end') - 4;
602 $uht->mark('set', 'mark_usage_help___Help_Window', "$start.0");
603 $uht->insert('end', 'The Help window is in use at this very momment. Hopefully all the information that you need to run this X11 application and execute the Unix command can be found here. If not, or you have further suggestions or comments, please send mail to me, Steve Lidie, at this email address:
604 ');
605 $uht->insert('end', '
606 Stephen.O.Lidie@Lehigh.EDU
607 ', 'color2');
608  
609 ####### New section #######
610  
611 $uht->insert('end', '
612  
613 Help File Menu
614  
615 ', 'big');
616 $start = $uht->index('end') - 4;
617 $uht->mark('set', 'mark_usage_help_____Help_File_Menu', "$start.0");
618 $uht->insert('end', 'The Help window ');
619 $uht->insert('end', 'File', 'bold');
620 $uht->insert('end', ' menu contains this selection:
621 ');
622 $uht->insert('end', '
623 Close
624 ', 'bold');
625 $uht->insert('end', 'Make this selection to close the Help window.
626 ', [qw(lmargin rmargin)]);
627  
628 ####### New section #######
629  
630 $uht->insert('end', '
631  
632 Revision History
633  
634 ', 'big');
635 $start = $uht->index('end') - 4;
636 $uht->mark('set', 'mark_usage_help_Revision_History', "$start.0");
637 $uht->insert('end', "This is version $version of ");
638 $uht->insert('end', 'generate_PerlTk_program', 'color2');
639 $uht->insert('end', ", that corresponds to version $version of ");
640 $uht->insert('end', 'Evaluate Parameters', 'color2');
641 $uht->insert('end', ' for ');
642 $uht->insert('end', 'C', 'color2');
643 $uht->insert('end', ', ');
644 $uht->insert('end', 'Perl', 'color2');
645 $uht->insert('end', ' and ');
646 $uht->insert('end', 'Tcl', 'color2');
647 $uht->insert('end', '.');
648 $uht->insert('end', '
649  
650  
651 95/10/26, version 2.3
652 . Original release.
653  
654 98/07/26, version 2.3.3.
655 . Update for Perl 5.005 and Tk 800.008.
656  
657 99/04/03, version 2.3.5.
658 . Update for Perl 5.005_03 and Tk 800.013.
659 ');
660  
661 ####### New section #######
662  
663 $uht->insert('end', '
664  
665 Credits
666  
667 ', 'big');
668 $start = $uht->index('end') - 4;
669 $uht->mark('set', 'mark_usage_help_Credits', "$start.0");
670  
671 $uht->tag('configure', qw(lmargin2 -lmargin1 20 -lmargin2 20));
672 $uht->tag('configure', qw(rmargin2 -rmargin 20));
673  
674 $uht->insert('end', 'John K. Ousterhout, Scriptics.
675 ');
676 $uht->insert('end', 'For writing ', [qw(lmargin2 rmargin2)]);
677 $uht->insert('end', 'Tcl/Tk', [qw(lmargin2 rmargin2 color2)]);
678 $uht->insert('end', ', marvelous products that make creating X11 applications a piece of cake. I would never have attempted this using Xlib and Xt.', [qw(lmargin2 rmargin2)]);
679 $uht->insert('end', '
680  
681 Nick Ing-Simmons, Texas Instruments.
682 ');
683 $uht->insert('end', 'For porting ', [qw(lmargin2 rmargin2)]);
684 $uht->insert('end', 'Tk', , [qw(lmargin2 rmargin2 color2)]);
685 $uht->insert('end', ' to ', [qw(lmargin2 rmargin2)]);
686 $uht->insert('end', 'Perl', , [qw(lmargin2 rmargin2 color2)]);
687 $uht->insert('end', ', thus providing a rich, object oriented widget set for the Camel community.', [qw(lmargin2 rmargin2)]);
688 $uht->insert('end', '
689  
690 Stephen O. Lidie, Lehigh University.
691 ');
692 $uht->insert('end', 'Hey, for writing ', [qw(lmargin2 rmargin2)]);
693 $uht->insert('end', 'Evaluate Parameters', [qw(lmargin2 rmargin2 color2)]);
694 $uht->insert('end', '. ', [qw(lmargin2 rmargin2)]);
695  
696 $uht->configure(qw(-state disabled));
697  
698 } # end usage
699  
700 1;