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! **
27 #include "dtb_utils.h"
28 #include "callbackChooser_ui.h"
31 * Header files for cross-module connections
33 #include "ttsnoop_ui.h"
36 /**************************************************************************
37 *** DTB_USER_CODE_START
39 *** All necessary header files have been included.
41 *** Add include files, types, macros, externs, and user functions here.
49 extern std::ofstream snoopStream;
68 DtbCallbackChooserCallbackChooserInfo instance =
69 &dtb_callback_chooser_callback_chooser;
70 if (! instance->initialized) {
71 dtb_callback_chooser_callback_chooser_initialize(
72 instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin );
74 XtVaSetValues( instance->callbackChooser, XmNtitle, title, NULL );
75 XtPointer xtPtr = (XtPointer) (intptr_t) isMessage;
76 XtVaSetValues( instance->callbackAddButton, XmNuserData, xtPtr, NULL );
77 XtVaSetValues( instance->callbackAddCancelButton,
78 XmNuserData, entity, NULL );
79 XtManageChild( instance->callbackChooser_shellform );
87 _DtTtMsgCbChooserSet( pat, 0, "tt_pattern_callback_add" );
95 _DtTtMsgCbChooserSet( msg, 1, "tt_message_callback_add" );
98 static Tt_callback_action
104 DtTtCreated( DTTT_MESSAGE, msg );
105 snoopIt( "Tt_message_callback", (void *) openIt, msg, pat, True );
106 Widget newWidget = DtTtMessageWidgetCreate(
107 dtb_ttsnoop_ttsnoop_win.ttsnoopWin,
108 msg, DtTtMessageWidgetUpdate );
109 if (! tt_is_err( tt_ptr_error( newWidget ) )) {
110 XRaiseWindow( XtDisplay( newWidget ),
111 XtWindow( newWidget ));
113 return TT_CALLBACK_PROCESSED;
116 static Tt_callback_action
120 Tt_message_callback func,
126 DtTtCreated( DTTT_MESSAGE, msg );
127 if (snoopStream.bad()) {
128 return TT_CALLBACK_CONTINUE;
130 snoopStream << "(Tt_message_callback)" << func << "( ";
131 snoopStream << "(Tt_message)" << (void *)msg << ", ";
132 snoopStream << "(Tt_pattern)" << (void *)pat << " ): ";
133 char *msgString = tt_message_print( msg );
134 Tt_status status = tt_ptr_error( msgString );
135 if (status == TT_OK) {
136 snoopStream << endl << msgString << endl;
138 snoopStream << status << endl;
140 tt_free( msgString );
141 Tt_status (*actionFunc)(Tt_message) = 0;
142 char *actionFuncName = 0;
148 actionFunc = tt_message_reply;
149 actionFuncName = "tt_message_reply";
152 actionFunc = tt_message_fail;
153 actionFuncName = "tt_message_fail";
156 actionFunc = tt_message_reject;
157 actionFuncName = "tt_message_reject";
160 actionFunc = tt_message_accept;
161 actionFuncName = "tt_message_accept";
167 if (actionFunc != 0) {
168 snoopStream << func << "(): " << actionFuncName << "("
170 << (*actionFunc)( msg ) << endl;
173 status = tttk_message_destroy( msg );
174 snoopStream << func << "(): tttk_message_destroy("
175 << msg << ") = " << status << endl;
176 if (status == TT_OK) {
177 DtTtDestroyed( DTTT_MESSAGE, msg );
180 Tt_callback_action val = TT_CALLBACK_PROCESSED;
182 val = TT_CALLBACK_CONTINUE;
184 snoopStream << func << "(): return " << val << endl;
188 static Tt_callback_action
189 mcbJustPrint_Cont( Tt_message m, Tt_pattern p ) {
190 return ucb( m, p, mcbJustPrint_Cont, DoJustPrint, 0, 0 ); }
191 static Tt_callback_action
192 mcbJustPrint_Done( Tt_message m, Tt_pattern p ) {
193 return ucb( m, p, mcbJustPrint_Done, DoJustPrint, 0, 1 ); }
194 static Tt_callback_action
195 mcbJustPrint_Destroy_Cont( Tt_message m, Tt_pattern p ) {
196 return ucb( m, p, mcbJustPrint_Destroy_Cont, DoJustPrint, 1, 0 ); }
197 static Tt_callback_action
198 mcbJustPrint_Destroy_Done( Tt_message m, Tt_pattern p ) {
199 return ucb( m, p, mcbJustPrint_Destroy_Done, DoJustPrint, 1, 1 ); }
200 static Tt_callback_action
201 mcbReply_Cont( Tt_message m, Tt_pattern p ) {
202 return ucb( m, p, mcbReply_Cont, DoReply, 0, 0 ); }
203 static Tt_callback_action
204 mcbReply_Done( Tt_message m, Tt_pattern p ) {
205 return ucb( m, p, mcbReply_Done, DoReply, 0, 1 ); }
206 static Tt_callback_action
207 mcbReply_Destroy_Cont( Tt_message m, Tt_pattern p ) {
208 return ucb( m, p, mcbReply_Destroy_Cont, DoReply, 1, 0 ); }
209 static Tt_callback_action
210 mcbReply_Destroy_Done( Tt_message m, Tt_pattern p ) {
211 return ucb( m, p, mcbReply_Destroy_Done, DoReply, 1, 1 ); }
212 static Tt_callback_action
213 mcbFail_Cont( Tt_message m, Tt_pattern p ) {
214 return ucb( m, p, mcbFail_Cont, DoFail, 0, 0 ); }
215 static Tt_callback_action
216 mcbFail_Done( Tt_message m, Tt_pattern p ) {
217 return ucb( m, p, mcbFail_Done, DoFail, 0, 1 ); }
218 static Tt_callback_action
219 mcbFail_Destroy_Cont( Tt_message m, Tt_pattern p ) {
220 return ucb( m, p, mcbFail_Destroy_Cont, DoFail, 1, 0 ); }
221 static Tt_callback_action
222 mcbFail_Destroy_Done( Tt_message m, Tt_pattern p ) {
223 return ucb( m, p, mcbFail_Destroy_Done, DoFail, 1, 1 ); }
224 static Tt_callback_action
225 mcbReject_Cont( Tt_message m, Tt_pattern p ) {
226 return ucb( m, p, mcbReject_Cont, DoReject, 0, 0 ); }
227 static Tt_callback_action
228 mcbReject_Done( Tt_message m, Tt_pattern p ) {
229 return ucb( m, p, mcbReject_Done, DoReject, 0, 1 ); }
230 static Tt_callback_action
231 mcbReject_Destroy_Cont( Tt_message m, Tt_pattern p ) {
232 return ucb( m, p, mcbReject_Destroy_Cont, DoReject, 1, 0 ); }
233 static Tt_callback_action
234 mcbReject_Destroy_Done( Tt_message m, Tt_pattern p ) {
235 return ucb( m, p, mcbReject_Destroy_Done, DoReject, 1, 1 ); }
236 static Tt_callback_action
237 mcbAccept_Cont( Tt_message m, Tt_pattern p ) {
238 return ucb( m, p, mcbAccept_Cont, DoAccept, 0, 0 ); }
239 static Tt_callback_action
240 mcbAccept_Done( Tt_message m, Tt_pattern p ) {
241 return ucb( m, p, mcbAccept_Done, DoAccept, 0, 1 ); }
242 static Tt_callback_action
243 mcbAccept_Destroy_Cont( Tt_message m, Tt_pattern p ) {
244 return ucb( m, p, mcbAccept_Destroy_Cont, DoAccept, 1, 0 ); }
245 static Tt_callback_action
246 mcbAccept_Destroy_Done( Tt_message m, Tt_pattern p ) {
247 return ucb( m, p, mcbAccept_Destroy_Done, DoAccept, 1, 1 ); }
248 static Tt_callback_action
249 mcbAbstain_Cont( Tt_message m, Tt_pattern p ) {
250 return ucb( m, p, mcbAbstain_Cont, DoAbstain, 0, 0 ); }
251 static Tt_callback_action
252 mcbAbstain_Done( Tt_message m, Tt_pattern p ) {
253 return ucb( m, p, mcbAbstain_Done, DoAbstain, 0, 1 ); }
254 static Tt_callback_action
255 mcbAbstain_Destroy_Cont( Tt_message m, Tt_pattern p ) {
256 return ucb( m, p, mcbAbstain_Destroy_Cont, DoAbstain, 1, 0 ); }
257 static Tt_callback_action
258 mcbAbstain_Destroy_Done( Tt_message m, Tt_pattern p ) {
259 return ucb( m, p, mcbAbstain_Destroy_Done, DoAbstain, 1, 1 ); }
261 Tt_message_callback callbacks[] =
265 mcbJustPrint_Destroy_Cont,
266 mcbJustPrint_Destroy_Done,
269 mcbReply_Destroy_Cont,
270 mcbReply_Destroy_Done,
273 mcbFail_Destroy_Cont,
274 mcbFail_Destroy_Done,
277 mcbReject_Destroy_Cont,
278 mcbReject_Destroy_Done,
281 mcbAccept_Destroy_Cont,
282 mcbAccept_Destroy_Done,
285 mcbAbstain_Destroy_Cont,
286 mcbAbstain_Destroy_Done
289 /*** DTB_USER_CODE_END
291 *** End of user code section
293 **************************************************************************/
298 callbackChooser_callbackAddCancelButton_CB1(
300 XtPointer clientData,
304 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
305 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
307 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
309 if (!(instance->initialized))
311 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
313 XtUnmanageChild(instance->callbackChooser_shellform);
315 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
316 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
321 callbackChooser_msgActionChoice_Open_item_CB1(
323 XtPointer clientData,
327 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
328 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
330 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
332 if (!(instance->initialized))
334 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
337 XtSetSensitive(instance->msgDestroyChoice, False);
339 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
340 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
345 callbackChooser_msgActionChoice_Open_item_CB2(
347 XtPointer clientData,
351 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
352 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
354 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
356 if (!(instance->initialized))
358 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
361 XtSetSensitive(instance->msgReturnChoice, False);
363 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
364 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
369 callbackChooser_msgActionChoice_Print_item_CB1(
371 XtPointer clientData,
375 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
376 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
378 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
380 if (!(instance->initialized))
382 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
385 XtSetSensitive(instance->msgDestroyChoice, True);
387 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
388 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
393 callbackChooser_msgActionChoice_Accept_item_CB1(
395 XtPointer clientData,
399 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
400 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
402 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
404 if (!(instance->initialized))
406 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
409 XtSetSensitive(instance->msgDestroyChoice, True);
411 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
412 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
417 callbackChooser_msgActionChoice_Accept_item_CB2(
419 XtPointer clientData,
423 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
424 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
426 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
428 if (!(instance->initialized))
430 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
433 XtSetSensitive(instance->msgReturnChoice, True);
435 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
436 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
441 callbackChooser_msgActionChoice_Print_item_CB2(
443 XtPointer clientData,
447 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
448 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
450 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
452 if (!(instance->initialized))
454 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
457 XtSetSensitive(instance->msgReturnChoice, True);
459 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
460 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
465 callbackChooser_msgActionChoice_Abstain_item_CB1(
467 XtPointer clientData,
471 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
472 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
474 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
476 if (!(instance->initialized))
478 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
481 XtSetSensitive(instance->msgReturnChoice, True);
483 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
484 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
489 callbackChooser_msgActionChoice_Abstain_item_CB2(
491 XtPointer clientData,
495 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
496 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
498 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
500 if (!(instance->initialized))
502 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
505 XtSetSensitive(instance->msgDestroyChoice, True);
507 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
508 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
513 callbackChooser_msgActionChoice_Reply_item_CB1(
515 XtPointer clientData,
519 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
520 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
522 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
524 if (!(instance->initialized))
526 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
529 XtSetSensitive(instance->msgDestroyChoice, True);
531 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
532 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
537 callbackChooser_msgActionChoice_Reply_item_CB2(
539 XtPointer clientData,
543 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
544 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
546 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
548 if (!(instance->initialized))
550 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
553 XtSetSensitive(instance->msgReturnChoice, True);
555 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
556 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
561 callbackChooser_msgActionChoice_Reject_item_CB1(
563 XtPointer clientData,
567 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
568 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
570 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
572 if (!(instance->initialized))
574 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
577 XtSetSensitive(instance->msgReturnChoice, True);
579 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
580 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
585 callbackChooser_msgActionChoice_Reject_item_CB2(
587 XtPointer clientData,
591 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
592 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
594 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
596 if (!(instance->initialized))
598 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
601 XtSetSensitive(instance->msgDestroyChoice, True);
603 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
604 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
609 callbackChooser_msgActionChoice_Fail_item_CB1(
611 XtPointer clientData,
615 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
616 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
618 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
620 if (!(instance->initialized))
622 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
625 XtSetSensitive(instance->msgDestroyChoice, True);
627 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
628 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
633 callbackChooser_msgActionChoice_Fail_item_CB2(
635 XtPointer clientData,
639 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
640 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
642 DtbCallbackChooserCallbackChooserInfo instance = (DtbCallbackChooserCallbackChooserInfo)clientData;
644 if (!(instance->initialized))
646 dtb_callback_chooser_callback_chooser_initialize(instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin);
649 XtSetSensitive(instance->msgReturnChoice, True);
651 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
652 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
659 XtPointer clientData,
663 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
664 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
666 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
667 DtbCallbackChooserCallbackChooserInfo instance =
668 (DtbCallbackChooserCallbackChooserInfo)clientData;
673 XtVaGetValues( instance->callbackAddButton, XmNuserData, &xtPtr, NULL );
674 isMessage = (int) (long) xtPtr;
675 XtVaGetValues( instance->callbackAddCancelButton, XmNuserData, &xtPtr, NULL );
676 msg = (Tt_message)xtPtr;
677 pat = (Tt_pattern)xtPtr;
679 What2Do action = DoOpen;
681 XtVaGetValues( instance->msgActionChoice,
682 XmNmenuHistory, &actionWidget, NULL );
683 if (actionWidget == instance->msgActionChoice_items.Open_item) {
685 } else if (actionWidget == instance->msgActionChoice_items.Print_item) {
686 action = DoJustPrint;
687 } else if (actionWidget == instance->msgActionChoice_items.Accept_item) {
689 } else if (actionWidget == instance->msgActionChoice_items.Abstain_item) {
691 } else if (actionWidget == instance->msgActionChoice_items.Reply_item) {
693 } else if (actionWidget == instance->msgActionChoice_items.Reject_item) {
695 } else if (actionWidget == instance->msgActionChoice_items.Fail_item) {
701 XtVaGetValues( instance->msgDestroyChoice_items.Destroy_item,
702 XmNset, &destroyBool, NULL );
707 Tt_callback_action returnVal = TT_CALLBACK_CONTINUE;
709 XtVaGetValues( instance->msgReturnChoice,
710 XmNmenuHistory, &returnWidget, NULL );
711 if (returnWidget == instance->msgReturnChoice_items.PROCESSED_item) {
712 returnVal = TT_CALLBACK_PROCESSED;
715 Tt_message_callback func;
726 func = callbacks[ ((int)action)*4 + destroy*2 + (int)returnVal ];
730 _DtTtMessageUpdate( msg, func );
732 _DtTtPatternUpdate( pat, func );
734 XtUnmanageChild( instance->callbackChooser_shellform );
735 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
742 XtPointer clientData,
746 /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
747 /*** DTB_USER_CODE_END ^^^ Add C variables and code above ^^^ ***/
749 /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
750 DtbCallbackChooserCallbackChooserInfo instance =
751 (DtbCallbackChooserCallbackChooserInfo)clientData;
754 XtVaGetValues( instance->callbackAddButton, XmNuserData, &xtPtr, NULL );
755 isMessage = (int) (long) xtPtr;
756 Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
758 _DtMan( label, "tt_message_callback_add" );
760 _DtMan( label, "tt_pattern_callback_add" );
762 /*** DTB_USER_CODE_END ^^^ Add C code above ^^^ ***/
767 /**************************************************************************
768 *** DTB_USER_CODE_START
770 *** All automatically-generated data and functions have been defined.
772 *** Add new functions here, or at the top of the file.
775 /*** DTB_USER_CODE_END
777 *** End of user code section
779 **************************************************************************/