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: callbackChooser_stubs.C.src /main/3 1995/11/06 17:12:25 rswiston $
7 /*** DTB_USER_CODE_END ^^^ Add file header above ^^^ ***/
10 * File: callbackChooser_stubs.c
11 * Contains: Module callbacks and connection functions
13 * This file was generated by dtcodegen, from module callbackChooser
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.
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! **
26 #include "dtb_utils.h"
27 #include "callbackChooser_ui.h"
30 * Header files for cross-module connections
32 #include "ttsnoop_ui.h"
35 /**************************************************************************
36 *** DTB_USER_CODE_START
38 *** All necessary header files have been included.
40 *** Add include files, types, macros, externs, and user functions here.
48 #include <strstream.h>
53 extern ofstream snoopStream;
72 DtbCallbackChooserCallbackChooserInfo instance =
73 &dtb_callback_chooser_callback_chooser;
74 if (! instance->initialized) {
75 dtb_callback_chooser_callback_chooser_initialize(
76 instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin );
78 XtVaSetValues( instance->callbackChooser, XmNtitle, title, 0 );
79 XtPointer xtPtr = (XtPointer)isMessage;
80 XtVaSetValues( instance->callbackAddButton, XmNuserData, xtPtr, 0 );
81 XtVaSetValues( instance->callbackAddCancelButton,
82 XmNuserData, entity, 0 );
83 XtManageChild( instance->callbackChooser_shellform );
91 _DtTtMsgCbChooserSet( pat, 0, "tt_pattern_callback_add" );
99 _DtTtMsgCbChooserSet( msg, 1, "tt_message_callback_add" );
102 static Tt_callback_action
108 DtTtCreated( DTTT_MESSAGE, msg );
109 snoopIt( "Tt_message_callback", (void *) openIt, msg, pat, True );
110 Widget newWidget = DtTtMessageWidgetCreate(
111 dtb_ttsnoop_ttsnoop_win.ttsnoopWin,
112 msg, DtTtMessageWidgetUpdate );
113 if (! tt_is_err( tt_ptr_error( newWidget ) )) {
114 XRaiseWindow( XtDisplay( newWidget ),
115 XtWindow( newWidget ));
117 return TT_CALLBACK_PROCESSED;
120 static Tt_callback_action
124 Tt_message_callback func,
130 DtTtCreated( DTTT_MESSAGE, msg );
131 if (snoopStream.bad()) {
132 return TT_CALLBACK_CONTINUE;
134 snoopStream << "(Tt_message_callback)" << func << "( ";
135 snoopStream << "(Tt_message)" << (void *)msg << ", ";
136 snoopStream << "(Tt_pattern)" << (void *)pat << " ): ";
137 char *msgString = tt_message_print( msg );
138 Tt_status status = tt_ptr_error( msgString );
139 if (status == TT_OK) {
140 snoopStream << endl << msgString << endl;
142 snoopStream << status << endl;
144 tt_free( msgString );
145 Tt_status (*actionFunc)(Tt_message) = 0;
146 char *actionFuncName = 0;
152 actionFunc = tt_message_reply;
153 actionFuncName = "tt_message_reply";
156 actionFunc = tt_message_fail;
157 actionFuncName = "tt_message_fail";
160 actionFunc = tt_message_reject;
161 actionFuncName = "tt_message_reject";
164 actionFunc = tt_message_accept;
165 actionFuncName = "tt_message_accept";
171 if (actionFunc != 0) {
172 snoopStream << func << "(): " << actionFuncName << "("
174 << (*actionFunc)( msg ) << endl;
177 status = tttk_message_destroy( msg );
178 snoopStream << func << "(): tttk_message_destroy("
179 << msg << ") = " << status << endl;
180 if (status == TT_OK) {
181 DtTtDestroyed( DTTT_MESSAGE, msg );
184 Tt_callback_action val = TT_CALLBACK_PROCESSED;
186 val = TT_CALLBACK_CONTINUE;
188 snoopStream << func << "(): return " << val << endl;
192 static Tt_callback_action
193 mcbJustPrint_Cont( Tt_message m, Tt_pattern p ) {
194 return ucb( m, p, mcbJustPrint_Cont, DoJustPrint, 0, 0 ); }
195 static Tt_callback_action
196 mcbJustPrint_Done( Tt_message m, Tt_pattern p ) {
197 return ucb( m, p, mcbJustPrint_Done, DoJustPrint, 0, 1 ); }
198 static Tt_callback_action
199 mcbJustPrint_Destroy_Cont( Tt_message m, Tt_pattern p ) {
200 return ucb( m, p, mcbJustPrint_Destroy_Cont, DoJustPrint, 1, 0 ); }
201 static Tt_callback_action
202 mcbJustPrint_Destroy_Done( Tt_message m, Tt_pattern p ) {
203 return ucb( m, p, mcbJustPrint_Destroy_Done, DoJustPrint, 1, 1 ); }
204 static Tt_callback_action
205 mcbReply_Cont( Tt_message m, Tt_pattern p ) {
206 return ucb( m, p, mcbReply_Cont, DoReply, 0, 0 ); }
207 static Tt_callback_action
208 mcbReply_Done( Tt_message m, Tt_pattern p ) {
209 return ucb( m, p, mcbReply_Done, DoReply, 0, 1 ); }
210 static Tt_callback_action
211 mcbReply_Destroy_Cont( Tt_message m, Tt_pattern p ) {
212 return ucb( m, p, mcbReply_Destroy_Cont, DoReply, 1, 0 ); }
213 static Tt_callback_action
214 mcbReply_Destroy_Done( Tt_message m, Tt_pattern p ) {
215 return ucb( m, p, mcbReply_Destroy_Done, DoReply, 1, 1 ); }
216 static Tt_callback_action
217 mcbFail_Cont( Tt_message m, Tt_pattern p ) {
218 return ucb( m, p, mcbFail_Cont, DoFail, 0, 0 ); }
219 static Tt_callback_action
220 mcbFail_Done( Tt_message m, Tt_pattern p ) {
221 return ucb( m, p, mcbFail_Done, DoFail, 0, 1 ); }
222 static Tt_callback_action
223 mcbFail_Destroy_Cont( Tt_message m, Tt_pattern p ) {
224 return ucb( m, p, mcbFail_Destroy_Cont, DoFail, 1, 0 ); }
225 static Tt_callback_action
226 mcbFail_Destroy_Done( Tt_message m, Tt_pattern p ) {
227 return ucb( m, p, mcbFail_Destroy_Done, DoFail, 1, 1 ); }
228 static Tt_callback_action
229 mcbReject_Cont( Tt_message m, Tt_pattern p ) {
230 return ucb( m, p, mcbReject_Cont, DoReject, 0, 0 ); }
231 static Tt_callback_action
232 mcbReject_Done( Tt_message m, Tt_pattern p ) {
233 return ucb( m, p, mcbReject_Done, DoReject, 0, 1 ); }
234 static Tt_callback_action
235 mcbReject_Destroy_Cont( Tt_message m, Tt_pattern p ) {
236 return ucb( m, p, mcbReject_Destroy_Cont, DoReject, 1, 0 ); }
237 static Tt_callback_action
238 mcbReject_Destroy_Done( Tt_message m, Tt_pattern p ) {
239 return ucb( m, p, mcbReject_Destroy_Done, DoReject, 1, 1 ); }
240 static Tt_callback_action
241 mcbAccept_Cont( Tt_message m, Tt_pattern p ) {
242 return ucb( m, p, mcbAccept_Cont, DoAccept, 0, 0 ); }
243 static Tt_callback_action
244 mcbAccept_Done( Tt_message m, Tt_pattern p ) {
245 return ucb( m, p, mcbAccept_Done, DoAccept, 0, 1 ); }
246 static Tt_callback_action
247 mcbAccept_Destroy_Cont( Tt_message m, Tt_pattern p ) {
248 return ucb( m, p, mcbAccept_Destroy_Cont, DoAccept, 1, 0 ); }
249 static Tt_callback_action
250 mcbAccept_Destroy_Done( Tt_message m, Tt_pattern p ) {
251 return ucb( m, p, mcbAccept_Destroy_Done, DoAccept, 1, 1 ); }
252 static Tt_callback_action
253 mcbAbstain_Cont( Tt_message m, Tt_pattern p ) {
254 return ucb( m, p, mcbAbstain_Cont, DoAbstain, 0, 0 ); }
255 static Tt_callback_action
256 mcbAbstain_Done( Tt_message m, Tt_pattern p ) {
257 return ucb( m, p, mcbAbstain_Done, DoAbstain, 0, 1 ); }
258 static Tt_callback_action
259 mcbAbstain_Destroy_Cont( Tt_message m, Tt_pattern p ) {
260 return ucb( m, p, mcbAbstain_Destroy_Cont, DoAbstain, 1, 0 ); }
261 static Tt_callback_action
262 mcbAbstain_Destroy_Done( Tt_message m, Tt_pattern p ) {
263 return ucb( m, p, mcbAbstain_Destroy_Done, DoAbstain, 1, 1 ); }
265 Tt_message_callback callbacks[] =
269 mcbJustPrint_Destroy_Cont,
270 mcbJustPrint_Destroy_Done,
273 mcbReply_Destroy_Cont,
274 mcbReply_Destroy_Done,
277 mcbFail_Destroy_Cont,
278 mcbFail_Destroy_Done,
281 mcbReject_Destroy_Cont,
282 mcbReject_Destroy_Done,
285 mcbAccept_Destroy_Cont,
286 mcbAccept_Destroy_Done,
289 mcbAbstain_Destroy_Cont,
290 mcbAbstain_Destroy_Done
293 /*** DTB_USER_CODE_END
295 *** End of user code section
297 **************************************************************************/
302 callbackChooser_callbackAddCancelButton_CB1(
304 XtPointer clientData,
308 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
309 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
311 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
313 if (!(instance->initialized))
315 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
317 XtUnmanageChild(instance->callbackChooser_shellform);
319 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
320 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
325 callbackChooser_msgActionChoice_Open_item_CB1(
327 XtPointer clientData,
331 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
332 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
334 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
336 if (!(instance->initialized))
338 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
341 XtSetSensitive(instance->msgDestroyChoice, False);
343 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
344 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
349 callbackChooser_msgActionChoice_Open_item_CB2(
351 XtPointer clientData,
355 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
356 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
358 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
360 if (!(instance->initialized))
362 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
365 XtSetSensitive(instance->msgReturnChoice, False);
367 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
368 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
373 callbackChooser_msgActionChoice_Print_item_CB1(
375 XtPointer clientData,
379 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
380 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
382 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
384 if (!(instance->initialized))
386 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
389 XtSetSensitive(instance->msgDestroyChoice, True);
391 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
392 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
397 callbackChooser_msgActionChoice_Accept_item_CB1(
399 XtPointer clientData,
403 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
404 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
406 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
408 if (!(instance->initialized))
410 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
413 XtSetSensitive(instance->msgDestroyChoice, True);
415 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
416 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
421 callbackChooser_msgActionChoice_Accept_item_CB2(
423 XtPointer clientData,
427 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
428 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
430 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
432 if (!(instance->initialized))
434 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
437 XtSetSensitive(instance->msgReturnChoice, True);
439 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
440 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
445 callbackChooser_msgActionChoice_Print_item_CB2(
447 XtPointer clientData,
451 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
452 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
454 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
456 if (!(instance->initialized))
458 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
461 XtSetSensitive(instance->msgReturnChoice, True);
463 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
464 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
469 callbackChooser_msgActionChoice_Abstain_item_CB1(
471 XtPointer clientData,
475 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
476 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
478 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
480 if (!(instance->initialized))
482 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
485 XtSetSensitive(instance->msgReturnChoice, True);
487 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
488 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
493 callbackChooser_msgActionChoice_Abstain_item_CB2(
495 XtPointer clientData,
499 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
500 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
502 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
504 if (!(instance->initialized))
506 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
509 XtSetSensitive(instance->msgDestroyChoice, True);
511 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
512 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
517 callbackChooser_msgActionChoice_Reply_item_CB1(
519 XtPointer clientData,
523 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
524 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
526 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
528 if (!(instance->initialized))
530 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
533 XtSetSensitive(instance->msgDestroyChoice, True);
535 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
536 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
541 callbackChooser_msgActionChoice_Reply_item_CB2(
543 XtPointer clientData,
547 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
548 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
550 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
552 if (!(instance->initialized))
554 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
557 XtSetSensitive(instance->msgReturnChoice, True);
559 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
560 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
565 callbackChooser_msgActionChoice_Reject_item_CB1(
567 XtPointer clientData,
571 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
572 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
574 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
576 if (!(instance->initialized))
578 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
581 XtSetSensitive(instance->msgReturnChoice, True);
583 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
584 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
589 callbackChooser_msgActionChoice_Reject_item_CB2(
591 XtPointer clientData,
595 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
596 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
598 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
600 if (!(instance->initialized))
602 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
605 XtSetSensitive(instance->msgDestroyChoice, True);
607 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
608 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
613 callbackChooser_msgActionChoice_Fail_item_CB1(
615 XtPointer clientData,
619 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
620 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
622 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
624 if (!(instance->initialized))
626 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
629 XtSetSensitive(instance->msgDestroyChoice, True);
631 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
632 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
637 callbackChooser_msgActionChoice_Fail_item_CB2(
639 XtPointer clientData,
643 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
644 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
646 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
648 if (!(instance->initialized))
650 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
653 XtSetSensitive(instance->msgReturnChoice, True);
655 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
656 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
663 XtPointer clientData,
667 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
668 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
670 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
671 DtbCallbackChooserCallbackChooserInfo instance =
672 (DtbCallbackChooserCallbackChooserInfo)clientData;
677 XtVaGetValues( instance->callbackAddButton, XmNuserData, &xtPtr, 0 );
678 isMessage = (int) (long) xtPtr;
679 XtVaGetValues( instance->callbackAddCancelButton, XmNuserData, &xtPtr, 0 );
680 msg = (Tt_message)xtPtr;
681 pat = (Tt_pattern)xtPtr;
683 What2Do action = DoOpen;
685 XtVaGetValues( instance->msgActionChoice,
686 XmNmenuHistory, &actionWidget, 0 );
687 if (actionWidget == instance->msgActionChoice_items.Open_item) {
689 } else if (actionWidget == instance->msgActionChoice_items.Print_item) {
690 action = DoJustPrint;
691 } else if (actionWidget == instance->msgActionChoice_items.Accept_item) {
693 } else if (actionWidget == instance->msgActionChoice_items.Abstain_item) {
695 } else if (actionWidget == instance->msgActionChoice_items.Reply_item) {
697 } else if (actionWidget == instance->msgActionChoice_items.Reject_item) {
699 } else if (actionWidget == instance->msgActionChoice_items.Fail_item) {
705 XtVaGetValues( instance->msgDestroyChoice_items.Destroy_item,
706 XmNset, &destroyBool, 0 );
711 Tt_callback_action returnVal = TT_CALLBACK_CONTINUE;
713 XtVaGetValues( instance->msgReturnChoice,
714 XmNmenuHistory, &returnWidget, 0 );
715 if (returnWidget == instance->msgReturnChoice_items.PROCESSED_item) {
716 returnVal = TT_CALLBACK_PROCESSED;
719 Tt_message_callback func;
730 func = callbacks[ ((int)action)*4 + destroy*2 + (int)returnVal ];
734 _DtTtMessageUpdate( msg, func );
736 _DtTtPatternUpdate( pat, func );
738 XtUnmanageChild( instance->callbackChooser_shellform );
739 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
746 XtPointer clientData,
750 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
751 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
753 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
754 DtbCallbackChooserCallbackChooserInfo instance =
755 (DtbCallbackChooserCallbackChooserInfo)clientData;
758 XtVaGetValues( instance->callbackAddButton, XmNuserData, &xtPtr, 0 );
759 isMessage = (int) (long) xtPtr;
760 Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
762 _DtMan( label, "tt_message_callback_add" );
764 _DtMan( label, "tt_pattern_callback_add" );
766 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
771 /**************************************************************************
772 *** DTB_USER_CODE_START
774 *** All automatically-generated data and functions have been defined.
776 *** Add new functions here, or at the top of the file.
779 /*** DTB_USER_CODE_END
781 *** End of user code section
783 **************************************************************************/