Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtmail / dtmail / options_ui.C
1 /* $TOG: options_ui.C /main/17 1999/03/25 14:17:16 mgreess $ */
2 /*
3  * File: options_ui.c
4  * Contains: user module object initialize and create functions
5  *
6  * This file was generated by dtcodegen, from module options
7  *
8  *    ** DO NOT MODIFY BY HAND - ALL MODIFICATIONS WILL BE LOST **
9  */
10 /*
11  *                   Common Desktop Environment
12  *
13  *   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
14  *   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
15  *   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
16  *   (c) Copyright 1993, 1994, 1995 Novell, Inc.
17  *   (c) Copyright 1995 Digital Equipment Corp.
18  *   (c) Copyright 1995 Fujitsu Limited
19  *   (c) Copyright 1995 Hitachi, Ltd.
20  *                                                                   
21  *
22  *                     RESTRICTED RIGHTS LEGEND                              
23  *
24  *Use, duplication, or disclosure by the U.S. Government is subject to
25  *restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
26  *Technical Data and Computer Software clause in DFARS 252.227-7013.  Rights
27  *for non-DOD U.S. Government Departments and Agencies are as set forth in
28  *FAR 52.227-19(c)(1,2).
29
30  *Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
31  *International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A. 
32  *Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
33  *Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
34  *Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
35  *Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
36  *Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
37  */
38
39
40 #include <stdlib.h>
41 #include <X11/Intrinsic.h>
42 #include <Xm/DialogS.h>
43 #include <Xm/Form.h>
44 #include <Xm/PanedW.h>
45 #include <Xm/RowColumn.h>
46 #include <Xm/Separator.h>
47 #include <Xm/Label.h>
48 #include <Xm/PushB.h>
49 #include <Xm/ToggleB.h>
50 #include <Xm/SSpinB.h>
51 #include <Xm/TextF.h>
52 #include <Xm/ScrollBar.h>
53 #include <Xm/ScrolledW.h>
54 #include <Xm/List.h>
55 #include <Xm/Text.h>
56 #include <Xm/Scale.h>
57 #include "dtb_utils.h"
58 #include "dtmailopts.h"
59 #include "options_ui.h"
60 #include "MailMsg.h"            
61
62 DtbOptionsDialogInfoRec dtb_options_dialog = 
63 {
64     False        /* initialized */
65 };
66
67 /*
68  * Widget create procedure decls
69  */
70 static int dtb_options_dialog_create(
71     DtbOptionsDialogInfo        instance,
72     Widget      parent
73 );
74 static int dtb_options_dialog_button_panel_create(
75     DtbOptionsDialogInfo        instance,
76     Widget      parent
77 );
78 static int dtb_options_ctrl_panel_create(
79     DtbOptionsDialogInfo        instance,
80     Widget      parent
81 );
82 static int dtb_options_layer_create(
83     DtbOptionsDialogInfo        instance,
84     Widget      parent
85 );
86 static int dtb_options_category_opmenu_create(
87     DtbOptionsDialogInfo        instance,
88     Widget      parent
89 );
90 static int dtb_options_separator10_create(
91     DtbOptionsDialogInfo        instance,
92     Widget      parent
93 );
94 static int dtb_options_msg_header_pane_create(
95     DtbOptionsDialogInfo        instance,
96     Widget      parent
97 );
98 static int dtb_options_msg_view_pane_create(
99     DtbOptionsDialogInfo        instance,
100     Widget      parent
101 );
102 static int dtb_options_compose_win_pane_create(
103     DtbOptionsDialogInfo        instance,
104     Widget      parent
105 );
106 static int dtb_options_msg_filing_pane_create(
107     DtbOptionsDialogInfo        instance,
108     Widget      parent
109 );
110 static int dtb_options_vacation_pane_create(
111     DtbOptionsDialogInfo        instance,
112     Widget      parent
113 );
114 static int dtb_options_templates_pane_create(
115     DtbOptionsDialogInfo        instance,
116     Widget      parent
117 );
118 static int dtb_options_aliases_pane_create(
119     DtbOptionsDialogInfo        instance,
120     Widget      parent
121 );
122 static int dtb_options_advanced_pane_create(
123     DtbOptionsDialogInfo        instance,
124     Widget      parent
125 );
126 static int dtb_options_separator2_create(
127     DtbOptionsDialogInfo        instance,
128     Widget      parent
129 );
130 static int dtb_options_checkbox_create(
131     DtbOptionsDialogInfo        instance,
132     Widget      parent
133 );
134 static int dtb_options_separator4_create(
135     DtbOptionsDialogInfo        instance,
136     Widget      parent
137 );
138 static int dtb_options_group28_create(
139     DtbOptionsDialogInfo        instance,
140     Widget      parent
141 );
142 static int dtb_options_group21_create(
143     DtbOptionsDialogInfo        instance,
144     Widget      parent
145 );
146 static int dtb_options_destroy_del_msg_lbl_create(
147     DtbOptionsDialogInfo        instance,
148     Widget      parent
149 );
150 static int dtb_options_deleted_msg_cb_create(
151     DtbOptionsDialogInfo        instance,
152     Widget      parent
153 );
154 static int dtb_options_group_create(
155     DtbOptionsDialogInfo        instance,
156     Widget      parent
157 );
158 static int dtb_options_group18_create(
159     DtbOptionsDialogInfo        instance,
160     Widget      parent
161 );
162 static int dtb_options_group19_create(
163     DtbOptionsDialogInfo        instance,
164     Widget      parent
165 );
166 static int dtb_options_group20_create(
167     DtbOptionsDialogInfo        instance,
168     Widget      parent
169 );
170 static int dtb_options_mail_check_sb_create(
171     DtbOptionsDialogInfo        instance,
172     Widget      parent
173 );
174 static int dtb_options_seconds_lbl_create(
175     DtbOptionsDialogInfo        instance,
176     Widget      parent
177 );
178 static int dtb_options_signal_sb_create(
179     DtbOptionsDialogInfo        instance,
180     Widget      parent
181 );
182 static int dtb_options_beeps_lbl_create(
183     DtbOptionsDialogInfo        instance,
184     Widget      parent
185 );
186 static int dtb_options_spinbox2_create(
187     DtbOptionsDialogInfo        instance,
188     Widget      parent
189 );
190 static int dtb_options_flashes_lbl_create(
191     DtbOptionsDialogInfo        instance,
192     Widget      parent
193 );
194 static int dtb_options_display_sb_create(
195     DtbOptionsDialogInfo        instance,
196     Widget      parent
197 );
198 static int dtb_options_headers_lbl_create(
199     DtbOptionsDialogInfo        instance,
200     Widget      parent
201 );
202 static int dtb_options_separator6_create(
203     DtbOptionsDialogInfo        instance,
204     Widget      parent
205 );
206 static int dtb_options_abr_header_lbl_create(
207     DtbOptionsDialogInfo        instance,
208     Widget      parent
209 );
210 static int dtb_options_group8_create(
211     DtbOptionsDialogInfo        instance,
212     Widget      parent
213 );
214 static int dtb_options_group17_create(
215     DtbOptionsDialogInfo        instance,
216     Widget      parent
217 );
218 static int dtb_options_group2_create(
219     DtbOptionsDialogInfo        instance,
220     Widget      parent
221 );
222 static int dtb_options_group22_create(
223     DtbOptionsDialogInfo        instance,
224     Widget      parent
225 );
226 static int dtb_options_fixed_font_cb_create(
227     DtbOptionsDialogInfo        instance,
228     Widget      parent
229 );
230 static int dtb_options_display_row_sb_create(
231     DtbOptionsDialogInfo        instance,
232     Widget      parent
233 );
234 static int dtb_options_rows_lbl_create(
235     DtbOptionsDialogInfo        instance,
236     Widget      parent
237 );
238 static int dtb_options_characters_wide_sb_create(
239     DtbOptionsDialogInfo        instance,
240     Widget      parent
241 );
242 static int dtb_options_char_wide_lbl_create(
243     DtbOptionsDialogInfo        instance,
244     Widget      parent
245 );
246 static int dtb_options_group3_create(
247     DtbOptionsDialogInfo        instance,
248     Widget      parent
249 );
250 static int dtb_options_fields_hide_create(
251     DtbOptionsDialogInfo        instance,
252     Widget      parent
253 );
254 static int dtb_options_hidden_fields_list_create(
255     DtbOptionsDialogInfo        instance,
256     Widget      parent
257 );
258 static int dtb_options_hidden_fields_lbl_create(
259     DtbOptionsDialogInfo        instance,
260     Widget      parent
261 );
262 static int dtb_options_header_fields_lbl_create(
263     DtbOptionsDialogInfo        instance,
264     Widget      parent
265 );
266 static int dtb_options_h_field_add_create(
267     DtbOptionsDialogInfo        instance,
268     Widget      parent
269 );
270 static int dtb_options_h_field_delete_create(
271     DtbOptionsDialogInfo        instance,
272     Widget      parent
273 );
274 static int dtb_options_h_field_change_create(
275     DtbOptionsDialogInfo        instance,
276     Widget      parent
277 );
278 static int dtb_options_wrap_checkbox_create(
279     DtbOptionsDialogInfo        instance,
280     Widget      parent
281 );
282 static int dtb_options_confirm_attachment_create(
283     DtbOptionsDialogInfo        instance,
284     Widget      parent
285 );
286 static int dtb_options_separator3_create(
287     DtbOptionsDialogInfo        instance,
288     Widget      parent
289 );
290 static int dtb_options_separator7_create(
291     DtbOptionsDialogInfo        instance,
292     Widget      parent
293 );
294 static int dtb_options_deadletter_field_create(
295     DtbOptionsDialogInfo        instance,
296     Widget      parent
297 );
298 static int dtb_options_separator9_create(
299     DtbOptionsDialogInfo        instance,
300     Widget      parent
301 );
302 static int dtb_options_format_menu_lbl_create(
303     DtbOptionsDialogInfo        instance,
304     Widget      parent
305 );
306 static int dtb_options_group6_create(
307     DtbOptionsDialogInfo        instance,
308     Widget      parent
309 );
310 static int dtb_options_group4_create(
311     DtbOptionsDialogInfo        instance,
312     Widget      parent
313 );
314 static int dtb_options_indent_str_tf_create(
315     DtbOptionsDialogInfo        instance,
316     Widget      parent
317 );
318 static int dtb_options_group23_create(
319     DtbOptionsDialogInfo        instance,
320     Widget      parent
321 );
322 static int dtb_options_indent_str_lbl_create(
323     DtbOptionsDialogInfo        instance,
324     Widget      parent
325 );
326 static int dtb_options_reply_include_lbl_create(
327     DtbOptionsDialogInfo        instance,
328     Widget      parent
329 );
330 static int dtb_options_group7_create(
331     DtbOptionsDialogInfo        instance,
332     Widget      parent
333 );
334 static int dtb_options_list_create(
335     DtbOptionsDialogInfo        instance,
336     Widget      parent
337 );
338 static int dtb_options_menu_labels_lbl_create(
339     DtbOptionsDialogInfo        instance,
340     Widget      parent
341 );
342 static int dtb_options_hdr_field_create(
343     DtbOptionsDialogInfo        instance,
344     Widget      parent
345 );
346 static int dtb_options_def_value_field_create(
347     DtbOptionsDialogInfo        instance,
348     Widget      parent
349 );
350 static int dtb_options_hdr_field_lbl_create(
351     DtbOptionsDialogInfo        instance,
352     Widget      parent
353 );
354 static int dtb_options_def_value_lbl_create(
355     DtbOptionsDialogInfo        instance,
356     Widget      parent
357 );
358 static int dtb_options_add_button_create(
359     DtbOptionsDialogInfo        instance,
360     Widget      parent
361 );
362 static int dtb_options_del_button_create(
363     DtbOptionsDialogInfo        instance,
364     Widget      parent
365 );
366 static int dtb_options_change_button_create(
367     DtbOptionsDialogInfo        instance,
368     Widget      parent
369 );
370 static int dtb_options_separator8_create(
371     DtbOptionsDialogInfo        instance,
372     Widget      parent
373 );
374 static int dtb_options_separator5_create(
375     DtbOptionsDialogInfo        instance,
376     Widget      parent
377 );
378 static int dtb_options_group25_create(
379     DtbOptionsDialogInfo        instance,
380     Widget      parent
381 );
382 static int dtb_options_mailb_for_sent_lbl_create(
383     DtbOptionsDialogInfo        instance,
384     Widget      parent
385 );
386 static int dtb_options_group26_create(
387     DtbOptionsDialogInfo        instance,
388     Widget      parent
389 );
390 static int dtb_options_group9_create(
391     DtbOptionsDialogInfo        instance,
392     Widget      parent
393 );
394 static int dtb_options_dpy_up_mbox_cb_create(
395     DtbOptionsDialogInfo        instance,
396     Widget      parent
397 );
398 static int dtb_options_recent_sb_create(
399     DtbOptionsDialogInfo        instance,
400     Widget      parent
401 );
402 static int dtb_options_visit_mailb_lbl_create(
403     DtbOptionsDialogInfo        instance,
404     Widget      parent
405 );
406 static int dtb_options_sent_mail_tf_create(
407     DtbOptionsDialogInfo        instance,
408     Widget      parent
409 );
410 static int dtb_options_log_cb_create(
411     DtbOptionsDialogInfo        instance,
412     Widget      parent
413 );
414 static int dtb_options_group24_create(
415     DtbOptionsDialogInfo        instance,
416     Widget      parent
417 );
418 static int dtb_options_path_file_name_tf_create(
419     DtbOptionsDialogInfo        instance,
420     Widget      parent
421 );
422 static int dtb_options_mv_menu_lst_create(
423     DtbOptionsDialogInfo        instance,
424     Widget      parent
425 );
426 static int dtb_options_srt_looking_tf_create(
427     DtbOptionsDialogInfo        instance,
428     Widget      parent
429 );
430 static int dtb_options_move_menu_lbl_create(
431     DtbOptionsDialogInfo        instance,
432     Widget      parent
433 );
434 static int dtb_options_move_menu_lbl2_create(
435     DtbOptionsDialogInfo        instance,
436     Widget      parent
437 );
438 static int dtb_options_path_file_lbl_create(
439     DtbOptionsDialogInfo        instance,
440     Widget      parent
441 );
442 static int dtb_options_start_look_lbl_create(
443     DtbOptionsDialogInfo        instance,
444     Widget      parent
445 );
446 static int dtb_options_mm_add_butt_create(
447     DtbOptionsDialogInfo        instance,
448     Widget      parent
449 );
450 static int dtb_options_mm_delete_butt_create(
451     DtbOptionsDialogInfo        instance,
452     Widget      parent
453 );
454 static int dtb_options_mm_change_butt_create(
455     DtbOptionsDialogInfo        instance,
456     Widget      parent
457 );
458 static int dtb_options_vacation_lbl_create(
459     DtbOptionsDialogInfo        instance,
460     Widget      parent
461 );
462 static int dtb_options_group10_create(
463     DtbOptionsDialogInfo        instance,
464     Widget      parent
465 );
466 static int dtb_options_vacation_rb_create(
467     DtbOptionsDialogInfo        instance,
468     Widget      parent
469 );
470 static int dtb_options_vacation_msg_tp_create(
471     DtbOptionsDialogInfo        instance,
472     Widget      parent
473 );
474 static int dtb_options_subject_tf_create(
475     DtbOptionsDialogInfo        instance,
476     Widget      parent
477 );
478 static int dtb_options_msg_list_lbl_create(
479     DtbOptionsDialogInfo        instance,
480     Widget      parent
481 );
482 static int dtb_options_subject_lbl_create(
483     DtbOptionsDialogInfo        instance,
484     Widget      parent
485 );
486 static int dtb_options_vacation_rb_lbl_create(
487     DtbOptionsDialogInfo        instance,
488     Widget      parent
489 );
490 static int dtb_options_group13_create(
491     DtbOptionsDialogInfo        instance,
492     Widget      parent
493 );
494 static int dtb_options_group11_create(
495     DtbOptionsDialogInfo        instance,
496     Widget      parent
497 );
498 static int dtb_options_menu_label_create(
499     DtbOptionsDialogInfo        instance,
500     Widget      parent
501 );
502 static int dtb_options_path_filename_label_create(
503     DtbOptionsDialogInfo        instance,
504     Widget      parent
505 );
506 static int dtb_options_templates_list_create(
507     DtbOptionsDialogInfo        instance,
508     Widget      parent
509 );
510 static int dtb_options_templates_list_lbl_create(
511     DtbOptionsDialogInfo        instance,
512     Widget      parent
513 );
514 static int dtb_options_menu_label_lbl_create(
515     DtbOptionsDialogInfo        instance,
516     Widget      parent
517 );
518 static int dtb_options_path_filename_label_lbl_create(
519     DtbOptionsDialogInfo        instance,
520     Widget      parent
521 );
522 static int dtb_options_tem_add_but_create(
523     DtbOptionsDialogInfo        instance,
524     Widget      parent
525 );
526 static int dtb_options_tem_del_but_create(
527     DtbOptionsDialogInfo        instance,
528     Widget      parent
529 );
530 static int dtb_options_tem_change_but_create(
531     DtbOptionsDialogInfo        instance,
532     Widget      parent
533 );
534 static int dtb_options_group14_create(
535     DtbOptionsDialogInfo        instance,
536     Widget      parent
537 );
538 static int dtb_options_group15_create(
539     DtbOptionsDialogInfo        instance,
540     Widget      parent
541 );
542 static int dtb_options_alias_tf_create(
543     DtbOptionsDialogInfo        instance,
544     Widget      parent
545 );
546 static int dtb_options_addresses_tf_create(
547     DtbOptionsDialogInfo        instance,
548     Widget      parent
549 );
550 static int dtb_options_alias_list_create(
551     DtbOptionsDialogInfo        instance,
552     Widget      parent
553 );
554 static int dtb_options_alias_list_lbl_create(
555     DtbOptionsDialogInfo        instance,
556     Widget      parent
557 );
558 static int dtb_options_alias_tf_lbl_create(
559     DtbOptionsDialogInfo        instance,
560     Widget      parent
561 );
562 static int dtb_options_address_tf_lbl_create(
563     DtbOptionsDialogInfo        instance,
564     Widget      parent
565 );
566 static int dtb_options_alias_add_but_create(
567     DtbOptionsDialogInfo        instance,
568     Widget      parent
569 );
570 static int dtb_options_alias_delete_but_create(
571     DtbOptionsDialogInfo        instance,
572     Widget      parent
573 );
574 static int dtb_options_al_change_but_create(
575     DtbOptionsDialogInfo        instance,
576     Widget      parent
577 );
578 static int dtb_options_update_mbox_scale_create(
579     DtbOptionsDialogInfo        instance,
580     Widget      parent
581 );
582 static int dtb_options_update_mailb_lbl_create(
583     DtbOptionsDialogInfo        instance,
584     Widget      parent
585 );
586 static int dtb_options_frequently_lbl_create(
587     DtbOptionsDialogInfo        instance,
588     Widget      parent
589 );
590 static int dtb_options_seldom_lbl_create(
591     DtbOptionsDialogInfo        instance,
592     Widget      parent
593 );
594 static int dtb_options_separator11_create(
595     DtbOptionsDialogInfo        instance,
596     Widget      parent
597 );
598 static int dtb_options_adv_def_cb_create(
599     DtbOptionsDialogInfo        instance,
600     Widget      parent
601 );
602 static int dtb_options_group12_create(
603     DtbOptionsDialogInfo        instance,
604     Widget      parent
605 );
606 static int dtb_options_group16_create(
607     DtbOptionsDialogInfo        instance,
608     Widget      parent
609 );
610 static int dtb_options_local_name_tf_create(
611     DtbOptionsDialogInfo        instance,
612     Widget      parent
613 );
614 static int dtb_options_local_name_list_create(
615     DtbOptionsDialogInfo        instance,
616     Widget      parent
617 );
618 static int dtb_options_local_name_add_but_create(
619     DtbOptionsDialogInfo        instance,
620     Widget      parent
621 );
622 static int dtb_options_local_name_del_but_create(
623     DtbOptionsDialogInfo        instance,
624     Widget      parent
625 );
626 static int dtb_options_local_name_chg_but_create(
627     DtbOptionsDialogInfo        instance,
628     Widget      parent
629 );
630 static int dtb_options_ok_button_create(
631     DtbOptionsDialogInfo        instance,
632     Widget      parent
633 );
634 static int dtb_options_reset_button_create(
635     DtbOptionsDialogInfo        instance,
636     Widget      parent
637 );
638 static int dtb_options_cancel_button_create(
639     DtbOptionsDialogInfo        instance,
640     Widget      parent
641 );
642 static int dtb_options_separator_create(
643     DtbOptionsDialogInfo        instance,
644     Widget      parent
645 );
646 static int dtb_options_apply_button_create(
647     DtbOptionsDialogInfo        instance,
648     Widget      parent
649 );
650 static int dtb_options_help_button_create(
651     DtbOptionsDialogInfo        instance,
652     Widget      parent
653 );
654
655 int 
656 dtbOptionsDialogInfo_clear(DtbOptionsDialogInfo instance)
657 {
658     memset((void *)(instance), 0, sizeof(*instance));
659     return 0;
660 }
661
662 int 
663 dtb_options_dialog_initialize(
664     DtbOptionsDialogInfo instance,
665     Widget parent
666 )
667 {
668     if (instance->initialized)
669     {
670         return 0;
671     }
672     instance->initialized = True;
673
674     dtb_options_dialog_create(instance,
675         parent);
676     dtb_options_dialog_button_panel_create(instance,
677         instance->dialog_panedwin);
678     dtb_options_ctrl_panel_create(instance,
679         instance->dialog_form);
680     dtb_options_layer_create(instance,
681         instance->dialog_form);
682     dtb_options_category_opmenu_create(instance,
683         instance->ctrl_panel);
684     dtb_options_separator10_create(instance,
685         instance->ctrl_panel);
686     dtb_options_msg_header_pane_create(instance,
687         instance->layer);
688     dtb_options_msg_view_pane_create(instance,
689         instance->layer);
690     dtb_options_compose_win_pane_create(instance,
691         instance->layer);
692     dtb_options_msg_filing_pane_create(instance,
693         instance->layer);
694     dtb_options_vacation_pane_create(instance,
695         instance->layer);
696     dtb_options_templates_pane_create(instance,
697         instance->layer);
698     dtb_options_aliases_pane_create(instance,
699         instance->layer);
700     dtb_options_advanced_pane_create(instance,
701         instance->layer);
702     dtb_options_separator2_create(instance,
703         instance->msg_header_pane);
704     dtb_options_checkbox_create(instance,
705         instance->msg_header_pane);
706     dtb_options_separator4_create(instance,
707         instance->msg_header_pane);
708     dtb_options_group28_create(instance,
709         instance->msg_header_pane);
710     dtb_options_group21_create(instance,
711         instance->msg_header_pane);
712     dtb_options_destroy_del_msg_lbl_create(instance,
713         instance->group28);
714     dtb_options_deleted_msg_cb_create(instance,
715         instance->group28);
716     dtb_options_group_create(instance,
717         instance->group21);
718     dtb_options_group18_create(instance,
719         instance->group21);
720     dtb_options_group19_create(instance,
721         instance->group21);
722     dtb_options_group20_create(instance,
723         instance->group21);
724     dtb_options_mail_check_sb_create(instance,
725         instance->group);
726     dtb_options_seconds_lbl_create(instance,
727         instance->group);
728     dtb_options_signal_sb_create(instance,
729         instance->group18);
730     dtb_options_beeps_lbl_create(instance,
731         instance->group18);
732     dtb_options_spinbox2_create(instance,
733         instance->group19);
734     dtb_options_flashes_lbl_create(instance,
735         instance->group19);
736     dtb_options_display_sb_create(instance,
737         instance->group20);
738     dtb_options_headers_lbl_create(instance,
739         instance->group20);
740     dtb_options_separator6_create(instance,
741         instance->msg_view_pane);
742     dtb_options_abr_header_lbl_create(instance,
743         instance->msg_view_pane);
744     dtb_options_group8_create(instance,
745         instance->msg_view_pane);
746     dtb_options_group17_create(instance,
747         instance->msg_view_pane);
748     dtb_options_group2_create(instance,
749         instance->group8);
750     dtb_options_group22_create(instance,
751         instance->group8);
752     dtb_options_fixed_font_cb_create(instance,
753         instance->group8);
754     dtb_options_display_row_sb_create(instance,
755         instance->group2);
756     dtb_options_rows_lbl_create(instance,
757         instance->group2);
758     dtb_options_characters_wide_sb_create(instance,
759         instance->group22);
760     dtb_options_char_wide_lbl_create(instance,
761         instance->group22);
762     dtb_options_group3_create(instance,
763         instance->group17);
764     dtb_options_fields_hide_create(instance,
765         instance->group17);
766     dtb_options_hidden_fields_list_create(instance,
767         instance->group17);
768     dtb_options_hidden_fields_lbl_create(instance,
769         instance->group17);
770     dtb_options_header_fields_lbl_create(instance,
771         instance->group17);
772     dtb_options_h_field_add_create(instance,
773         instance->group3);
774     dtb_options_h_field_delete_create(instance,
775         instance->group3);
776     dtb_options_h_field_change_create(instance,
777         instance->group3);
778     dtb_options_wrap_checkbox_create(instance,
779         instance->compose_win_pane);
780     dtb_options_confirm_attachment_create(instance,
781         instance->compose_win_pane);
782     dtb_options_separator3_create(instance,
783         instance->compose_win_pane);
784     dtb_options_separator7_create(instance,
785         instance->compose_win_pane);
786     dtb_options_deadletter_field_create(instance,
787         instance->compose_win_pane);
788     dtb_options_separator9_create(instance,
789         instance->compose_win_pane);
790     dtb_options_format_menu_lbl_create(instance,
791         instance->compose_win_pane);
792     dtb_options_group6_create(instance,
793         instance->compose_win_pane);
794     dtb_options_group4_create(instance,
795         instance->compose_win_pane);
796     dtb_options_indent_str_tf_create(instance,
797         instance->group6);
798     dtb_options_group23_create(instance,
799         instance->group6);
800     dtb_options_indent_str_lbl_create(instance,
801         instance->group23);
802     dtb_options_reply_include_lbl_create(instance,
803         instance->group23);
804     dtb_options_group7_create(instance,
805         instance->group4);
806     dtb_options_list_create(instance,
807         instance->group4);
808     dtb_options_menu_labels_lbl_create(instance,
809         instance->group4);
810     dtb_options_hdr_field_create(instance,
811         instance->group4);
812     dtb_options_def_value_field_create(instance,
813         instance->group4);
814     dtb_options_hdr_field_lbl_create(instance,
815         instance->group4);
816     dtb_options_def_value_lbl_create(instance,
817         instance->group4);
818     dtb_options_add_button_create(instance,
819         instance->group7);
820     dtb_options_del_button_create(instance,
821         instance->group7);
822     dtb_options_change_button_create(instance,
823         instance->group7);
824     dtb_options_separator8_create(instance,
825         instance->msg_filing_pane);
826     dtb_options_separator5_create(instance,
827         instance->msg_filing_pane);
828     dtb_options_group25_create(instance,
829         instance->msg_filing_pane);
830     dtb_options_mailb_for_sent_lbl_create(instance,
831         instance->msg_filing_pane);
832     dtb_options_group26_create(instance,
833         instance->msg_filing_pane);
834     dtb_options_group9_create(instance,
835         instance->msg_filing_pane);
836     dtb_options_dpy_up_mbox_cb_create(instance,
837         instance->group25);
838     dtb_options_recent_sb_create(instance,
839         instance->group25);
840     dtb_options_visit_mailb_lbl_create(instance,
841         instance->group25);
842     dtb_options_sent_mail_tf_create(instance,
843         instance->group26);
844     dtb_options_log_cb_create(instance,
845         instance->group26);
846     dtb_options_group24_create(instance,
847         instance->group9);
848     dtb_options_path_file_name_tf_create(instance,
849         instance->group9);
850     dtb_options_mv_menu_lst_create(instance,
851         instance->group9);
852     dtb_options_srt_looking_tf_create(instance,
853         instance->group9);
854     dtb_options_move_menu_lbl_create(instance,
855         instance->group9);
856     dtb_options_move_menu_lbl2_create(instance,
857         instance->group9);
858     dtb_options_path_file_lbl_create(instance,
859         instance->group9);
860     dtb_options_start_look_lbl_create(instance,
861         instance->group9);
862     dtb_options_mm_add_butt_create(instance,
863         instance->group24);
864     dtb_options_mm_delete_butt_create(instance,
865         instance->group24);
866     dtb_options_mm_change_butt_create(instance,
867         instance->group24);
868     dtb_options_vacation_lbl_create(instance,
869         instance->vacation_pane);
870     dtb_options_group10_create(instance,
871         instance->vacation_pane);
872     dtb_options_vacation_rb_create(instance,
873         instance->group10);
874     dtb_options_vacation_msg_tp_create(instance,
875         instance->group10);
876     dtb_options_subject_tf_create(instance,
877         instance->group10);
878     dtb_options_msg_list_lbl_create(instance,
879         instance->group10);
880     dtb_options_subject_lbl_create(instance,
881         instance->group10);
882     dtb_options_vacation_rb_lbl_create(instance,
883         instance->group10);
884     dtb_options_group13_create(instance,
885         instance->templates_pane);
886     dtb_options_group11_create(instance,
887         instance->group13);
888     dtb_options_menu_label_create(instance,
889         instance->group13);
890     dtb_options_path_filename_label_create(instance,
891         instance->group13);
892     dtb_options_templates_list_create(instance,
893         instance->group13);
894     dtb_options_templates_list_lbl_create(instance,
895         instance->group13);
896     dtb_options_menu_label_lbl_create(instance,
897         instance->group13);
898     dtb_options_path_filename_label_lbl_create(instance,
899         instance->group13);
900     dtb_options_tem_add_but_create(instance,
901         instance->group11);
902     dtb_options_tem_del_but_create(instance,
903         instance->group11);
904     dtb_options_tem_change_but_create(instance,
905         instance->group11);
906     dtb_options_group14_create(instance,
907         instance->aliases_pane);
908     dtb_options_group15_create(instance,
909         instance->group14);
910     dtb_options_alias_tf_create(instance,
911         instance->group14);
912     dtb_options_addresses_tf_create(instance,
913         instance->group14);
914     dtb_options_alias_list_create(instance,
915         instance->group14);
916     dtb_options_alias_list_lbl_create(instance,
917         instance->group14);
918     dtb_options_alias_tf_lbl_create(instance,
919         instance->group14);
920     dtb_options_address_tf_lbl_create(instance,
921         instance->group14);
922     dtb_options_alias_add_but_create(instance,
923         instance->group15);
924     dtb_options_alias_delete_but_create(instance,
925         instance->group15);
926     dtb_options_al_change_but_create(instance,
927         instance->group15);
928     dtb_options_update_mbox_scale_create(instance,
929         instance->advanced_pane);
930     dtb_options_update_mailb_lbl_create(instance,
931         instance->advanced_pane);
932     dtb_options_frequently_lbl_create(instance,
933         instance->advanced_pane);
934     dtb_options_seldom_lbl_create(instance,
935         instance->advanced_pane);
936     dtb_options_separator11_create(instance,
937         instance->advanced_pane);
938     dtb_options_adv_def_cb_create(instance,
939         instance->advanced_pane);
940     dtb_options_group12_create(instance,
941         instance->advanced_pane);
942     dtb_options_group16_create(instance,
943         instance->group12);
944     dtb_options_local_name_tf_create(instance,
945         instance->group12);
946     dtb_options_local_name_list_create(instance,
947         instance->group12);
948     dtb_options_local_name_add_but_create(instance,
949         instance->group16);
950     dtb_options_local_name_del_but_create(instance,
951         instance->group16);
952     dtb_options_local_name_chg_but_create(instance,
953         instance->group16);
954     dtb_options_ok_button_create(instance,
955         instance->dialog_button_panel);
956     dtb_options_reset_button_create(instance,
957         instance->dialog_button_panel);
958     dtb_options_cancel_button_create(instance,
959         instance->dialog_button_panel);
960     dtb_options_separator_create(instance,
961         instance->dialog_button_panel);
962     dtb_options_apply_button_create(instance,
963         instance->dialog_button_panel);
964     dtb_options_help_button_create(instance,
965         instance->dialog_button_panel);
966     
967     /*
968      * Add widget-reference resources.
969      */
970     
971     XtVaSetValues(instance->dialog_shellform,
972         XmNdefaultButton, instance->ok_button,
973         NULL);
974     
975     XtVaSetValues(instance->layer,
976         XmNtopWidget, instance->ctrl_panel,
977         NULL);
978     
979     XtVaSetValues(instance->separator10,
980         XmNtopWidget, instance->category_opmenu_rowcolumn,
981         NULL);
982     
983     XtVaSetValues(instance->separator2,
984         XmNtopWidget, instance->group21,
985         NULL);
986     
987     XtVaSetValues(instance->checkbox,
988         XmNtopWidget, instance->separator2,
989         NULL);
990     
991     XtVaSetValues(instance->separator4,
992         XmNtopWidget, instance->checkbox,
993         NULL);
994     
995     XtVaSetValues(instance->group28,
996         XmNtopWidget, instance->separator4,
997         NULL);
998     
999     XtVaSetValues(instance->deleted_msg_cb,
1000         XmNtopWidget, instance->destroy_del_msg_lbl,
1001         NULL);
1002     
1003     XtVaSetValues(instance->seconds_lbl,
1004         XmNleftWidget, instance->mail_check_sb_rowcolumn,
1005         NULL);
1006     
1007     XtVaSetValues(instance->beeps_lbl,
1008         XmNleftWidget, instance->signal_sb_rowcolumn,
1009         NULL);
1010     
1011     XtVaSetValues(instance->flashes_lbl,
1012         XmNleftWidget, instance->spinbox2_rowcolumn,
1013         NULL);
1014     
1015     XtVaSetValues(instance->headers_lbl,
1016         XmNleftWidget, instance->display_sb_rowcolumn,
1017         NULL);
1018     
1019     XtVaSetValues(instance->separator6,
1020         XmNtopWidget, instance->group8,
1021         NULL);
1022     
1023     XtVaSetValues(instance->abr_header_lbl,
1024         XmNtopWidget, instance->separator6,
1025         NULL);
1026     
1027     XtVaSetValues(instance->group17,
1028         XmNtopWidget, instance->abr_header_lbl,
1029         NULL);
1030     
1031     XtVaSetValues(instance->rows_lbl,
1032         XmNleftWidget, instance->display_row_sb_rowcolumn,
1033         NULL);
1034     
1035     XtVaSetValues(instance->char_wide_lbl,
1036         XmNleftWidget, instance->characters_wide_sb_rowcolumn,
1037         NULL);
1038     
1039     XtVaSetValues(instance->group3,
1040         XmNleftWidget, instance->hidden_fields_list_scrolledwin,
1041         XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1042         NULL);
1043     
1044     XtVaSetValues(instance->hidden_fields_list_scrolledwin,
1045         XmNrightWidget, instance->fields_hide,
1046         XmNtopWidget, instance->fields_hide,
1047         NULL);
1048     
1049     XtVaSetValues(instance->hidden_fields_lbl,
1050         XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1051         NULL);
1052     
1053     XtVaSetValues(instance->h_field_delete,
1054         XmNtopWidget, instance->h_field_add,
1055         NULL);
1056     
1057     XtVaSetValues(instance->h_field_change,
1058         XmNtopWidget, instance->h_field_delete,
1059         NULL);
1060     
1061     XtVaSetValues(instance->separator7,
1062         XmNtopWidget, instance->group6,
1063         NULL);
1064     
1065     XtVaSetValues(instance->deadletter_field_rowcolumn,
1066         XmNtopWidget, instance->separator7,
1067         NULL);
1068     
1069     XtVaSetValues(instance->separator9,
1070         XmNtopWidget, instance->deadletter_field_rowcolumn,
1071         NULL);
1072     
1073     XtVaSetValues(instance->format_menu_lbl,
1074         XmNtopWidget, instance->separator9,
1075         NULL);
1076     
1077     XtVaSetValues(instance->confirm_attachment,
1078         XmNtopWidget, instance->wrap_checkbox,
1079         NULL);
1080     
1081     XtVaSetValues(instance->separator3,
1082         XmNtopWidget, instance->confirm_attachment,
1083         NULL);
1084     
1085     XtVaSetValues(instance->group6,
1086         XmNtopWidget, instance->separator3,
1087         NULL);
1088     
1089     XtVaSetValues(instance->group4,
1090         XmNtopWidget, instance->format_menu_lbl,
1091         NULL);
1092     
1093     XtVaSetValues(instance->indent_str_tf,
1094         XmNleftWidget, instance->group23,
1095         NULL);
1096     
1097     XtVaSetValues(instance->group7,
1098         XmNleftWidget, instance->list_scrolledwin,
1099         XmNtopWidget, instance->list_scrolledwin,
1100         NULL);
1101     
1102     XtVaSetValues(instance->list_scrolledwin,
1103         XmNrightWidget, instance->def_value_field,
1104         XmNtopWidget, instance->def_value_field,
1105         NULL);
1106     
1107     XtVaSetValues(instance->menu_labels_lbl,
1108         XmNtopWidget, instance->list_scrolledwin,
1109         NULL);
1110     
1111     XtVaSetValues(instance->def_value_field,
1112         XmNtopWidget, instance->hdr_field,
1113         NULL);
1114     
1115     XtVaSetValues(instance->hdr_field_lbl,
1116         XmNbottomWidget, instance->hdr_field,
1117         XmNtopWidget, instance->hdr_field,
1118         NULL);
1119     
1120     XtVaSetValues(instance->def_value_lbl,
1121         XmNbottomWidget, instance->def_value_field,
1122         XmNtopWidget, instance->def_value_field,
1123         NULL);
1124     
1125     XtVaSetValues(instance->del_button,
1126         XmNtopWidget, instance->add_button,
1127         NULL);
1128     
1129     XtVaSetValues(instance->change_button,
1130         XmNtopWidget, instance->del_button,
1131         NULL);
1132     
1133     XtVaSetValues(instance->separator8,
1134         XmNtopWidget, instance->group25,
1135         NULL);
1136     
1137     XtVaSetValues(instance->separator5,
1138         XmNtopWidget, instance->group9,
1139         NULL);
1140     
1141     XtVaSetValues(instance->group25,
1142         XmNtopWidget, instance->separator5,
1143         NULL);
1144     
1145     XtVaSetValues(instance->mailb_for_sent_lbl,
1146         XmNtopWidget, instance->separator8,
1147         NULL);
1148     
1149     XtVaSetValues(instance->group26,
1150         XmNtopWidget, instance->mailb_for_sent_lbl,
1151         NULL);
1152     
1153     XtVaSetValues(instance->group24,
1154         XmNleftWidget, instance->mv_menu_lst_scrolledwin,
1155         XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1156         NULL);
1157     
1158     XtVaSetValues(instance->mv_menu_lst_scrolledwin,
1159         XmNrightWidget, instance->path_file_name_tf,
1160         XmNtopWidget, instance->path_file_name_tf,
1161         NULL);
1162     
1163     XtVaSetValues(instance->srt_looking_tf,
1164         XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1165         NULL);
1166     
1167     XtVaSetValues(instance->move_menu_lbl,
1168         XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1169         NULL);
1170     
1171     XtVaSetValues(instance->move_menu_lbl2,
1172         XmNtopWidget, instance->move_menu_lbl,
1173         NULL);
1174     
1175     XtVaSetValues(instance->path_file_lbl,
1176         XmNbottomWidget, instance->path_file_name_tf,
1177         XmNtopWidget, instance->path_file_name_tf,
1178         NULL);
1179     
1180     XtVaSetValues(instance->start_look_lbl,
1181         XmNbottomWidget, instance->srt_looking_tf,
1182         XmNtopWidget, instance->srt_looking_tf,
1183         NULL);
1184     
1185     XtVaSetValues(instance->mm_delete_butt,
1186         XmNtopWidget, instance->mm_add_butt,
1187         NULL);
1188     
1189     XtVaSetValues(instance->mm_change_butt,
1190         XmNtopWidget, instance->mm_delete_butt,
1191         NULL);
1192     
1193     XtVaSetValues(instance->group10,
1194         XmNtopWidget, instance->vacation_lbl,
1195         NULL);
1196     
1197     XtVaSetValues(instance->vacation_msg_tp_scrolledwin,
1198         XmNtopWidget, instance->subject_tf,
1199         NULL);
1200     
1201     XtVaSetValues(instance->subject_tf,
1202         XmNtopWidget, instance->vacation_rb,
1203         NULL);
1204     
1205     XtVaSetValues(instance->msg_list_lbl,
1206         XmNtopWidget, instance->vacation_msg_tp_scrolledwin,
1207         NULL);
1208     
1209     XtVaSetValues(instance->subject_lbl,
1210         XmNbottomWidget, instance->subject_tf,
1211         XmNtopWidget, instance->subject_tf,
1212         NULL);
1213     
1214     XtVaSetValues(instance->vacation_rb_lbl,
1215         XmNbottomWidget, instance->vacation_rb,
1216         XmNtopWidget, instance->vacation_rb,
1217         NULL);
1218     
1219     XtVaSetValues(instance->group11,
1220         XmNleftWidget, instance->templates_list_scrolledwin,
1221         XmNtopWidget, instance->templates_list_scrolledwin,
1222         NULL);
1223     
1224     XtVaSetValues(instance->path_filename_label,
1225         XmNtopWidget, instance->menu_label,
1226         NULL);
1227     
1228     XtVaSetValues(instance->templates_list_scrolledwin,
1229         XmNrightWidget, instance->path_filename_label,
1230         XmNtopWidget, instance->path_filename_label,
1231         NULL);
1232     
1233     XtVaSetValues(instance->templates_list_lbl,
1234         XmNtopWidget, instance->templates_list_scrolledwin,
1235         NULL);
1236     
1237     XtVaSetValues(instance->menu_label_lbl,
1238         XmNbottomWidget, instance->menu_label,
1239         XmNtopWidget, instance->menu_label,
1240         NULL);
1241     
1242     XtVaSetValues(instance->path_filename_label_lbl,
1243         XmNbottomWidget, instance->path_filename_label,
1244         XmNtopWidget, instance->path_filename_label,
1245         NULL);
1246     
1247     XtVaSetValues(instance->tem_del_but,
1248         XmNtopWidget, instance->tem_add_but,
1249         NULL);
1250     
1251     XtVaSetValues(instance->tem_change_but,
1252         XmNtopWidget, instance->tem_del_but,
1253         NULL);
1254     
1255     XtVaSetValues(instance->group15,
1256         XmNleftWidget, instance->alias_list_scrolledwin,
1257         XmNtopWidget, instance->alias_list_scrolledwin,
1258         NULL);
1259     
1260     XtVaSetValues(instance->addresses_tf,
1261         XmNtopWidget, instance->alias_tf,
1262         NULL);
1263     
1264     XtVaSetValues(instance->alias_list_scrolledwin,
1265         XmNrightWidget, instance->addresses_tf,
1266         XmNtopWidget, instance->addresses_tf,
1267         NULL);
1268     
1269     XtVaSetValues(instance->alias_list_lbl,
1270         XmNtopWidget, instance->alias_list_scrolledwin,
1271         NULL);
1272     
1273     XtVaSetValues(instance->alias_tf_lbl,
1274         XmNbottomWidget, instance->alias_tf,
1275         XmNtopWidget, instance->alias_tf,
1276         NULL);
1277     
1278     XtVaSetValues(instance->address_tf_lbl,
1279         XmNbottomWidget, instance->addresses_tf,
1280         XmNtopWidget, instance->addresses_tf,
1281         NULL);
1282     
1283     XtVaSetValues(instance->alias_delete_but,
1284         XmNtopWidget, instance->alias_add_but,
1285         NULL);
1286     
1287     XtVaSetValues(instance->al_change_but,
1288         XmNtopWidget, instance->alias_delete_but,
1289         NULL);
1290     
1291     XtVaSetValues(instance->update_mbox_scale,
1292         XmNtopWidget, instance->update_mailb_lbl,
1293         NULL);
1294     
1295     XtVaSetValues(instance->frequently_lbl,
1296         XmNleftWidget, instance->update_mbox_scale,
1297         XmNtopWidget, instance->update_mbox_scale,
1298         NULL);
1299     
1300     XtVaSetValues(instance->seldom_lbl,
1301         XmNrightWidget, instance->update_mbox_scale,
1302         XmNtopWidget, instance->update_mbox_scale,
1303         NULL);
1304     
1305     XtVaSetValues(instance->separator11,
1306         XmNtopWidget, instance->seldom_lbl,
1307         NULL);
1308     
1309     XtVaSetValues(instance->adv_def_cb_rowcolumn,
1310         XmNtopWidget, instance->separator11,
1311         NULL);
1312     
1313     XtVaSetValues(instance->group12,
1314         XmNtopWidget, instance->adv_def_cb_rowcolumn,
1315         NULL);
1316     
1317     XtVaSetValues(instance->group16,
1318         XmNleftWidget, instance->local_name_list_scrolledwin,
1319         XmNtopWidget, instance->local_name_list_scrolledwin,
1320         NULL);
1321     
1322     XtVaSetValues(instance->local_name_list_scrolledwin,
1323         XmNrightWidget, instance->local_name_tf,
1324         XmNtopWidget, instance->local_name_tf,
1325         NULL);
1326     
1327     XtVaSetValues(instance->local_name_del_but,
1328         XmNtopWidget, instance->local_name_add_but,
1329         NULL);
1330     
1331     XtVaSetValues(instance->local_name_chg_but,
1332         XmNtopWidget, instance->local_name_del_but,
1333         NULL);
1334     
1335     /*
1336      * Call utility functions to do group layout
1337      */
1338     
1339     dtb_children_align(instance->group21,
1340                 DTB_GROUP_COLUMNS,
1341                 DTB_ALIGN_NONE,
1342                 DTB_ALIGN_LABELS,
1343                 0, 1, 0, 0, 4);
1344     
1345     dtb_children_align(instance->group8,
1346                 DTB_GROUP_COLUMNS,
1347                 DTB_ALIGN_NONE,
1348                 DTB_ALIGN_LABELS,
1349                 0, 1, 0, 0, 2);
1350     
1351     dtb_children_align(instance->group23,
1352                 DTB_GROUP_COLUMNS,
1353                 DTB_ALIGN_NONE,
1354                 DTB_ALIGN_RIGHT,
1355                 0, 1, 0, 0, 0);
1356     dtb_children_align(instance->group25,
1357                 DTB_GROUP_ROWS,
1358                 DTB_ALIGN_HCENTER,
1359                 DTB_ALIGN_NONE,
1360                 0, 1, 0, 4, 0);
1361
1362     XtVaSetValues(instance->visit_mailb_lbl, XmNtopOffset, 6, NULL);
1363     
1364     dtb_children_align(instance->group26,
1365                 DTB_GROUP_COLUMNS,
1366                 DTB_ALIGN_NONE,
1367                 DTB_ALIGN_LEFT,
1368                 0, 1, 0, 0, 6);
1369     
1370     XtManageChild(instance->category_opmenu_label);
1371     XtManageChild(instance->category_opmenu);
1372     XtManageChild(instance->category_opmenu_rowcolumn);
1373     XtManageChild(instance->separator10);
1374     XtManageChild(instance->ctrl_panel);
1375     XtManageChild(instance->separator2);
1376     XtManageChild(instance->checkbox);
1377     XtManageChild(instance->separator4);
1378     XtManageChild(instance->destroy_del_msg_lbl);
1379     XtManageChild(instance->deleted_msg_cb);
1380     XtManageChild(instance->group28);
1381     XtManageChild(instance->mail_check_sb_label);
1382     XtManageChild(instance->mail_check_sb);
1383     XtManageChild(instance->mail_check_sb_rowcolumn);
1384     XtManageChild(instance->seconds_lbl);
1385     XtManageChild(instance->group);
1386     XtManageChild(instance->signal_sb_label);
1387     XtManageChild(instance->signal_sb);
1388     XtManageChild(instance->signal_sb_rowcolumn);
1389     XtManageChild(instance->beeps_lbl);
1390     XtManageChild(instance->group18);
1391     XtManageChild(instance->spinbox2_label);
1392     XtManageChild(instance->spinbox2);
1393     XtManageChild(instance->spinbox2_rowcolumn);
1394     XtManageChild(instance->flashes_lbl);
1395     XtManageChild(instance->group19);
1396     XtManageChild(instance->display_sb_label);
1397     XtManageChild(instance->display_sb);
1398     XtManageChild(instance->display_sb_rowcolumn);
1399     XtManageChild(instance->headers_lbl);
1400     XtManageChild(instance->group20);
1401     XtManageChild(instance->group21);
1402     XtManageChild(instance->msg_header_pane);
1403     XtManageChild(instance->separator6);
1404     XtManageChild(instance->abr_header_lbl);
1405     XtManageChild(instance->display_row_sb_label);
1406     XtManageChild(instance->display_row_sb);
1407     XtManageChild(instance->display_row_sb_rowcolumn);
1408     XtManageChild(instance->rows_lbl);
1409     XtManageChild(instance->group2);
1410     XtManageChild(instance->characters_wide_sb_label);
1411     XtManageChild(instance->characters_wide_sb);
1412     XtManageChild(instance->characters_wide_sb_rowcolumn);
1413     XtManageChild(instance->char_wide_lbl);
1414     XtManageChild(instance->group22);
1415     XtManageChild(instance->fixed_font_cb);
1416     XtManageChild(instance->group8);
1417     XtManageChild(instance->h_field_add);
1418     XtManageChild(instance->h_field_delete);
1419     XtManageChild(instance->h_field_change);
1420     XtManageChild(instance->group3);
1421     XtManageChild(instance->fields_hide);
1422     XtManageChild(instance->hidden_fields_list);
1423     XtManageChild(instance->hidden_fields_list_scrolledwin);
1424     XtManageChild(instance->hidden_fields_lbl);
1425     XtManageChild(instance->header_fields_lbl);
1426     XtManageChild(instance->group17);
1427     XtManageChild(instance->wrap_checkbox);
1428     XtManageChild(instance->confirm_attachment);
1429     XtManageChild(instance->separator3);
1430     XtManageChild(instance->separator7);
1431     XtManageChild(instance->deadletter_field_label);
1432     XtManageChild(instance->deadletter_field);
1433     XtManageChild(instance->deadletter_field_rowcolumn);
1434     XtManageChild(instance->separator9);
1435     XtManageChild(instance->format_menu_lbl);
1436     XtManageChild(instance->indent_str_tf);
1437     XtManageChild(instance->indent_str_lbl);
1438     XtManageChild(instance->reply_include_lbl);
1439     XtManageChild(instance->group23);
1440     XtManageChild(instance->group6);
1441     XtManageChild(instance->add_button);
1442     XtManageChild(instance->del_button);
1443     XtManageChild(instance->change_button);
1444     XtManageChild(instance->group7);
1445     XtManageChild(instance->list);
1446     XtManageChild(instance->list_scrolledwin);
1447     XtManageChild(instance->menu_labels_lbl);
1448     XtManageChild(instance->hdr_field);
1449     XtManageChild(instance->def_value_field);
1450     XtManageChild(instance->hdr_field_lbl);
1451     XtManageChild(instance->def_value_lbl);
1452     XtManageChild(instance->group4);
1453     XtManageChild(instance->separator8);
1454     XtManageChild(instance->separator5);
1455     XtManageChild(instance->dpy_up_mbox_cb);
1456     XtManageChild(instance->recent_sb);
1457     XtManageChild(instance->visit_mailb_lbl);
1458     XtManageChild(instance->group25);
1459     XtManageChild(instance->mailb_for_sent_lbl);
1460     XtManageChild(instance->sent_mail_tf);
1461     XtManageChild(instance->log_cb);
1462     XtManageChild(instance->group26);
1463     XtManageChild(instance->mm_add_butt);
1464     XtManageChild(instance->mm_delete_butt);
1465     XtManageChild(instance->mm_change_butt);
1466     XtManageChild(instance->group24);
1467     XtManageChild(instance->path_file_name_tf);
1468     XtManageChild(instance->mv_menu_lst);
1469     XtManageChild(instance->mv_menu_lst_scrolledwin);
1470     XtManageChild(instance->srt_looking_tf);
1471     XtManageChild(instance->move_menu_lbl);
1472     XtManageChild(instance->move_menu_lbl2);
1473     XtManageChild(instance->path_file_lbl);
1474     XtManageChild(instance->start_look_lbl);
1475     XtManageChild(instance->group9);
1476     XtManageChild(instance->vacation_lbl);
1477     XtManageChild(instance->vacation_rb);
1478     XtManageChild(instance->vacation_msg_tp);
1479     XtManageChild(instance->vacation_msg_tp_scrolledwin);
1480     XtManageChild(instance->subject_tf);
1481     XtManageChild(instance->msg_list_lbl);
1482     XtManageChild(instance->subject_lbl);
1483     XtManageChild(instance->vacation_rb_lbl);
1484     XtManageChild(instance->group10);
1485     XtManageChild(instance->tem_add_but);
1486     XtManageChild(instance->tem_del_but);
1487     XtManageChild(instance->tem_change_but);
1488     XtManageChild(instance->group11);
1489     XtManageChild(instance->menu_label);
1490     XtManageChild(instance->path_filename_label);
1491     XtManageChild(instance->templates_list);
1492     XtManageChild(instance->templates_list_scrolledwin);
1493     XtManageChild(instance->templates_list_lbl);
1494     XtManageChild(instance->menu_label_lbl);
1495     XtManageChild(instance->path_filename_label_lbl);
1496     XtManageChild(instance->group13);
1497     XtManageChild(instance->alias_add_but);
1498     XtManageChild(instance->alias_delete_but);
1499     XtManageChild(instance->al_change_but);
1500     XtManageChild(instance->group15);
1501     XtManageChild(instance->alias_tf);
1502     XtManageChild(instance->addresses_tf);
1503     XtManageChild(instance->alias_list);
1504     XtManageChild(instance->alias_list_scrolledwin);
1505     XtManageChild(instance->alias_list_lbl);
1506     XtManageChild(instance->alias_tf_lbl);
1507     XtManageChild(instance->address_tf_lbl);
1508     XtManageChild(instance->group14);
1509     XtManageChild(instance->update_mbox_scale);
1510     XtManageChild(instance->update_mailb_lbl);
1511     XtManageChild(instance->frequently_lbl);
1512     XtManageChild(instance->seldom_lbl);
1513     XtManageChild(instance->separator11);
1514     XtManageChild(instance->adv_def_cb_label);
1515     XtManageChild(instance->adv_def_cb);
1516     XtManageChild(instance->adv_def_cb_rowcolumn);
1517     XtManageChild(instance->local_name_add_but);
1518     XtManageChild(instance->local_name_del_but);
1519     XtManageChild(instance->local_name_chg_but);
1520     XtManageChild(instance->group16);
1521     XtManageChild(instance->local_name_tf);
1522     XtManageChild(instance->local_name_list);
1523     XtManageChild(instance->local_name_list_scrolledwin);
1524     XtManageChild(instance->group12);
1525     XtManageChild(instance->layer);
1526     XtManageChild(instance->dialog_form);
1527     XtManageChild(instance->ok_button);
1528     XtManageChild(instance->reset_button);
1529     XtManageChild(instance->cancel_button);
1530     XtManageChild(instance->separator);
1531     XtManageChild(instance->apply_button);
1532     XtManageChild(instance->help_button);
1533     XtManageChild(instance->dialog_button_panel);
1534     XtManageChild(instance->dialog_panedwin);
1535
1536     /*
1537      * Add User and Connection callbacks
1538      */
1539         XtAddCallback(instance->category_opmenu_items.Message_Header_List_item,
1540                 XmNactivateCallback, message_header_listCB,
1541                 (XtPointer)&(*instance));
1542         XtAddCallback(instance->category_opmenu_items.Message_View_item,
1543                 XmNactivateCallback, message_viewCB,
1544                 (XtPointer)&(*instance));
1545         XtAddCallback(instance->category_opmenu_items.Compose_Window_item,
1546                 XmNactivateCallback, compose_windowCB,
1547                 (XtPointer)&(*instance));
1548         XtAddCallback(instance->category_opmenu_items.Message_Filing_item,
1549                 XmNactivateCallback, message_filingCB,
1550                 (XtPointer)&(*instance));
1551         XtAddCallback(instance->category_opmenu_items.Vacation_item,
1552                 XmNactivateCallback, vacationCB,
1553                 (XtPointer)&(*instance));
1554         XtAddCallback(instance->category_opmenu_items.Templates_item,
1555                 XmNactivateCallback, templatesCB,
1556                 (XtPointer)&(*instance));
1557         XtAddCallback(instance->category_opmenu_items.Aliases_item,
1558                 XmNactivateCallback, aliasesCB,
1559                 (XtPointer)&(*instance));
1560         XtAddCallback(instance->category_opmenu_items.Advanced_item,
1561                 XmNactivateCallback, advancedCB,
1562                 (XtPointer)&(*instance));
1563         XtAddCallback(instance->category_opmenu_items.Printing_item,
1564                 XmNactivateCallback, printingCB,
1565                 (XtPointer)&(*instance));
1566         XtAddCallback(instance->category_opmenu_items.MailRetrieval_item,
1567                 XmNactivateCallback, mailretrievalCB,
1568                 (XtPointer)&(*instance));
1569         XtAddCallback(instance->vacation_rb_items.On_item,
1570                 XmNvalueChangedCallback, vacationOnCB,
1571                 (XtPointer)&(*instance));
1572         XtAddCallback(instance->vacation_rb_items.Off_item,
1573                 XmNvalueChangedCallback, vacationOffCB,
1574                 (XtPointer)&(*instance));
1575         XtAddCallback(instance->alias_add_but,
1576                 XmNactivateCallback, alias_addCB,
1577                 (XtPointer)&(*instance));
1578         XtAddCallback(instance->alias_delete_but,
1579                 XmNactivateCallback, alias_delCB,
1580                 (XtPointer)&(*instance));
1581         XtAddCallback(instance->al_change_but,
1582                 XmNactivateCallback, alias_changeCB,
1583                 (XtPointer)&(*instance));
1584         XtAddCallback(instance->ok_button,
1585                 XmNactivateCallback, opt_pane_okCB,
1586                 (XtPointer)&(*instance));
1587         XtAddCallback(instance->reset_button,
1588                 XmNactivateCallback, opt_dlog_resetCB,
1589                 (XtPointer)&(*instance));
1590         XtAddCallback(instance->cancel_button,
1591                 XmNactivateCallback, opt_dlog_cancelCB,
1592                 (XtPointer)&(*instance));
1593         XtAddCallback(instance->apply_button,
1594                 XmNactivateCallback, options_applyCB,
1595                 (XtPointer)&(*instance));
1596         XtAddCallback(instance->help_button,
1597                 XmNactivateCallback, opt_dlog_HelpCB,
1598                 (XtPointer)&(*instance));
1599 return 0;
1600 }
1601
1602
1603
1604 static int 
1605 dtb_options_dialog_create(
1606     DtbOptionsDialogInfo instance,
1607     Widget parent
1608 )
1609 {
1610     XmString    label_xmstring = NULL;
1611     Display     *display= (parent == NULL? NULL:XtDisplay(parent));
1612     Arg args[8];        /* need 3 args (add 5 to be safe) */
1613     int n = 0;
1614     
1615     if (instance->dialog == NULL) {
1616         n = 0;
1617         XtSetArg(args[n], XmNallowShellResize, True);  ++n;
1618         XtSetArg(args[n], XmNtitle, GETMSG(Dtb_project_catd, 2, 1, "Mailer - Mail Options"));  ++n;
1619         XtSetArg(args[n], XmNbackground, dtb_cvt_string_to_pixel(parent, "white"));  ++n;
1620         instance->dialog =
1621             XmCreateDialogShell(parent,
1622                 "dtb_options_dialog", args, n);
1623     }
1624     if (instance->dialog == NULL)
1625         return -1;
1626
1627     if (instance->dialog_shellform == NULL) {
1628         instance->dialog_shellform =
1629             XtVaCreateWidget("dtb_options_dialog_shellform",
1630                 xmFormWidgetClass,
1631                 instance->dialog,
1632                 XmNnoResize, True,
1633                 XmNdefaultPosition, False,
1634                 XmNmarginHeight, 0,
1635                 XmNmarginWidth, 0,
1636                 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog, "white"),
1637                 NULL);
1638     }
1639     if (instance->dialog_shellform == NULL)
1640         return -1;
1641
1642     if (instance->dialog_panedwin == NULL) {
1643         instance->dialog_panedwin =
1644             XtVaCreateWidget("dtb_options_dialog_panedwin",
1645                 xmPanedWindowWidgetClass,
1646                 instance->dialog_shellform,
1647                 XmNbottomOffset, 0,
1648                 XmNbottomPosition, 100,
1649                 XmNbottomAttachment, XmATTACH_POSITION,
1650                 XmNrightOffset, 0,
1651                 XmNrightPosition, 100,
1652                 XmNrightAttachment, XmATTACH_POSITION,
1653                 XmNleftOffset, 0,
1654                 XmNleftPosition, 0,
1655                 XmNleftAttachment, XmATTACH_POSITION,
1656                 XmNtopOffset, 0,
1657                 XmNtopPosition, 0,
1658                 XmNtopAttachment, XmATTACH_POSITION,
1659                 XmNsashWidth, 1,
1660                 XmNsashHeight, 1,
1661                 XmNspacing, 0,
1662                 XmNmarginHeight, 0,
1663                 XmNmarginWidth, 0,
1664                 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_shellform, "white"),
1665                 NULL);
1666     }
1667     if (instance->dialog_panedwin == NULL)
1668         return -1;
1669
1670     if (instance->dialog_form == NULL) {
1671         instance->dialog_form =
1672             XtVaCreateWidget("dtb_options_dialog_form",
1673                 xmFormWidgetClass,
1674                 instance->dialog_panedwin,
1675                 XmNallowResize, True,
1676                 XmNmarginHeight, 0,
1677                 XmNmarginWidth, 0,
1678                 XmNresizePolicy, XmRESIZE_ANY,
1679                 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_panedwin, "white"),
1680                 NULL);
1681     }
1682     if (instance->dialog_form == NULL)
1683         return -1;
1684
1685     return 0;
1686 }
1687
1688
1689
1690 static int 
1691 dtb_options_dialog_button_panel_create(
1692     DtbOptionsDialogInfo instance,
1693     Widget parent
1694 )
1695 {
1696     
1697     if (instance->dialog_button_panel == NULL) {
1698         instance->dialog_button_panel =
1699             XtVaCreateWidget("dtb_options_dialog_button_panel",
1700                 xmFormWidgetClass,
1701                 parent,
1702                 XmNresizePolicy, XmRESIZE_GROW,
1703                 XmNmarginHeight, 7,
1704                 XmNmarginWidth, 7,
1705                 XmNpositionIndex, 1,
1706                 NULL);
1707     }
1708     if (instance->dialog_button_panel == NULL)
1709         return -1;
1710
1711     return 0;
1712 }
1713
1714
1715
1716 static int 
1717 dtb_options_ctrl_panel_create(
1718     DtbOptionsDialogInfo instance,
1719     Widget parent
1720 )
1721 {
1722     
1723     if (instance->ctrl_panel == NULL) {
1724         instance->ctrl_panel =
1725             XtVaCreateWidget("dtb_options_ctrl_panel",
1726                 xmFormWidgetClass,
1727                 parent,
1728                 XmNbottomAttachment, XmATTACH_NONE,
1729                 XmNrightOffset, 0,
1730                 XmNrightAttachment, XmATTACH_FORM,
1731                 XmNleftOffset, 0,
1732                 XmNleftAttachment, XmATTACH_FORM,
1733                 XmNtopOffset, 0,
1734                 XmNtopAttachment, XmATTACH_FORM,
1735                 XmNresizePolicy, XmRESIZE_ANY,
1736                 XmNmarginHeight, 0,
1737                 XmNmarginWidth, 0,
1738                 NULL);
1739     }
1740     if (instance->ctrl_panel == NULL)
1741         return -1;
1742
1743     return 0;
1744 }
1745
1746
1747
1748 static int 
1749 dtb_options_layer_create(
1750     DtbOptionsDialogInfo instance,
1751     Widget parent
1752 )
1753 {
1754     
1755     if (instance->layer == NULL) {
1756         instance->layer =
1757             XtVaCreateWidget("dtb_options_layer",
1758                 xmFormWidgetClass,
1759                 parent,
1760                 XmNbottomOffset, 0,
1761                 XmNbottomAttachment, XmATTACH_FORM,
1762                 XmNrightOffset, 0,
1763                 XmNrightAttachment, XmATTACH_FORM,
1764                 XmNleftOffset, 0,
1765                 XmNleftAttachment, XmATTACH_FORM,
1766                 XmNtopOffset, 0,
1767                 XmNtopAttachment, XmATTACH_WIDGET,
1768                 XmNresizePolicy, XmRESIZE_ANY,
1769                 NULL);
1770     }
1771     if (instance->layer == NULL)
1772         return -1;
1773
1774     return 0;
1775 }
1776
1777
1778
1779 static int 
1780 dtb_options_category_opmenu_create(
1781     DtbOptionsDialogInfo instance,
1782     Widget parent
1783 )
1784 {
1785     XmString    label_xmstring = NULL;
1786     Arg args[22];       /* need 17 args (add 5 to be safe) */
1787     int n = 0;
1788     Widget      category_opmenu_menu_items[8];
1789     
1790     if (instance->category_opmenu_rowcolumn == NULL) {
1791         instance->category_opmenu_rowcolumn =
1792             XtVaCreateWidget("dtb_options_category_opmenu",
1793                 xmRowColumnWidgetClass,
1794                 parent,
1795                 XmNbottomAttachment, XmATTACH_NONE,
1796                 XmNrightAttachment, XmATTACH_NONE,
1797                 XmNleftOffset, 0,
1798                 XmNleftPosition, 50,
1799                 XmNleftAttachment, XmATTACH_POSITION,
1800                 XmNtopOffset, 4,
1801                 XmNtopAttachment, XmATTACH_FORM,
1802                 XmNspacing, 0,
1803                 XmNpacking, XmPACK_TIGHT,
1804                 XmNisHomogeneous, False,
1805                 XmNadjustLast, True,
1806                 XmNmarginWidth, 0,
1807                 XmNmarginHeight, 0,
1808                 XmNentryAlignment, XmALIGNMENT_END,
1809                 XmNorientation, XmHORIZONTAL,
1810                 NULL);
1811     }
1812     if (instance->category_opmenu_rowcolumn == NULL)
1813         return -1;
1814
1815     if (instance->category_opmenu_menu == NULL) {
1816         n = 0;
1817         XtSetArg(args[n], XmNrowColumnType, XmMENU_PULLDOWN);  ++n;
1818         instance->category_opmenu_menu =
1819             XmCreatePulldownMenu(instance->category_opmenu_rowcolumn,
1820                 "dtb_options_category_opmenu_menu", args, n);
1821     }
1822     if (instance->category_opmenu_menu == NULL)
1823         return -1;
1824
1825     if (instance->category_opmenu_label == NULL) {
1826         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 2, "Category:"));
1827         instance->category_opmenu_label =
1828             XtVaCreateWidget("dtb_options_category_opmenu_label",
1829                 xmLabelWidgetClass,
1830                 instance->category_opmenu_rowcolumn,
1831                 XmNlabelType, XmSTRING,
1832                 XmNlabelString, label_xmstring,
1833                 NULL);
1834         XmStringFree(label_xmstring);
1835         label_xmstring = NULL;
1836     }
1837     if (instance->category_opmenu_label == NULL)
1838         return -1;
1839
1840     if (instance->category_opmenu == NULL) {
1841         n = 0;
1842         XtSetArg(args[n], XmNrowColumnType, XmMENU_OPTION);  ++n;
1843         XtSetArg(args[n], XmNspacing, 0);  ++n;
1844         XtSetArg(args[n], XmNsubMenuId, instance->category_opmenu_menu);  ++n;
1845         instance->category_opmenu =
1846             XmCreateOptionMenu(instance->category_opmenu_rowcolumn,
1847                 "dtb_options_category_opmenu_choice", args, n);
1848     }
1849     if (instance->category_opmenu == NULL)
1850         return -1;
1851
1852     if (instance->category_opmenu_items.Message_Header_List_item == NULL) {
1853         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 3, "Message Header List"));
1854         instance->category_opmenu_items.Message_Header_List_item =
1855             XtVaCreateManagedWidget("dtb_options_category_opmenu_message_header_list_item",
1856                 xmPushButtonWidgetClass,
1857                 instance->category_opmenu_menu,
1858                 XmNlabelString, label_xmstring,
1859                 NULL);
1860         XmStringFree(label_xmstring);
1861         label_xmstring = NULL;
1862     }
1863     if (instance->category_opmenu_items.Message_Header_List_item == NULL)
1864         return -1;
1865
1866     if (instance->category_opmenu_items.Message_View_item == NULL) {
1867         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 4, "Message View"));
1868         instance->category_opmenu_items.Message_View_item =
1869             XtVaCreateManagedWidget("dtb_options_category_opmenu_message_view_item",
1870                 xmPushButtonWidgetClass,
1871                 instance->category_opmenu_menu,
1872                 XmNlabelString, label_xmstring,
1873                 NULL);
1874         XmStringFree(label_xmstring);
1875         label_xmstring = NULL;
1876     }
1877     if (instance->category_opmenu_items.Message_View_item == NULL)
1878         return -1;
1879
1880     if (instance->category_opmenu_items.Compose_Window_item == NULL) {
1881         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 5, "Compose Window"));
1882         instance->category_opmenu_items.Compose_Window_item =
1883             XtVaCreateManagedWidget("dtb_options_category_opmenu_compose_window_item",
1884                 xmPushButtonWidgetClass,
1885                 instance->category_opmenu_menu,
1886                 XmNlabelString, label_xmstring,
1887                 NULL);
1888         XmStringFree(label_xmstring);
1889         label_xmstring = NULL;
1890     }
1891     if (instance->category_opmenu_items.Compose_Window_item == NULL)
1892         return -1;
1893
1894     if (instance->category_opmenu_items.Message_Filing_item == NULL) {
1895         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 6, "Message Filing"));
1896         instance->category_opmenu_items.Message_Filing_item =
1897             XtVaCreateManagedWidget("dtb_options_category_opmenu_message_filing_item",
1898                 xmPushButtonWidgetClass,
1899                 instance->category_opmenu_menu,
1900                 XmNlabelString, label_xmstring,
1901                 NULL);
1902         XmStringFree(label_xmstring);
1903         label_xmstring = NULL;
1904     }
1905     if (instance->category_opmenu_items.Message_Filing_item == NULL)
1906         return -1;
1907
1908     if (instance->category_opmenu_items.Vacation_item == NULL) {
1909         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 7, "Vacation"));
1910         instance->category_opmenu_items.Vacation_item =
1911             XtVaCreateManagedWidget("dtb_options_category_opmenu_vacation_item",
1912                 xmPushButtonWidgetClass,
1913                 instance->category_opmenu_menu,
1914                 XmNlabelString, label_xmstring,
1915                 NULL);
1916         XmStringFree(label_xmstring);
1917         label_xmstring = NULL;
1918     }
1919     if (instance->category_opmenu_items.Vacation_item == NULL)
1920         return -1;
1921
1922     if (instance->category_opmenu_items.Templates_item == NULL) {
1923         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 8, "Templates"));
1924         instance->category_opmenu_items.Templates_item =
1925             XtVaCreateManagedWidget("dtb_options_category_opmenu_templates_item",
1926                 xmPushButtonWidgetClass,
1927                 instance->category_opmenu_menu,
1928                 XmNlabelString, label_xmstring,
1929                 NULL);
1930         XmStringFree(label_xmstring);
1931         label_xmstring = NULL;
1932     }
1933     if (instance->category_opmenu_items.Templates_item == NULL)
1934         return -1;
1935
1936     if (instance->category_opmenu_items.Aliases_item == NULL) {
1937         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 9, "Aliases"));
1938         instance->category_opmenu_items.Aliases_item =
1939             XtVaCreateManagedWidget("dtb_options_category_opmenu_aliases_item",
1940                 xmPushButtonWidgetClass,
1941                 instance->category_opmenu_menu,
1942                 XmNlabelString, label_xmstring,
1943                 NULL);
1944         XmStringFree(label_xmstring);
1945         label_xmstring = NULL;
1946     }
1947     if (instance->category_opmenu_items.Aliases_item == NULL)
1948         return -1;
1949
1950     if (instance->category_opmenu_items.Advanced_item == NULL) {
1951         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 10, "Advanced"));
1952         instance->category_opmenu_items.Advanced_item =
1953             XtVaCreateManagedWidget("dtb_options_category_opmenu_advanced_item",
1954                 xmPushButtonWidgetClass,
1955                 instance->category_opmenu_menu,
1956                 XmNlabelString, label_xmstring,
1957                 NULL);
1958         XmStringFree(label_xmstring);
1959         label_xmstring = NULL;
1960     }
1961     if (instance->category_opmenu_items.Advanced_item == NULL)
1962         return -1;
1963
1964     if (instance->category_opmenu_items.Printing_item == NULL) {
1965         label_xmstring =
1966           XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 92, "Printing"));
1967         instance->category_opmenu_items.Printing_item =
1968             XtVaCreateManagedWidget("dtb_options_category_opmenu_printing_item",
1969                 xmPushButtonWidgetClass,
1970                 instance->category_opmenu_menu,
1971                 XmNlabelString, label_xmstring,
1972                 NULL);
1973         XmStringFree(label_xmstring);
1974         label_xmstring = NULL;
1975     }
1976     if (instance->category_opmenu_items.Printing_item == NULL)
1977         return -1;
1978
1979     if (instance->category_opmenu_items.MailRetrieval_item == NULL) {
1980         label_xmstring =
1981           XmStringCreateLocalized(
1982             GETMSG(Dtb_project_catd, 2, 93, "Mail Retrieval"));
1983         instance->category_opmenu_items.MailRetrieval_item =
1984             XtVaCreateManagedWidget(
1985                 "dtb_options_category_opmenu_mailretrieval_item",
1986                 xmPushButtonWidgetClass,
1987                 instance->category_opmenu_menu,
1988                 XmNlabelString, label_xmstring,
1989                 NULL);
1990         XmStringFree(label_xmstring);
1991         label_xmstring = NULL;
1992     }
1993     if (instance->category_opmenu_items.MailRetrieval_item == NULL)
1994         return -1;
1995
1996     dtb_center(instance->category_opmenu_rowcolumn, DTB_CENTER_POSITION_VERT);
1997     return 0;
1998 }
1999
2000
2001
2002 static int 
2003 dtb_options_separator10_create(
2004     DtbOptionsDialogInfo instance,
2005     Widget parent
2006 )
2007 {
2008     
2009     if (instance->separator10 == NULL) {
2010         instance->separator10 =
2011             XtVaCreateWidget("dtb_options_separator10",
2012                 xmSeparatorWidgetClass,
2013                 parent,
2014                 XmNbottomAttachment, XmATTACH_NONE,
2015                 XmNrightOffset, 0,
2016                 XmNrightAttachment, XmATTACH_FORM,
2017                 XmNleftOffset, 0,
2018                 XmNleftAttachment, XmATTACH_FORM,
2019                 XmNtopOffset, 2,
2020                 XmNtopAttachment, XmATTACH_WIDGET,
2021                 XmNseparatorType, XmSHADOW_ETCHED_IN,
2022                 XmNorientation, XmHORIZONTAL,
2023                 NULL);
2024     }
2025     if (instance->separator10 == NULL)
2026         return -1;
2027
2028     return 0;
2029 }
2030
2031
2032
2033 static int 
2034 dtb_options_msg_header_pane_create(
2035     DtbOptionsDialogInfo instance,
2036     Widget parent
2037 )
2038 {
2039     
2040     if (instance->msg_header_pane == NULL) {
2041         instance->msg_header_pane =
2042             XtVaCreateWidget("dtb_options_msg_header_pane",
2043                 xmFormWidgetClass,
2044                 parent,
2045                 XmNbottomOffset, 0,
2046                 XmNbottomPosition, 100,
2047                 XmNbottomAttachment, XmATTACH_POSITION,
2048                 XmNrightOffset, 0,
2049                 XmNrightPosition, 100,
2050                 XmNrightAttachment, XmATTACH_POSITION,
2051                 XmNleftOffset, 0,
2052                 XmNleftPosition, 0,
2053                 XmNleftAttachment, XmATTACH_POSITION,
2054                 XmNtopOffset, 0,
2055                 XmNtopPosition, 0,
2056                 XmNtopAttachment, XmATTACH_POSITION,
2057                 XmNresizePolicy, XmRESIZE_ANY,
2058                 XmNmarginHeight, 0,
2059                 XmNmarginWidth, 0,
2060                 NULL);
2061     }
2062     if (instance->msg_header_pane == NULL)
2063         return -1;
2064
2065     return 0;
2066 }
2067
2068
2069
2070 static int 
2071 dtb_options_msg_view_pane_create(
2072     DtbOptionsDialogInfo instance,
2073     Widget parent
2074 )
2075 {
2076     
2077     if (instance->msg_view_pane == NULL) {
2078         instance->msg_view_pane =
2079             XtVaCreateWidget("dtb_options_msg_view_pane",
2080                 xmFormWidgetClass,
2081                 parent,
2082                 XmNbottomOffset, 0,
2083                 XmNbottomPosition, 100,
2084                 XmNbottomAttachment, XmATTACH_POSITION,
2085                 XmNrightOffset, 0,
2086                 XmNrightPosition, 100,
2087                 XmNrightAttachment, XmATTACH_POSITION,
2088                 XmNleftOffset, 0,
2089                 XmNleftPosition, 0,
2090                 XmNleftAttachment, XmATTACH_POSITION,
2091                 XmNtopOffset, 0,
2092                 XmNtopPosition, 0,
2093                 XmNtopAttachment, XmATTACH_POSITION,
2094                 XmNresizePolicy, XmRESIZE_ANY,
2095                 XmNmarginHeight, 0,
2096                 XmNmarginWidth, 0,
2097                 NULL);
2098     }
2099     if (instance->msg_view_pane == NULL)
2100         return -1;
2101
2102     return 0;
2103 }
2104
2105
2106
2107 static int 
2108 dtb_options_compose_win_pane_create(
2109     DtbOptionsDialogInfo instance,
2110     Widget parent
2111 )
2112 {
2113     
2114     if (instance->compose_win_pane == NULL) {
2115         instance->compose_win_pane =
2116             XtVaCreateWidget("dtb_options_compose_win_pane",
2117                 xmFormWidgetClass,
2118                 parent,
2119                 XmNbottomOffset, 0,
2120                 XmNbottomPosition, 100,
2121                 XmNbottomAttachment, XmATTACH_POSITION,
2122                 XmNrightOffset, 0,
2123                 XmNrightPosition, 100,
2124                 XmNrightAttachment, XmATTACH_POSITION,
2125                 XmNleftOffset, 0,
2126                 XmNleftPosition, 0,
2127                 XmNleftAttachment, XmATTACH_POSITION,
2128                 XmNtopOffset, 0,
2129                 XmNtopPosition, 0,
2130                 XmNtopAttachment, XmATTACH_POSITION,
2131                 XmNresizePolicy, XmRESIZE_ANY,
2132                 XmNmarginHeight, 0,
2133                 XmNmarginWidth, 0,
2134                 NULL);
2135     }
2136     if (instance->compose_win_pane == NULL)
2137         return -1;
2138
2139     return 0;
2140 }
2141
2142
2143
2144 static int 
2145 dtb_options_msg_filing_pane_create(
2146     DtbOptionsDialogInfo instance,
2147     Widget parent
2148 )
2149 {
2150     
2151     if (instance->msg_filing_pane == NULL) {
2152         instance->msg_filing_pane =
2153             XtVaCreateWidget("dtb_options_msg_filing_pane",
2154                 xmFormWidgetClass,
2155                 parent,
2156                 XmNbottomOffset, 0,
2157                 XmNbottomPosition, 100,
2158                 XmNbottomAttachment, XmATTACH_POSITION,
2159                 XmNrightOffset, 0,
2160                 XmNrightPosition, 100,
2161                 XmNrightAttachment, XmATTACH_POSITION,
2162                 XmNleftOffset, 0,
2163                 XmNleftPosition, 0,
2164                 XmNleftAttachment, XmATTACH_POSITION,
2165                 XmNtopOffset, 0,
2166                 XmNtopPosition, 0,
2167                 XmNtopAttachment, XmATTACH_POSITION,
2168                 XmNresizePolicy, XmRESIZE_ANY,
2169                 XmNmarginHeight, 0,
2170                 XmNmarginWidth, 0,
2171                 NULL);
2172     }
2173     if (instance->msg_filing_pane == NULL)
2174         return -1;
2175
2176     return 0;
2177 }
2178
2179
2180
2181 static int 
2182 dtb_options_vacation_pane_create(
2183     DtbOptionsDialogInfo instance,
2184     Widget parent
2185 )
2186 {
2187     
2188     if (instance->vacation_pane == NULL) {
2189         instance->vacation_pane =
2190             XtVaCreateWidget("dtb_options_vacation_pane",
2191                 xmFormWidgetClass,
2192                 parent,
2193                 XmNbottomOffset, 0,
2194                 XmNbottomPosition, 100,
2195                 XmNbottomAttachment, XmATTACH_POSITION,
2196                 XmNrightOffset, 0,
2197                 XmNrightPosition, 100,
2198                 XmNrightAttachment, XmATTACH_POSITION,
2199                 XmNleftOffset, 0,
2200                 XmNleftPosition, 0,
2201                 XmNleftAttachment, XmATTACH_POSITION,
2202                 XmNtopOffset, 0,
2203                 XmNtopPosition, 0,
2204                 XmNtopAttachment, XmATTACH_POSITION,
2205                 XmNresizePolicy, XmRESIZE_ANY,
2206                 XmNmarginHeight, 0,
2207                 XmNmarginWidth, 0,
2208                 NULL);
2209     }
2210     if (instance->vacation_pane == NULL)
2211         return -1;
2212
2213     return 0;
2214 }
2215
2216
2217
2218 static int 
2219 dtb_options_templates_pane_create(
2220     DtbOptionsDialogInfo instance,
2221     Widget parent
2222 )
2223 {
2224     
2225     if (instance->templates_pane == NULL) {
2226         instance->templates_pane =
2227             XtVaCreateWidget("dtb_options_templates_pane",
2228                 xmFormWidgetClass,
2229                 parent,
2230                 XmNbottomOffset, 0,
2231                 XmNbottomPosition, 100,
2232                 XmNbottomAttachment, XmATTACH_POSITION,
2233                 XmNrightOffset, 0,
2234                 XmNrightPosition, 100,
2235                 XmNrightAttachment, XmATTACH_POSITION,
2236                 XmNleftOffset, 0,
2237                 XmNleftPosition, 0,
2238                 XmNleftAttachment, XmATTACH_POSITION,
2239                 XmNtopOffset, 0,
2240                 XmNtopPosition, 0,
2241                 XmNtopAttachment, XmATTACH_POSITION,
2242                 XmNresizePolicy, XmRESIZE_ANY,
2243                 XmNmarginHeight, 0,
2244                 XmNmarginWidth, 0,
2245                 NULL);
2246     }
2247     if (instance->templates_pane == NULL)
2248         return -1;
2249
2250     return 0;
2251 }
2252
2253
2254
2255 static int 
2256 dtb_options_aliases_pane_create(
2257     DtbOptionsDialogInfo instance,
2258     Widget parent
2259 )
2260 {
2261     
2262     if (instance->aliases_pane == NULL) {
2263         instance->aliases_pane =
2264             XtVaCreateWidget("dtb_options_aliases_pane",
2265                 xmFormWidgetClass,
2266                 parent,
2267                 XmNbottomOffset, 0,
2268                 XmNbottomPosition, 100,
2269                 XmNbottomAttachment, XmATTACH_POSITION,
2270                 XmNrightOffset, 0,
2271                 XmNrightPosition, 100,
2272                 XmNrightAttachment, XmATTACH_POSITION,
2273                 XmNleftOffset, 0,
2274                 XmNleftPosition, 0,
2275                 XmNleftAttachment, XmATTACH_POSITION,
2276                 XmNtopOffset, 0,
2277                 XmNtopPosition, 0,
2278                 XmNtopAttachment, XmATTACH_POSITION,
2279                 XmNresizePolicy, XmRESIZE_ANY,
2280                 XmNmarginHeight, 0,
2281                 XmNmarginWidth, 0,
2282                 NULL);
2283     }
2284     if (instance->aliases_pane == NULL)
2285         return -1;
2286
2287     return 0;
2288 }
2289
2290
2291
2292 static int 
2293 dtb_options_advanced_pane_create(
2294     DtbOptionsDialogInfo instance,
2295     Widget parent
2296 )
2297 {
2298     
2299     if (instance->advanced_pane == NULL) {
2300         instance->advanced_pane =
2301             XtVaCreateWidget("dtb_options_advanced_pane",
2302                 xmFormWidgetClass,
2303                 parent,
2304                 XmNbottomOffset, 0,
2305                 XmNbottomPosition, 100,
2306                 XmNbottomAttachment, XmATTACH_POSITION,
2307                 XmNrightOffset, 0,
2308                 XmNrightPosition, 100,
2309                 XmNrightAttachment, XmATTACH_POSITION,
2310                 XmNleftOffset, 0,
2311                 XmNleftPosition, 0,
2312                 XmNleftAttachment, XmATTACH_POSITION,
2313                 XmNtopOffset, 0,
2314                 XmNtopPosition, 0,
2315                 XmNtopAttachment, XmATTACH_POSITION,
2316                 XmNresizePolicy, XmRESIZE_ANY,
2317                 XmNmarginHeight, 0,
2318                 XmNmarginWidth, 0,
2319                 NULL);
2320     }
2321     if (instance->advanced_pane == NULL)
2322         return -1;
2323
2324     return 0;
2325 }
2326
2327
2328
2329 static int 
2330 dtb_options_separator2_create(
2331     DtbOptionsDialogInfo instance,
2332     Widget parent
2333 )
2334 {
2335     
2336     if (instance->separator2 == NULL) {
2337         instance->separator2 =
2338             XtVaCreateWidget("dtb_options_separator2",
2339                 xmSeparatorWidgetClass,
2340                 parent,
2341                 XmNbottomAttachment, XmATTACH_NONE,
2342                 XmNrightOffset, 0,
2343                 XmNrightAttachment, XmATTACH_FORM,
2344                 XmNleftOffset, 0,
2345                 XmNleftAttachment, XmATTACH_FORM,
2346                 XmNtopOffset, 8,
2347                 XmNtopAttachment, XmATTACH_WIDGET,
2348                 XmNseparatorType, XmSHADOW_ETCHED_IN,
2349                 XmNorientation, XmHORIZONTAL,
2350                 NULL);
2351     }
2352     if (instance->separator2 == NULL)
2353         return -1;
2354
2355     return 0;
2356 }
2357
2358
2359
2360 static int 
2361 dtb_options_checkbox_create(
2362     DtbOptionsDialogInfo instance,
2363     Widget parent
2364 )
2365 {
2366     XmString    label_xmstring = NULL;
2367     Arg args[23];       /* need 18 args (add 5 to be safe) */
2368     int n = 0;
2369     Widget      checkbox_items[2];
2370     
2371     if (instance->checkbox == NULL) {
2372         n = 0;
2373         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
2374         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
2375         XtSetArg(args[n], XmNleftOffset, 76);  ++n;
2376         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
2377         XtSetArg(args[n], XmNtopOffset, 4);  ++n;
2378         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
2379         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
2380         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
2381         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
2382         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
2383         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
2384         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
2385         XtSetArg(args[n], XmNspacing, 0);  ++n;
2386         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
2387         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
2388         instance->checkbox =
2389             XmCreateRadioBox(parent,
2390                 "dtb_options_checkbox", args, n);
2391     }
2392     if (instance->checkbox == NULL)
2393         return -1;
2394
2395     if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL) {
2396         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 11, "Show To: recipient when mail is from me"));
2397         instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item =
2398             XtVaCreateManagedWidget("dtb_options_checkbox_show_to_recipient_when_mail_is_from_me_item",
2399                 xmToggleButtonWidgetClass,
2400                 instance->checkbox,
2401                 XmNset, False,
2402                 XmNlabelString, label_xmstring,
2403                 NULL);
2404         XmStringFree(label_xmstring);
2405         label_xmstring = NULL;
2406     }
2407     if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL)
2408         return -1;
2409
2410     if (instance->checkbox_items.Display_message_numbers_item == NULL) {
2411         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 12, "Display message numbers"));
2412         instance->checkbox_items.Display_message_numbers_item =
2413             XtVaCreateManagedWidget("dtb_options_checkbox_display_message_numbers_item",
2414                 xmToggleButtonWidgetClass,
2415                 instance->checkbox,
2416                 XmNset, False,
2417                 XmNlabelString, label_xmstring,
2418                 NULL);
2419         XmStringFree(label_xmstring);
2420         label_xmstring = NULL;
2421     }
2422     if (instance->checkbox_items.Display_message_numbers_item == NULL)
2423         return -1;
2424
2425     return 0;
2426 }
2427
2428
2429
2430 static int 
2431 dtb_options_separator4_create(
2432     DtbOptionsDialogInfo instance,
2433     Widget parent
2434 )
2435 {
2436     
2437     if (instance->separator4 == NULL) {
2438         instance->separator4 =
2439             XtVaCreateWidget("dtb_options_separator4",
2440                 xmSeparatorWidgetClass,
2441                 parent,
2442                 XmNbottomAttachment, XmATTACH_NONE,
2443                 XmNrightOffset, 0,
2444                 XmNrightAttachment, XmATTACH_FORM,
2445                 XmNleftOffset, 0,
2446                 XmNleftAttachment, XmATTACH_FORM,
2447                 XmNtopOffset, 8,
2448                 XmNtopAttachment, XmATTACH_WIDGET,
2449                 XmNseparatorType, XmSHADOW_ETCHED_IN,
2450                 XmNorientation, XmHORIZONTAL,
2451                 NULL);
2452     }
2453     if (instance->separator4 == NULL)
2454         return -1;
2455
2456     return 0;
2457 }
2458
2459
2460
2461 static int 
2462 dtb_options_group28_create(
2463     DtbOptionsDialogInfo instance,
2464     Widget parent
2465 )
2466 {
2467     
2468     if (instance->group28 == NULL) {
2469         instance->group28 =
2470             XtVaCreateWidget("dtb_options_group28",
2471                 xmFormWidgetClass,
2472                 parent,
2473                 XmNbottomOffset, 10,
2474                 XmNbottomAttachment, XmATTACH_FORM,
2475                 XmNrightAttachment, XmATTACH_NONE,
2476                 XmNleftOffset, 76,
2477                 XmNleftAttachment, XmATTACH_FORM,
2478                 XmNtopOffset, 8,
2479                 XmNtopAttachment, XmATTACH_WIDGET,
2480                 XmNresizePolicy, XmRESIZE_ANY,
2481                 XmNmarginHeight, 0,
2482                 XmNmarginWidth, 0,
2483                 NULL);
2484     }
2485     if (instance->group28 == NULL)
2486         return -1;
2487
2488     return 0;
2489 }
2490
2491
2492
2493 static int 
2494 dtb_options_group21_create(
2495     DtbOptionsDialogInfo instance,
2496     Widget parent
2497 )
2498 {
2499     
2500     if (instance->group21 == NULL) {
2501         instance->group21 =
2502             XtVaCreateWidget("dtb_options_group21",
2503                 xmFormWidgetClass,
2504                 parent,
2505                 XmNbottomAttachment, XmATTACH_NONE,
2506                 XmNrightAttachment, XmATTACH_NONE,
2507                 XmNleftOffset, 78,
2508                 XmNleftAttachment, XmATTACH_FORM,
2509                 XmNtopOffset, 10,
2510                 XmNtopAttachment, XmATTACH_FORM,
2511                 XmNresizePolicy, XmRESIZE_ANY,
2512                 XmNmarginHeight, 0,
2513                 XmNmarginWidth, 0,
2514                 NULL);
2515     }
2516     if (instance->group21 == NULL)
2517         return -1;
2518
2519     return 0;
2520 }
2521
2522
2523
2524 static int 
2525 dtb_options_destroy_del_msg_lbl_create(
2526     DtbOptionsDialogInfo instance,
2527     Widget parent
2528 )
2529 {
2530     XmString    label_xmstring = NULL;
2531     
2532     if (instance->destroy_del_msg_lbl == NULL) {
2533         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 20, "Destroy Deleted Messages:"));
2534         instance->destroy_del_msg_lbl =
2535             XtVaCreateWidget("dtb_options_destroy_del_msg_lbl",
2536                 xmLabelWidgetClass,
2537                 parent,
2538                 XmNbottomAttachment, XmATTACH_NONE,
2539                 XmNrightAttachment, XmATTACH_NONE,
2540                 XmNleftOffset, 0,
2541                 XmNleftAttachment, XmATTACH_FORM,
2542                 XmNtopOffset, 0,
2543                 XmNtopAttachment, XmATTACH_FORM,
2544                 XmNrecomputeSize, True,
2545                 XmNalignment, XmALIGNMENT_CENTER,
2546                 XmNlabelType, XmSTRING,
2547                 XmNlabelString, label_xmstring,
2548                 NULL);
2549         XmStringFree(label_xmstring);
2550         label_xmstring = NULL;
2551     }
2552     if (instance->destroy_del_msg_lbl == NULL)
2553         return -1;
2554
2555     return 0;
2556 }
2557
2558
2559
2560 static int 
2561 dtb_options_deleted_msg_cb_create(
2562     DtbOptionsDialogInfo instance,
2563     Widget parent
2564 )
2565 {
2566     XmString    label_xmstring = NULL;
2567     Arg args[23];       /* need 18 args (add 5 to be safe) */
2568     int n = 0;
2569     Widget      deleted_msg_cb_items[2];
2570     
2571     if (instance->deleted_msg_cb == NULL) {
2572         n = 0;
2573         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
2574         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
2575         XtSetArg(args[n], XmNleftOffset, 0);  ++n;
2576         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
2577         XtSetArg(args[n], XmNtopOffset, 2);  ++n;
2578         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
2579         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
2580         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
2581         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
2582         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
2583         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
2584         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
2585         XtSetArg(args[n], XmNspacing, 0);  ++n;
2586         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
2587         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
2588         instance->deleted_msg_cb =
2589             XmCreateRadioBox(parent,
2590                 "dtb_options_deleted_msg_cb", args, n);
2591     }
2592     if (instance->deleted_msg_cb == NULL)
2593         return -1;
2594
2595     if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL) {
2596         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 21, "When I close the mailbox"));
2597         instance->deleted_msg_cb_items.When_I_close_the_mailbox_item =
2598             XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_when_i_close_the_mailbox_item",
2599                 xmToggleButtonWidgetClass,
2600                 instance->deleted_msg_cb,
2601                 XmNset, True,
2602                 XmNlabelString, label_xmstring,
2603                 NULL);
2604         XmStringFree(label_xmstring);
2605         label_xmstring = NULL;
2606     }
2607     if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL)
2608         return -1;
2609
2610     if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL) {
2611         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 22, "Show confirmation notice"));
2612         instance->deleted_msg_cb_items.Show_confirmation_notice_item =
2613             XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_show_confirmation_notice_item",
2614                 xmToggleButtonWidgetClass,
2615                 instance->deleted_msg_cb,
2616                 XmNset, True,
2617                 XmNlabelString, label_xmstring,
2618                 NULL);
2619         XmStringFree(label_xmstring);
2620         label_xmstring = NULL;
2621     }
2622     if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL)
2623         return -1;
2624
2625     return 0;
2626 }
2627
2628
2629
2630 static int 
2631 dtb_options_group_create(
2632     DtbOptionsDialogInfo instance,
2633     Widget parent
2634 )
2635 {
2636     
2637     if (instance->group == NULL) {
2638         instance->group =
2639             XtVaCreateWidget("dtb_options_group",
2640                 xmFormWidgetClass,
2641                 parent,
2642                 XmNresizePolicy, XmRESIZE_ANY,
2643                 XmNmarginHeight, 0,
2644                 XmNmarginWidth, 0,
2645                 NULL);
2646     }
2647     if (instance->group == NULL)
2648         return -1;
2649
2650     return 0;
2651 }
2652
2653
2654
2655 static int 
2656 dtb_options_group18_create(
2657     DtbOptionsDialogInfo instance,
2658     Widget parent
2659 )
2660 {
2661     
2662     if (instance->group18 == NULL) {
2663         instance->group18 =
2664             XtVaCreateWidget("dtb_options_group18",
2665                 xmFormWidgetClass,
2666                 parent,
2667                 XmNresizePolicy, XmRESIZE_ANY,
2668                 XmNmarginHeight, 0,
2669                 XmNmarginWidth, 0,
2670                 NULL);
2671     }
2672     if (instance->group18 == NULL)
2673         return -1;
2674
2675     return 0;
2676 }
2677
2678
2679
2680 static int 
2681 dtb_options_group19_create(
2682     DtbOptionsDialogInfo instance,
2683     Widget parent
2684 )
2685 {
2686     
2687     if (instance->group19 == NULL) {
2688         instance->group19 =
2689             XtVaCreateWidget("dtb_options_group19",
2690                 xmFormWidgetClass,
2691                 parent,
2692                 XmNresizePolicy, XmRESIZE_ANY,
2693                 XmNmarginHeight, 0,
2694                 XmNmarginWidth, 0,
2695                 NULL);
2696     }
2697     if (instance->group19 == NULL)
2698         return -1;
2699
2700     return 0;
2701 }
2702
2703
2704
2705 static int 
2706 dtb_options_group20_create(
2707     DtbOptionsDialogInfo instance,
2708     Widget parent
2709 )
2710 {
2711     
2712     if (instance->group20 == NULL) {
2713         instance->group20 =
2714             XtVaCreateWidget("dtb_options_group20",
2715                 xmFormWidgetClass,
2716                 parent,
2717                 XmNresizePolicy, XmRESIZE_ANY,
2718                 XmNmarginHeight, 0,
2719                 XmNmarginWidth, 0,
2720                 NULL);
2721     }
2722     if (instance->group20 == NULL)
2723         return -1;
2724
2725     return 0;
2726 }
2727
2728
2729
2730 static int 
2731 dtb_options_mail_check_sb_create(
2732     DtbOptionsDialogInfo instance,
2733     Widget parent
2734 )
2735 {
2736     XmString    label_xmstring = NULL;
2737     Arg args[18];       /* need 13 args (add 5 to be safe) */
2738     int n = 0;
2739     
2740     
2741     if (instance->mail_check_sb_rowcolumn == NULL) {
2742         instance->mail_check_sb_rowcolumn =
2743             XtVaCreateWidget("dtb_options_mail_check_sb",
2744                 xmRowColumnWidgetClass,
2745                 parent,
2746                 XmNbottomAttachment, XmATTACH_NONE,
2747                 XmNrightAttachment, XmATTACH_NONE,
2748                 XmNleftOffset, 0,
2749                 XmNleftAttachment, XmATTACH_FORM,
2750                 XmNtopOffset, 0,
2751                 XmNtopAttachment, XmATTACH_FORM,
2752                 XmNadjustLast, True,
2753                 XmNmarginWidth, 0,
2754                 XmNmarginHeight, 0,
2755                 XmNentryAlignment, XmALIGNMENT_END,
2756                 XmNorientation, XmHORIZONTAL,
2757                 NULL);
2758     }
2759     if (instance->mail_check_sb_rowcolumn == NULL)
2760         return -1;
2761
2762     if (instance->mail_check_sb_label == NULL) {
2763         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 13, "Check for new mail every:"));
2764         instance->mail_check_sb_label =
2765             XtVaCreateWidget("dtb_options_mail_check_sb_label",
2766                 xmLabelWidgetClass,
2767                 instance->mail_check_sb_rowcolumn,
2768                 XmNlabelType, XmSTRING,
2769                 XmNlabelString, label_xmstring,
2770                 NULL);
2771         XmStringFree(label_xmstring);
2772         label_xmstring = NULL;
2773     }
2774     if (instance->mail_check_sb_label == NULL)
2775         return -1;
2776
2777     if (instance->mail_check_sb == NULL) {
2778         n = 0;
2779         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
2780         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
2781         XtSetArg(args[n], XmNposition, 500);  ++n;
2782         XtSetArg(args[n], XmNmaximumValue, 999999);  ++n;
2783         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
2784         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
2785         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
2786         XtSetArg(args[n], XmNcolumns, 6);  ++n;
2787         instance->mail_check_sb =
2788             XmCreateSimpleSpinBox(instance->mail_check_sb_rowcolumn,
2789                 "dtb_options_mail_check_sb_field", args, n);
2790     }
2791     if (instance->mail_check_sb == NULL)
2792         return -1;
2793
2794     return 0;
2795 }
2796
2797
2798
2799 static int 
2800 dtb_options_seconds_lbl_create(
2801     DtbOptionsDialogInfo instance,
2802     Widget parent
2803 )
2804 {
2805     XmString    label_xmstring = NULL;
2806     
2807     if (instance->seconds_lbl == NULL) {
2808         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 14, "Seconds"));
2809         instance->seconds_lbl =
2810             XtVaCreateWidget("dtb_options_seconds_lbl",
2811                 xmLabelWidgetClass,
2812                 parent,
2813                 XmNbottomOffset, 0,
2814                 XmNbottomAttachment, XmATTACH_FORM,
2815                 XmNrightAttachment, XmATTACH_NONE,
2816                 XmNleftOffset, 2,
2817                 XmNleftAttachment, XmATTACH_WIDGET,
2818                 XmNtopOffset, 0,
2819                 XmNtopAttachment, XmATTACH_FORM,
2820                 XmNrecomputeSize, True,
2821                 XmNalignment, XmALIGNMENT_CENTER,
2822                 XmNlabelType, XmSTRING,
2823                 XmNlabelString, label_xmstring,
2824                 NULL);
2825         XmStringFree(label_xmstring);
2826         label_xmstring = NULL;
2827     }
2828     if (instance->seconds_lbl == NULL)
2829         return -1;
2830
2831     return 0;
2832 }
2833
2834
2835
2836 static int 
2837 dtb_options_signal_sb_create(
2838     DtbOptionsDialogInfo instance,
2839     Widget parent
2840 )
2841 {
2842     XmString    label_xmstring = NULL;
2843     Arg args[18];       /* need 13 args (add 5 to be safe) */
2844     int n = 0;
2845     
2846     
2847     if (instance->signal_sb_rowcolumn == NULL) {
2848         instance->signal_sb_rowcolumn =
2849             XtVaCreateWidget("dtb_options_signal_sb",
2850                 xmRowColumnWidgetClass,
2851                 parent,
2852                 XmNbottomAttachment, XmATTACH_NONE,
2853                 XmNrightAttachment, XmATTACH_NONE,
2854                 XmNleftOffset, 0,
2855                 XmNleftAttachment, XmATTACH_FORM,
2856                 XmNtopOffset, 0,
2857                 XmNtopAttachment, XmATTACH_FORM,
2858                 XmNadjustLast, True,
2859                 XmNmarginWidth, 0,
2860                 XmNmarginHeight, 0,
2861                 XmNentryAlignment, XmALIGNMENT_END,
2862                 XmNorientation, XmHORIZONTAL,
2863                 NULL);
2864     }
2865     if (instance->signal_sb_rowcolumn == NULL)
2866         return -1;
2867
2868     if (instance->signal_sb_label == NULL) {
2869         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 15, "Signal new mail with:"));
2870         instance->signal_sb_label =
2871             XtVaCreateWidget("dtb_options_signal_sb_label",
2872                 xmLabelWidgetClass,
2873                 instance->signal_sb_rowcolumn,
2874                 XmNlabelType, XmSTRING,
2875                 XmNlabelString, label_xmstring,
2876                 NULL);
2877         XmStringFree(label_xmstring);
2878         label_xmstring = NULL;
2879     }
2880     if (instance->signal_sb_label == NULL)
2881         return -1;
2882
2883     if (instance->signal_sb == NULL) {
2884         n = 0;
2885         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
2886         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
2887         XtSetArg(args[n], XmNposition, 0);  ++n;
2888         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
2889         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
2890         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
2891         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
2892         XtSetArg(args[n], XmNcolumns, 6);  ++n;
2893         instance->signal_sb =
2894             XmCreateSimpleSpinBox(instance->signal_sb_rowcolumn,
2895                 "dtb_options_signal_sb_field", args, n);
2896     }
2897     if (instance->signal_sb == NULL)
2898         return -1;
2899
2900     return 0;
2901 }
2902
2903
2904
2905 static int 
2906 dtb_options_beeps_lbl_create(
2907     DtbOptionsDialogInfo instance,
2908     Widget parent
2909 )
2910 {
2911     XmString    label_xmstring = NULL;
2912     
2913     if (instance->beeps_lbl == NULL) {
2914         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 16, "Beep(s)"));
2915         instance->beeps_lbl =
2916             XtVaCreateWidget("dtb_options_beeps_lbl",
2917                 xmLabelWidgetClass,
2918                 parent,
2919                 XmNbottomOffset, 0,
2920                 XmNbottomAttachment, XmATTACH_FORM,
2921                 XmNrightAttachment, XmATTACH_NONE,
2922                 XmNleftOffset, 2,
2923                 XmNleftAttachment, XmATTACH_WIDGET,
2924                 XmNtopOffset, 0,
2925                 XmNtopAttachment, XmATTACH_FORM,
2926                 XmNrecomputeSize, True,
2927                 XmNalignment, XmALIGNMENT_CENTER,
2928                 XmNlabelType, XmSTRING,
2929                 XmNlabelString, label_xmstring,
2930                 NULL);
2931         XmStringFree(label_xmstring);
2932         label_xmstring = NULL;
2933     }
2934     if (instance->beeps_lbl == NULL)
2935         return -1;
2936
2937     return 0;
2938 }
2939
2940
2941
2942 static int 
2943 dtb_options_spinbox2_create(
2944     DtbOptionsDialogInfo instance,
2945     Widget parent
2946 )
2947 {
2948     XmString    label_xmstring = NULL;
2949     Arg args[18];       /* need 13 args (add 5 to be safe) */
2950     int n = 0;
2951     
2952     
2953     if (instance->spinbox2_rowcolumn == NULL) {
2954         instance->spinbox2_rowcolumn =
2955             XtVaCreateWidget("dtb_options_spinbox2",
2956                 xmRowColumnWidgetClass,
2957                 parent,
2958                 XmNbottomAttachment, XmATTACH_NONE,
2959                 XmNrightAttachment, XmATTACH_NONE,
2960                 XmNleftOffset, 0,
2961                 XmNleftAttachment, XmATTACH_FORM,
2962                 XmNtopOffset, 0,
2963                 XmNtopAttachment, XmATTACH_FORM,
2964                 XmNadjustLast, True,
2965                 XmNmarginWidth, 0,
2966                 XmNmarginHeight, 0,
2967                 XmNentryAlignment, XmALIGNMENT_END,
2968                 XmNorientation, XmHORIZONTAL,
2969                 NULL);
2970     }
2971     if (instance->spinbox2_rowcolumn == NULL)
2972         return -1;
2973
2974     if (instance->spinbox2_label == NULL) {
2975         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
2976         instance->spinbox2_label =
2977             XtVaCreateWidget("dtb_options_spinbox2_label",
2978                 xmLabelWidgetClass,
2979                 instance->spinbox2_rowcolumn,
2980                 XmNlabelType, XmSTRING,
2981                 XmNlabelString, label_xmstring,
2982                 NULL);
2983         XmStringFree(label_xmstring);
2984         label_xmstring = NULL;
2985     }
2986     if (instance->spinbox2_label == NULL)
2987         return -1;
2988
2989     if (instance->spinbox2 == NULL) {
2990         n = 0;
2991         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
2992         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
2993         XtSetArg(args[n], XmNposition, 0);  ++n;
2994         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
2995         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
2996         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
2997         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
2998         XtSetArg(args[n], XmNcolumns, 6);  ++n;
2999         instance->spinbox2 =
3000             XmCreateSimpleSpinBox(instance->spinbox2_rowcolumn,
3001                 "dtb_options_spinbox2_field", args, n);
3002     }
3003     if (instance->spinbox2 == NULL)
3004         return -1;
3005
3006     return 0;
3007 }
3008
3009
3010
3011 static int 
3012 dtb_options_flashes_lbl_create(
3013     DtbOptionsDialogInfo instance,
3014     Widget parent
3015 )
3016 {
3017     XmString    label_xmstring = NULL;
3018     
3019     if (instance->flashes_lbl == NULL) {
3020         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 17, "Flash(es)"));
3021         instance->flashes_lbl =
3022             XtVaCreateWidget("dtb_options_flashes_lbl",
3023                 xmLabelWidgetClass,
3024                 parent,
3025                 XmNbottomOffset, 0,
3026                 XmNbottomAttachment, XmATTACH_FORM,
3027                 XmNrightAttachment, XmATTACH_NONE,
3028                 XmNleftOffset, 2,
3029                 XmNleftAttachment, XmATTACH_WIDGET,
3030                 XmNtopOffset, 0,
3031                 XmNtopAttachment, XmATTACH_FORM,
3032                 XmNrecomputeSize, True,
3033                 XmNalignment, XmALIGNMENT_CENTER,
3034                 XmNlabelType, XmSTRING,
3035                 XmNlabelString, label_xmstring,
3036                 NULL);
3037         XmStringFree(label_xmstring);
3038         label_xmstring = NULL;
3039     }
3040     if (instance->flashes_lbl == NULL)
3041         return -1;
3042
3043     return 0;
3044 }
3045
3046
3047
3048 static int 
3049 dtb_options_display_sb_create(
3050     DtbOptionsDialogInfo instance,
3051     Widget parent
3052 )
3053 {
3054     XmString    label_xmstring = NULL;
3055     Arg args[18];       /* need 13 args (add 5 to be safe) */
3056     int n = 0;
3057     
3058     
3059     if (instance->display_sb_rowcolumn == NULL) {
3060         instance->display_sb_rowcolumn =
3061             XtVaCreateWidget("dtb_options_display_sb",
3062                 xmRowColumnWidgetClass,
3063                 parent,
3064                 XmNbottomAttachment, XmATTACH_NONE,
3065                 XmNrightAttachment, XmATTACH_NONE,
3066                 XmNleftOffset, 0,
3067                 XmNleftAttachment, XmATTACH_FORM,
3068                 XmNtopOffset, 0,
3069                 XmNtopAttachment, XmATTACH_FORM,
3070                 XmNadjustLast, True,
3071                 XmNmarginWidth, 0,
3072                 XmNmarginHeight, 0,
3073                 XmNentryAlignment, XmALIGNMENT_END,
3074                 XmNorientation, XmHORIZONTAL,
3075                 NULL);
3076     }
3077     if (instance->display_sb_rowcolumn == NULL)
3078         return -1;
3079
3080     if (instance->display_sb_label == NULL) {
3081         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3082         instance->display_sb_label =
3083             XtVaCreateWidget("dtb_options_display_sb_label",
3084                 xmLabelWidgetClass,
3085                 instance->display_sb_rowcolumn,
3086                 XmNlabelType, XmSTRING,
3087                 XmNlabelString, label_xmstring,
3088                 NULL);
3089         XmStringFree(label_xmstring);
3090         label_xmstring = NULL;
3091     }
3092     if (instance->display_sb_label == NULL)
3093         return -1;
3094
3095     if (instance->display_sb == NULL) {
3096         n = 0;
3097         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
3098         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
3099         XtSetArg(args[n], XmNposition, 15);  ++n;
3100         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
3101         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
3102         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
3103         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
3104         XtSetArg(args[n], XmNcolumns, 6);  ++n;
3105         instance->display_sb =
3106             XmCreateSimpleSpinBox(instance->display_sb_rowcolumn,
3107                 "dtb_options_display_sb_field", args, n);
3108     }
3109     if (instance->display_sb == NULL)
3110         return -1;
3111
3112     return 0;
3113 }
3114
3115
3116
3117 static int 
3118 dtb_options_headers_lbl_create(
3119     DtbOptionsDialogInfo instance,
3120     Widget parent
3121 )
3122 {
3123     XmString    label_xmstring = NULL;
3124     
3125     if (instance->headers_lbl == NULL) {
3126         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 19, "Headers"));
3127         instance->headers_lbl =
3128             XtVaCreateWidget("dtb_options_headers_lbl",
3129                 xmLabelWidgetClass,
3130                 parent,
3131                 XmNbottomOffset, 0,
3132                 XmNbottomAttachment, XmATTACH_FORM,
3133                 XmNrightAttachment, XmATTACH_NONE,
3134                 XmNleftOffset, 2,
3135                 XmNleftAttachment, XmATTACH_WIDGET,
3136                 XmNtopOffset, 0,
3137                 XmNtopAttachment, XmATTACH_FORM,
3138                 XmNrecomputeSize, True,
3139                 XmNalignment, XmALIGNMENT_CENTER,
3140                 XmNlabelType, XmSTRING,
3141                 XmNlabelString, label_xmstring,
3142                 NULL);
3143         XmStringFree(label_xmstring);
3144         label_xmstring = NULL;
3145     }
3146     if (instance->headers_lbl == NULL)
3147         return -1;
3148
3149     return 0;
3150 }
3151
3152
3153
3154 static int 
3155 dtb_options_separator6_create(
3156     DtbOptionsDialogInfo instance,
3157     Widget parent
3158 )
3159 {
3160     
3161     if (instance->separator6 == NULL) {
3162         instance->separator6 =
3163             XtVaCreateWidget("dtb_options_separator6",
3164                 xmSeparatorWidgetClass,
3165                 parent,
3166                 XmNbottomAttachment, XmATTACH_NONE,
3167                 XmNrightOffset, 0,
3168                 XmNrightPosition, 100,
3169                 XmNrightAttachment, XmATTACH_POSITION,
3170                 XmNleftOffset, 0,
3171                 XmNleftPosition, 0,
3172                 XmNleftAttachment, XmATTACH_POSITION,
3173                 XmNtopOffset, 8,
3174                 XmNtopAttachment, XmATTACH_WIDGET,
3175                 XmNseparatorType, XmSHADOW_ETCHED_IN,
3176                 XmNorientation, XmHORIZONTAL,
3177                 NULL);
3178     }
3179     if (instance->separator6 == NULL)
3180         return -1;
3181
3182     return 0;
3183 }
3184
3185
3186
3187 static int 
3188 dtb_options_abr_header_lbl_create(
3189     DtbOptionsDialogInfo instance,
3190     Widget parent
3191 )
3192 {
3193     XmString    label_xmstring = NULL;
3194     
3195     if (instance->abr_header_lbl == NULL) {
3196         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 23, "Abbreviated header will not include:"));
3197         instance->abr_header_lbl =
3198             XtVaCreateWidget("dtb_options_abr_header_lbl",
3199                 xmLabelWidgetClass,
3200                 parent,
3201                 XmNbottomAttachment, XmATTACH_NONE,
3202                 XmNrightAttachment, XmATTACH_NONE,
3203                 XmNleftOffset, 24,
3204                 XmNleftAttachment, XmATTACH_FORM,
3205                 XmNtopOffset, 8,
3206                 XmNtopAttachment, XmATTACH_WIDGET,
3207                 XmNrecomputeSize, True,
3208                 XmNalignment, XmALIGNMENT_CENTER,
3209                 XmNlabelType, XmSTRING,
3210                 XmNlabelString, label_xmstring,
3211                 NULL);
3212         XmStringFree(label_xmstring);
3213         label_xmstring = NULL;
3214     }
3215     if (instance->abr_header_lbl == NULL)
3216         return -1;
3217
3218     return 0;
3219 }
3220
3221
3222
3223 static int 
3224 dtb_options_group8_create(
3225     DtbOptionsDialogInfo instance,
3226     Widget parent
3227 )
3228 {
3229     
3230     if (instance->group8 == NULL) {
3231         instance->group8 =
3232             XtVaCreateWidget("dtb_options_group8",
3233                 xmFormWidgetClass,
3234                 parent,
3235                 XmNbottomAttachment, XmATTACH_NONE,
3236                 XmNrightAttachment, XmATTACH_NONE,
3237                 XmNleftOffset, 133,
3238                 XmNleftAttachment, XmATTACH_FORM,
3239                 XmNtopOffset, 10,
3240                 XmNtopAttachment, XmATTACH_FORM,
3241                 XmNresizePolicy, XmRESIZE_ANY,
3242                 XmNmarginHeight, 0,
3243                 XmNmarginWidth, 0,
3244                 NULL);
3245     }
3246     if (instance->group8 == NULL)
3247         return -1;
3248
3249     return 0;
3250 }
3251
3252
3253
3254 static int 
3255 dtb_options_group17_create(
3256     DtbOptionsDialogInfo instance,
3257     Widget parent
3258 )
3259 {
3260     
3261     if (instance->group17 == NULL) {
3262         instance->group17 =
3263             XtVaCreateWidget("dtb_options_group17",
3264                 xmFormWidgetClass,
3265                 parent,
3266                 XmNbottomOffset, 10,
3267                 XmNbottomAttachment, XmATTACH_FORM,
3268                 XmNrightAttachment, XmATTACH_NONE,
3269                 XmNleftOffset, 35,
3270                 XmNleftAttachment, XmATTACH_FORM,
3271                 XmNtopOffset, 10,
3272                 XmNtopAttachment, XmATTACH_WIDGET,
3273                 XmNresizePolicy, XmRESIZE_ANY,
3274                 XmNmarginHeight, 0,
3275                 XmNmarginWidth, 0,
3276                 NULL);
3277     }
3278     if (instance->group17 == NULL)
3279         return -1;
3280
3281     return 0;
3282 }
3283
3284
3285
3286 static int 
3287 dtb_options_group2_create(
3288     DtbOptionsDialogInfo instance,
3289     Widget parent
3290 )
3291 {
3292     
3293     if (instance->group2 == NULL) {
3294         instance->group2 =
3295             XtVaCreateWidget("dtb_options_group2",
3296                 xmFormWidgetClass,
3297                 parent,
3298                 XmNresizePolicy, XmRESIZE_ANY,
3299                 XmNmarginHeight, 0,
3300                 XmNmarginWidth, 0,
3301                 NULL);
3302     }
3303     if (instance->group2 == NULL)
3304         return -1;
3305
3306     return 0;
3307 }
3308
3309
3310
3311 static int 
3312 dtb_options_group22_create(
3313     DtbOptionsDialogInfo instance,
3314     Widget parent
3315 )
3316 {
3317     
3318     if (instance->group22 == NULL) {
3319         instance->group22 =
3320             XtVaCreateWidget("dtb_options_group22",
3321                 xmFormWidgetClass,
3322                 parent,
3323                 XmNresizePolicy, XmRESIZE_ANY,
3324                 XmNmarginHeight, 0,
3325                 XmNmarginWidth, 0,
3326                 NULL);
3327     }
3328     if (instance->group22 == NULL)
3329         return -1;
3330
3331     return 0;
3332 }
3333
3334
3335
3336 static int 
3337 dtb_options_fixed_font_cb_create(
3338     DtbOptionsDialogInfo instance,
3339     Widget parent
3340 )
3341 {
3342     Arg args[14];       /* need 9 args (add 5 to be safe) */
3343     int n = 0;
3344     
3345     if (instance->fixed_font_cb == NULL) {
3346         n = 0;
3347         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
3348         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
3349         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
3350         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
3351         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
3352         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
3353         XtSetArg(args[n], XmNspacing, 0);  ++n;
3354         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
3355         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
3356         instance->fixed_font_cb =
3357             XmCreateRadioBox(parent,
3358                 "dtb_options_fixed_font_cb", args, n);
3359     }
3360     if (instance->fixed_font_cb == NULL)
3361         return -1;
3362
3363     return 0;
3364 }
3365
3366
3367
3368 static int 
3369 dtb_options_display_row_sb_create(
3370     DtbOptionsDialogInfo instance,
3371     Widget parent
3372 )
3373 {
3374     XmString    label_xmstring = NULL;
3375     Arg args[18];       /* need 13 args (add 5 to be safe) */
3376     int n = 0;
3377     
3378     
3379     if (instance->display_row_sb_rowcolumn == NULL) {
3380         instance->display_row_sb_rowcolumn =
3381             XtVaCreateWidget("dtb_options_display_row_sb",
3382                 xmRowColumnWidgetClass,
3383                 parent,
3384                 XmNbottomAttachment, XmATTACH_NONE,
3385                 XmNrightAttachment, XmATTACH_NONE,
3386                 XmNleftOffset, 0,
3387                 XmNleftAttachment, XmATTACH_FORM,
3388                 XmNtopOffset, 0,
3389                 XmNtopAttachment, XmATTACH_FORM,
3390                 XmNadjustLast, True,
3391                 XmNmarginWidth, 0,
3392                 XmNmarginHeight, 0,
3393                 XmNentryAlignment, XmALIGNMENT_END,
3394                 XmNorientation, XmHORIZONTAL,
3395                 NULL);
3396     }
3397     if (instance->display_row_sb_rowcolumn == NULL)
3398         return -1;
3399
3400     if (instance->display_row_sb_label == NULL) {
3401         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3402         instance->display_row_sb_label =
3403             XtVaCreateWidget("dtb_options_display_row_sb_label",
3404                 xmLabelWidgetClass,
3405                 instance->display_row_sb_rowcolumn,
3406                 XmNlabelType, XmSTRING,
3407                 XmNlabelString, label_xmstring,
3408                 NULL);
3409         XmStringFree(label_xmstring);
3410         label_xmstring = NULL;
3411     }
3412     if (instance->display_row_sb_label == NULL)
3413         return -1;
3414
3415     if (instance->display_row_sb == NULL) {
3416         n = 0;
3417         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
3418         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
3419         XtSetArg(args[n], XmNposition, 24);  ++n;
3420         XtSetArg(args[n], XmNmaximumValue, 360);  ++n;
3421         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
3422         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
3423         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
3424         XtSetArg(args[n], XmNcolumns, 6);  ++n;
3425         instance->display_row_sb =
3426             XmCreateSimpleSpinBox(instance->display_row_sb_rowcolumn,
3427                 "dtb_options_display_row_sb_field", args, n);
3428     }
3429     if (instance->display_row_sb == NULL)
3430         return -1;
3431
3432     return 0;
3433 }
3434
3435
3436
3437 static int 
3438 dtb_options_rows_lbl_create(
3439     DtbOptionsDialogInfo instance,
3440     Widget parent
3441 )
3442 {
3443     XmString    label_xmstring = NULL;
3444     
3445     if (instance->rows_lbl == NULL) {
3446         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 33, "Rows"));
3447         instance->rows_lbl =
3448             XtVaCreateWidget("dtb_options_rows_lbl",
3449                 xmLabelWidgetClass,
3450                 parent,
3451                 XmNbottomOffset, 0,
3452                 XmNbottomAttachment, XmATTACH_FORM,
3453                 XmNrightAttachment, XmATTACH_NONE,
3454                 XmNleftOffset, 0,
3455                 XmNleftAttachment, XmATTACH_WIDGET,
3456                 XmNtopOffset, 0,
3457                 XmNtopAttachment, XmATTACH_FORM,
3458                 XmNrecomputeSize, True,
3459                 XmNalignment, XmALIGNMENT_CENTER,
3460                 XmNlabelType, XmSTRING,
3461                 XmNlabelString, label_xmstring,
3462                 NULL);
3463         XmStringFree(label_xmstring);
3464         label_xmstring = NULL;
3465     }
3466     if (instance->rows_lbl == NULL)
3467         return -1;
3468
3469     return 0;
3470 }
3471
3472
3473
3474 static int 
3475 dtb_options_characters_wide_sb_create(
3476     DtbOptionsDialogInfo instance,
3477     Widget parent
3478 )
3479 {
3480     XmString    label_xmstring = NULL;
3481     Arg args[18];       /* need 13 args (add 5 to be safe) */
3482     int n = 0;
3483     
3484     
3485     if (instance->characters_wide_sb_rowcolumn == NULL) {
3486         instance->characters_wide_sb_rowcolumn =
3487             XtVaCreateWidget("dtb_options_characters_wide_sb",
3488                 xmRowColumnWidgetClass,
3489                 parent,
3490                 XmNbottomAttachment, XmATTACH_NONE,
3491                 XmNrightAttachment, XmATTACH_NONE,
3492                 XmNleftOffset, 0,
3493                 XmNleftAttachment, XmATTACH_FORM,
3494                 XmNtopOffset, 0,
3495                 XmNtopAttachment, XmATTACH_FORM,
3496                 XmNadjustLast, True,
3497                 XmNmarginWidth, 0,
3498                 XmNmarginHeight, 0,
3499                 XmNentryAlignment, XmALIGNMENT_END,
3500                 XmNorientation, XmHORIZONTAL,
3501                 NULL);
3502     }
3503     if (instance->characters_wide_sb_rowcolumn == NULL)
3504         return -1;
3505
3506     if (instance->characters_wide_sb_label == NULL) {
3507         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
3508         instance->characters_wide_sb_label =
3509             XtVaCreateWidget("dtb_options_characters_wide_sb_label",
3510                 xmLabelWidgetClass,
3511                 instance->characters_wide_sb_rowcolumn,
3512                 XmNlabelType, XmSTRING,
3513                 XmNlabelString, label_xmstring,
3514                 NULL);
3515         XmStringFree(label_xmstring);
3516         label_xmstring = NULL;
3517     }
3518     if (instance->characters_wide_sb_label == NULL)
3519         return -1;
3520
3521     if (instance->characters_wide_sb == NULL) {
3522         n = 0;
3523         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
3524         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
3525         XtSetArg(args[n], XmNposition, 80);  ++n;
3526         XtSetArg(args[n], XmNmaximumValue, 132);  ++n;
3527         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
3528         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
3529         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
3530         XtSetArg(args[n], XmNcolumns, 6);  ++n;
3531         instance->characters_wide_sb =
3532             XmCreateSimpleSpinBox(instance->characters_wide_sb_rowcolumn,
3533                 "dtb_options_characters_wide_sb_field", args, n);
3534     }
3535     if (instance->characters_wide_sb == NULL)
3536         return -1;
3537
3538     return 0;
3539 }
3540
3541
3542
3543 static int 
3544 dtb_options_char_wide_lbl_create(
3545     DtbOptionsDialogInfo instance,
3546     Widget parent
3547 )
3548 {
3549     XmString    label_xmstring = NULL;
3550     
3551     if (instance->char_wide_lbl == NULL) {
3552         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 34, "Characters Wide"));
3553         instance->char_wide_lbl =
3554             XtVaCreateWidget("dtb_options_char_wide_lbl",
3555                 xmLabelWidgetClass,
3556                 parent,
3557                 XmNbottomOffset, 0,
3558                 XmNbottomAttachment, XmATTACH_FORM,
3559                 XmNrightAttachment, XmATTACH_NONE,
3560                 XmNleftOffset, 0,
3561                 XmNleftAttachment, XmATTACH_WIDGET,
3562                 XmNtopOffset, 0,
3563                 XmNtopAttachment, XmATTACH_FORM,
3564                 XmNrecomputeSize, True,
3565                 XmNalignment, XmALIGNMENT_CENTER,
3566                 XmNlabelType, XmSTRING,
3567                 XmNlabelString, label_xmstring,
3568                 NULL);
3569         XmStringFree(label_xmstring);
3570         label_xmstring = NULL;
3571     }
3572     if (instance->char_wide_lbl == NULL)
3573         return -1;
3574
3575     return 0;
3576 }
3577
3578
3579
3580 static int 
3581 dtb_options_group3_create(
3582     DtbOptionsDialogInfo instance,
3583     Widget parent
3584 )
3585 {
3586     
3587     if (instance->group3 == NULL) {
3588         instance->group3 =
3589             XtVaCreateWidget("dtb_options_group3",
3590                 xmFormWidgetClass,
3591                 parent,
3592                 XmNbottomAttachment, XmATTACH_NONE,
3593                 XmNrightAttachment, XmATTACH_NONE,
3594                 XmNleftOffset, 10,
3595                 XmNleftAttachment, XmATTACH_WIDGET,
3596                 XmNtopOffset, 0,
3597                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3598                 XmNresizePolicy, XmRESIZE_ANY,
3599                 XmNmarginHeight, 0,
3600                 XmNmarginWidth, 0,
3601                 NULL);
3602     }
3603     if (instance->group3 == NULL)
3604         return -1;
3605
3606     return 0;
3607 }
3608
3609
3610
3611 static int 
3612 dtb_options_fields_hide_create(
3613     DtbOptionsDialogInfo instance,
3614     Widget parent
3615 )
3616 {
3617     Arg args[18];       /* need 13 args (add 5 to be safe) */
3618     int n = 0;
3619     
3620     if (instance->fields_hide == NULL) {
3621         n = 0;
3622         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
3623         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
3624         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
3625         XtSetArg(args[n], XmNleftPosition, 34);  ++n;
3626         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
3627         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
3628         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
3629         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
3630         XtSetArg(args[n], XmNeditable, True);  ++n;
3631         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
3632         instance->fields_hide =
3633             XmCreateTextField(parent,
3634                 "dtb_options_fields_hide", args, n);
3635     }
3636     if (instance->fields_hide == NULL)
3637         return -1;
3638
3639     return 0;
3640 }
3641
3642
3643
3644 static int 
3645 dtb_options_hidden_fields_list_create(
3646     DtbOptionsDialogInfo instance,
3647     Widget parent
3648 )
3649 {
3650     XmString    label_xmstring = NULL;
3651     Arg args[21];       /* need 16 args (add 5 to be safe) */
3652     int n = 0;
3653     int i = 0;
3654     XmString hidden_fields_list_list_xmstrings[3];
3655     
3656     
3657     /*
3658      * Convert char* strings to XmStrings
3659      */
3660     hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 25, "x-lines"));
3661     hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 26, "email-version"));
3662     hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 27, "expires"));
3663     if (instance->hidden_fields_list == NULL) {
3664         n = 0;
3665         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
3666         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
3667         XtSetArg(args[n], XmNselectionPolicy, XmSINGLE_SELECT);  ++n;
3668         XtSetArg(args[n], XmNvisibleItemCount, 7);  ++n;
3669         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
3670         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
3671         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
3672         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
3673         XtSetArg(args[n], XmNleftPosition, 34);  ++n;
3674         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
3675         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
3676         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
3677         XtSetArg(args[n], XmNitems, (XtArgVal)hidden_fields_list_list_xmstrings); n++;
3678         XtSetArg(args[n], XmNitemCount, (XtArgVal)3); n++;
3679         instance->hidden_fields_list =
3680             XmCreateScrolledList(parent,
3681                 "dtb_options_hidden_fields_list_list", args, n);
3682     }
3683     instance->hidden_fields_list_scrolledwin = XtParent(instance->hidden_fields_list);
3684     if (instance->hidden_fields_list == NULL)
3685         return -1;
3686
3687     return 0;
3688 }
3689
3690
3691
3692 static int 
3693 dtb_options_hidden_fields_lbl_create(
3694     DtbOptionsDialogInfo instance,
3695     Widget parent
3696 )
3697 {
3698     XmString    label_xmstring = NULL;
3699     
3700     if (instance->hidden_fields_lbl == NULL) {
3701         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 28, "Hidden Fields:"));
3702         instance->hidden_fields_lbl =
3703             XtVaCreateWidget("dtb_options_hidden_fields_lbl",
3704                 xmLabelWidgetClass,
3705                 parent,
3706                 XmNbottomAttachment, XmATTACH_NONE,
3707                 XmNrightOffset, 0,
3708                 XmNrightPosition, 34,
3709                 XmNrightAttachment, XmATTACH_POSITION,
3710                 XmNleftAttachment, XmATTACH_NONE,
3711                 XmNtopOffset, 0,
3712                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3713                 XmNrecomputeSize, True,
3714                 XmNalignment, XmALIGNMENT_END,
3715                 XmNlabelType, XmSTRING,
3716                 XmNlabelString, label_xmstring,
3717                 NULL);
3718         XmStringFree(label_xmstring);
3719         label_xmstring = NULL;
3720     }
3721     if (instance->hidden_fields_lbl == NULL)
3722         return -1;
3723
3724     return 0;
3725 }
3726
3727
3728
3729 static int 
3730 dtb_options_header_fields_lbl_create(
3731     DtbOptionsDialogInfo instance,
3732     Widget parent
3733 )
3734 {
3735     XmString    label_xmstring = NULL;
3736     
3737     if (instance->header_fields_lbl == NULL) {
3738         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 24, "Header Field:"));
3739         instance->header_fields_lbl =
3740             XtVaCreateWidget("dtb_options_header_fields_lbl",
3741                 xmLabelWidgetClass,
3742                 parent,
3743                 XmNbottomAttachment, XmATTACH_NONE,
3744                 XmNrightOffset, 0,
3745                 XmNrightPosition, 34,
3746                 XmNrightAttachment, XmATTACH_POSITION,
3747                 XmNleftAttachment, XmATTACH_NONE,
3748                 XmNtopOffset, 4,
3749                 XmNtopAttachment, XmATTACH_FORM,
3750                 XmNrecomputeSize, True,
3751                 XmNalignment, XmALIGNMENT_CENTER,
3752                 XmNlabelType, XmSTRING,
3753                 XmNlabelString, label_xmstring,
3754                 NULL);
3755         XmStringFree(label_xmstring);
3756         label_xmstring = NULL;
3757     }
3758     if (instance->header_fields_lbl == NULL)
3759         return -1;
3760
3761     return 0;
3762 }
3763
3764
3765
3766 static int 
3767 dtb_options_h_field_add_create(
3768     DtbOptionsDialogInfo instance,
3769     Widget parent
3770 )
3771 {
3772     XmString    label_xmstring = NULL;
3773     
3774     if (instance->h_field_add == NULL) {
3775         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
3776         instance->h_field_add =
3777             XtVaCreateWidget("dtb_options_h_field_add",
3778                 xmPushButtonWidgetClass,
3779                 parent,
3780                 XmNbottomAttachment, XmATTACH_NONE,
3781                 XmNrightOffset, 0,
3782                 XmNrightAttachment, XmATTACH_FORM,
3783                 XmNleftOffset, 0,
3784                 XmNleftAttachment, XmATTACH_FORM,
3785                 XmNtopOffset, 0,
3786                 XmNtopAttachment, XmATTACH_FORM,
3787                 XmNrecomputeSize, True,
3788                 XmNalignment, XmALIGNMENT_CENTER,
3789                 XmNlabelType, XmSTRING,
3790                 XmNlabelString, label_xmstring,
3791                 NULL);
3792         XmStringFree(label_xmstring);
3793         label_xmstring = NULL;
3794     }
3795     if (instance->h_field_add == NULL)
3796         return -1;
3797
3798     return 0;
3799 }
3800
3801
3802
3803 static int 
3804 dtb_options_h_field_delete_create(
3805     DtbOptionsDialogInfo instance,
3806     Widget parent
3807 )
3808 {
3809     XmString    label_xmstring = NULL;
3810     
3811     if (instance->h_field_delete == NULL) {
3812         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
3813         instance->h_field_delete =
3814             XtVaCreateWidget("dtb_options_h_field_delete",
3815                 xmPushButtonWidgetClass,
3816                 parent,
3817                 XmNbottomAttachment, XmATTACH_NONE,
3818                 XmNrightOffset, 0,
3819                 XmNrightAttachment, XmATTACH_FORM,
3820                 XmNleftOffset, 0,
3821                 XmNleftAttachment, XmATTACH_FORM,
3822                 XmNtopOffset, 10,
3823                 XmNtopAttachment, XmATTACH_WIDGET,
3824                 XmNrecomputeSize, True,
3825                 XmNalignment, XmALIGNMENT_CENTER,
3826                 XmNlabelType, XmSTRING,
3827                 XmNlabelString, label_xmstring,
3828                 NULL);
3829         XmStringFree(label_xmstring);
3830         label_xmstring = NULL;
3831     }
3832     if (instance->h_field_delete == NULL)
3833         return -1;
3834
3835     return 0;
3836 }
3837
3838
3839
3840 static int 
3841 dtb_options_h_field_change_create(
3842     DtbOptionsDialogInfo instance,
3843     Widget parent
3844 )
3845 {
3846     XmString    label_xmstring = NULL;
3847     
3848     if (instance->h_field_change == NULL) {
3849         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
3850         instance->h_field_change =
3851             XtVaCreateWidget("dtb_options_h_field_change",
3852                 xmPushButtonWidgetClass,
3853                 parent,
3854                 XmNbottomAttachment, XmATTACH_NONE,
3855                 XmNrightOffset, 0,
3856                 XmNrightAttachment, XmATTACH_FORM,
3857                 XmNleftOffset, 0,
3858                 XmNleftAttachment, XmATTACH_FORM,
3859                 XmNtopOffset, 10,
3860                 XmNtopAttachment, XmATTACH_WIDGET,
3861                 XmNrecomputeSize, True,
3862                 XmNalignment, XmALIGNMENT_CENTER,
3863                 XmNlabelType, XmSTRING,
3864                 XmNlabelString, label_xmstring,
3865                 NULL);
3866         XmStringFree(label_xmstring);
3867         label_xmstring = NULL;
3868     }
3869     if (instance->h_field_change == NULL)
3870         return -1;
3871
3872     return 0;
3873 }
3874
3875
3876
3877 static int 
3878 dtb_options_wrap_checkbox_create(
3879     DtbOptionsDialogInfo instance,
3880     Widget parent
3881 )
3882 {
3883     XmString    label_xmstring = NULL;
3884     Arg args[22];       /* need 17 args (add 5 to be safe) */
3885     int n = 0;
3886     Widget      wrap_checkbox_items[1];
3887     
3888     if (instance->wrap_checkbox == NULL) {
3889         n = 0;
3890         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
3891         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
3892         XtSetArg(args[n], XmNleftPosition, 26);  ++n;
3893         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
3894         XtSetArg(args[n], XmNtopOffset, 9);  ++n;
3895         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
3896         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
3897         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
3898         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
3899         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
3900         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
3901         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
3902         XtSetArg(args[n], XmNspacing, 0);  ++n;
3903         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
3904         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
3905         instance->wrap_checkbox =
3906             XmCreateRadioBox(parent,
3907                 "dtb_options_wrap_checkbox", args, n);
3908     }
3909     if (instance->wrap_checkbox == NULL)
3910         return -1;
3911
3912     if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL) {
3913         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 36, "Show Attachment List"));
3914         instance->wrap_checkbox_items.Show_Attachment_List_item =
3915             XtVaCreateManagedWidget("dtb_options_wrap_checkbox_show_attachment_list_item",
3916                 xmToggleButtonWidgetClass,
3917                 instance->wrap_checkbox,
3918                 XmNset, True,
3919                 XmNlabelString, label_xmstring,
3920                 NULL);
3921         XmStringFree(label_xmstring);
3922         label_xmstring = NULL;
3923     }
3924     if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL)
3925         return -1;
3926
3927     return 0;
3928 }
3929
3930
3931
3932 static int 
3933 dtb_options_confirm_attachment_create(
3934     DtbOptionsDialogInfo instance,
3935     Widget parent)
3936 {
3937     XmString    label_xmstring = NULL;
3938     Arg         args[32];       /* need 9 args (add 5 to be safe) */
3939     int         n = 0;
3940
3941     if (instance->confirm_attachment == NULL)
3942     {
3943         instance->confirm_attachment =
3944             XtVaCreateWidget("dtb_options_confirm_attachment",
3945                 xmFormWidgetClass,
3946                 parent,
3947                 XmNbottomAttachment, XmATTACH_NONE,
3948                 XmNrightAttachment, XmATTACH_NONE,
3949                 XmNleftPosition, 26,
3950                 XmNleftAttachment, XmATTACH_POSITION,
3951                 XmNtopOffset, 4,
3952                 XmNtopAttachment, XmATTACH_WIDGET,
3953                 XmNresizePolicy, XmRESIZE_ANY,
3954                 XmNmarginHeight, 0,
3955                 XmNmarginWidth, 0,
3956                 NULL);
3957
3958         if (instance->confirm_attachment == NULL) return -1;
3959     }
3960     parent = instance->confirm_attachment;
3961     
3962     if (instance->cfrm_att_checkbox == NULL)
3963     {
3964         n = 0;
3965         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
3966         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
3967         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
3968         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
3969         XtSetArg(args[n], XmNentryVerticalAlignment,
3970                           XmALIGNMENT_BASELINE_BOTTOM);  ++n;
3971         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
3972         XtSetArg(args[n], XmNspacing, 0);  ++n;
3973         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
3974         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
3975         instance->cfrm_att_checkbox =
3976           XmCreateRadioBox(parent, "dtb_options_cfrm_att_checkbox", args, n);
3977         
3978         if (instance->cfrm_att_checkbox == NULL) return -1;
3979
3980         XtVaSetValues(
3981                 instance->cfrm_att_checkbox,
3982                 XmNbottomAttachment, XmATTACH_FORM,
3983                 XmNtopAttachment,    XmATTACH_FORM,
3984                 XmNleftAttachment,   XmATTACH_FORM,
3985                 XmNleftPosition,     50,
3986                 XmNrightAttachment,  XmATTACH_NONE,
3987                 NULL);
3988
3989         XtManageChild(instance->cfrm_att_checkbox);
3990     }
3991
3992     if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
3993     {
3994         label_xmstring = XmStringCreateLocalized(
3995           GETMSG(Dtb_project_catd, 2, 94, "Confirm attachments over:"));
3996
3997         instance->cfrm_att_checkbox_items.Confirm_Attachment_item =
3998             XtVaCreateManagedWidget(
3999                 "dtb_options_cfrm_att_checkbox_Confirm_Attachment_item",
4000                 xmToggleButtonWidgetClass,
4001                 instance->cfrm_att_checkbox,
4002                 XmNset,         True,
4003                 XmNlabelString, label_xmstring,
4004                 NULL);
4005         XmStringFree(label_xmstring);
4006         label_xmstring = NULL;
4007
4008         if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
4009           return -1;
4010     }
4011
4012     if (instance->cfrm_att_size_sb == NULL)
4013     {
4014         n = 0;
4015         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
4016         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
4017         XtSetArg(args[n], XmNposition, 1024*1024);  ++n;
4018         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
4019         XtSetArg(args[n], XmNmaximumValue, 1024*1024);  ++n;
4020         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
4021         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
4022         XtSetArg(args[n], XmNcolumns, 8);  ++n;
4023         instance->cfrm_att_size_sb =
4024           XmCreateSimpleSpinBox(parent, "dtb_options_cfrm_att_size_sb", args,n);
4025
4026         if (instance->cfrm_att_size_sb == NULL) return -1;
4027         
4028         XtVaSetValues(
4029                 instance->cfrm_att_size_sb,
4030                 XmNbottomAttachment, XmATTACH_FORM,
4031                 XmNtopAttachment,    XmATTACH_FORM,
4032                 XmNleftAttachment,   XmATTACH_WIDGET,
4033                 XmNleftWidget,       instance->cfrm_att_checkbox,
4034                 XmNrightAttachment,  XmATTACH_NONE,
4035                 NULL);
4036         XtManageChild(instance->cfrm_att_size_sb);
4037     }
4038
4039     if (instance->visit_mailb_lbl == NULL)
4040     {
4041         label_xmstring =
4042           XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 95, "kilobytes"));
4043         instance->cfrm_att_size_mb_lbl =
4044             XtVaCreateManagedWidget("dtb_options_cfrm_att_size_mb_lbl",
4045                 xmLabelWidgetClass,
4046                 parent,
4047                 XmNrecomputeSize, True,
4048                 XmNalignment, XmALIGNMENT_CENTER,
4049                 XmNlabelType, XmSTRING,
4050                 XmNlabelString, label_xmstring,
4051                 XmNtopAttachment, XmATTACH_FORM,
4052                 XmNbottomAttachment, XmATTACH_FORM,
4053                 XmNbottomOffset, 4,
4054                 XmNrightAttachment, XmATTACH_NONE,
4055                 XmNleftOffset, 2,
4056                 XmNleftAttachment, XmATTACH_WIDGET,
4057                 XmNleftWidget, instance->cfrm_att_size_sb,
4058                 NULL);
4059         XmStringFree(label_xmstring);
4060         label_xmstring = NULL;
4061         
4062         if (instance->cfrm_att_size_mb_lbl == NULL) return -1;
4063         
4064         XtVaSetValues(
4065                 instance->cfrm_att_size_mb_lbl,
4066                 XmNbottomAttachment, XmATTACH_FORM,
4067                 XmNtopAttachment,    XmATTACH_FORM,
4068                 XmNleftAttachment,   XmATTACH_WIDGET,
4069                 XmNleftWidget,       instance->cfrm_att_size_sb,
4070                 XmNrightAttachment,  XmATTACH_NONE,
4071                 NULL);
4072     }
4073
4074     return 0;
4075 }
4076
4077
4078
4079 static int 
4080 dtb_options_separator3_create(
4081     DtbOptionsDialogInfo instance,
4082     Widget parent
4083 )
4084 {
4085     
4086     if (instance->separator3 == NULL) {
4087         instance->separator3 =
4088             XtVaCreateWidget("dtb_options_separator3",
4089                 xmSeparatorWidgetClass,
4090                 parent,
4091                 XmNbottomAttachment, XmATTACH_NONE,
4092                 XmNrightOffset, 0,
4093                 XmNrightAttachment, XmATTACH_FORM,
4094                 XmNleftOffset, 1,
4095                 XmNleftAttachment, XmATTACH_FORM,
4096                 XmNtopAttachment, XmATTACH_WIDGET,
4097                 XmNtopOffset, 9,
4098                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4099                 XmNorientation, XmHORIZONTAL,
4100                 NULL);
4101     }
4102     if (instance->separator3 == NULL)
4103         return -1;
4104
4105     return 0;
4106 }
4107
4108
4109
4110 static int 
4111 dtb_options_separator7_create(
4112     DtbOptionsDialogInfo instance,
4113     Widget parent
4114 )
4115 {
4116     
4117     if (instance->separator7 == NULL) {
4118         instance->separator7 =
4119             XtVaCreateWidget("dtb_options_separator7",
4120                 xmSeparatorWidgetClass,
4121                 parent,
4122                 XmNbottomAttachment, XmATTACH_NONE,
4123                 XmNrightOffset, 0,
4124                 XmNrightAttachment, XmATTACH_FORM,
4125                 XmNleftOffset, 1,
4126                 XmNleftAttachment, XmATTACH_FORM,
4127                 XmNtopOffset, 8,
4128                 XmNtopAttachment, XmATTACH_WIDGET,
4129                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4130                 XmNorientation, XmHORIZONTAL,
4131                 NULL);
4132     }
4133     if (instance->separator7 == NULL)
4134         return -1;
4135
4136     return 0;
4137 }
4138
4139
4140
4141 static int 
4142 dtb_options_deadletter_field_create(
4143     DtbOptionsDialogInfo instance,
4144     Widget parent
4145 )
4146 {
4147     XmString    label_xmstring = NULL;
4148     Arg args[44];       /* need 39 args (add 5 to be safe) */
4149     int n = 0;
4150     
4151     if (instance->deadletter_field_rowcolumn == NULL) {
4152         instance->deadletter_field_rowcolumn =
4153             XtVaCreateWidget("dtb_options_deadletter_field",
4154                 xmRowColumnWidgetClass,
4155                 parent,
4156                 XmNbottomAttachment, XmATTACH_NONE,
4157                 XmNrightAttachment, XmATTACH_NONE,
4158                 XmNleftOffset, 32,
4159                 XmNleftAttachment, XmATTACH_FORM,
4160                 XmNtopOffset, 8,
4161                 XmNtopAttachment, XmATTACH_WIDGET,
4162                 XmNadjustLast, True,
4163                 XmNmarginWidth, 0,
4164                 XmNmarginHeight, 0,
4165                 XmNentryAlignment, XmALIGNMENT_END,
4166                 XmNorientation, XmHORIZONTAL,
4167                 NULL);
4168     }
4169     if (instance->deadletter_field_rowcolumn == NULL)
4170         return -1;
4171
4172     if (instance->deadletter_field_label == NULL) {
4173         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 38, "Dead Letter Folder:"));
4174         instance->deadletter_field_label =
4175             XtVaCreateWidget("dtb_options_deadletter_field_label",
4176                 xmLabelWidgetClass,
4177                 instance->deadletter_field_rowcolumn,
4178                 XmNlabelType, XmSTRING,
4179                 XmNlabelString, label_xmstring,
4180                 NULL);
4181         XmStringFree(label_xmstring);
4182         label_xmstring = NULL;
4183     }
4184     if (instance->deadletter_field_label == NULL)
4185         return -1;
4186
4187     if (instance->deadletter_field == NULL) {
4188         n = 0;
4189         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4190         XtSetArg(args[n], XmNeditable, True);  ++n;
4191         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4192         instance->deadletter_field =
4193             XmCreateTextField(instance->deadletter_field_rowcolumn,
4194                 "dtb_options_deadletter_field_field", args, n);
4195     }
4196     if (instance->deadletter_field == NULL)
4197         return -1;
4198
4199     return 0;
4200 }
4201
4202
4203
4204 static int 
4205 dtb_options_separator9_create(
4206     DtbOptionsDialogInfo instance,
4207     Widget parent
4208 )
4209 {
4210     
4211     if (instance->separator9 == NULL) {
4212         instance->separator9 =
4213             XtVaCreateWidget("dtb_options_separator9",
4214                 xmSeparatorWidgetClass,
4215                 parent,
4216                 XmNbottomAttachment, XmATTACH_NONE,
4217                 XmNrightOffset, 0,
4218                 XmNrightAttachment, XmATTACH_FORM,
4219                 XmNleftOffset, 2,
4220                 XmNleftAttachment, XmATTACH_FORM,
4221                 XmNtopOffset, 8,
4222                 XmNtopAttachment, XmATTACH_WIDGET,
4223                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4224                 XmNorientation, XmHORIZONTAL,
4225                 NULL);
4226     }
4227     if (instance->separator9 == NULL)
4228         return -1;
4229
4230     return 0;
4231 }
4232
4233
4234
4235 static int 
4236 dtb_options_format_menu_lbl_create(
4237     DtbOptionsDialogInfo instance,
4238     Widget parent
4239 )
4240 {
4241     XmString    label_xmstring = NULL;
4242     
4243     if (instance->format_menu_lbl == NULL) {
4244         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 39, "Format Menu Custom Fields"));
4245         instance->format_menu_lbl =
4246             XtVaCreateWidget("dtb_options_format_menu_lbl",
4247                 xmLabelWidgetClass,
4248                 parent,
4249                 XmNbottomAttachment, XmATTACH_NONE,
4250                 XmNrightAttachment, XmATTACH_NONE,
4251                 XmNleftOffset, 8,
4252                 XmNleftAttachment, XmATTACH_FORM,
4253                 XmNtopOffset, 8,
4254                 XmNtopAttachment, XmATTACH_WIDGET,
4255                 XmNrecomputeSize, True,
4256                 XmNalignment, XmALIGNMENT_CENTER,
4257                 XmNlabelType, XmSTRING,
4258                 XmNlabelString, label_xmstring,
4259                 NULL);
4260         XmStringFree(label_xmstring);
4261         label_xmstring = NULL;
4262     }
4263     if (instance->format_menu_lbl == NULL)
4264         return -1;
4265
4266     return 0;
4267 }
4268
4269
4270
4271 static int 
4272 dtb_options_group6_create(
4273     DtbOptionsDialogInfo instance,
4274     Widget parent
4275 )
4276 {
4277     
4278     if (instance->group6 == NULL) {
4279         instance->group6 =
4280             XtVaCreateWidget("dtb_options_group6",
4281                 xmFormWidgetClass,
4282                 parent,
4283                 XmNbottomAttachment, XmATTACH_NONE,
4284                 XmNrightAttachment, XmATTACH_NONE,
4285                 XmNleftOffset, 32,
4286                 XmNleftAttachment, XmATTACH_FORM,
4287                 XmNtopOffset, 8,
4288                 XmNtopAttachment, XmATTACH_WIDGET,
4289                 XmNresizePolicy, XmRESIZE_ANY,
4290                 XmNmarginHeight, 0,
4291                 XmNmarginWidth, 0,
4292                 NULL);
4293     }
4294     if (instance->group6 == NULL)
4295         return -1;
4296
4297     return 0;
4298 }
4299
4300
4301
4302 static int 
4303 dtb_options_group4_create(
4304     DtbOptionsDialogInfo instance,
4305     Widget parent
4306 )
4307 {
4308     
4309     if (instance->group4 == NULL) {
4310         instance->group4 =
4311             XtVaCreateWidget("dtb_options_group4",
4312                 xmFormWidgetClass,
4313                 parent,
4314                 XmNbottomOffset, 10,
4315                 XmNbottomAttachment, XmATTACH_FORM,
4316                 XmNrightAttachment, XmATTACH_NONE,
4317                 XmNleftOffset, 69,
4318                 XmNleftAttachment, XmATTACH_FORM,
4319                 XmNtopOffset, 10,
4320                 XmNtopAttachment, XmATTACH_WIDGET,
4321                 XmNresizePolicy, XmRESIZE_ANY,
4322                 XmNmarginHeight, 0,
4323                 XmNmarginWidth, 0,
4324                 NULL);
4325     }
4326     if (instance->group4 == NULL)
4327         return -1;
4328
4329     return 0;
4330 }
4331
4332
4333
4334 static int 
4335 dtb_options_indent_str_tf_create(
4336     DtbOptionsDialogInfo instance,
4337     Widget parent
4338 )
4339 {
4340     Arg args[19];       /* need 14 args (add 5 to be safe) */
4341     int n = 0;
4342     
4343     if (instance->indent_str_tf == NULL) {
4344         n = 0;
4345         XtSetArg(args[n], XmNbottomOffset, 0);  ++n;
4346         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM);  ++n;
4347         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
4348         XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM);  ++n;
4349         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4350         XtSetArg(args[n], XmNleftAttachment, XmATTACH_WIDGET);  ++n;
4351         XtSetArg(args[n], XmNtopAttachment, XmATTACH_NONE);  ++n;
4352         XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 37, ">"));  ++n;
4353         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4354         XtSetArg(args[n], XmNeditable, True);  ++n;
4355         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4356         instance->indent_str_tf =
4357             XmCreateTextField(parent,
4358                 "dtb_options_indent_str_tf", args, n);
4359     }
4360     if (instance->indent_str_tf == NULL)
4361         return -1;
4362
4363     return 0;
4364 }
4365
4366
4367
4368 static int 
4369 dtb_options_group23_create(
4370     DtbOptionsDialogInfo instance,
4371     Widget parent
4372 )
4373 {
4374     
4375     if (instance->group23 == NULL) {
4376         instance->group23 =
4377             XtVaCreateWidget("dtb_options_group23",
4378                 xmFormWidgetClass,
4379                 parent,
4380                 XmNbottomOffset, 4,
4381                 XmNbottomAttachment, XmATTACH_FORM,
4382                 XmNrightAttachment, XmATTACH_NONE,
4383                 XmNleftOffset, 15,
4384                 XmNleftAttachment, XmATTACH_FORM,
4385                 XmNtopOffset, -2,
4386                 XmNtopAttachment, XmATTACH_FORM,
4387                 XmNresizePolicy, XmRESIZE_ANY,
4388                 XmNmarginHeight, 0,
4389                 XmNmarginWidth, 0,
4390                 NULL);
4391     }
4392     if (instance->group23 == NULL)
4393         return -1;
4394
4395     return 0;
4396 }
4397
4398
4399
4400 static int 
4401 dtb_options_indent_str_lbl_create(
4402     DtbOptionsDialogInfo instance,
4403     Widget parent
4404 )
4405 {
4406     XmString    label_xmstring = NULL;
4407     
4408     if (instance->indent_str_lbl == NULL) {
4409         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 52, "Indent string"));
4410         instance->indent_str_lbl =
4411             XtVaCreateWidget("dtb_options_indent_str_lbl",
4412                 xmLabelWidgetClass,
4413                 parent,
4414                 XmNrecomputeSize, True,
4415                 XmNalignment, XmALIGNMENT_CENTER,
4416                 XmNlabelType, XmSTRING,
4417                 XmNlabelString, label_xmstring,
4418                 NULL);
4419         XmStringFree(label_xmstring);
4420         label_xmstring = NULL;
4421     }
4422     if (instance->indent_str_lbl == NULL)
4423         return -1;
4424
4425     return 0;
4426 }
4427
4428
4429
4430 static int 
4431 dtb_options_reply_include_lbl_create(
4432     DtbOptionsDialogInfo instance,
4433     Widget parent
4434 )
4435 {
4436     XmString    label_xmstring = NULL;
4437     
4438     if (instance->reply_include_lbl == NULL) {
4439         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 53, "for Reply Include:"));
4440         instance->reply_include_lbl =
4441             XtVaCreateWidget("dtb_options_reply_include_lbl",
4442                 xmLabelWidgetClass,
4443                 parent,
4444                 XmNrecomputeSize, True,
4445                 XmNalignment, XmALIGNMENT_CENTER,
4446                 XmNlabelType, XmSTRING,
4447                 XmNlabelString, label_xmstring,
4448                 NULL);
4449         XmStringFree(label_xmstring);
4450         label_xmstring = NULL;
4451     }
4452     if (instance->reply_include_lbl == NULL)
4453         return -1;
4454
4455     return 0;
4456 }
4457
4458
4459
4460 static int 
4461 dtb_options_group7_create(
4462     DtbOptionsDialogInfo instance,
4463     Widget parent
4464 )
4465 {
4466     
4467     if (instance->group7 == NULL) {
4468         instance->group7 =
4469             XtVaCreateWidget("dtb_options_group7",
4470                 xmFormWidgetClass,
4471                 parent,
4472                 XmNbottomAttachment, XmATTACH_NONE,
4473                 XmNrightAttachment, XmATTACH_NONE,
4474                 XmNleftOffset, 10,
4475                 XmNleftAttachment, XmATTACH_WIDGET,
4476                 XmNtopOffset, 0,
4477                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4478                 XmNresizePolicy, XmRESIZE_ANY,
4479                 XmNmarginHeight, 0,
4480                 XmNmarginWidth, 0,
4481                 NULL);
4482     }
4483     if (instance->group7 == NULL)
4484         return -1;
4485
4486     return 0;
4487 }
4488
4489
4490
4491 static int 
4492 dtb_options_list_create(
4493     DtbOptionsDialogInfo instance,
4494     Widget parent
4495 )
4496 {
4497     XmString    label_xmstring = NULL;
4498     Arg args[21];       /* need 16 args (add 5 to be safe) */
4499     int n = 0;
4500     int i = 0;
4501     XmString list_list_xmstrings[2];
4502     
4503     
4504     /*
4505      * Convert char* strings to XmStrings
4506      */
4507     list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 40, "bcc"));
4508     list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 41, "return-receipt"));
4509     if (instance->list == NULL) {
4510         n = 0;
4511         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
4512         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
4513         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
4514         XtSetArg(args[n], XmNvisibleItemCount, 5);  ++n;
4515         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
4516         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
4517         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
4518         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4519         XtSetArg(args[n], XmNleftPosition, 24);  ++n;
4520         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
4521         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
4522         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
4523         XtSetArg(args[n], XmNitems, (XtArgVal)list_list_xmstrings); n++;
4524         XtSetArg(args[n], XmNitemCount, (XtArgVal)2); n++;
4525         instance->list =
4526             XmCreateScrolledList(parent,
4527                 "dtb_options_list_list", args, n);
4528     }
4529     instance->list_scrolledwin = XtParent(instance->list);
4530     if (instance->list == NULL)
4531         return -1;
4532
4533     return 0;
4534 }
4535
4536
4537
4538 static int 
4539 dtb_options_menu_labels_lbl_create(
4540     DtbOptionsDialogInfo instance,
4541     Widget parent
4542 )
4543 {
4544     XmString    label_xmstring = NULL;
4545     
4546     if (instance->menu_labels_lbl == NULL) {
4547         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 42, "Menu Labels:"));
4548         instance->menu_labels_lbl =
4549             XtVaCreateWidget("dtb_options_menu_labels_lbl",
4550                 xmLabelWidgetClass,
4551                 parent,
4552                 XmNbottomAttachment, XmATTACH_NONE,
4553                 XmNrightOffset, 0,
4554                 XmNrightPosition, 24,
4555                 XmNrightAttachment, XmATTACH_POSITION,
4556                 XmNleftAttachment, XmATTACH_NONE,
4557                 XmNtopOffset, 0,
4558                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4559                 XmNrecomputeSize, True,
4560                 XmNalignment, XmALIGNMENT_CENTER,
4561                 XmNlabelType, XmSTRING,
4562                 XmNlabelString, label_xmstring,
4563                 NULL);
4564         XmStringFree(label_xmstring);
4565         label_xmstring = NULL;
4566     }
4567     if (instance->menu_labels_lbl == NULL)
4568         return -1;
4569
4570     return 0;
4571 }
4572
4573
4574
4575 static int 
4576 dtb_options_hdr_field_create(
4577     DtbOptionsDialogInfo instance,
4578     Widget parent
4579 )
4580 {
4581     Arg args[18];       /* need 13 args (add 5 to be safe) */
4582     int n = 0;
4583     
4584     if (instance->hdr_field == NULL) {
4585         n = 0;
4586         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
4587         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
4588         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4589         XtSetArg(args[n], XmNleftPosition, 24);  ++n;
4590         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
4591         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
4592         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
4593         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4594         XtSetArg(args[n], XmNeditable, True);  ++n;
4595         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4596         instance->hdr_field =
4597             XmCreateTextField(parent,
4598                 "dtb_options_hdr_field", args, n);
4599     }
4600     if (instance->hdr_field == NULL)
4601         return -1;
4602
4603     return 0;
4604 }
4605
4606
4607
4608 static int 
4609 dtb_options_def_value_field_create(
4610     DtbOptionsDialogInfo instance,
4611     Widget parent
4612 )
4613 {
4614     Arg args[18];       /* need 13 args (add 5 to be safe) */
4615     int n = 0;
4616     
4617     if (instance->def_value_field == NULL) {
4618         n = 0;
4619         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
4620         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
4621         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
4622         XtSetArg(args[n], XmNleftPosition, 24);  ++n;
4623         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
4624         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
4625         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
4626         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
4627         XtSetArg(args[n], XmNeditable, True);  ++n;
4628         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
4629         instance->def_value_field =
4630             XmCreateTextField(parent,
4631                 "dtb_options_def_value_field", args, n);
4632     }
4633     if (instance->def_value_field == NULL)
4634         return -1;
4635
4636     return 0;
4637 }
4638
4639
4640
4641 static int 
4642 dtb_options_hdr_field_lbl_create(
4643     DtbOptionsDialogInfo instance,
4644     Widget parent
4645 )
4646 {
4647     XmString    label_xmstring = NULL;
4648     
4649     if (instance->hdr_field_lbl == NULL) {
4650         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 50, "Header Field:"));
4651         instance->hdr_field_lbl =
4652             XtVaCreateWidget("dtb_options_hdr_field_lbl",
4653                 xmLabelWidgetClass,
4654                 parent,
4655                 XmNbottomOffset, 0,
4656                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4657                 XmNrightOffset, 0,
4658                 XmNrightPosition, 24,
4659                 XmNrightAttachment, XmATTACH_POSITION,
4660                 XmNleftAttachment, XmATTACH_NONE,
4661                 XmNtopOffset, 0,
4662                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4663                 XmNrecomputeSize, True,
4664                 XmNalignment, XmALIGNMENT_CENTER,
4665                 XmNlabelType, XmSTRING,
4666                 XmNlabelString, label_xmstring,
4667                 NULL);
4668         XmStringFree(label_xmstring);
4669         label_xmstring = NULL;
4670     }
4671     if (instance->hdr_field_lbl == NULL)
4672         return -1;
4673
4674     return 0;
4675 }
4676
4677
4678
4679 static int 
4680 dtb_options_def_value_lbl_create(
4681     DtbOptionsDialogInfo instance,
4682     Widget parent
4683 )
4684 {
4685     XmString    label_xmstring = NULL;
4686     
4687     if (instance->def_value_lbl == NULL) {
4688         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 51, "Default Value:"));
4689         instance->def_value_lbl =
4690             XtVaCreateWidget("dtb_options_def_value_lbl",
4691                 xmLabelWidgetClass,
4692                 parent,
4693                 XmNbottomOffset, 0,
4694                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4695                 XmNrightOffset, 0,
4696                 XmNrightPosition, 24,
4697                 XmNrightAttachment, XmATTACH_POSITION,
4698                 XmNleftAttachment, XmATTACH_NONE,
4699                 XmNtopOffset, 0,
4700                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4701                 XmNrecomputeSize, True,
4702                 XmNalignment, XmALIGNMENT_CENTER,
4703                 XmNlabelType, XmSTRING,
4704                 XmNlabelString, label_xmstring,
4705                 NULL);
4706         XmStringFree(label_xmstring);
4707         label_xmstring = NULL;
4708     }
4709     if (instance->def_value_lbl == NULL)
4710         return -1;
4711
4712     return 0;
4713 }
4714
4715
4716
4717 static int 
4718 dtb_options_add_button_create(
4719     DtbOptionsDialogInfo instance,
4720     Widget parent
4721 )
4722 {
4723     XmString    label_xmstring = NULL;
4724     
4725     if (instance->add_button == NULL) {
4726         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
4727         instance->add_button =
4728             XtVaCreateWidget("dtb_options_add_button",
4729                 xmPushButtonWidgetClass,
4730                 parent,
4731                 XmNbottomAttachment, XmATTACH_NONE,
4732                 XmNrightOffset, 0,
4733                 XmNrightAttachment, XmATTACH_FORM,
4734                 XmNleftOffset, 0,
4735                 XmNleftAttachment, XmATTACH_FORM,
4736                 XmNtopOffset, 0,
4737                 XmNtopAttachment, XmATTACH_FORM,
4738                 XmNrecomputeSize, True,
4739                 XmNalignment, XmALIGNMENT_CENTER,
4740                 XmNlabelType, XmSTRING,
4741                 XmNlabelString, label_xmstring,
4742                 NULL);
4743         XmStringFree(label_xmstring);
4744         label_xmstring = NULL;
4745     }
4746     if (instance->add_button == NULL)
4747         return -1;
4748
4749     return 0;
4750 }
4751
4752
4753
4754 static int 
4755 dtb_options_del_button_create(
4756     DtbOptionsDialogInfo instance,
4757     Widget parent
4758 )
4759 {
4760     XmString    label_xmstring = NULL;
4761     
4762     if (instance->del_button == NULL) {
4763         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
4764         instance->del_button =
4765             XtVaCreateWidget("dtb_options_del_button",
4766                 xmPushButtonWidgetClass,
4767                 parent,
4768                 XmNbottomAttachment, XmATTACH_NONE,
4769                 XmNrightOffset, 0,
4770                 XmNrightAttachment, XmATTACH_FORM,
4771                 XmNleftOffset, 0,
4772                 XmNleftAttachment, XmATTACH_FORM,
4773                 XmNtopOffset, 10,
4774                 XmNtopAttachment, XmATTACH_WIDGET,
4775                 XmNrecomputeSize, True,
4776                 XmNalignment, XmALIGNMENT_CENTER,
4777                 XmNlabelType, XmSTRING,
4778                 XmNlabelString, label_xmstring,
4779                 NULL);
4780         XmStringFree(label_xmstring);
4781         label_xmstring = NULL;
4782     }
4783     if (instance->del_button == NULL)
4784         return -1;
4785
4786     return 0;
4787 }
4788
4789
4790
4791 static int 
4792 dtb_options_change_button_create(
4793     DtbOptionsDialogInfo instance,
4794     Widget parent
4795 )
4796 {
4797     XmString    label_xmstring = NULL;
4798     
4799     if (instance->change_button == NULL) {
4800         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
4801         instance->change_button =
4802             XtVaCreateWidget("dtb_options_change_button",
4803                 xmPushButtonWidgetClass,
4804                 parent,
4805                 XmNbottomAttachment, XmATTACH_NONE,
4806                 XmNrightAttachment, XmATTACH_NONE,
4807                 XmNleftOffset, 0,
4808                 XmNleftAttachment, XmATTACH_FORM,
4809                 XmNtopOffset, 10,
4810                 XmNtopAttachment, XmATTACH_WIDGET,
4811                 XmNrecomputeSize, True,
4812                 XmNalignment, XmALIGNMENT_CENTER,
4813                 XmNlabelType, XmSTRING,
4814                 XmNlabelString, label_xmstring,
4815                 NULL);
4816         XmStringFree(label_xmstring);
4817         label_xmstring = NULL;
4818     }
4819     if (instance->change_button == NULL)
4820         return -1;
4821
4822     return 0;
4823 }
4824
4825
4826
4827 static int 
4828 dtb_options_separator8_create(
4829     DtbOptionsDialogInfo instance,
4830     Widget parent
4831 )
4832 {
4833     
4834     if (instance->separator8 == NULL) {
4835         instance->separator8 =
4836             XtVaCreateWidget("dtb_options_separator8",
4837                 xmSeparatorWidgetClass,
4838                 parent,
4839                 XmNbottomAttachment, XmATTACH_NONE,
4840                 XmNrightOffset, -5,
4841                 XmNrightAttachment, XmATTACH_FORM,
4842                 XmNleftOffset, 0,
4843                 XmNleftAttachment, XmATTACH_FORM,
4844                 XmNtopOffset, 6,
4845                 XmNtopAttachment, XmATTACH_WIDGET,
4846                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4847                 XmNorientation, XmHORIZONTAL,
4848                 NULL);
4849     }
4850     if (instance->separator8 == NULL)
4851         return -1;
4852
4853     return 0;
4854 }
4855
4856
4857
4858 static int 
4859 dtb_options_separator5_create(
4860     DtbOptionsDialogInfo instance,
4861     Widget parent
4862 )
4863 {
4864     
4865     if (instance->separator5 == NULL) {
4866         instance->separator5 =
4867             XtVaCreateWidget("dtb_options_separator5",
4868                 xmSeparatorWidgetClass,
4869                 parent,
4870                 XmNbottomAttachment, XmATTACH_NONE,
4871                 XmNrightOffset, 0,
4872                 XmNrightAttachment, XmATTACH_FORM,
4873                 XmNleftOffset, 0,
4874                 XmNleftAttachment, XmATTACH_FORM,
4875                 XmNtopOffset, 10,
4876                 XmNtopAttachment, XmATTACH_WIDGET,
4877                 XmNseparatorType, XmSHADOW_ETCHED_IN,
4878                 XmNorientation, XmHORIZONTAL,
4879                 NULL);
4880     }
4881     if (instance->separator5 == NULL)
4882         return -1;
4883
4884     return 0;
4885 }
4886
4887
4888
4889 static int 
4890 dtb_options_group25_create(
4891     DtbOptionsDialogInfo instance,
4892     Widget parent
4893 )
4894 {
4895     
4896     if (instance->group25 == NULL) {
4897         instance->group25 =
4898             XtVaCreateWidget("dtb_options_group25",
4899                 xmFormWidgetClass,
4900                 parent,
4901                 XmNbottomAttachment, XmATTACH_NONE,
4902                 XmNrightAttachment, XmATTACH_NONE,
4903                 XmNleftOffset, 28,
4904                 XmNleftAttachment, XmATTACH_FORM,
4905                 XmNtopOffset, 4,
4906                 XmNtopAttachment, XmATTACH_WIDGET,
4907                 XmNresizePolicy, XmRESIZE_ANY,
4908                 XmNmarginHeight, 0,
4909                 XmNmarginWidth, 0,
4910                 NULL);
4911     }
4912     if (instance->group25 == NULL)
4913         return -1;
4914
4915     return 0;
4916 }
4917
4918
4919
4920 static int 
4921 dtb_options_mailb_for_sent_lbl_create(
4922     DtbOptionsDialogInfo instance,
4923     Widget parent
4924 )
4925 {
4926     XmString    label_xmstring = NULL;
4927     
4928     if (instance->mailb_for_sent_lbl == NULL) {
4929         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 61, "Mailbox for sent messages:"));
4930         instance->mailb_for_sent_lbl =
4931             XtVaCreateWidget("dtb_options_mailb_for_sent_lbl",
4932                 xmLabelWidgetClass,
4933                 parent,
4934                 XmNbottomAttachment, XmATTACH_NONE,
4935                 XmNrightAttachment, XmATTACH_NONE,
4936                 XmNleftOffset, 38,
4937                 XmNleftAttachment, XmATTACH_FORM,
4938                 XmNtopOffset, 10,
4939                 XmNtopAttachment, XmATTACH_WIDGET,
4940                 XmNrecomputeSize, True,
4941                 XmNalignment, XmALIGNMENT_CENTER,
4942                 XmNlabelType, XmSTRING,
4943                 XmNlabelString, label_xmstring,
4944                 NULL);
4945         XmStringFree(label_xmstring);
4946         label_xmstring = NULL;
4947     }
4948     if (instance->mailb_for_sent_lbl == NULL)
4949         return -1;
4950
4951     return 0;
4952 }
4953
4954
4955
4956 static int 
4957 dtb_options_group26_create(
4958     DtbOptionsDialogInfo instance,
4959     Widget parent
4960 )
4961 {
4962     
4963     if (instance->group26 == NULL) {
4964         instance->group26 =
4965             XtVaCreateWidget("dtb_options_group26",
4966                 xmFormWidgetClass,
4967                 parent,
4968                 XmNbottomOffset, 10,
4969                 XmNbottomAttachment, XmATTACH_FORM,
4970                 XmNrightAttachment, XmATTACH_NONE,
4971                 XmNleftOffset, 160,
4972                 XmNleftAttachment, XmATTACH_FORM,
4973                 XmNtopOffset, 6,
4974                 XmNtopAttachment, XmATTACH_WIDGET,
4975                 XmNresizePolicy, XmRESIZE_ANY,
4976                 XmNmarginHeight, 0,
4977                 XmNmarginWidth, 0,
4978                 NULL);
4979     }
4980     if (instance->group26 == NULL)
4981         return -1;
4982
4983     return 0;
4984 }
4985
4986
4987
4988 static int 
4989 dtb_options_group9_create(
4990     DtbOptionsDialogInfo instance,
4991     Widget parent
4992 )
4993 {
4994     
4995     if (instance->group9 == NULL) {
4996         instance->group9 =
4997             XtVaCreateWidget("dtb_options_group9",
4998                 xmFormWidgetClass,
4999                 parent,
5000                 XmNbottomAttachment, XmATTACH_NONE,
5001                 XmNrightAttachment, XmATTACH_NONE,
5002                 XmNleftOffset, 12,
5003                 XmNleftAttachment, XmATTACH_FORM,
5004                 XmNtopOffset, 10,
5005                 XmNtopAttachment, XmATTACH_FORM,
5006                 XmNresizePolicy, XmRESIZE_ANY,
5007                 XmNmarginHeight, 0,
5008                 XmNmarginWidth, 0,
5009                 NULL);
5010     }
5011     if (instance->group9 == NULL)
5012         return -1;
5013
5014     return 0;
5015 }
5016
5017
5018
5019 static int 
5020 dtb_options_dpy_up_mbox_cb_create(
5021     DtbOptionsDialogInfo instance,
5022     Widget parent
5023 )
5024 {
5025     XmString    label_xmstring = NULL;
5026     Arg args[14];       /* need 9 args (add 5 to be safe) */
5027     int n = 0;
5028     Widget      dpy_up_mbox_cb_items[1];
5029     
5030     if (instance->dpy_up_mbox_cb == NULL) {
5031         n = 0;
5032         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
5033         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
5034         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
5035         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
5036         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
5037         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
5038         XtSetArg(args[n], XmNspacing, 0);  ++n;
5039         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
5040         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
5041         instance->dpy_up_mbox_cb =
5042             XmCreateRadioBox(parent,
5043                 "dtb_options_dpy_up_mbox_cb", args, n);
5044     }
5045     if (instance->dpy_up_mbox_cb == NULL)
5046         return -1;
5047
5048     if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL) {
5049         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 59, "Display up to:"));
5050         instance->dpy_up_mbox_cb_items.Display_up_to_item =
5051             XtVaCreateManagedWidget("dtb_options_dpy_up_mbox_cb_display_up_to_item",
5052                 xmToggleButtonWidgetClass,
5053                 instance->dpy_up_mbox_cb,
5054                 XmNset, True,
5055                 XmNlabelString, label_xmstring,
5056                 NULL);
5057         XmStringFree(label_xmstring);
5058         label_xmstring = NULL;
5059     }
5060     if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL)
5061         return -1;
5062
5063     return 0;
5064 }
5065
5066
5067
5068 static int 
5069 dtb_options_recent_sb_create(
5070     DtbOptionsDialogInfo instance,
5071     Widget parent
5072 )
5073 {
5074     Arg args[13];       /* need 8 args (add 5 to be safe) */
5075     int n = 0;
5076     
5077     
5078     if (instance->recent_sb == NULL) {
5079         n = 0;
5080         XtSetArg(args[n], XmNdecimalPoints, 0);  ++n;
5081         XtSetArg(args[n], XmNincrementValue, 1);  ++n;
5082         XtSetArg(args[n], XmNposition, 5);  ++n;
5083         XtSetArg(args[n], XmNmaximumValue, 100);  ++n;
5084         XtSetArg(args[n], XmNminimumValue, 0);  ++n;
5085         XtSetArg(args[n], XmNarrowLayout, XmARROWS_END);  ++n;
5086         XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC);  ++n;
5087         XtSetArg(args[n], XmNcolumns, 6);  ++n;
5088         instance->recent_sb =
5089             XmCreateSimpleSpinBox(parent,
5090                 "dtb_options_recent_sb", args, n);
5091     }
5092     if (instance->recent_sb == NULL)
5093         return -1;
5094
5095     return 0;
5096 }
5097
5098
5099
5100 static int 
5101 dtb_options_visit_mailb_lbl_create(
5102     DtbOptionsDialogInfo instance,
5103     Widget parent
5104 )
5105 {
5106     XmString    label_xmstring = NULL;
5107     
5108     if (instance->visit_mailb_lbl == NULL) {
5109         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 60, "Recently visited mailboxes"));
5110         instance->visit_mailb_lbl =
5111             XtVaCreateWidget("dtb_options_visit_mailb_lbl",
5112                 xmLabelWidgetClass,
5113                 parent,
5114                 XmNrecomputeSize, True,
5115                 XmNalignment, XmALIGNMENT_CENTER,
5116                 XmNlabelType, XmSTRING,
5117                 XmNlabelString, label_xmstring,
5118                 XmNtopAttachment, XmATTACH_FORM,
5119                 XmNtopOffset, 10,
5120                 XmNbottomAttachment, XmATTACH_FORM,
5121                 XmNbottomOffset, 0,
5122                 XmNrightAttachment, XmATTACH_NONE,
5123                 XmNleftOffset, 2,
5124                 XmNleftAttachment, XmATTACH_WIDGET,
5125                 NULL);
5126         XmStringFree(label_xmstring);
5127         label_xmstring = NULL;
5128     }
5129     if (instance->visit_mailb_lbl == NULL)
5130         return -1;
5131
5132     return 0;
5133 }
5134
5135
5136
5137 static int 
5138 dtb_options_sent_mail_tf_create(
5139     DtbOptionsDialogInfo instance,
5140     Widget parent
5141 )
5142 {
5143     Arg args[9];        /* need 4 args (add 5 to be safe) */
5144     int n = 0;
5145     
5146     if (instance->sent_mail_tf == NULL) {
5147         n = 0;
5148         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5149         XtSetArg(args[n], XmNeditable, True);  ++n;
5150         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5151         instance->sent_mail_tf =
5152             XmCreateTextField(parent,
5153                 "dtb_options_sent_mail_tf", args, n);
5154     }
5155     if (instance->sent_mail_tf == NULL)
5156         return -1;
5157
5158     return 0;
5159 }
5160
5161
5162
5163 static int 
5164 dtb_options_log_cb_create(
5165     DtbOptionsDialogInfo instance,
5166     Widget parent
5167 )
5168 {
5169     XmString    label_xmstring = NULL;
5170     Arg args[14];       /* need 9 args (add 5 to be safe) */
5171     int n = 0;
5172     Widget      log_cb_items[1];
5173     
5174     if (instance->log_cb == NULL) {
5175         n = 0;
5176         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
5177         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
5178         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
5179         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
5180         XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM);  ++n;
5181         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
5182         XtSetArg(args[n], XmNspacing, 0);  ++n;
5183         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
5184         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
5185         instance->log_cb =
5186             XmCreateRadioBox(parent,
5187                 "dtb_options_log_cb", args, n);
5188     }
5189     if (instance->log_cb == NULL)
5190         return -1;
5191
5192     if (instance->log_cb_items.Log_all_sent_messages_item == NULL) {
5193         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 62, "Log all sent messages"));
5194         instance->log_cb_items.Log_all_sent_messages_item =
5195             XtVaCreateManagedWidget("dtb_options_log_cb_log_all_sent_messages_item",
5196                 xmToggleButtonWidgetClass,
5197                 instance->log_cb,
5198                 XmNset, False,
5199                 XmNlabelString, label_xmstring,
5200                 NULL);
5201         XmStringFree(label_xmstring);
5202         label_xmstring = NULL;
5203     }
5204     if (instance->log_cb_items.Log_all_sent_messages_item == NULL)
5205         return -1;
5206
5207     return 0;
5208 }
5209
5210
5211
5212 static int 
5213 dtb_options_group24_create(
5214     DtbOptionsDialogInfo instance,
5215     Widget parent
5216 )
5217 {
5218     
5219     if (instance->group24 == NULL) {
5220         instance->group24 =
5221             XtVaCreateWidget("dtb_options_group24",
5222                 xmFormWidgetClass,
5223                 parent,
5224                 XmNbottomAttachment, XmATTACH_NONE,
5225                 XmNrightAttachment, XmATTACH_NONE,
5226                 XmNleftOffset, 10,
5227                 XmNleftAttachment, XmATTACH_WIDGET,
5228                 XmNtopOffset, 0,
5229                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5230                 XmNresizePolicy, XmRESIZE_ANY,
5231                 XmNmarginHeight, 0,
5232                 XmNmarginWidth, 0,
5233                 NULL);
5234     }
5235     if (instance->group24 == NULL)
5236         return -1;
5237
5238     return 0;
5239 }
5240
5241
5242
5243 static int 
5244 dtb_options_path_file_name_tf_create(
5245     DtbOptionsDialogInfo instance,
5246     Widget parent
5247 )
5248 {
5249     Arg args[18];       /* need 13 args (add 5 to be safe) */
5250     int n = 0;
5251     
5252     if (instance->path_file_name_tf == NULL) {
5253         n = 0;
5254         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5255         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5256         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5257         XtSetArg(args[n], XmNleftPosition, 30);  ++n;
5258         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5259         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
5260         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
5261         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5262         XtSetArg(args[n], XmNeditable, True);  ++n;
5263         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5264         instance->path_file_name_tf =
5265             XmCreateTextField(parent,
5266                 "dtb_options_path_file_name_tf", args, n);
5267     }
5268     if (instance->path_file_name_tf == NULL)
5269         return -1;
5270
5271     return 0;
5272 }
5273
5274
5275
5276 static int 
5277 dtb_options_mv_menu_lst_create(
5278     DtbOptionsDialogInfo instance,
5279     Widget parent
5280 )
5281 {
5282     Arg args[17];       /* need 12 args (add 5 to be safe) */
5283     int n = 0;
5284     
5285     
5286     if (instance->mv_menu_lst == NULL) {
5287         n = 0;
5288         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
5289         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
5290         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
5291         XtSetArg(args[n], XmNvisibleItemCount, 8);  ++n;
5292         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5293         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
5294         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
5295         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5296         XtSetArg(args[n], XmNleftPosition, 30);  ++n;
5297         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5298         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
5299         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5300         instance->mv_menu_lst =
5301             XmCreateScrolledList(parent,
5302                 "dtb_options_mv_menu_lst_list", args, n);
5303     }
5304     instance->mv_menu_lst_scrolledwin = XtParent(instance->mv_menu_lst);
5305     if (instance->mv_menu_lst == NULL)
5306         return -1;
5307
5308     return 0;
5309 }
5310
5311
5312
5313 static int 
5314 dtb_options_srt_looking_tf_create(
5315     DtbOptionsDialogInfo instance,
5316     Widget parent
5317 )
5318 {
5319     Arg args[18];       /* need 13 args (add 5 to be safe) */
5320     int n = 0;
5321     
5322     if (instance->srt_looking_tf == NULL) {
5323         n = 0;
5324         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5325         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5326         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5327         XtSetArg(args[n], XmNleftPosition, 30);  ++n;
5328         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5329         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
5330         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5331         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5332         XtSetArg(args[n], XmNeditable, True);  ++n;
5333         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5334         instance->srt_looking_tf =
5335             XmCreateTextField(parent,
5336                 "dtb_options_srt_looking_tf", args, n);
5337     }
5338     if (instance->srt_looking_tf == NULL)
5339         return -1;
5340
5341     return 0;
5342 }
5343
5344
5345
5346 static int 
5347 dtb_options_move_menu_lbl_create(
5348     DtbOptionsDialogInfo instance,
5349     Widget parent
5350 )
5351 {
5352     XmString    label_xmstring = NULL;
5353     
5354     if (instance->move_menu_lbl == NULL) {
5355         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 57, "Move Menu"));
5356         instance->move_menu_lbl =
5357             XtVaCreateWidget("dtb_options_move_menu_lbl",
5358                 xmLabelWidgetClass,
5359                 parent,
5360                 XmNbottomAttachment, XmATTACH_NONE,
5361                 XmNrightOffset, 1,
5362                 XmNrightPosition, 30,
5363                 XmNrightAttachment, XmATTACH_POSITION,
5364                 XmNleftAttachment, XmATTACH_NONE,
5365                 XmNtopOffset, 0,
5366                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5367                 XmNrecomputeSize, True,
5368                 XmNalignment, XmALIGNMENT_CENTER,
5369                 XmNlabelType, XmSTRING,
5370                 XmNlabelString, label_xmstring,
5371                 NULL);
5372         XmStringFree(label_xmstring);
5373         label_xmstring = NULL;
5374     }
5375     if (instance->move_menu_lbl == NULL)
5376         return -1;
5377
5378     return 0;
5379 }
5380
5381
5382
5383 static int 
5384 dtb_options_move_menu_lbl2_create(
5385     DtbOptionsDialogInfo instance,
5386     Widget parent
5387 )
5388 {
5389     XmString    label_xmstring = NULL;
5390     
5391     if (instance->move_menu_lbl2 == NULL) {
5392         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 58, "and Copy To Menu:"));
5393         instance->move_menu_lbl2 =
5394             XtVaCreateWidget("dtb_options_move_menu_lbl2",
5395                 xmLabelWidgetClass,
5396                 parent,
5397                 XmNbottomAttachment, XmATTACH_NONE,
5398                 XmNrightOffset, 0,
5399                 XmNrightPosition, 30,
5400                 XmNrightAttachment, XmATTACH_POSITION,
5401                 XmNleftAttachment, XmATTACH_NONE,
5402                 XmNtopOffset, 1,
5403                 XmNtopAttachment, XmATTACH_WIDGET,
5404                 XmNrecomputeSize, True,
5405                 XmNalignment, XmALIGNMENT_CENTER,
5406                 XmNlabelType, XmSTRING,
5407                 XmNlabelString, label_xmstring,
5408                 NULL);
5409         XmStringFree(label_xmstring);
5410         label_xmstring = NULL;
5411     }
5412     if (instance->move_menu_lbl2 == NULL)
5413         return -1;
5414
5415     return 0;
5416 }
5417
5418
5419
5420 static int 
5421 dtb_options_path_file_lbl_create(
5422     DtbOptionsDialogInfo instance,
5423     Widget parent
5424 )
5425 {
5426     XmString    label_xmstring = NULL;
5427     
5428     if (instance->path_file_lbl == NULL) {
5429         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
5430         instance->path_file_lbl =
5431             XtVaCreateWidget("dtb_options_path_file_lbl",
5432                 xmLabelWidgetClass,
5433                 parent,
5434                 XmNbottomOffset, 0,
5435                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5436                 XmNrightOffset, 0,
5437                 XmNrightPosition, 30,
5438                 XmNrightAttachment, XmATTACH_POSITION,
5439                 XmNleftAttachment, XmATTACH_NONE,
5440                 XmNtopOffset, 0,
5441                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5442                 XmNrecomputeSize, True,
5443                 XmNalignment, XmALIGNMENT_CENTER,
5444                 XmNlabelType, XmSTRING,
5445                 XmNlabelString, label_xmstring,
5446                 NULL);
5447         XmStringFree(label_xmstring);
5448         label_xmstring = NULL;
5449     }
5450     if (instance->path_file_lbl == NULL)
5451         return -1;
5452
5453     return 0;
5454 }
5455
5456
5457
5458 static int 
5459 dtb_options_start_look_lbl_create(
5460     DtbOptionsDialogInfo instance,
5461     Widget parent
5462 )
5463 {
5464     XmString    label_xmstring = NULL;
5465     
5466     if (instance->start_look_lbl == NULL) {
5467         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 55, "Start looking in:"));
5468         instance->start_look_lbl =
5469             XtVaCreateWidget("dtb_options_start_look_lbl",
5470                 xmLabelWidgetClass,
5471                 parent,
5472                 XmNbottomOffset, 0,
5473                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5474                 XmNrightOffset, 0,
5475                 XmNrightPosition, 30,
5476                 XmNrightAttachment, XmATTACH_POSITION,
5477                 XmNleftAttachment, XmATTACH_NONE,
5478                 XmNtopOffset, 0,
5479                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5480                 XmNrecomputeSize, True,
5481                 XmNalignment, XmALIGNMENT_CENTER,
5482                 XmNlabelType, XmSTRING,
5483                 XmNlabelString, label_xmstring,
5484                 NULL);
5485         XmStringFree(label_xmstring);
5486         label_xmstring = NULL;
5487     }
5488     if (instance->start_look_lbl == NULL)
5489         return -1;
5490
5491     return 0;
5492 }
5493
5494
5495
5496 static int 
5497 dtb_options_mm_add_butt_create(
5498     DtbOptionsDialogInfo instance,
5499     Widget parent
5500 )
5501 {
5502     XmString    label_xmstring = NULL;
5503     
5504     if (instance->mm_add_butt == NULL) {
5505         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
5506         instance->mm_add_butt =
5507             XtVaCreateWidget("dtb_options_mm_add_butt",
5508                 xmPushButtonWidgetClass,
5509                 parent,
5510                 XmNbottomAttachment, XmATTACH_NONE,
5511                 XmNrightOffset, 0,
5512                 XmNrightAttachment, XmATTACH_FORM,
5513                 XmNleftOffset, 0,
5514                 XmNleftAttachment, XmATTACH_FORM,
5515                 XmNtopOffset, 0,
5516                 XmNtopAttachment, XmATTACH_FORM,
5517                 XmNrecomputeSize, True,
5518                 XmNalignment, XmALIGNMENT_CENTER,
5519                 XmNlabelType, XmSTRING,
5520                 XmNlabelString, label_xmstring,
5521                 NULL);
5522         XmStringFree(label_xmstring);
5523         label_xmstring = NULL;
5524     }
5525     if (instance->mm_add_butt == NULL)
5526         return -1;
5527
5528     return 0;
5529 }
5530
5531
5532
5533 static int 
5534 dtb_options_mm_delete_butt_create(
5535     DtbOptionsDialogInfo instance,
5536     Widget parent
5537 )
5538 {
5539     XmString    label_xmstring = NULL;
5540     
5541     if (instance->mm_delete_butt == NULL) {
5542         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
5543         instance->mm_delete_butt =
5544             XtVaCreateWidget("dtb_options_mm_delete_butt",
5545                 xmPushButtonWidgetClass,
5546                 parent,
5547                 XmNbottomAttachment, XmATTACH_NONE,
5548                 XmNrightOffset, 0,
5549                 XmNrightAttachment, XmATTACH_FORM,
5550                 XmNleftOffset, 0,
5551                 XmNleftAttachment, XmATTACH_FORM,
5552                 XmNtopOffset, 10,
5553                 XmNtopAttachment, XmATTACH_WIDGET,
5554                 XmNrecomputeSize, True,
5555                 XmNalignment, XmALIGNMENT_CENTER,
5556                 XmNlabelType, XmSTRING,
5557                 XmNlabelString, label_xmstring,
5558                 NULL);
5559         XmStringFree(label_xmstring);
5560         label_xmstring = NULL;
5561     }
5562     if (instance->mm_delete_butt == NULL)
5563         return -1;
5564
5565     return 0;
5566 }
5567
5568
5569
5570 static int 
5571 dtb_options_mm_change_butt_create(
5572     DtbOptionsDialogInfo instance,
5573     Widget parent
5574 )
5575 {
5576     XmString    label_xmstring = NULL;
5577     
5578     if (instance->mm_change_butt == NULL) {
5579         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
5580         instance->mm_change_butt =
5581             XtVaCreateWidget("dtb_options_mm_change_butt",
5582                 xmPushButtonWidgetClass,
5583                 parent,
5584                 XmNbottomAttachment, XmATTACH_NONE,
5585                 XmNrightOffset, 0,
5586                 XmNrightAttachment, XmATTACH_FORM,
5587                 XmNleftOffset, 0,
5588                 XmNleftAttachment, XmATTACH_FORM,
5589                 XmNtopOffset, 10,
5590                 XmNtopAttachment, XmATTACH_WIDGET,
5591                 XmNrecomputeSize, True,
5592                 XmNalignment, XmALIGNMENT_CENTER,
5593                 XmNlabelType, XmSTRING,
5594                 XmNlabelString, label_xmstring,
5595                 NULL);
5596         XmStringFree(label_xmstring);
5597         label_xmstring = NULL;
5598     }
5599     if (instance->mm_change_butt == NULL)
5600         return -1;
5601
5602     return 0;
5603 }
5604
5605
5606
5607 static int 
5608 dtb_options_vacation_lbl_create(
5609     DtbOptionsDialogInfo instance,
5610     Widget parent
5611 )
5612 {
5613     XmString    label_xmstring = NULL;
5614     
5615     if (instance->vacation_lbl == NULL) {
5616         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 66, "Vacation Precedence = junk"));
5617         instance->vacation_lbl =
5618             XtVaCreateWidget("dtb_options_vacation_lbl",
5619                 xmLabelWidgetClass,
5620                 parent,
5621                 XmNbottomAttachment, XmATTACH_NONE,
5622                 XmNrightAttachment, XmATTACH_NONE,
5623                 XmNleftOffset, 14,
5624                 XmNleftAttachment, XmATTACH_FORM,
5625                 XmNtopOffset, 10,
5626                 XmNtopAttachment, XmATTACH_FORM,
5627                 XmNrecomputeSize, True,
5628                 XmNalignment, XmALIGNMENT_CENTER,
5629                 XmNlabelType, XmSTRING,
5630                 XmNlabelString, label_xmstring,
5631                 NULL);
5632         XmStringFree(label_xmstring);
5633         label_xmstring = NULL;
5634     }
5635     if (instance->vacation_lbl == NULL)
5636         return -1;
5637
5638     return 0;
5639 }
5640
5641
5642
5643 static int 
5644 dtb_options_group10_create(
5645     DtbOptionsDialogInfo instance,
5646     Widget parent
5647 )
5648 {
5649     
5650     if (instance->group10 == NULL) {
5651         instance->group10 =
5652             XtVaCreateWidget("dtb_options_group10",
5653                 xmFormWidgetClass,
5654                 parent,
5655                 XmNbottomOffset, 10,
5656                 XmNbottomAttachment, XmATTACH_FORM,
5657                 XmNrightAttachment, XmATTACH_NONE,
5658                 XmNleftOffset, 41,
5659                 XmNleftAttachment, XmATTACH_FORM,
5660                 XmNtopOffset, 6,
5661                 XmNtopAttachment, XmATTACH_WIDGET,
5662                 XmNresizePolicy, XmRESIZE_ANY,
5663                 XmNmarginHeight, 0,
5664                 XmNmarginWidth, 0,
5665                 NULL);
5666     }
5667     if (instance->group10 == NULL)
5668         return -1;
5669
5670     return 0;
5671 }
5672
5673
5674
5675 static int 
5676 dtb_options_vacation_rb_create(
5677     DtbOptionsDialogInfo instance,
5678     Widget parent
5679 )
5680 {
5681     XmString    label_xmstring = NULL;
5682     Arg args[22];       /* need 17 args (add 5 to be safe) */
5683     int n = 0;
5684     Widget      vacation_rb_items[2];
5685     
5686     if (instance->vacation_rb == NULL) {
5687         n = 0;
5688         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5689         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5690         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5691         XtSetArg(args[n], XmNleftPosition, 20);  ++n;
5692         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5693         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
5694         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
5695         XtSetArg(args[n], XmNradioBehavior, True);  ++n;
5696         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
5697         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
5698         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
5699         XtSetArg(args[n], XmNorientation, XmHORIZONTAL);  ++n;
5700         XtSetArg(args[n], XmNspacing, 0);  ++n;
5701         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
5702         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
5703         instance->vacation_rb =
5704             XmCreateRadioBox(parent,
5705                 "dtb_options_vacation_rb", args, n);
5706     }
5707     if (instance->vacation_rb == NULL)
5708         return -1;
5709
5710     if (instance->vacation_rb_items.On_item == NULL) {
5711         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 64, "On"));
5712         instance->vacation_rb_items.On_item =
5713             XtVaCreateManagedWidget("dtb_options_vacation_rb_on_item",
5714                 xmToggleButtonWidgetClass,
5715                 instance->vacation_rb,
5716                 XmNset, False,
5717                 XmNlabelString, label_xmstring,
5718                 NULL);
5719         XmStringFree(label_xmstring);
5720         label_xmstring = NULL;
5721     }
5722     if (instance->vacation_rb_items.On_item == NULL)
5723         return -1;
5724
5725     if (instance->vacation_rb_items.Off_item == NULL) {
5726         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 65, "Off"));
5727         instance->vacation_rb_items.Off_item =
5728             XtVaCreateManagedWidget("dtb_options_vacation_rb_off_item",
5729                 xmToggleButtonWidgetClass,
5730                 instance->vacation_rb,
5731                 XmNset, True,
5732                 XmNlabelString, label_xmstring,
5733                 NULL);
5734         XmStringFree(label_xmstring);
5735         label_xmstring = NULL;
5736     }
5737     if (instance->vacation_rb_items.Off_item == NULL)
5738         return -1;
5739
5740     return 0;
5741 }
5742
5743
5744
5745 static int 
5746 dtb_options_vacation_msg_tp_create(
5747     DtbOptionsDialogInfo instance,
5748     Widget parent
5749 )
5750 {
5751     Arg args[33];       /* need 28 args (add 5 to be safe) */
5752     int n = 0;
5753     
5754     if (instance->vacation_msg_tp == NULL) {
5755         n = 0;
5756         XtSetArg(args[n], XmNbottomOffset, 0);  ++n;
5757         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM);  ++n;
5758         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
5759         XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM);  ++n;
5760         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5761         XtSetArg(args[n], XmNleftPosition, 20);  ++n;
5762         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5763         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
5764         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5765         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
5766         XtSetArg(args[n], XmNvisualPolicy, XmVARIABLE);  ++n;
5767         XtSetArg(args[n], XmNscrollingPolicy, XmAPPLICATION_DEFINED);  ++n;
5768         XtSetArg(args[n], XmNwordWrap, True);  ++n;
5769         XtSetArg(args[n], XmNeditMode, XmMULTI_LINE_EDIT);  ++n;
5770         XtSetArg(args[n], XmNscrollHorizontal, False);  ++n;
5771         XtSetArg(args[n], XmNscrollVertical, True);  ++n;
5772         XtSetArg(args[n], XmNrows, 20);  ++n;
5773         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5774         XtSetArg(args[n], XmNeditable, True);  ++n;
5775         instance->vacation_msg_tp =
5776             XmCreateScrolledText(parent,
5777                 "dtb_options_vacation_msg_tp_pane", args, n);
5778     }
5779     instance->vacation_msg_tp_scrolledwin = XtParent(instance->vacation_msg_tp);
5780     return 0;
5781 }
5782
5783
5784
5785 static int 
5786 dtb_options_subject_tf_create(
5787     DtbOptionsDialogInfo instance,
5788     Widget parent
5789 )
5790 {
5791     Arg args[19];       /* need 14 args (add 5 to be safe) */
5792     int n = 0;
5793     
5794     if (instance->subject_tf == NULL) {
5795         n = 0;
5796         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
5797         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
5798         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
5799         XtSetArg(args[n], XmNleftPosition, 20);  ++n;
5800         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
5801         XtSetArg(args[n], XmNtopOffset, 4);  ++n;
5802         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
5803         XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 68, "Out of the office"));  ++n;
5804         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
5805         XtSetArg(args[n], XmNeditable, True);  ++n;
5806         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
5807         instance->subject_tf =
5808             XmCreateTextField(parent,
5809                 "dtb_options_subject_tf", args, n);
5810     }
5811     if (instance->subject_tf == NULL)
5812         return -1;
5813
5814     return 0;
5815 }
5816
5817
5818
5819 static int 
5820 dtb_options_msg_list_lbl_create(
5821     DtbOptionsDialogInfo instance,
5822     Widget parent
5823 )
5824 {
5825     XmString    label_xmstring = NULL;
5826     
5827     if (instance->msg_list_lbl == NULL) {
5828         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 69, "Message:"));
5829         instance->msg_list_lbl =
5830             XtVaCreateWidget("dtb_options_msg_list_lbl",
5831                 xmLabelWidgetClass,
5832                 parent,
5833                 XmNbottomAttachment, XmATTACH_NONE,
5834                 XmNrightOffset, 0,
5835                 XmNrightPosition, 20,
5836                 XmNrightAttachment, XmATTACH_POSITION,
5837                 XmNleftAttachment, XmATTACH_NONE,
5838                 XmNtopOffset, 0,
5839                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5840                 XmNrecomputeSize, True,
5841                 XmNalignment, XmALIGNMENT_CENTER,
5842                 XmNlabelType, XmSTRING,
5843                 XmNlabelString, label_xmstring,
5844                 NULL);
5845         XmStringFree(label_xmstring);
5846         label_xmstring = NULL;
5847     }
5848     if (instance->msg_list_lbl == NULL)
5849         return -1;
5850
5851     return 0;
5852 }
5853
5854
5855
5856 static int 
5857 dtb_options_subject_lbl_create(
5858     DtbOptionsDialogInfo instance,
5859     Widget parent
5860 )
5861 {
5862     XmString    label_xmstring = NULL;
5863     
5864     if (instance->subject_lbl == NULL) {
5865         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 67, "Subject:"));
5866         instance->subject_lbl =
5867             XtVaCreateWidget("dtb_options_subject_lbl",
5868                 xmLabelWidgetClass,
5869                 parent,
5870                 XmNbottomOffset, 0,
5871                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5872                 XmNrightOffset, 0,
5873                 XmNrightPosition, 20,
5874                 XmNrightAttachment, XmATTACH_POSITION,
5875                 XmNleftAttachment, XmATTACH_NONE,
5876                 XmNtopOffset, 0,
5877                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5878                 XmNrecomputeSize, True,
5879                 XmNalignment, XmALIGNMENT_CENTER,
5880                 XmNlabelType, XmSTRING,
5881                 XmNlabelString, label_xmstring,
5882                 NULL);
5883         XmStringFree(label_xmstring);
5884         label_xmstring = NULL;
5885     }
5886     if (instance->subject_lbl == NULL)
5887         return -1;
5888
5889     return 0;
5890 }
5891
5892
5893
5894 static int 
5895 dtb_options_vacation_rb_lbl_create(
5896     DtbOptionsDialogInfo instance,
5897     Widget parent
5898 )
5899 {
5900     XmString    label_xmstring = NULL;
5901     
5902     if (instance->vacation_rb_lbl == NULL) {
5903         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 63, "Vacation:"));
5904         instance->vacation_rb_lbl =
5905             XtVaCreateWidget("dtb_options_vacation_rb_lbl",
5906                 xmLabelWidgetClass,
5907                 parent,
5908                 XmNbottomOffset, 0,
5909                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5910                 XmNrightOffset, 0,
5911                 XmNrightPosition, 20,
5912                 XmNrightAttachment, XmATTACH_POSITION,
5913                 XmNleftAttachment, XmATTACH_NONE,
5914                 XmNtopOffset, 0,
5915                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5916                 XmNrecomputeSize, True,
5917                 XmNalignment, XmALIGNMENT_CENTER,
5918                 XmNlabelType, XmSTRING,
5919                 XmNlabelString, label_xmstring,
5920                 NULL);
5921         XmStringFree(label_xmstring);
5922         label_xmstring = NULL;
5923     }
5924     if (instance->vacation_rb_lbl == NULL)
5925         return -1;
5926
5927     return 0;
5928 }
5929
5930
5931
5932 static int 
5933 dtb_options_group13_create(
5934     DtbOptionsDialogInfo instance,
5935     Widget parent
5936 )
5937 {
5938     
5939     if (instance->group13 == NULL) {
5940         instance->group13 =
5941             XtVaCreateWidget("dtb_options_group13",
5942                 xmFormWidgetClass,
5943                 parent,
5944                 XmNbottomOffset, 10,
5945                 XmNbottomAttachment, XmATTACH_FORM,
5946                 XmNrightOffset, 10,
5947                 XmNrightAttachment, XmATTACH_FORM,
5948                 XmNleftOffset, 0,
5949                 XmNleftAttachment, XmATTACH_FORM,
5950                 XmNtopOffset, 10,
5951                 XmNtopAttachment, XmATTACH_FORM,
5952                 XmNresizePolicy, XmRESIZE_ANY,
5953                 XmNmarginHeight, 0,
5954                 XmNmarginWidth, 0,
5955                 NULL);
5956     }
5957     if (instance->group13 == NULL)
5958         return -1;
5959
5960     return 0;
5961 }
5962
5963
5964
5965 static int 
5966 dtb_options_group11_create(
5967     DtbOptionsDialogInfo instance,
5968     Widget parent
5969 )
5970 {
5971     
5972     if (instance->group11 == NULL) {
5973         instance->group11 =
5974             XtVaCreateWidget("dtb_options_group11",
5975                 xmFormWidgetClass,
5976                 parent,
5977                 XmNbottomAttachment, XmATTACH_NONE,
5978                 XmNrightAttachment, XmATTACH_NONE,
5979                 XmNleftOffset, 10,
5980                 XmNleftAttachment, XmATTACH_WIDGET,
5981                 XmNtopOffset, 0,
5982                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5983                 XmNresizePolicy, XmRESIZE_ANY,
5984                 XmNmarginHeight, 0,
5985                 XmNmarginWidth, 0,
5986                 NULL);
5987     }
5988     if (instance->group11 == NULL)
5989         return -1;
5990
5991     return 0;
5992 }
5993
5994
5995
5996 static int 
5997 dtb_options_menu_label_create(
5998     DtbOptionsDialogInfo instance,
5999     Widget parent
6000 )
6001 {
6002     Arg args[18];       /* need 13 args (add 5 to be safe) */
6003     int n = 0;
6004     
6005     if (instance->menu_label == NULL) {
6006         n = 0;
6007         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6008         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6009         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6010         XtSetArg(args[n], XmNleftPosition, 23);  ++n;
6011         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6012         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
6013         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
6014         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6015         XtSetArg(args[n], XmNeditable, True);  ++n;
6016         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6017         instance->menu_label =
6018             XmCreateTextField(parent,
6019                 "dtb_options_menu_label", args, n);
6020     }
6021     if (instance->menu_label == NULL)
6022         return -1;
6023
6024     return 0;
6025 }
6026
6027
6028
6029 static int 
6030 dtb_options_path_filename_label_create(
6031     DtbOptionsDialogInfo instance,
6032     Widget parent
6033 )
6034 {
6035     Arg args[18];       /* need 13 args (add 5 to be safe) */
6036     int n = 0;
6037     
6038     if (instance->path_filename_label == NULL) {
6039         n = 0;
6040         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6041         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6042         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6043         XtSetArg(args[n], XmNleftPosition, 23);  ++n;
6044         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6045         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6046         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6047         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6048         XtSetArg(args[n], XmNeditable, True);  ++n;
6049         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6050         instance->path_filename_label =
6051             XmCreateTextField(parent,
6052                 "dtb_options_path_filename_label", args, n);
6053     }
6054     if (instance->path_filename_label == NULL)
6055         return -1;
6056
6057     return 0;
6058 }
6059
6060
6061
6062 static int 
6063 dtb_options_templates_list_create(
6064     DtbOptionsDialogInfo instance,
6065     Widget parent
6066 )
6067 {
6068     Arg args[17];       /* need 12 args (add 5 to be safe) */
6069     int n = 0;
6070     
6071     
6072     if (instance->templates_list == NULL) {
6073         n = 0;
6074         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
6075         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
6076         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
6077         XtSetArg(args[n], XmNvisibleItemCount, 18);  ++n;
6078         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6079         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
6080         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
6081         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6082         XtSetArg(args[n], XmNleftPosition, 23);  ++n;
6083         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6084         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6085         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6086         instance->templates_list =
6087             XmCreateScrolledList(parent,
6088                 "dtb_options_templates_list_list", args, n);
6089     }
6090     instance->templates_list_scrolledwin = XtParent(instance->templates_list);
6091     if (instance->templates_list == NULL)
6092         return -1;
6093
6094     return 0;
6095 }
6096
6097
6098
6099 static int 
6100 dtb_options_templates_list_lbl_create(
6101     DtbOptionsDialogInfo instance,
6102     Widget parent
6103 )
6104 {
6105     XmString    label_xmstring = NULL;
6106     
6107     if (instance->templates_list_lbl == NULL) {
6108         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 72, "Templates:"));
6109         instance->templates_list_lbl =
6110             XtVaCreateWidget("dtb_options_templates_list_lbl",
6111                 xmLabelWidgetClass,
6112                 parent,
6113                 XmNbottomAttachment, XmATTACH_NONE,
6114                 XmNrightOffset, 0,
6115                 XmNrightPosition, 23,
6116                 XmNrightAttachment, XmATTACH_POSITION,
6117                 XmNleftAttachment, XmATTACH_NONE,
6118                 XmNtopOffset, 0,
6119                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6120                 XmNrecomputeSize, True,
6121                 XmNalignment, XmALIGNMENT_CENTER,
6122                 XmNlabelType, XmSTRING,
6123                 XmNlabelString, label_xmstring,
6124                 NULL);
6125         XmStringFree(label_xmstring);
6126         label_xmstring = NULL;
6127     }
6128     if (instance->templates_list_lbl == NULL)
6129         return -1;
6130
6131     return 0;
6132 }
6133
6134
6135
6136 static int 
6137 dtb_options_menu_label_lbl_create(
6138     DtbOptionsDialogInfo instance,
6139     Widget parent
6140 )
6141 {
6142     XmString    label_xmstring = NULL;
6143     
6144     if (instance->menu_label_lbl == NULL) {
6145         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 71, "Menu Label:"));
6146         instance->menu_label_lbl =
6147             XtVaCreateWidget("dtb_options_menu_label_lbl",
6148                 xmLabelWidgetClass,
6149                 parent,
6150                 XmNbottomOffset, 0,
6151                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6152                 XmNrightOffset, 0,
6153                 XmNrightPosition, 23,
6154                 XmNrightAttachment, XmATTACH_POSITION,
6155                 XmNleftAttachment, XmATTACH_NONE,
6156                 XmNtopOffset, 0,
6157                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6158                 XmNrecomputeSize, True,
6159                 XmNalignment, XmALIGNMENT_CENTER,
6160                 XmNlabelType, XmSTRING,
6161                 XmNlabelString, label_xmstring,
6162                 NULL);
6163         XmStringFree(label_xmstring);
6164         label_xmstring = NULL;
6165     }
6166     if (instance->menu_label_lbl == NULL)
6167         return -1;
6168
6169     return 0;
6170 }
6171
6172
6173
6174 static int 
6175 dtb_options_path_filename_label_lbl_create(
6176     DtbOptionsDialogInfo instance,
6177     Widget parent
6178 )
6179 {
6180     XmString    label_xmstring = NULL;
6181     
6182     if (instance->path_filename_label_lbl == NULL) {
6183         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
6184         instance->path_filename_label_lbl =
6185             XtVaCreateWidget("dtb_options_path_filename_label_lbl",
6186                 xmLabelWidgetClass,
6187                 parent,
6188                 XmNbottomOffset, 0,
6189                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6190                 XmNrightOffset, 0,
6191                 XmNrightPosition, 23,
6192                 XmNrightAttachment, XmATTACH_POSITION,
6193                 XmNleftAttachment, XmATTACH_NONE,
6194                 XmNtopOffset, 0,
6195                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6196                 XmNrecomputeSize, True,
6197                 XmNalignment, XmALIGNMENT_CENTER,
6198                 XmNlabelType, XmSTRING,
6199                 XmNlabelString, label_xmstring,
6200                 NULL);
6201         XmStringFree(label_xmstring);
6202         label_xmstring = NULL;
6203     }
6204     if (instance->path_filename_label_lbl == NULL)
6205         return -1;
6206
6207     return 0;
6208 }
6209
6210
6211
6212 static int 
6213 dtb_options_tem_add_but_create(
6214     DtbOptionsDialogInfo instance,
6215     Widget parent
6216 )
6217 {
6218     XmString    label_xmstring = NULL;
6219     
6220     if (instance->tem_add_but == NULL) {
6221         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6222         instance->tem_add_but =
6223             XtVaCreateWidget("dtb_options_tem_add_but",
6224                 xmPushButtonWidgetClass,
6225                 parent,
6226                 XmNbottomAttachment, XmATTACH_NONE,
6227                 XmNrightOffset, 0,
6228                 XmNrightAttachment, XmATTACH_FORM,
6229                 XmNleftOffset, 0,
6230                 XmNleftAttachment, XmATTACH_FORM,
6231                 XmNtopOffset, 0,
6232                 XmNtopAttachment, XmATTACH_FORM,
6233                 XmNrecomputeSize, True,
6234                 XmNalignment, XmALIGNMENT_CENTER,
6235                 XmNlabelType, XmSTRING,
6236                 XmNlabelString, label_xmstring,
6237                 NULL);
6238         XmStringFree(label_xmstring);
6239         label_xmstring = NULL;
6240     }
6241     if (instance->tem_add_but == NULL)
6242         return -1;
6243
6244     return 0;
6245 }
6246
6247
6248
6249 static int 
6250 dtb_options_tem_del_but_create(
6251     DtbOptionsDialogInfo instance,
6252     Widget parent
6253 )
6254 {
6255     XmString    label_xmstring = NULL;
6256     
6257     if (instance->tem_del_but == NULL) {
6258         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6259         instance->tem_del_but =
6260             XtVaCreateWidget("dtb_options_tem_del_but",
6261                 xmPushButtonWidgetClass,
6262                 parent,
6263                 XmNbottomAttachment, XmATTACH_NONE,
6264                 XmNrightOffset, 0,
6265                 XmNrightAttachment, XmATTACH_FORM,
6266                 XmNleftOffset, 0,
6267                 XmNleftAttachment, XmATTACH_FORM,
6268                 XmNtopOffset, 10,
6269                 XmNtopAttachment, XmATTACH_WIDGET,
6270                 XmNrecomputeSize, True,
6271                 XmNalignment, XmALIGNMENT_CENTER,
6272                 XmNlabelType, XmSTRING,
6273                 XmNlabelString, label_xmstring,
6274                 NULL);
6275         XmStringFree(label_xmstring);
6276         label_xmstring = NULL;
6277     }
6278     if (instance->tem_del_but == NULL)
6279         return -1;
6280
6281     return 0;
6282 }
6283
6284
6285
6286 static int 
6287 dtb_options_tem_change_but_create(
6288     DtbOptionsDialogInfo instance,
6289     Widget parent
6290 )
6291 {
6292     XmString    label_xmstring = NULL;
6293     
6294     if (instance->tem_change_but == NULL) {
6295         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6296         instance->tem_change_but =
6297             XtVaCreateWidget("dtb_options_tem_change_but",
6298                 xmPushButtonWidgetClass,
6299                 parent,
6300                 XmNbottomAttachment, XmATTACH_NONE,
6301                 XmNrightOffset, 0,
6302                 XmNrightAttachment, XmATTACH_FORM,
6303                 XmNleftOffset, 0,
6304                 XmNleftAttachment, XmATTACH_FORM,
6305                 XmNtopOffset, 10,
6306                 XmNtopAttachment, XmATTACH_WIDGET,
6307                 XmNrecomputeSize, True,
6308                 XmNalignment, XmALIGNMENT_CENTER,
6309                 XmNlabelType, XmSTRING,
6310                 XmNlabelString, label_xmstring,
6311                 NULL);
6312         XmStringFree(label_xmstring);
6313         label_xmstring = NULL;
6314     }
6315     if (instance->tem_change_but == NULL)
6316         return -1;
6317
6318     return 0;
6319 }
6320
6321
6322
6323 static int 
6324 dtb_options_group14_create(
6325     DtbOptionsDialogInfo instance,
6326     Widget parent
6327 )
6328 {
6329     
6330     if (instance->group14 == NULL) {
6331         instance->group14 =
6332             XtVaCreateWidget("dtb_options_group14",
6333                 xmFormWidgetClass,
6334                 parent,
6335                 XmNbottomOffset, 10,
6336                 XmNbottomAttachment, XmATTACH_FORM,
6337                 XmNrightOffset, 10,
6338                 XmNrightAttachment, XmATTACH_FORM,
6339                 XmNleftOffset, 44,
6340                 XmNleftAttachment, XmATTACH_FORM,
6341                 XmNtopOffset, 10,
6342                 XmNtopAttachment, XmATTACH_FORM,
6343                 XmNresizePolicy, XmRESIZE_ANY,
6344                 XmNmarginHeight, 0,
6345                 XmNmarginWidth, 0,
6346                 NULL);
6347     }
6348     if (instance->group14 == NULL)
6349         return -1;
6350
6351     return 0;
6352 }
6353
6354
6355
6356 static int 
6357 dtb_options_group15_create(
6358     DtbOptionsDialogInfo instance,
6359     Widget parent
6360 )
6361 {
6362     
6363     if (instance->group15 == NULL) {
6364         instance->group15 =
6365             XtVaCreateWidget("dtb_options_group15",
6366                 xmFormWidgetClass,
6367                 parent,
6368                 XmNbottomAttachment, XmATTACH_NONE,
6369                 XmNrightAttachment, XmATTACH_NONE,
6370                 XmNleftOffset, 10,
6371                 XmNleftAttachment, XmATTACH_WIDGET,
6372                 XmNtopOffset, 0,
6373                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6374                 XmNresizePolicy, XmRESIZE_ANY,
6375                 XmNmarginHeight, 0,
6376                 XmNmarginWidth, 0,
6377                 NULL);
6378     }
6379     if (instance->group15 == NULL)
6380         return -1;
6381
6382     return 0;
6383 }
6384
6385
6386
6387 static int 
6388 dtb_options_alias_tf_create(
6389     DtbOptionsDialogInfo instance,
6390     Widget parent
6391 )
6392 {
6393     Arg args[18];       /* need 13 args (add 5 to be safe) */
6394     int n = 0;
6395     
6396     if (instance->alias_tf == NULL) {
6397         n = 0;
6398         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6399         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6400         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6401         XtSetArg(args[n], XmNleftPosition, 15);  ++n;
6402         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6403         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
6404         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
6405         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6406         XtSetArg(args[n], XmNeditable, True);  ++n;
6407         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6408         instance->alias_tf =
6409             XmCreateTextField(parent,
6410                 "dtb_options_alias_tf", args, n);
6411     }
6412     if (instance->alias_tf == NULL)
6413         return -1;
6414
6415     return 0;
6416 }
6417
6418
6419
6420 static int 
6421 dtb_options_addresses_tf_create(
6422     DtbOptionsDialogInfo instance,
6423     Widget parent
6424 )
6425 {
6426     Arg args[18];       /* need 13 args (add 5 to be safe) */
6427     int n = 0;
6428     
6429     if (instance->addresses_tf == NULL) {
6430         n = 0;
6431         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6432         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
6433         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6434         XtSetArg(args[n], XmNleftPosition, 15);  ++n;
6435         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6436         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6437         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6438         XtSetArg(args[n], XmNmaxLength, 256);  ++n;
6439         XtSetArg(args[n], XmNeditable, True);  ++n;
6440         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
6441         instance->addresses_tf =
6442             XmCreateTextField(parent,
6443                 "dtb_options_addresses_tf", args, n);
6444     }
6445     if (instance->addresses_tf == NULL)
6446         return -1;
6447
6448     return 0;
6449 }
6450
6451
6452
6453 static int 
6454 dtb_options_alias_list_create(
6455     DtbOptionsDialogInfo instance,
6456     Widget parent
6457 )
6458 {
6459     Arg args[17];       /* need 12 args (add 5 to be safe) */
6460     int n = 0;
6461     
6462     
6463     if (instance->alias_list == NULL) {
6464         n = 0;
6465         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
6466         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
6467         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
6468         XtSetArg(args[n], XmNvisibleItemCount, 19);  ++n;
6469         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
6470         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
6471         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
6472         XtSetArg(args[n], XmNleftOffset, 4);  ++n;
6473         XtSetArg(args[n], XmNleftPosition, 15);  ++n;
6474         XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION);  ++n;
6475         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
6476         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
6477         instance->alias_list =
6478             XmCreateScrolledList(parent,
6479                 "dtb_options_alias_list_list", args, n);
6480     }
6481     instance->alias_list_scrolledwin = XtParent(instance->alias_list);
6482     if (instance->alias_list == NULL)
6483         return -1;
6484
6485     return 0;
6486 }
6487
6488
6489
6490 static int 
6491 dtb_options_alias_list_lbl_create(
6492     DtbOptionsDialogInfo instance,
6493     Widget parent
6494 )
6495 {
6496     XmString    label_xmstring = NULL;
6497     
6498     if (instance->alias_list_lbl == NULL) {
6499         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 75, "Aliases:"));
6500         instance->alias_list_lbl =
6501             XtVaCreateWidget("dtb_options_alias_list_lbl",
6502                 xmLabelWidgetClass,
6503                 parent,
6504                 XmNbottomAttachment, XmATTACH_NONE,
6505                 XmNrightOffset, 0,
6506                 XmNrightPosition, 15,
6507                 XmNrightAttachment, XmATTACH_POSITION,
6508                 XmNleftAttachment, XmATTACH_NONE,
6509                 XmNtopOffset, 0,
6510                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6511                 XmNrecomputeSize, True,
6512                 XmNalignment, XmALIGNMENT_CENTER,
6513                 XmNlabelType, XmSTRING,
6514                 XmNlabelString, label_xmstring,
6515                 NULL);
6516         XmStringFree(label_xmstring);
6517         label_xmstring = NULL;
6518     }
6519     if (instance->alias_list_lbl == NULL)
6520         return -1;
6521
6522     return 0;
6523 }
6524
6525
6526
6527 static int 
6528 dtb_options_alias_tf_lbl_create(
6529     DtbOptionsDialogInfo instance,
6530     Widget parent
6531 )
6532 {
6533     XmString    label_xmstring = NULL;
6534     
6535     if (instance->alias_tf_lbl == NULL) {
6536         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 73, "Alias:"));
6537         instance->alias_tf_lbl =
6538             XtVaCreateWidget("dtb_options_alias_tf_lbl",
6539                 xmLabelWidgetClass,
6540                 parent,
6541                 XmNbottomOffset, 0,
6542                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6543                 XmNrightOffset, 0,
6544                 XmNrightPosition, 15,
6545                 XmNrightAttachment, XmATTACH_POSITION,
6546                 XmNleftAttachment, XmATTACH_NONE,
6547                 XmNtopOffset, 0,
6548                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6549                 XmNrecomputeSize, True,
6550                 XmNalignment, XmALIGNMENT_CENTER,
6551                 XmNlabelType, XmSTRING,
6552                 XmNlabelString, label_xmstring,
6553                 NULL);
6554         XmStringFree(label_xmstring);
6555         label_xmstring = NULL;
6556     }
6557     if (instance->alias_tf_lbl == NULL)
6558         return -1;
6559
6560     return 0;
6561 }
6562
6563
6564
6565 static int 
6566 dtb_options_address_tf_lbl_create(
6567     DtbOptionsDialogInfo instance,
6568     Widget parent
6569 )
6570 {
6571     XmString    label_xmstring = NULL;
6572     
6573     if (instance->address_tf_lbl == NULL) {
6574         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 74, "Addresses:"));
6575         instance->address_tf_lbl =
6576             XtVaCreateWidget("dtb_options_address_tf_lbl",
6577                 xmLabelWidgetClass,
6578                 parent,
6579                 XmNbottomOffset, 0,
6580                 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6581                 XmNrightOffset, 0,
6582                 XmNrightPosition, 15,
6583                 XmNrightAttachment, XmATTACH_POSITION,
6584                 XmNleftAttachment, XmATTACH_NONE,
6585                 XmNtopOffset, 0,
6586                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6587                 XmNrecomputeSize, True,
6588                 XmNalignment, XmALIGNMENT_CENTER,
6589                 XmNlabelType, XmSTRING,
6590                 XmNlabelString, label_xmstring,
6591                 NULL);
6592         XmStringFree(label_xmstring);
6593         label_xmstring = NULL;
6594     }
6595     if (instance->address_tf_lbl == NULL)
6596         return -1;
6597
6598     return 0;
6599 }
6600
6601
6602
6603 static int 
6604 dtb_options_alias_add_but_create(
6605     DtbOptionsDialogInfo instance,
6606     Widget parent
6607 )
6608 {
6609     XmString    label_xmstring = NULL;
6610     
6611     if (instance->alias_add_but == NULL) {
6612         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6613         instance->alias_add_but =
6614             XtVaCreateWidget("dtb_options_alias_add_but",
6615                 xmPushButtonWidgetClass,
6616                 parent,
6617                 XmNbottomAttachment, XmATTACH_NONE,
6618                 XmNrightOffset, 0,
6619                 XmNrightAttachment, XmATTACH_FORM,
6620                 XmNleftOffset, 0,
6621                 XmNleftAttachment, XmATTACH_FORM,
6622                 XmNtopOffset, 0,
6623                 XmNtopAttachment, XmATTACH_FORM,
6624                 XmNrecomputeSize, True,
6625                 XmNalignment, XmALIGNMENT_CENTER,
6626                 XmNlabelType, XmSTRING,
6627                 XmNlabelString, label_xmstring,
6628                 NULL);
6629         XmStringFree(label_xmstring);
6630         label_xmstring = NULL;
6631     }
6632     if (instance->alias_add_but == NULL)
6633         return -1;
6634
6635     return 0;
6636 }
6637
6638
6639
6640 static int 
6641 dtb_options_alias_delete_but_create(
6642     DtbOptionsDialogInfo instance,
6643     Widget parent
6644 )
6645 {
6646     XmString    label_xmstring = NULL;
6647     
6648     if (instance->alias_delete_but == NULL) {
6649         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6650         instance->alias_delete_but =
6651             XtVaCreateWidget("dtb_options_alias_delete_but",
6652                 xmPushButtonWidgetClass,
6653                 parent,
6654                 XmNbottomAttachment, XmATTACH_NONE,
6655                 XmNrightOffset, 0,
6656                 XmNrightAttachment, XmATTACH_FORM,
6657                 XmNleftOffset, 0,
6658                 XmNleftAttachment, XmATTACH_FORM,
6659                 XmNtopOffset, 10,
6660                 XmNtopAttachment, XmATTACH_WIDGET,
6661                 XmNrecomputeSize, True,
6662                 XmNalignment, XmALIGNMENT_CENTER,
6663                 XmNlabelType, XmSTRING,
6664                 XmNlabelString, label_xmstring,
6665                 NULL);
6666         XmStringFree(label_xmstring);
6667         label_xmstring = NULL;
6668     }
6669     if (instance->alias_delete_but == NULL)
6670         return -1;
6671
6672     return 0;
6673 }
6674
6675
6676
6677 static int 
6678 dtb_options_al_change_but_create(
6679     DtbOptionsDialogInfo instance,
6680     Widget parent
6681 )
6682 {
6683     XmString    label_xmstring = NULL;
6684     
6685     if (instance->al_change_but == NULL) {
6686         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6687         instance->al_change_but =
6688             XtVaCreateWidget("dtb_options_al_change_but",
6689                 xmPushButtonWidgetClass,
6690                 parent,
6691                 XmNbottomAttachment, XmATTACH_NONE,
6692                 XmNrightOffset, 0,
6693                 XmNrightAttachment, XmATTACH_FORM,
6694                 XmNleftOffset, 0,
6695                 XmNleftAttachment, XmATTACH_FORM,
6696                 XmNtopOffset, 10,
6697                 XmNtopAttachment, XmATTACH_WIDGET,
6698                 XmNrecomputeSize, True,
6699                 XmNalignment, XmALIGNMENT_CENTER,
6700                 XmNlabelType, XmSTRING,
6701                 XmNlabelString, label_xmstring,
6702                 NULL);
6703         XmStringFree(label_xmstring);
6704         label_xmstring = NULL;
6705     }
6706     if (instance->al_change_but == NULL)
6707         return -1;
6708
6709     return 0;
6710 }
6711
6712
6713
6714 static int 
6715 dtb_options_update_mbox_scale_create(
6716     DtbOptionsDialogInfo instance,
6717     Widget parent
6718 )
6719 {
6720     
6721     if (instance->update_mbox_scale == NULL) {
6722         instance->update_mbox_scale =
6723             XtVaCreateWidget("dtb_options_update_mbox_scale",
6724                 xmScaleWidgetClass,
6725                 parent,
6726                 XmNbottomAttachment, XmATTACH_NONE,
6727                 XmNrightAttachment, XmATTACH_NONE,
6728                 XmNleftOffset, 117,
6729                 XmNleftAttachment, XmATTACH_FORM,
6730                 XmNtopOffset, 2,
6731                 XmNtopAttachment, XmATTACH_WIDGET,
6732                 XmNshowValue, False,
6733                 XmNvalue, 50,
6734                 XmNdecimalPoints, 0,
6735                 XmNscaleMultiple, 1,
6736                 XmNscaleWidth, 310,
6737                 XmNmaximum, 100,
6738                 XmNminimum, 0,
6739                 XmNprocessingDirection, XmMAX_ON_RIGHT,
6740                 XmNorientation, XmHORIZONTAL,
6741                 "slidingMode", False,
6742                 NULL);
6743     }
6744     if (instance->update_mbox_scale == NULL)
6745         return -1;
6746
6747     return 0;
6748 }
6749
6750
6751
6752 static int 
6753 dtb_options_update_mailb_lbl_create(
6754     DtbOptionsDialogInfo instance,
6755     Widget parent
6756 )
6757 {
6758     XmString    label_xmstring = NULL;
6759     
6760     if (instance->update_mailb_lbl == NULL) {
6761         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 76, "Update mailbox state:"));
6762         instance->update_mailb_lbl =
6763             XtVaCreateWidget("dtb_options_update_mailb_lbl",
6764                 xmLabelWidgetClass,
6765                 parent,
6766                 XmNbottomAttachment, XmATTACH_NONE,
6767                 XmNrightAttachment, XmATTACH_NONE,
6768                 XmNleftOffset, 22,
6769                 XmNleftAttachment, XmATTACH_FORM,
6770                 XmNtopOffset, 10,
6771                 XmNtopAttachment, XmATTACH_FORM,
6772                 XmNrecomputeSize, True,
6773                 XmNalignment, XmALIGNMENT_CENTER,
6774                 XmNlabelType, XmSTRING,
6775                 XmNlabelString, label_xmstring,
6776                 NULL);
6777         XmStringFree(label_xmstring);
6778         label_xmstring = NULL;
6779     }
6780     if (instance->update_mailb_lbl == NULL)
6781         return -1;
6782
6783     return 0;
6784 }
6785
6786
6787
6788 static int 
6789 dtb_options_frequently_lbl_create(
6790     DtbOptionsDialogInfo instance,
6791     Widget parent
6792 )
6793 {
6794     XmString    label_xmstring = NULL;
6795     
6796     if (instance->frequently_lbl == NULL) {
6797         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 77, "Frequently"));
6798         instance->frequently_lbl =
6799             XtVaCreateWidget("dtb_options_frequently_lbl",
6800                 xmLabelWidgetClass,
6801                 parent,
6802                 XmNbottomAttachment, XmATTACH_NONE,
6803                 XmNrightAttachment, XmATTACH_NONE,
6804                 XmNleftOffset, -38,
6805                 XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
6806                 XmNtopOffset, -2,
6807                 XmNtopAttachment, XmATTACH_WIDGET,
6808                 XmNrecomputeSize, True,
6809                 XmNalignment, XmALIGNMENT_CENTER,
6810                 XmNlabelType, XmSTRING,
6811                 XmNlabelString, label_xmstring,
6812                 NULL);
6813         XmStringFree(label_xmstring);
6814         label_xmstring = NULL;
6815     }
6816     if (instance->frequently_lbl == NULL)
6817         return -1;
6818
6819     return 0;
6820 }
6821
6822
6823
6824 static int 
6825 dtb_options_seldom_lbl_create(
6826     DtbOptionsDialogInfo instance,
6827     Widget parent
6828 )
6829 {
6830     XmString    label_xmstring = NULL;
6831     
6832     if (instance->seldom_lbl == NULL) {
6833         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 78, "Seldom"));
6834         instance->seldom_lbl =
6835             XtVaCreateWidget("dtb_options_seldom_lbl",
6836                 xmLabelWidgetClass,
6837                 parent,
6838                 XmNbottomAttachment, XmATTACH_NONE,
6839                 XmNrightOffset, -23,
6840                 XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET,
6841                 XmNleftAttachment, XmATTACH_NONE,
6842                 XmNtopOffset, -2,
6843                 XmNtopAttachment, XmATTACH_WIDGET,
6844                 XmNrecomputeSize, True,
6845                 XmNalignment, XmALIGNMENT_CENTER,
6846                 XmNlabelType, XmSTRING,
6847                 XmNlabelString, label_xmstring,
6848                 NULL);
6849         XmStringFree(label_xmstring);
6850         label_xmstring = NULL;
6851     }
6852     if (instance->seldom_lbl == NULL)
6853         return -1;
6854
6855     return 0;
6856 }
6857
6858
6859
6860 static int 
6861 dtb_options_separator11_create(
6862     DtbOptionsDialogInfo instance,
6863     Widget parent
6864 )
6865 {
6866     
6867     if (instance->separator11 == NULL) {
6868         instance->separator11 =
6869             XtVaCreateWidget("dtb_options_separator11",
6870                 xmSeparatorWidgetClass,
6871                 parent,
6872                 XmNbottomAttachment, XmATTACH_NONE,
6873                 XmNrightOffset, 0,
6874                 XmNrightAttachment, XmATTACH_FORM,
6875                 XmNleftOffset, 0,
6876                 XmNleftAttachment, XmATTACH_FORM,
6877                 XmNtopOffset, 8,
6878                 XmNtopAttachment, XmATTACH_WIDGET,
6879                 XmNseparatorType, XmSHADOW_ETCHED_IN,
6880                 XmNorientation, XmHORIZONTAL,
6881                 NULL);
6882     }
6883     if (instance->separator11 == NULL)
6884         return -1;
6885
6886     return 0;
6887 }
6888
6889
6890
6891 static int 
6892 dtb_options_adv_def_cb_create(
6893     DtbOptionsDialogInfo instance,
6894     Widget parent
6895 )
6896 {
6897     XmString    label_xmstring = NULL;
6898     Arg args[23];       /* need 18 args (add 5 to be safe) */
6899     int n = 0;
6900     Widget      adv_def_cb_choice_items[6];
6901     
6902     if (instance->adv_def_cb_rowcolumn == NULL) {
6903         instance->adv_def_cb_rowcolumn =
6904             XtVaCreateWidget("dtb_options_adv_def_cb",
6905                 xmRowColumnWidgetClass,
6906                 parent,
6907                 XmNbottomAttachment, XmATTACH_NONE,
6908                 XmNrightAttachment, XmATTACH_NONE,
6909                 XmNleftOffset, 24,
6910                 XmNleftAttachment, XmATTACH_FORM,
6911                 XmNtopOffset, 8,
6912                 XmNtopAttachment, XmATTACH_WIDGET,
6913                 XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM,
6914                 XmNspacing, 0,
6915                 XmNpacking, XmPACK_TIGHT,
6916                 XmNisHomogeneous, False,
6917                 XmNadjustLast, True,
6918                 XmNmarginWidth, 0,
6919                 XmNmarginHeight, 0,
6920                 XmNentryAlignment, XmALIGNMENT_END,
6921                 XmNorientation, XmHORIZONTAL,
6922                 NULL);
6923     }
6924     if (instance->adv_def_cb_rowcolumn == NULL)
6925         return -1;
6926
6927     if (instance->adv_def_cb_label == NULL) {
6928         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 79, "Defaults:"));
6929         instance->adv_def_cb_label =
6930             XtVaCreateWidget("dtb_options_adv_def_cb_label",
6931                 xmLabelWidgetClass,
6932                 instance->adv_def_cb_rowcolumn,
6933                 XmNmarginHeight, 8,
6934                 XmNlabelType, XmSTRING,
6935                 XmNlabelString, label_xmstring,
6936                 NULL);
6937         XmStringFree(label_xmstring);
6938         label_xmstring = NULL;
6939     }
6940     if (instance->adv_def_cb_label == NULL)
6941         return -1;
6942
6943     if (instance->adv_def_cb == NULL) {
6944         n = 0;
6945         XtSetArg(args[n], XmNradioBehavior, False);  ++n;
6946         XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass);  ++n;
6947         XtSetArg(args[n], XmNnumColumns, 1);  ++n;
6948         XtSetArg(args[n], XmNisHomogeneous, True);  ++n;
6949         XtSetArg(args[n], XmNspacing, 0);  ++n;
6950         XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA);  ++n;
6951         XtSetArg(args[n], XmNpacking, XmPACK_TIGHT);  ++n;
6952         XtSetArg(args[n], XmNorientation, XmVERTICAL);  ++n;
6953         instance->adv_def_cb =
6954             XmCreateRadioBox(instance->adv_def_cb_rowcolumn,
6955                 "dtb_options_adv_def_cb_choice", args, n);
6956     }
6957     if (instance->adv_def_cb == NULL)
6958         return -1;
6959
6960     if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL) {
6961         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 80, "Show confirmation notices"));
6962         instance->adv_def_cb_items.Show_confirmation_notices_item =
6963             XtVaCreateManagedWidget("dtb_options_adv_def_cb_show_confirmation_notices_item",
6964                 xmToggleButtonWidgetClass,
6965                 instance->adv_def_cb,
6966                 XmNset, True,
6967                 XmNlabelString, label_xmstring,
6968                 NULL);
6969         XmStringFree(label_xmstring);
6970         label_xmstring = NULL;
6971     }
6972     if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL)
6973         return -1;
6974
6975     if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL) {
6976         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 81, "Use strict MIME character encoding"));
6977         instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item =
6978             XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_strict_m_i_m_e_character_encoding_item",
6979                 xmToggleButtonWidgetClass,
6980                 instance->adv_def_cb,
6981                 XmNset, False,
6982                 XmNlabelString, label_xmstring,
6983                 NULL);
6984         XmStringFree(label_xmstring);
6985         label_xmstring = NULL;
6986     }
6987     if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL)
6988         return -1;
6989
6990     if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL) {
6991         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 82, "Use network aware mail file locking"));
6992         instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item =
6993             XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_network_aware_mail_file_locking_item",
6994                 xmToggleButtonWidgetClass,
6995                 instance->adv_def_cb,
6996                 XmNset, False,
6997                 XmNlabelString, label_xmstring,
6998                 NULL);
6999         XmStringFree(label_xmstring);
7000         label_xmstring = NULL;
7001     }
7002     if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL)
7003         return -1;
7004
7005     if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL) {
7006         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 83, "Ignore host name in address (allnet)"));
7007         instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item =
7008             XtVaCreateManagedWidget("dtb_options_adv_def_cb_ignore_host_name_in_address_allnet_item",
7009                 xmToggleButtonWidgetClass,
7010                 instance->adv_def_cb,
7011                 XmNset, False,
7012                 XmNlabelString, label_xmstring,
7013                 NULL);
7014         XmStringFree(label_xmstring);
7015         label_xmstring = NULL;
7016     }
7017     if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL)
7018         return -1;
7019
7020     if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL) {
7021         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 84, "Include me when I \"Reply to All\" (metoo)"));
7022         instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item =
7023             XtVaCreateManagedWidget("dtb_options_adv_def_cb_include_me_when_i_reply_to_all_metoo_item",
7024                 xmToggleButtonWidgetClass,
7025                 instance->adv_def_cb,
7026                 XmNset, False,
7027                 XmNlabelString, label_xmstring,
7028                 NULL);
7029         XmStringFree(label_xmstring);
7030         label_xmstring = NULL;
7031     }
7032     if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL)
7033         return -1;
7034
7035     if (instance->adv_def_cb_items.Use_local_name_username_item == NULL) {
7036         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 85, "Use local name: username ="));
7037         instance->adv_def_cb_items.Use_local_name_username_item =
7038             XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_local_name_username_item",
7039                 xmToggleButtonWidgetClass,
7040                 instance->adv_def_cb,
7041                 XmNset, False,
7042                 XmNlabelString, label_xmstring,
7043                 NULL);
7044         XmStringFree(label_xmstring);
7045         label_xmstring = NULL;
7046     }
7047     if (instance->adv_def_cb_items.Use_local_name_username_item == NULL)
7048         return -1;
7049
7050     return 0;
7051 }
7052
7053
7054
7055 static int 
7056 dtb_options_group12_create(
7057     DtbOptionsDialogInfo instance,
7058     Widget parent
7059 )
7060 {
7061     
7062     if (instance->group12 == NULL) {
7063         instance->group12 =
7064             XtVaCreateWidget("dtb_options_group12",
7065                 xmFormWidgetClass,
7066                 parent,
7067                 XmNbottomOffset, 10,
7068                 XmNbottomAttachment, XmATTACH_FORM,
7069                 XmNrightAttachment, XmATTACH_NONE,
7070                 XmNleftOffset, 119,
7071                 XmNleftAttachment, XmATTACH_FORM,
7072                 XmNtopOffset, 6,
7073                 XmNtopAttachment, XmATTACH_WIDGET,
7074                 XmNresizePolicy, XmRESIZE_ANY,
7075                 XmNmarginHeight, 0,
7076                 XmNmarginWidth, 0,
7077                 NULL);
7078     }
7079     if (instance->group12 == NULL)
7080         return -1;
7081
7082     return 0;
7083 }
7084
7085
7086
7087 static int 
7088 dtb_options_group16_create(
7089     DtbOptionsDialogInfo instance,
7090     Widget parent
7091 )
7092 {
7093     
7094     if (instance->group16 == NULL) {
7095         instance->group16 =
7096             XtVaCreateWidget("dtb_options_group16",
7097                 xmFormWidgetClass,
7098                 parent,
7099                 XmNbottomAttachment, XmATTACH_NONE,
7100                 XmNrightAttachment, XmATTACH_NONE,
7101                 XmNleftOffset, 10,
7102                 XmNleftAttachment, XmATTACH_WIDGET,
7103                 XmNtopOffset, 0,
7104                 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
7105                 XmNresizePolicy, XmRESIZE_ANY,
7106                 XmNmarginHeight, 0,
7107                 XmNmarginWidth, 0,
7108                 NULL);
7109     }
7110     if (instance->group16 == NULL)
7111         return -1;
7112
7113     return 0;
7114 }
7115
7116
7117
7118 static int 
7119 dtb_options_local_name_tf_create(
7120     DtbOptionsDialogInfo instance,
7121     Widget parent
7122 )
7123 {
7124     Arg args[17];       /* need 12 args (add 5 to be safe) */
7125     int n = 0;
7126     
7127     if (instance->local_name_tf == NULL) {
7128         n = 0;
7129         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
7130         XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE);  ++n;
7131         XtSetArg(args[n], XmNleftOffset, 0);  ++n;
7132         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
7133         XtSetArg(args[n], XmNtopOffset, 0);  ++n;
7134         XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM);  ++n;
7135         XtSetArg(args[n], XmNmaxLength, 80);  ++n;
7136         XtSetArg(args[n], XmNeditable, True);  ++n;
7137         XtSetArg(args[n], XmNcursorPositionVisible, True);  ++n;
7138         instance->local_name_tf =
7139             XmCreateTextField(parent,
7140                 "dtb_options_local_name_tf", args, n);
7141     }
7142     if (instance->local_name_tf == NULL)
7143         return -1;
7144
7145     return 0;
7146 }
7147
7148
7149
7150 static int 
7151 dtb_options_local_name_list_create(
7152     DtbOptionsDialogInfo instance,
7153     Widget parent
7154 )
7155 {
7156     Arg args[16];       /* need 11 args (add 5 to be safe) */
7157     int n = 0;
7158     
7159     
7160     if (instance->local_name_list == NULL) {
7161         n = 0;
7162         XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC);  ++n;
7163         XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT);  ++n;
7164         XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT);  ++n;
7165         XtSetArg(args[n], XmNvisibleItemCount, 8);  ++n;
7166         XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE);  ++n;
7167         XtSetArg(args[n], XmNrightOffset, 0);  ++n;
7168         XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET);  ++n;
7169         XtSetArg(args[n], XmNleftOffset, 0);  ++n;
7170         XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM);  ++n;
7171         XtSetArg(args[n], XmNtopOffset, 6);  ++n;
7172         XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET);  ++n;
7173         instance->local_name_list =
7174             XmCreateScrolledList(parent,
7175                 "dtb_options_local_name_list_list", args, n);
7176     }
7177     instance->local_name_list_scrolledwin = XtParent(instance->local_name_list);
7178     if (instance->local_name_list == NULL)
7179         return -1;
7180
7181     return 0;
7182 }
7183
7184
7185
7186 static int 
7187 dtb_options_local_name_add_but_create(
7188     DtbOptionsDialogInfo instance,
7189     Widget parent
7190 )
7191 {
7192     XmString    label_xmstring = NULL;
7193     
7194     if (instance->local_name_add_but == NULL) {
7195         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
7196         instance->local_name_add_but =
7197             XtVaCreateWidget("dtb_options_local_name_add_but",
7198                 xmPushButtonWidgetClass,
7199                 parent,
7200                 XmNbottomAttachment, XmATTACH_NONE,
7201                 XmNrightOffset, 0,
7202                 XmNrightAttachment, XmATTACH_FORM,
7203                 XmNleftOffset, 0,
7204                 XmNleftAttachment, XmATTACH_FORM,
7205                 XmNtopOffset, 0,
7206                 XmNtopAttachment, XmATTACH_FORM,
7207                 XmNrecomputeSize, True,
7208                 XmNalignment, XmALIGNMENT_CENTER,
7209                 XmNlabelType, XmSTRING,
7210                 XmNlabelString, label_xmstring,
7211                 NULL);
7212         XmStringFree(label_xmstring);
7213         label_xmstring = NULL;
7214     }
7215     if (instance->local_name_add_but == NULL)
7216         return -1;
7217
7218     return 0;
7219 }
7220
7221
7222
7223 static int 
7224 dtb_options_local_name_del_but_create(
7225     DtbOptionsDialogInfo instance,
7226     Widget parent
7227 )
7228 {
7229     XmString    label_xmstring = NULL;
7230     
7231     if (instance->local_name_del_but == NULL) {
7232         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
7233         instance->local_name_del_but =
7234             XtVaCreateWidget("dtb_options_local_name_del_but",
7235                 xmPushButtonWidgetClass,
7236                 parent,
7237                 XmNbottomAttachment, XmATTACH_NONE,
7238                 XmNrightOffset, 0,
7239                 XmNrightAttachment, XmATTACH_FORM,
7240                 XmNleftOffset, 0,
7241                 XmNleftAttachment, XmATTACH_FORM,
7242                 XmNtopOffset, 10,
7243                 XmNtopAttachment, XmATTACH_WIDGET,
7244                 XmNrecomputeSize, True,
7245                 XmNalignment, XmALIGNMENT_CENTER,
7246                 XmNlabelType, XmSTRING,
7247                 XmNlabelString, label_xmstring,
7248                 NULL);
7249         XmStringFree(label_xmstring);
7250         label_xmstring = NULL;
7251     }
7252     if (instance->local_name_del_but == NULL)
7253         return -1;
7254
7255     return 0;
7256 }
7257
7258
7259
7260 static int 
7261 dtb_options_local_name_chg_but_create(
7262     DtbOptionsDialogInfo instance,
7263     Widget parent
7264 )
7265 {
7266     XmString    label_xmstring = NULL;
7267     
7268     if (instance->local_name_chg_but == NULL) {
7269         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
7270         instance->local_name_chg_but =
7271             XtVaCreateWidget("dtb_options_local_name_chg_but",
7272                 xmPushButtonWidgetClass,
7273                 parent,
7274                 XmNbottomAttachment, XmATTACH_NONE,
7275                 XmNrightOffset, 0,
7276                 XmNrightAttachment, XmATTACH_FORM,
7277                 XmNleftOffset, 0,
7278                 XmNleftAttachment, XmATTACH_FORM,
7279                 XmNtopOffset, 10,
7280                 XmNtopAttachment, XmATTACH_WIDGET,
7281                 XmNrecomputeSize, True,
7282                 XmNalignment, XmALIGNMENT_CENTER,
7283                 XmNlabelType, XmSTRING,
7284                 XmNlabelString, label_xmstring,
7285                 NULL);
7286         XmStringFree(label_xmstring);
7287         label_xmstring = NULL;
7288     }
7289     if (instance->local_name_chg_but == NULL)
7290         return -1;
7291
7292     return 0;
7293 }
7294
7295
7296
7297 static int 
7298 dtb_options_ok_button_create(
7299     DtbOptionsDialogInfo instance,
7300     Widget parent
7301 )
7302 {
7303     XmString    label_xmstring = NULL;
7304     
7305     if (instance->ok_button == NULL) {
7306         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 86, "OK"));
7307         instance->ok_button =
7308             XtVaCreateWidget("dtb_options_ok_button",
7309                 xmPushButtonWidgetClass,
7310                 parent,
7311                 XmNbottomAttachment, XmATTACH_NONE,
7312                 XmNrightOffset, 0,
7313                 XmNrightPosition, 19,
7314                 XmNrightAttachment, XmATTACH_POSITION,
7315                 XmNleftOffset, 0,
7316                 XmNleftPosition, 2,
7317                 XmNleftAttachment, XmATTACH_POSITION,
7318                 XmNtopOffset, 13,
7319                 XmNtopAttachment, XmATTACH_FORM,
7320                 XmNrecomputeSize, True,
7321                 XmNalignment, XmALIGNMENT_CENTER,
7322                 XmNlabelType, XmSTRING,
7323                 XmNdefaultButtonShadowThickness, 1,
7324                 XmNlabelString, label_xmstring,
7325                 NULL);
7326         XmStringFree(label_xmstring);
7327         label_xmstring = NULL;
7328     }
7329     if (instance->ok_button == NULL)
7330         return -1;
7331
7332     return 0;
7333 }
7334
7335
7336
7337 static int 
7338 dtb_options_reset_button_create(
7339     DtbOptionsDialogInfo instance,
7340     Widget parent
7341 )
7342 {
7343     XmString    label_xmstring = NULL;
7344     
7345     if (instance->reset_button == NULL) {
7346         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 87, "Reset"));
7347         instance->reset_button =
7348             XtVaCreateWidget("dtb_options_reset_button",
7349                 xmPushButtonWidgetClass,
7350                 parent,
7351                 XmNbottomAttachment, XmATTACH_NONE,
7352                 XmNrightOffset, 0,
7353                 XmNrightPosition, 59,
7354                 XmNrightAttachment, XmATTACH_POSITION,
7355                 XmNleftOffset, 0,
7356                 XmNleftPosition, 41,
7357                 XmNleftAttachment, XmATTACH_POSITION,
7358                 XmNtopOffset, 13,
7359                 XmNtopAttachment, XmATTACH_FORM,
7360                 XmNrecomputeSize, True,
7361                 XmNalignment, XmALIGNMENT_CENTER,
7362                 XmNlabelType, XmSTRING,
7363                 XmNdefaultButtonShadowThickness, 1,
7364                 XmNlabelString, label_xmstring,
7365                 NULL);
7366         XmStringFree(label_xmstring);
7367         label_xmstring = NULL;
7368     }
7369     if (instance->reset_button == NULL)
7370         return -1;
7371
7372     return 0;
7373 }
7374
7375
7376
7377 static int 
7378 dtb_options_cancel_button_create(
7379     DtbOptionsDialogInfo instance,
7380     Widget parent
7381 )
7382 {
7383     XmString    label_xmstring = NULL;
7384     
7385     if (instance->cancel_button == NULL) {
7386         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 88, "Cancel"));
7387         instance->cancel_button =
7388             XtVaCreateWidget("dtb_options_cancel_button",
7389                 xmPushButtonWidgetClass,
7390                 parent,
7391                 XmNbottomAttachment, XmATTACH_NONE,
7392                 XmNrightOffset, 0,
7393                 XmNrightPosition, 79,
7394                 XmNrightAttachment, XmATTACH_POSITION,
7395                 XmNleftOffset, 0,
7396                 XmNleftPosition, 61,
7397                 XmNleftAttachment, XmATTACH_POSITION,
7398                 XmNtopOffset, 13,
7399                 XmNtopAttachment, XmATTACH_FORM,
7400                 XmNrecomputeSize, True,
7401                 XmNalignment, XmALIGNMENT_CENTER,
7402                 XmNlabelType, XmSTRING,
7403                 XmNdefaultButtonShadowThickness, 1,
7404                 XmNlabelString, label_xmstring,
7405                 NULL);
7406         XmStringFree(label_xmstring);
7407         label_xmstring = NULL;
7408     }
7409     if (instance->cancel_button == NULL)
7410         return -1;
7411
7412     return 0;
7413 }
7414
7415
7416
7417 static int 
7418 dtb_options_separator_create(
7419     DtbOptionsDialogInfo instance,
7420     Widget parent
7421 )
7422 {
7423     
7424     if (instance->separator == NULL) {
7425         instance->separator =
7426             XtVaCreateWidget("dtb_options_separator",
7427                 xmSeparatorWidgetClass,
7428                 parent,
7429                 XmNbottomAttachment, XmATTACH_NONE,
7430                 XmNrightOffset, 0,
7431                 XmNrightAttachment, XmATTACH_FORM,
7432                 XmNleftOffset, 0,
7433                 XmNleftAttachment, XmATTACH_FORM,
7434                 XmNtopOffset, 0,
7435                 XmNtopAttachment, XmATTACH_FORM,
7436                 XmNseparatorType, XmSHADOW_ETCHED_IN,
7437                 XmNorientation, XmHORIZONTAL,
7438                 NULL);
7439     }
7440     if (instance->separator == NULL)
7441         return -1;
7442
7443     return 0;
7444 }
7445
7446
7447
7448 static int 
7449 dtb_options_apply_button_create(
7450     DtbOptionsDialogInfo instance,
7451     Widget parent
7452 )
7453 {
7454     XmString    label_xmstring = NULL;
7455     
7456     if (instance->apply_button == NULL) {
7457         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 89, "Apply"));
7458         instance->apply_button =
7459             XtVaCreateWidget("dtb_options_apply_button",
7460                 xmPushButtonWidgetClass,
7461                 parent,
7462                 XmNbottomAttachment, XmATTACH_NONE,
7463                 XmNrightOffset, 0,
7464                 XmNrightPosition, 39,
7465                 XmNrightAttachment, XmATTACH_POSITION,
7466                 XmNleftOffset, 0,
7467                 XmNleftPosition, 21,
7468                 XmNleftAttachment, XmATTACH_POSITION,
7469                 XmNtopOffset, 13,
7470                 XmNtopAttachment, XmATTACH_FORM,
7471                 XmNrecomputeSize, True,
7472                 XmNalignment, XmALIGNMENT_CENTER,
7473                 XmNlabelType, XmSTRING,
7474                 XmNdefaultButtonShadowThickness, 1,
7475                 XmNlabelString, label_xmstring,
7476                 NULL);
7477         XmStringFree(label_xmstring);
7478         label_xmstring = NULL;
7479     }
7480     if (instance->apply_button == NULL)
7481         return -1;
7482
7483     return 0;
7484 }
7485
7486
7487
7488 static int 
7489 dtb_options_help_button_create(
7490     DtbOptionsDialogInfo instance,
7491     Widget parent
7492 )
7493 {
7494     XmString    label_xmstring = NULL;
7495     
7496     if (instance->help_button == NULL) {
7497         label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 90, "Help"));
7498         instance->help_button =
7499             XtVaCreateWidget("dtb_options_help_button",
7500                 xmPushButtonWidgetClass,
7501                 parent,
7502                 XmNbottomAttachment, XmATTACH_NONE,
7503                 XmNrightOffset, 0,
7504                 XmNrightPosition, 98,
7505                 XmNrightAttachment, XmATTACH_POSITION,
7506                 XmNleftOffset, 0,
7507                 XmNleftPosition, 81,
7508                 XmNleftAttachment, XmATTACH_POSITION,
7509                 XmNtopOffset, 13,
7510                 XmNtopAttachment, XmATTACH_FORM,
7511                 XmNrecomputeSize, True,
7512                 XmNalignment, XmALIGNMENT_CENTER,
7513                 XmNlabelType, XmSTRING,
7514                 XmNdefaultButtonShadowThickness, 1,
7515                 XmNlabelString, label_xmstring,
7516                 NULL);
7517         XmStringFree(label_xmstring);
7518         label_xmstring = NULL;
7519     }
7520     if (instance->help_button == NULL)
7521         return -1;
7522
7523     return 0;
7524 }
7525