-fpermissive to allow GCC to compile old C++
[oweals/cde.git] / cde / programs / dtmail / dtmail / options_stubs.C
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $TOG: options_stubs.C /main/9 1999/03/26 16:56:17 mgreess $ */
24 /*** DTB_USER_CODE_START vvv Add file header below vvv ***/
25 /*** DTB_USER_CODE_END   ^^^ Add file header above ^^^ ***/
26
27 /*
28  * File: options_stubs.c
29  * Contains: Module callbacks and connection functions
30  *
31  * This file was generated by dtcodegen, from module options
32  *
33  * Any text may be added between the DTB_USER_CODE_START and
34  * DTB_USER_CODE_END comments (even non-C code). Descriptive comments
35  * are provided only as an aid.
36  *
37  *  ** EDIT ONLY WITHIN SECTIONS MARKED WITH DTB_USER_CODE COMMENTS.  **
38  *  ** ALL OTHER MODIFICATIONS WILL BE OVERWRITTEN. DO NOT MODIFY OR  **
39  *  ** DELETE THE GENERATED COMMENTS!                                 **
40  */
41
42 #include <stdio.h>
43 #include <Xm/Xm.h>
44 #include "dtb_utils.h"
45 #include "dtmailopts.h"
46 #include "options_ui.h"
47
48
49 /**************************************************************************
50  *** DTB_USER_CODE_START
51  ***
52  *** All necessary header files have been included.
53  ***
54  *** Add include files, types, macros, externs, and user functions here.
55  ***/
56
57 #include <DtMail/OptCmd.h>
58
59 /*** DTB_USER_CODE_END
60  ***
61  *** End of user code section
62  ***
63  **************************************************************************/
64
65
66
67 void 
68 opt_dlog_cancelCB(
69     Widget widget,
70     XtPointer,
71     XtPointer
72 )
73 {
74     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
75   OptCmd *cmd_ptr = NULL;
76
77     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
78     
79     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
80
81   XtVaGetValues(widget,
82                 XmNuserData, &cmd_ptr,
83                 NULL);
84
85   if(cmd_ptr != NULL)   
86     {
87       cmd_ptr->update_panes();
88       cmd_ptr->unmanage();
89     }
90
91     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
92 }
93
94
95 void 
96 opt_pane_okCB(
97     Widget widget,
98     XtPointer,
99     XtPointer
100 )
101 {
102     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
103    OptCmd *cmd_ptr = NULL;
104
105     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
106     
107     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
108   XtVaGetValues(widget,
109                 XmNuserData, &cmd_ptr,
110                 NULL);
111
112   if(cmd_ptr != NULL)
113     {
114       if (! cmd_ptr->optionsAreValid()) return;
115       if (! cmd_ptr->doFileLockingCheck()) return;
116       cmd_ptr->update_source();
117       cmd_ptr->doVacationCheck();
118       cmd_ptr->unmanage();
119     }
120
121     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
122 }
123
124
125 void 
126 options_applyCB(
127     Widget widget,
128     XtPointer,
129     XtPointer
130 )
131 {
132     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
133
134   OptCmd *cmd_ptr = NULL;
135
136     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
137     
138     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
139   XtVaGetValues(widget,
140                 XmNuserData, &cmd_ptr,
141                 NULL);
142
143   if(cmd_ptr != NULL)
144     {
145       if (! cmd_ptr->optionsAreValid()) return;
146       if (! cmd_ptr->doFileLockingCheck()) return;
147       cmd_ptr->update_source();
148       cmd_ptr->doVacationCheck();
149     }
150
151     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
152 }
153
154
155 void 
156 start_vacationCB(
157     Widget,
158     XtPointer,
159     XtPointer
160 )
161 {
162     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
163     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
164     
165     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
166     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
167 }
168
169
170 void 
171 stop_vacationCB(
172     Widget,
173     XtPointer,
174     XtPointer
175 )
176 {
177     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
178     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
179     
180     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
181     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
182 }
183
184
185 void 
186 vacationOnCB(
187     Widget widget,
188     XtPointer,
189     XtPointer
190 )
191 {
192     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
193   OptCmd  *cmd_ptr = NULL;
194
195     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
196     
197     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
198
199   XtVaGetValues(widget,
200                 XmNuserData, &cmd_ptr,
201                 NULL);
202
203   if(cmd_ptr != NULL)
204     {
205           cmd_ptr->setVacationChanged();
206     }
207
208     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
209 }
210
211
212 void 
213 vacationOffCB(
214     Widget widget,
215     XtPointer,
216     XtPointer
217 )
218 {
219     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
220      OptCmd *cmd_ptr = NULL;
221
222     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
223     
224     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
225
226   XtVaGetValues(widget,
227                 XmNuserData, &cmd_ptr,
228                 NULL);
229
230   if(cmd_ptr != NULL)
231     {
232           cmd_ptr->setVacationChanged();
233     }
234
235     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
236 }
237
238
239 void 
240 opt_dlog_resetCB(
241     Widget widget,
242     XtPointer,
243     XtPointer
244 )
245 {
246     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
247   OptCmd *cmd_ptr = NULL;
248
249     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
250     
251     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
252
253   XtVaGetValues(widget,
254                 XmNuserData, &cmd_ptr,
255                 NULL);
256
257   if(cmd_ptr != NULL)
258     {
259       cmd_ptr->update_panes();
260
261     }
262
263     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
264 }
265
266
267 void 
268 opt_dlog_HelpCB(
269     Widget,
270     XtPointer,
271     XtPointer
272 )
273 {
274     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
275     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
276     
277     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
278     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
279 }
280
281
282 void 
283 alias_addCB(
284     Widget,
285     XtPointer,
286     XtPointer
287 )
288 {
289     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
290     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
291     
292     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
293     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
294 }
295
296
297 void 
298 alias_delCB(
299     Widget,
300     XtPointer,
301     XtPointer
302 )
303 {
304     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
305     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
306     
307     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
308     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
309 }
310
311
312 void 
313 alias_changeCB(
314     Widget,
315     XtPointer,
316     XtPointer
317 )
318 {
319     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
320     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
321     
322     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
323     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
324 }
325
326
327 void 
328 message_header_listCB(
329     Widget,
330     XtPointer clientData,
331     XtPointer
332 )
333 {
334     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
335     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;
336
337     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
338     
339     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
340
341     options_set_category_pane(instance->msg_header_pane);
342
343     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
344 }
345
346
347 void 
348 message_viewCB(
349     Widget,
350     XtPointer clientData,
351     XtPointer
352 )
353 {
354     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
355     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;
356
357     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
358     
359     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
360
361     options_set_category_pane(instance->msg_view_pane);
362
363     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
364 }
365
366
367 void 
368 compose_windowCB(
369     Widget,
370     XtPointer clientData,
371     XtPointer
372 )
373 {
374     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
375     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;
376
377     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
378     
379     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
380
381     options_set_category_pane(instance->compose_win_pane);
382
383     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
384 }
385
386
387 void 
388 message_filingCB(
389     Widget,
390     XtPointer clientData,
391     XtPointer
392 )
393 {
394     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
395     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData; 
396
397     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
398     
399     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
400
401     options_set_category_pane(instance->msg_filing_pane);
402
403     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
404 }
405
406
407 void 
408 vacationCB(
409     Widget,
410     XtPointer clientData,
411     XtPointer
412 )
413 {
414     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
415     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;  
416
417     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
418     
419     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
420
421     options_set_category_pane(instance->vacation_pane); 
422
423     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
424 }
425
426
427 void 
428 templatesCB(
429     Widget,
430     XtPointer clientData,
431     XtPointer
432 )
433 {
434     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
435     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;   
436
437     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
438     
439     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
440
441     options_set_category_pane(instance->templates_pane);  
442
443     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
444 }
445
446
447 void 
448 aliasesCB(
449     Widget,
450     XtPointer clientData,
451     XtPointer
452 )
453 {
454     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
455     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;    
456
457     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
458     
459     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
460
461     options_set_category_pane(instance->aliases_pane);   
462
463     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
464 }
465
466
467 void 
468 advancedCB(
469     Widget,
470     XtPointer clientData,
471     XtPointer
472 )
473 {
474     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
475     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;     
476
477     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
478     
479     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
480
481     options_set_category_pane(instance->advanced_pane);    
482
483     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
484 }
485
486
487
488 void 
489 printingCB(
490     Widget,
491     XtPointer clientData,
492     XtPointer
493 )
494 {
495     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
496     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;     
497
498     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
499     
500     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
501
502     options_set_category_pane(instance->printing_pane);    
503
504     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
505 }
506
507
508 void 
509 mailretrievalCB(
510     Widget,
511     XtPointer clientData,
512     XtPointer
513 )
514 {
515     /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
516     DtbOptionsDialogInfo instance = (DtbOptionsDialogInfo)clientData;     
517
518     /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/
519     
520     /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
521
522     options_set_category_pane(instance->mailretrieval_pane);    
523
524     /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
525 }
526
527
528
529 /**************************************************************************
530  *** DTB_USER_CODE_START
531  ***
532  *** All automatically-generated data and functions have been defined.
533  ***
534  *** Add new functions here, or at the top of the file.
535  ***/
536
537 /*** DTB_USER_CODE_END
538  ***
539  *** End of user code section
540  ***
541  **************************************************************************/
542
543