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