9ef1c53ffaca339dc2eeda137f174bf0cef1c3fa
[oweals/cde.git] / cde / programs / ttsnoop / ttChooser_stubs.C.src
1 /*** DTB_USER_CODE_START vvv Add file header below vvv ***/
2 //%%  (c) Copyright 1993, 1994 Hewlett-Packard Company
3 //%%  (c) Copyright 1993, 1994 International Business Machines Corp.
4 //%%  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
5 //%%  (c) Copyright 1993, 1994 Novell, Inc.
6 //%%  $XConsortium: ttChooser_stubs.C.src /main/3 1995/11/06 17:14:10 rswiston $
7 /*** DTB_USER_CODE_END   ^^^ Add file header above ^^^ ***/
8
9 /*
10  * File: ttChooser_stubs.c
11  * Contains: Module callbacks and connection functions
12  *
13  * This file was generated by dtcodegen, from module ttChooser
14  *
15  * Any text may be added between the DTB_USER_CODE_START and
16  * DTB_USER_CODE_END comments (even non-C code). Descriptive comments
17  * are provided only as an aid.
18  *
19  *  ** EDIT ONLY WITHIN SECTIONS MARKED WITH DTB_USER_CODE COMMENTS.  **
20  *  ** ALL OTHER MODIFICATIONS WILL BE OVERWRITTEN. DO NOT MODIFY OR  **
21  *  ** DELETE THE GENERATED COMMENTS!                                 **
22  */
23
24 #include <stdint.h>
25 #include <stdio.h>
26 #include <Xm/Xm.h>
27 #include "dtb_utils.h"
28 #include "ttChooser_ui.h"
29
30 /*
31  * Header files for cross-module connections
32  */
33 #include "ttsnoop_ui.h"
34
35
36 /**************************************************************************
37  *** DTB_USER_CODE_START
38  ***
39  *** All necessary header files have been included.
40  ***
41  *** Add include files, types, macros, externs, and user functions here.
42  ***/
43
44 #include <stdio.h>
45
46 #include <sstream>
47
48 #include <Xm/TextF.h>
49 #include <Xm/List.h>
50 #include "DtTt.h"
51
52 void
53 _DtTtChooserSet(
54         _DtTtChooserAction      choice,
55         void *                  entity
56 )
57 {
58     DtbTtChooserChooserInfo instance = &dtb_tt_chooser_chooser;
59     if (! instance->initialized) {
60             dtb_tt_chooser_chooser_initialize(
61                         instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin );
62     }
63     char *okString;
64     char *title;
65     char *valueLabel;
66     char *valuesLabel;
67     switch (choice) {
68         case _DtTtChooserNone:
69             return;
70         case _DtTtChooserMessageOpen:
71             okString = "Open";
72             title = "Open Tt_message";
73             break;
74         case _DtTtChooserMessageCreateStandard:
75             okString = "Create";
76             title = "Create Standard Tt_message";
77             break;
78         case _DtTtChooserMessageOpSet:
79             okString = "Set";
80             title = "tt_message_op_set";
81             break;
82         case _DtTtChooserMessageHandlerSet:
83             okString = "Set";
84             title = "tt_message_handler_set";
85             break;
86         case _DtTtChooserMessageDestroy:
87             okString = "Destroy";
88             title = "tt_message_destroy";
89             break;
90         case _DtTtChooserPatternOpen:
91             okString = "Open";
92             title = "Open Tt_pattern";
93             break;
94         case _DtTtChooserPatternOpAdd:
95             okString = "Add";
96             title = "tt_pattern_op_add";
97             break;
98         case _DtTtChooserPatternSenderAdd:
99             okString = "Add";
100             title = "tt_pattern_sender_add";
101             break;
102         case _DtTtChooserPatternDestroy:
103             okString = "Destroy";
104             title = "tt_pattern_destroy";
105             break;
106         case _DtTtChooserDtSessionQuit:
107             okString = "Quit";
108             title = "ttdt_session_quit";
109             break;
110         case _DtTtChooserDtFileDeleted:
111             okString = "Send";
112             title = "ttdt_file_event(,TTDT_DELETED)";
113             break;
114         case _DtTtChooserDtFileModified:
115             okString = "Send";
116             title = "ttdt_file_event(,TTDT_MODIFIED)";
117             break;
118         case _DtTtChooserDtFileReverted:
119             okString = "Send";
120             title = "ttdt_file_event(,TTDT_REVERTED)";
121             break;
122         case _DtTtChooserDtFileMoved:
123             okString = "Send";
124             title = "ttdt_file_event(,TTDT_MOVED)";
125             break;
126         case _DtTtChooserDtFileSaved:
127             okString = "Send";
128             title = "ttdt_file_event(,TTDT_SAVED)";
129             break;
130         case _DtTtChooserDtFileQuit:
131             okString = "Quit";
132             title = "ttdt_file_quit";
133             break;
134         case _DtTtChooserProcidSetDefault:
135             okString = "Set";
136             title = "tt_default_procid_set";
137             break;
138         case _DtTtChooserProcidSuspend:
139             okString = "Remove";
140             title = "XtRemoveInput";
141             break;
142         case _DtTtChooserProcidResume:
143             okString = "Add";
144             title = "XtAppAddInput";
145             break;
146         case _DtTtChooserDtProcidClose:
147             okString = "Close";
148             title = "ttdt_close";
149             break;
150     }
151     DtTtType type;
152     switch (choice) {
153         case _DtTtChooserNone:
154             return;
155         case _DtTtChooserMessageOpSet:
156         case _DtTtChooserPatternOpAdd:
157         case _DtTtChooserMessageCreateStandard:
158             valueLabel = "Op:";
159             valuesLabel = "Standard Op";
160             type = DTTT_OP;
161             break;
162         case _DtTtChooserMessageOpen:
163         case _DtTtChooserMessageDestroy:
164             valueLabel = "Tt_message:";
165             valuesLabel = "Tt_message";
166             type = DTTT_MESSAGE;
167             break;
168         case _DtTtChooserPatternOpen:
169         case _DtTtChooserPatternDestroy:
170             valueLabel = "Tt_pattern:";
171             valuesLabel = "Tt_pattern";
172             type = DTTT_PATTERN;
173             break;
174         case _DtTtChooserDtSessionQuit:
175             valueLabel = "Tt_pattern *:";
176             valuesLabel = "Desktop-joined session";
177             type = DTTT_DTSESSION;
178             break;
179         case _DtTtChooserDtFileDeleted:
180         case _DtTtChooserDtFileModified:
181         case _DtTtChooserDtFileReverted:
182         case _DtTtChooserDtFileMoved:
183         case _DtTtChooserDtFileSaved:
184         case _DtTtChooserDtFileQuit:
185             valueLabel = "Tt_pattern *:";
186             valuesLabel = "Desktop-joined file";
187             type = DTTT_DTFILE;
188             break;
189         case _DtTtChooserMessageHandlerSet:
190         case _DtTtChooserPatternSenderAdd:
191         case _DtTtChooserProcidSetDefault:
192         case _DtTtChooserProcidSuspend:
193         case _DtTtChooserProcidResume:
194         case _DtTtChooserDtProcidClose:
195             valueLabel = "Procid:";
196             valuesLabel = "Procid";
197             type = DTTT_PROCID;
198             break;
199     }
200     DtTtSetLabel( instance->chooserOkButton, okString );
201     DtTtSetLabel( instance->chooserText_label, valueLabel );
202
203     int itemCount;
204     XmString *items = _DtTtChoices( type, &itemCount );
205     XtVaSetValues( instance->chooserList,
206                    XmNitemCount, itemCount,
207                    XmNitems, items,
208                    NULL );
209     XmListDeselectAllItems( instance->chooserList );
210     XmTextFieldSetString( instance->chooserText, 0 );
211     XtVaSetValues( instance->chooser, XmNtitle, title, NULL );
212
213     std::ostringstream valuesStream;
214     valuesStream << itemCount << " " << valuesLabel;
215     if (itemCount != 1) valuesStream << "s";
216     valuesStream << ends;
217     DtTtSetLabel( instance->chooserList_label, valuesStream.str().c_str() );
218
219     // Remember dialog mode, entity
220     XtVaSetValues( instance->chooserOkButton, XmNuserData, choice, NULL );
221     XtVaSetValues( instance->chooserCancelButton, XmNuserData, entity, NULL );
222
223     XtManageChild( instance->chooser_shellform );
224 }
225
226 /*** DTB_USER_CODE_END
227  ***
228  *** End of user code section
229  ***
230  **************************************************************************/
231
232
233
234 void 
235 ttChooser_chooserCancelButton_CB1(
236     Widget widget,
237     XtPointer clientData,
238     XtPointer callData
239 )
240 {
241     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
242     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
243     
244     DtbTtChooserChooserInfo     instance = (DtbTtChooserChooserInfo)clientData;
245     
246     if (!(instance->initialized))
247     {
248         dtb_tt_chooser_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
249     }
250     XtUnmanageChild(instance->chooser_shellform);
251     
252     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
253     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
254 }
255
256
257 void 
258 choiceSelected(
259     Widget widget,
260     XtPointer clientData,
261     XtPointer callData
262 )
263 {
264     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
265     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
266     
267     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
268     DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
269     XmListCallbackStruct *info = (XmListCallbackStruct *)callData;
270     int choice;
271     XtVaGetValues( instance->chooserOkButton, XmNuserData, &choice, NULL );
272     DtTtType type;
273     Boolean isString = False;
274     switch ((_DtTtChooserAction)choice) {
275         case _DtTtChooserNone:
276             return;
277         case _DtTtChooserMessageOpSet:
278         case _DtTtChooserPatternOpAdd:
279         case _DtTtChooserMessageCreateStandard:
280             isString = True;
281             type = DTTT_OP;
282             break;
283         case _DtTtChooserMessageOpen:
284         case _DtTtChooserMessageDestroy:
285             type = DTTT_MESSAGE;
286             break;
287         case _DtTtChooserPatternOpen:
288         case _DtTtChooserPatternDestroy:
289             type = DTTT_PATTERN;
290             break;
291         case _DtTtChooserDtSessionQuit:
292             type = DTTT_DTSESSION;
293             break;
294         case _DtTtChooserDtFileDeleted:
295         case _DtTtChooserDtFileModified:
296         case _DtTtChooserDtFileReverted:
297         case _DtTtChooserDtFileMoved:
298         case _DtTtChooserDtFileSaved:
299         case _DtTtChooserDtFileQuit:
300             type = DTTT_DTFILE;
301             break;
302         case _DtTtChooserMessageHandlerSet:
303         case _DtTtChooserPatternSenderAdd:
304         case _DtTtChooserProcidSetDefault:
305         case _DtTtChooserProcidSuspend:
306         case _DtTtChooserProcidResume:
307         case _DtTtChooserDtProcidClose:
308             isString = True;
309             type = DTTT_PROCID;
310             break;
311     }
312     void *entity = DtTtNth( type, info->item_position - 1 );
313     std::ostringstream entityName;
314     if (isString) {
315             entityName << (char *)entity << ends;
316     } else {
317             entityName << entity << ends;
318     }
319     XmTextFieldSetString( instance->chooserText, const_cast<char *>(entityName.str().c_str()) );
320     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
321 }
322
323
324 void 
325 choiceOkayed(
326     Widget widget,
327     XtPointer clientData,
328     XtPointer callData
329 )
330 {
331     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
332     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
333     
334     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
335     DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
336     char *text = XmTextFieldGetString( instance->chooserText );
337     int ival;
338     XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, NULL );
339     _DtTtChooserAction choice = (_DtTtChooserAction)ival;
340     Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
341     switch (choice) {
342             int ival, fd;
343             Tt_message msg;
344             Tt_pattern pat;
345             Tt_pattern *pats;
346             Tt_status status;
347             char *func, *procid;
348             XtPointer xtPtr;
349             XtInputId id;
350             Widget newWidget;
351         case _DtTtChooserNone:
352             return;
353         case _DtTtChooserMessageCreateStandard:
354             msg = tttk_message_create( text );
355             status = DtTtSetLabel( label, "tt_message_create()", msg );
356             if (tt_is_err( status )) {
357                     break;
358             }
359             DtTtCreated( DTTT_MESSAGE, msg );
360             newWidget = DtTtMessageWidgetCreate(
361                                 dtb_ttsnoop_ttsnoop_win.ttsnoopWin, msg,
362                                 DtTtMessageWidgetUpdate );
363             status = tt_ptr_error( newWidget );
364             if (tt_is_err( status )) {
365                     return;
366             }
367             XRaiseWindow( XtDisplay( newWidget ), XtWindow( newWidget ));
368             XtUnmanageChild( instance->chooser_shellform );
369             break;
370         case _DtTtChooserMessageOpSet:
371             XtVaGetValues( instance->chooserCancelButton,
372                            XmNuserData, &xtPtr, NULL );
373             _DtTtMessageUpdate( (Tt_message)xtPtr, choice, text );
374             XtUnmanageChild( instance->chooser_shellform );
375             break;
376         case _DtTtChooserPatternOpAdd:
377             XtVaGetValues( instance->chooserCancelButton,
378                            XmNuserData, &xtPtr, NULL );
379             _DtTtPatternUpdate( (Tt_pattern)xtPtr, choice, text );
380             XtUnmanageChild( instance->chooser_shellform );
381             break;
382         case _DtTtChooserMessageHandlerSet:
383             XtVaGetValues( instance->chooserCancelButton,
384                            XmNuserData, &xtPtr, NULL );
385             _DtTtMessageUpdate( (Tt_message)xtPtr, choice, text );
386             XtUnmanageChild( instance->chooser_shellform );
387             break;
388         case _DtTtChooserPatternSenderAdd:
389             XtVaGetValues( instance->chooserCancelButton,
390                            XmNuserData, &xtPtr, NULL );
391             _DtTtPatternUpdate( (Tt_pattern)xtPtr, choice, text );
392             XtUnmanageChild( instance->chooser_shellform );
393             break;
394         case _DtTtChooserMessageOpen:
395         case _DtTtChooserMessageDestroy:
396             if (text == 0) {
397                     return;
398             }
399             ival = 0;
400             sscanf( text, "%i", &ival );
401             msg = (Tt_message) (intptr_t) ival;
402             if (DtTtIndex( DTTT_MESSAGE, msg ) < 0) {
403                     return;
404             }
405             if (choice == _DtTtChooserMessageOpen) {
406                     Widget newWidget = DtTtMessageWidgetCreate(
407                                         dtb_ttsnoop_ttsnoop_win.ttsnoopWin,
408                                         msg, DtTtMessageWidgetUpdate );
409                     Tt_status status = tt_ptr_error( newWidget );
410                     if (tt_is_err( status )) {
411                             return;
412                     }
413                     XRaiseWindow( XtDisplay( newWidget ), XtWindow( newWidget ));
414             } else {
415                     Widget msgWidget = DtTtMessageWidget( msg );
416                     Tt_status status = tttk_message_destroy( msg );
417                     if (status == TT_WRN_STOPPED) {
418                             DtTtSetLabel( label, "tttk_message_destroy()",
419                                           status );
420                             return;
421                     }
422                     DtTtDestroyed( DTTT_MESSAGE, msg );
423                     if (msgWidget != 0) {
424                             XtDestroyWidget( msgWidget );
425                     }
426                     _DtTtChooserSet( _DtTtChooserMessageDestroy );
427             }
428             break;
429         case _DtTtChooserPatternOpen:
430         case _DtTtChooserPatternDestroy:
431             if (text == 0) {
432                     return;
433             }
434             ival = 0;
435             sscanf( text, "%i", &ival );
436             pat = (Tt_pattern) (intptr_t) ival;
437             if (DtTtIndex( DTTT_PATTERN, pat ) < 0) {
438                     return;
439             }
440             if (choice == _DtTtChooserPatternOpen) {
441                     Widget newWidget = DtTtPatternWidgetCreate(
442                                         dtb_ttsnoop_ttsnoop_win.ttsnoopWin,
443                                         pat, 0 );
444                     Tt_status status = tt_ptr_error( newWidget );
445                     if (tt_is_err( status )) {
446                             return;
447                     }
448                     XRaiseWindow( XtDisplay( newWidget ), XtWindow( newWidget ));
449             } else {
450                     Widget patWidget = DtTtPatternWidget( pat );
451                     Tt_status status = tt_pattern_destroy( pat );
452                     if (status == TT_WRN_STOPPED) {
453                             DtTtSetLabel( label, "tt_pattern_destroy()",
454                                           status );
455                             return;
456                     }
457                     DtTtDestroyed( DTTT_PATTERN, pat );
458                     if (patWidget != 0) {
459                             XtDestroyWidget( patWidget );
460                     }
461                     _DtTtChooserSet( _DtTtChooserPatternDestroy );
462             }
463             break;
464         case _DtTtChooserDtSessionQuit:
465             if (text == 0) {
466                     return;
467             }
468             ival = 0;
469             sscanf( text, "%i", &ival );
470             pats = (Tt_pattern *) (intptr_t) ival;
471             if (DtTtIndex( DTTT_DTSESSION, pats ) < 0) {
472                     return;
473             }
474             text = (char *)tt_pattern_user( *pats, _DtTtPatsNameKey );
475             if (tt_is_err( tt_ptr_error( text )) || text == 0) {
476                     return;
477             }
478             status = ttdt_session_quit( text, pats, 1 );
479             DtTtSetLabel( label, "ttdt_session_quit()", status );
480             if (status == TT_OK) {
481                     DtTtDestroyed( DTTT_DTSESSION, pats );
482             }
483             XtUnmanageChild( instance->chooser_shellform );
484             break;
485         case _DtTtChooserDtFileDeleted:
486         case _DtTtChooserDtFileModified:
487         case _DtTtChooserDtFileReverted:
488         case _DtTtChooserDtFileMoved:
489         case _DtTtChooserDtFileSaved:
490         case _DtTtChooserDtFileQuit:
491             if (text == 0) {
492                     return;
493             }
494             ival = 0;
495             sscanf( text, "%i", &ival );
496             pats = (Tt_pattern *) (intptr_t) ival;
497             if (DtTtIndex( DTTT_DTFILE, pats ) < 0) {
498                     return;
499             }
500             switch ((_DtTtChooserAction)choice) {
501                 case _DtTtChooserDtFileModified:
502                     status = ttdt_file_event( 0, TTDT_MODIFIED, pats, 1 );
503                     func = "ttdt_file_event(,TTDT_MODIFIED)";
504                     break;
505                 case _DtTtChooserDtFileReverted:
506                     status = ttdt_file_event( 0, TTDT_REVERTED, pats, 1 );
507                     func = "ttdt_file_event(,TTDT_REVERTED)";
508                     break;
509                 case _DtTtChooserDtFileSaved:
510                     status = ttdt_file_event( 0, TTDT_SAVED, pats, 1 );
511                     func = "ttdt_file_event(,TTDT_SAVED)";
512                     break;
513                 case _DtTtChooserDtFileQuit:
514                     status = ttdt_file_quit( pats, 1 );
515                     func = "ttdt_file_quit()";
516                     if (status == TT_OK) {
517                             DtTtDestroyed( DTTT_DTFILE, pats );
518                     }
519                     break;
520             }
521             DtTtSetLabel( label, func, status );
522             XtUnmanageChild( instance->chooser_shellform );
523         case _DtTtChooserProcidSetDefault:
524             status = tt_default_procid_set( text );
525             DtTtSetLabel( label, "tt_default_procid_set()", status );
526             XtUnmanageChild( instance->chooser_shellform );
527             break;
528         case _DtTtChooserProcidSuspend:
529             ival = DtTtIndex( DTTT_PROCID, text );
530             if (ival < 0) {
531                     return;
532             }
533             id = (XtInputId)DtTtNthClientDatum( DTTT_PROCID, ival );
534             if (id != 0) {
535                     XtRemoveInput( id );
536                     DtTtSetLabel( label, "XtRemoveInput()" );
537             }
538             XtUnmanageChild( instance->chooser_shellform );
539             break;
540         case _DtTtChooserProcidResume:
541             ival = DtTtIndex( DTTT_PROCID, text );
542             if (ival < 0) {
543                     return;
544             }
545             fd = tt_procid_fd( text );
546             if (tt_is_err( tt_int_error( fd ))) {
547                     return;
548             }
549             id = XtAppAddInput( XtWidgetToApplicationContext( label ),
550                                 fd, (XtPointer)XtInputReadMask,
551                                 tttk_Xt_input_handler, text );
552             DtTtSetLabel( label, "XtAppAddInput()", (int)id );
553             if (id != 0) {
554                     DtTtNthClientDatumSet( DTTT_PROCID, ival, (void *)id );
555             }
556             XtUnmanageChild( instance->chooser_shellform );
557             break;
558         case _DtTtChooserDtProcidClose:
559             status = ttdt_close( text, 0, 1 );
560             DtTtSetLabel( label, "ttdt_close()", status );
561             ival = DtTtIndex( DTTT_PROCID, text );
562             if (ival < 0) {
563                     return;
564             }
565             id = (XtInputId)DtTtNthClientDatum( DTTT_PROCID, ival );
566             if (id != 0) {
567                     XtRemoveInput( id );
568             }
569             DtTtDestroyed( DTTT_PROCID, text );
570             XtUnmanageChild( instance->chooser_shellform );
571             break;
572     }
573     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
574 }
575
576
577 void 
578 ttChooserHelp(
579     Widget widget,
580     XtPointer clientData,
581     XtPointer callData
582 )
583 {
584     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
585     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
586     
587     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
588     DtbTtChooserChooserInfo instance = (DtbTtChooserChooserInfo)clientData;
589     int ival;
590     XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, NULL );
591     _DtTtChooserAction choice = (_DtTtChooserAction)ival;
592     Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
593     switch (choice) {
594             char *op;
595         case _DtTtChooserNone:
596             return;
597         case _DtTtChooserMessageOpSet:
598         case _DtTtChooserMessageCreateStandard:
599         case _DtTtChooserPatternOpAdd:
600             op = XmTextFieldGetString( instance->chooserText );
601             if (op != 0) {
602                     _DtMan( label, op );
603             }
604             if (choice == _DtTtChooserMessageOpSet) {
605                     _DtMan( label, "tt_message_op_set" );
606             } else {
607                     _DtMan( label, "tt_pattern_op_add" );
608             }
609             break;
610         case _DtTtChooserMessageOpen:
611             _DtMan( label, "tt_message_print" );
612             break;
613         case _DtTtChooserMessageHandlerSet:
614             _DtMan( label, "tt_message_handler_set" );
615             break;
616         case _DtTtChooserMessageDestroy:
617             _DtMan( label, "tt_message_destroy" );
618             break;
619         case _DtTtChooserPatternOpen:
620             _DtMan( label, "tt_pattern_print" );
621             break;
622         case _DtTtChooserPatternSenderAdd:
623             _DtMan( label, "tt_pattern_sender_add" );
624             break;
625         case _DtTtChooserPatternDestroy:
626             _DtMan( label, "tt_pattern_destroy" );
627             break;
628         case _DtTtChooserDtSessionQuit:
629             _DtMan( label, "ttdt_session_quit" );
630             break;
631         case _DtTtChooserDtFileDeleted:
632         case _DtTtChooserDtFileModified:
633         case _DtTtChooserDtFileReverted:
634         case _DtTtChooserDtFileMoved:
635         case _DtTtChooserDtFileSaved:
636             _DtMan( label, "ttdt_file_event" );
637             break;
638         case _DtTtChooserDtFileQuit:
639             _DtMan( label, "ttdt_file_quit" );
640             break;
641         case _DtTtChooserProcidSetDefault:
642             _DtMan( label, "tt_default_procid_set" );
643             break;
644         case _DtTtChooserProcidSuspend:
645             _DtMan( label, "XtRemoveInput" );
646             break;
647         case _DtTtChooserProcidResume:
648             _DtMan( label, "XtAppAddInput" );
649             break;
650         case _DtTtChooserDtProcidClose:
651             _DtMan( label, "ttdt_close" );
652             break;
653     }
654     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
655 }
656
657
658
659 /**************************************************************************
660  *** DTB_USER_CODE_START
661  ***
662  *** All automatically-generated data and functions have been defined.
663  ***
664  *** Add new functions here, or at the top of the file.
665  ***/
666
667 /*** DTB_USER_CODE_END
668  ***
669  *** End of user code section
670  ***
671  **************************************************************************/
672
673