2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $TOG: options_ui.C /main/17 1999/03/25 14:17:16 mgreess $ */
26 * Contains: user module object initialize and create functions
28 * This file was generated by dtcodegen, from module options
30 * ** DO NOT MODIFY BY HAND - ALL MODIFICATIONS WILL BE LOST **
33 * Common Desktop Environment
35 * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
36 * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
37 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
38 * (c) Copyright 1993, 1994, 1995 Novell, Inc.
39 * (c) Copyright 1995 Digital Equipment Corp.
40 * (c) Copyright 1995 Fujitsu Limited
41 * (c) Copyright 1995 Hitachi, Ltd.
44 * RESTRICTED RIGHTS LEGEND
46 *Use, duplication, or disclosure by the U.S. Government is subject to
47 *restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
48 *Technical Data and Computer Software clause in DFARS 252.227-7013. Rights
49 *for non-DOD U.S. Government Departments and Agencies are as set forth in
50 *FAR 52.227-19(c)(1,2).
52 *Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
53 *International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A.
54 *Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
55 *Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
56 *Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
57 *Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
58 *Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
63 #include <X11/Intrinsic.h>
64 #include <Xm/DialogS.h>
66 #include <Xm/PanedW.h>
67 #include <Xm/RowColumn.h>
68 #include <Xm/Separator.h>
71 #include <Xm/ToggleB.h>
72 #include <Xm/SSpinB.h>
74 #include <Xm/ScrollBar.h>
75 #include <Xm/ScrolledW.h>
79 #include "dtb_utils.h"
80 #include "dtmailopts.h"
81 #include "options_ui.h"
84 DtbOptionsDialogInfoRec dtb_options_dialog =
86 False /* initialized */
90 * Widget create procedure decls
92 static int dtb_options_dialog_create(
93 DtbOptionsDialogInfo instance,
96 static int dtb_options_dialog_button_panel_create(
97 DtbOptionsDialogInfo instance,
100 static int dtb_options_ctrl_panel_create(
101 DtbOptionsDialogInfo instance,
104 static int dtb_options_layer_create(
105 DtbOptionsDialogInfo instance,
108 static int dtb_options_category_opmenu_create(
109 DtbOptionsDialogInfo instance,
112 static int dtb_options_separator10_create(
113 DtbOptionsDialogInfo instance,
116 static int dtb_options_msg_header_pane_create(
117 DtbOptionsDialogInfo instance,
120 static int dtb_options_msg_view_pane_create(
121 DtbOptionsDialogInfo instance,
124 static int dtb_options_compose_win_pane_create(
125 DtbOptionsDialogInfo instance,
128 static int dtb_options_msg_filing_pane_create(
129 DtbOptionsDialogInfo instance,
132 static int dtb_options_vacation_pane_create(
133 DtbOptionsDialogInfo instance,
136 static int dtb_options_templates_pane_create(
137 DtbOptionsDialogInfo instance,
140 static int dtb_options_aliases_pane_create(
141 DtbOptionsDialogInfo instance,
144 static int dtb_options_advanced_pane_create(
145 DtbOptionsDialogInfo instance,
148 static int dtb_options_separator2_create(
149 DtbOptionsDialogInfo instance,
152 static int dtb_options_checkbox_create(
153 DtbOptionsDialogInfo instance,
156 static int dtb_options_separator4_create(
157 DtbOptionsDialogInfo instance,
160 static int dtb_options_group28_create(
161 DtbOptionsDialogInfo instance,
164 static int dtb_options_group21_create(
165 DtbOptionsDialogInfo instance,
168 static int dtb_options_destroy_del_msg_lbl_create(
169 DtbOptionsDialogInfo instance,
172 static int dtb_options_deleted_msg_cb_create(
173 DtbOptionsDialogInfo instance,
176 static int dtb_options_group_create(
177 DtbOptionsDialogInfo instance,
180 static int dtb_options_group18_create(
181 DtbOptionsDialogInfo instance,
184 static int dtb_options_group19_create(
185 DtbOptionsDialogInfo instance,
188 static int dtb_options_group20_create(
189 DtbOptionsDialogInfo instance,
192 static int dtb_options_mail_check_sb_create(
193 DtbOptionsDialogInfo instance,
196 static int dtb_options_seconds_lbl_create(
197 DtbOptionsDialogInfo instance,
200 static int dtb_options_signal_sb_create(
201 DtbOptionsDialogInfo instance,
204 static int dtb_options_beeps_lbl_create(
205 DtbOptionsDialogInfo instance,
208 static int dtb_options_spinbox2_create(
209 DtbOptionsDialogInfo instance,
212 static int dtb_options_flashes_lbl_create(
213 DtbOptionsDialogInfo instance,
216 static int dtb_options_display_sb_create(
217 DtbOptionsDialogInfo instance,
220 static int dtb_options_headers_lbl_create(
221 DtbOptionsDialogInfo instance,
224 static int dtb_options_separator6_create(
225 DtbOptionsDialogInfo instance,
228 static int dtb_options_abr_header_lbl_create(
229 DtbOptionsDialogInfo instance,
232 static int dtb_options_group8_create(
233 DtbOptionsDialogInfo instance,
236 static int dtb_options_group17_create(
237 DtbOptionsDialogInfo instance,
240 static int dtb_options_group2_create(
241 DtbOptionsDialogInfo instance,
244 static int dtb_options_group22_create(
245 DtbOptionsDialogInfo instance,
248 static int dtb_options_fixed_font_cb_create(
249 DtbOptionsDialogInfo instance,
252 static int dtb_options_display_row_sb_create(
253 DtbOptionsDialogInfo instance,
256 static int dtb_options_rows_lbl_create(
257 DtbOptionsDialogInfo instance,
260 static int dtb_options_characters_wide_sb_create(
261 DtbOptionsDialogInfo instance,
264 static int dtb_options_char_wide_lbl_create(
265 DtbOptionsDialogInfo instance,
268 static int dtb_options_group3_create(
269 DtbOptionsDialogInfo instance,
272 static int dtb_options_fields_hide_create(
273 DtbOptionsDialogInfo instance,
276 static int dtb_options_hidden_fields_list_create(
277 DtbOptionsDialogInfo instance,
280 static int dtb_options_hidden_fields_lbl_create(
281 DtbOptionsDialogInfo instance,
284 static int dtb_options_header_fields_lbl_create(
285 DtbOptionsDialogInfo instance,
288 static int dtb_options_h_field_add_create(
289 DtbOptionsDialogInfo instance,
292 static int dtb_options_h_field_delete_create(
293 DtbOptionsDialogInfo instance,
296 static int dtb_options_h_field_change_create(
297 DtbOptionsDialogInfo instance,
300 static int dtb_options_wrap_checkbox_create(
301 DtbOptionsDialogInfo instance,
304 static int dtb_options_confirm_attachment_create(
305 DtbOptionsDialogInfo instance,
308 static int dtb_options_separator3_create(
309 DtbOptionsDialogInfo instance,
312 static int dtb_options_separator7_create(
313 DtbOptionsDialogInfo instance,
316 static int dtb_options_deadletter_field_create(
317 DtbOptionsDialogInfo instance,
320 static int dtb_options_separator9_create(
321 DtbOptionsDialogInfo instance,
324 static int dtb_options_format_menu_lbl_create(
325 DtbOptionsDialogInfo instance,
328 static int dtb_options_group6_create(
329 DtbOptionsDialogInfo instance,
332 static int dtb_options_group4_create(
333 DtbOptionsDialogInfo instance,
336 static int dtb_options_indent_str_tf_create(
337 DtbOptionsDialogInfo instance,
340 static int dtb_options_group23_create(
341 DtbOptionsDialogInfo instance,
344 static int dtb_options_indent_str_lbl_create(
345 DtbOptionsDialogInfo instance,
348 static int dtb_options_reply_include_lbl_create(
349 DtbOptionsDialogInfo instance,
352 static int dtb_options_group7_create(
353 DtbOptionsDialogInfo instance,
356 static int dtb_options_list_create(
357 DtbOptionsDialogInfo instance,
360 static int dtb_options_menu_labels_lbl_create(
361 DtbOptionsDialogInfo instance,
364 static int dtb_options_hdr_field_create(
365 DtbOptionsDialogInfo instance,
368 static int dtb_options_def_value_field_create(
369 DtbOptionsDialogInfo instance,
372 static int dtb_options_hdr_field_lbl_create(
373 DtbOptionsDialogInfo instance,
376 static int dtb_options_def_value_lbl_create(
377 DtbOptionsDialogInfo instance,
380 static int dtb_options_add_button_create(
381 DtbOptionsDialogInfo instance,
384 static int dtb_options_del_button_create(
385 DtbOptionsDialogInfo instance,
388 static int dtb_options_change_button_create(
389 DtbOptionsDialogInfo instance,
392 static int dtb_options_separator8_create(
393 DtbOptionsDialogInfo instance,
396 static int dtb_options_separator5_create(
397 DtbOptionsDialogInfo instance,
400 static int dtb_options_group25_create(
401 DtbOptionsDialogInfo instance,
404 static int dtb_options_mailb_for_sent_lbl_create(
405 DtbOptionsDialogInfo instance,
408 static int dtb_options_group26_create(
409 DtbOptionsDialogInfo instance,
412 static int dtb_options_group9_create(
413 DtbOptionsDialogInfo instance,
416 static int dtb_options_dpy_up_mbox_cb_create(
417 DtbOptionsDialogInfo instance,
420 static int dtb_options_recent_sb_create(
421 DtbOptionsDialogInfo instance,
424 static int dtb_options_visit_mailb_lbl_create(
425 DtbOptionsDialogInfo instance,
428 static int dtb_options_sent_mail_tf_create(
429 DtbOptionsDialogInfo instance,
432 static int dtb_options_log_cb_create(
433 DtbOptionsDialogInfo instance,
436 static int dtb_options_group24_create(
437 DtbOptionsDialogInfo instance,
440 static int dtb_options_path_file_name_tf_create(
441 DtbOptionsDialogInfo instance,
444 static int dtb_options_mv_menu_lst_create(
445 DtbOptionsDialogInfo instance,
448 static int dtb_options_srt_looking_tf_create(
449 DtbOptionsDialogInfo instance,
452 static int dtb_options_move_menu_lbl_create(
453 DtbOptionsDialogInfo instance,
456 static int dtb_options_move_menu_lbl2_create(
457 DtbOptionsDialogInfo instance,
460 static int dtb_options_path_file_lbl_create(
461 DtbOptionsDialogInfo instance,
464 static int dtb_options_start_look_lbl_create(
465 DtbOptionsDialogInfo instance,
468 static int dtb_options_mm_add_butt_create(
469 DtbOptionsDialogInfo instance,
472 static int dtb_options_mm_delete_butt_create(
473 DtbOptionsDialogInfo instance,
476 static int dtb_options_mm_change_butt_create(
477 DtbOptionsDialogInfo instance,
480 static int dtb_options_vacation_lbl_create(
481 DtbOptionsDialogInfo instance,
484 static int dtb_options_group10_create(
485 DtbOptionsDialogInfo instance,
488 static int dtb_options_vacation_rb_create(
489 DtbOptionsDialogInfo instance,
492 static int dtb_options_vacation_msg_tp_create(
493 DtbOptionsDialogInfo instance,
496 static int dtb_options_subject_tf_create(
497 DtbOptionsDialogInfo instance,
500 static int dtb_options_msg_list_lbl_create(
501 DtbOptionsDialogInfo instance,
504 static int dtb_options_subject_lbl_create(
505 DtbOptionsDialogInfo instance,
508 static int dtb_options_vacation_rb_lbl_create(
509 DtbOptionsDialogInfo instance,
512 static int dtb_options_group13_create(
513 DtbOptionsDialogInfo instance,
516 static int dtb_options_group11_create(
517 DtbOptionsDialogInfo instance,
520 static int dtb_options_menu_label_create(
521 DtbOptionsDialogInfo instance,
524 static int dtb_options_path_filename_label_create(
525 DtbOptionsDialogInfo instance,
528 static int dtb_options_templates_list_create(
529 DtbOptionsDialogInfo instance,
532 static int dtb_options_templates_list_lbl_create(
533 DtbOptionsDialogInfo instance,
536 static int dtb_options_menu_label_lbl_create(
537 DtbOptionsDialogInfo instance,
540 static int dtb_options_path_filename_label_lbl_create(
541 DtbOptionsDialogInfo instance,
544 static int dtb_options_tem_add_but_create(
545 DtbOptionsDialogInfo instance,
548 static int dtb_options_tem_del_but_create(
549 DtbOptionsDialogInfo instance,
552 static int dtb_options_tem_change_but_create(
553 DtbOptionsDialogInfo instance,
556 static int dtb_options_group14_create(
557 DtbOptionsDialogInfo instance,
560 static int dtb_options_group15_create(
561 DtbOptionsDialogInfo instance,
564 static int dtb_options_alias_tf_create(
565 DtbOptionsDialogInfo instance,
568 static int dtb_options_addresses_tf_create(
569 DtbOptionsDialogInfo instance,
572 static int dtb_options_alias_list_create(
573 DtbOptionsDialogInfo instance,
576 static int dtb_options_alias_list_lbl_create(
577 DtbOptionsDialogInfo instance,
580 static int dtb_options_alias_tf_lbl_create(
581 DtbOptionsDialogInfo instance,
584 static int dtb_options_address_tf_lbl_create(
585 DtbOptionsDialogInfo instance,
588 static int dtb_options_alias_add_but_create(
589 DtbOptionsDialogInfo instance,
592 static int dtb_options_alias_delete_but_create(
593 DtbOptionsDialogInfo instance,
596 static int dtb_options_al_change_but_create(
597 DtbOptionsDialogInfo instance,
600 static int dtb_options_update_mbox_scale_create(
601 DtbOptionsDialogInfo instance,
604 static int dtb_options_update_mailb_lbl_create(
605 DtbOptionsDialogInfo instance,
608 static int dtb_options_frequently_lbl_create(
609 DtbOptionsDialogInfo instance,
612 static int dtb_options_seldom_lbl_create(
613 DtbOptionsDialogInfo instance,
616 static int dtb_options_separator11_create(
617 DtbOptionsDialogInfo instance,
620 static int dtb_options_adv_def_cb_create(
621 DtbOptionsDialogInfo instance,
624 static int dtb_options_group12_create(
625 DtbOptionsDialogInfo instance,
628 static int dtb_options_group16_create(
629 DtbOptionsDialogInfo instance,
632 static int dtb_options_local_name_tf_create(
633 DtbOptionsDialogInfo instance,
636 static int dtb_options_local_name_list_create(
637 DtbOptionsDialogInfo instance,
640 static int dtb_options_local_name_add_but_create(
641 DtbOptionsDialogInfo instance,
644 static int dtb_options_local_name_del_but_create(
645 DtbOptionsDialogInfo instance,
648 static int dtb_options_local_name_chg_but_create(
649 DtbOptionsDialogInfo instance,
652 static int dtb_options_ok_button_create(
653 DtbOptionsDialogInfo instance,
656 static int dtb_options_reset_button_create(
657 DtbOptionsDialogInfo instance,
660 static int dtb_options_cancel_button_create(
661 DtbOptionsDialogInfo instance,
664 static int dtb_options_separator_create(
665 DtbOptionsDialogInfo instance,
668 static int dtb_options_apply_button_create(
669 DtbOptionsDialogInfo instance,
672 static int dtb_options_help_button_create(
673 DtbOptionsDialogInfo instance,
678 dtbOptionsDialogInfo_clear(DtbOptionsDialogInfo instance)
680 memset((void *)(instance), 0, sizeof(*instance));
685 dtb_options_dialog_initialize(
686 DtbOptionsDialogInfo instance,
690 if (instance->initialized)
694 instance->initialized = True;
696 dtb_options_dialog_create(instance,
698 dtb_options_dialog_button_panel_create(instance,
699 instance->dialog_panedwin);
700 dtb_options_ctrl_panel_create(instance,
701 instance->dialog_form);
702 dtb_options_layer_create(instance,
703 instance->dialog_form);
704 dtb_options_category_opmenu_create(instance,
705 instance->ctrl_panel);
706 dtb_options_separator10_create(instance,
707 instance->ctrl_panel);
708 dtb_options_msg_header_pane_create(instance,
710 dtb_options_msg_view_pane_create(instance,
712 dtb_options_compose_win_pane_create(instance,
714 dtb_options_msg_filing_pane_create(instance,
716 dtb_options_vacation_pane_create(instance,
718 dtb_options_templates_pane_create(instance,
720 dtb_options_aliases_pane_create(instance,
722 dtb_options_advanced_pane_create(instance,
724 dtb_options_separator2_create(instance,
725 instance->msg_header_pane);
726 dtb_options_checkbox_create(instance,
727 instance->msg_header_pane);
728 dtb_options_separator4_create(instance,
729 instance->msg_header_pane);
730 dtb_options_group28_create(instance,
731 instance->msg_header_pane);
732 dtb_options_group21_create(instance,
733 instance->msg_header_pane);
734 dtb_options_destroy_del_msg_lbl_create(instance,
736 dtb_options_deleted_msg_cb_create(instance,
738 dtb_options_group_create(instance,
740 dtb_options_group18_create(instance,
742 dtb_options_group19_create(instance,
744 dtb_options_group20_create(instance,
746 dtb_options_mail_check_sb_create(instance,
748 dtb_options_seconds_lbl_create(instance,
750 dtb_options_signal_sb_create(instance,
752 dtb_options_beeps_lbl_create(instance,
754 dtb_options_spinbox2_create(instance,
756 dtb_options_flashes_lbl_create(instance,
758 dtb_options_display_sb_create(instance,
760 dtb_options_headers_lbl_create(instance,
762 dtb_options_separator6_create(instance,
763 instance->msg_view_pane);
764 dtb_options_abr_header_lbl_create(instance,
765 instance->msg_view_pane);
766 dtb_options_group8_create(instance,
767 instance->msg_view_pane);
768 dtb_options_group17_create(instance,
769 instance->msg_view_pane);
770 dtb_options_group2_create(instance,
772 dtb_options_group22_create(instance,
774 dtb_options_fixed_font_cb_create(instance,
776 dtb_options_display_row_sb_create(instance,
778 dtb_options_rows_lbl_create(instance,
780 dtb_options_characters_wide_sb_create(instance,
782 dtb_options_char_wide_lbl_create(instance,
784 dtb_options_group3_create(instance,
786 dtb_options_fields_hide_create(instance,
788 dtb_options_hidden_fields_list_create(instance,
790 dtb_options_hidden_fields_lbl_create(instance,
792 dtb_options_header_fields_lbl_create(instance,
794 dtb_options_h_field_add_create(instance,
796 dtb_options_h_field_delete_create(instance,
798 dtb_options_h_field_change_create(instance,
800 dtb_options_wrap_checkbox_create(instance,
801 instance->compose_win_pane);
802 dtb_options_confirm_attachment_create(instance,
803 instance->compose_win_pane);
804 dtb_options_separator3_create(instance,
805 instance->compose_win_pane);
806 dtb_options_separator7_create(instance,
807 instance->compose_win_pane);
808 dtb_options_deadletter_field_create(instance,
809 instance->compose_win_pane);
810 dtb_options_separator9_create(instance,
811 instance->compose_win_pane);
812 dtb_options_format_menu_lbl_create(instance,
813 instance->compose_win_pane);
814 dtb_options_group6_create(instance,
815 instance->compose_win_pane);
816 dtb_options_group4_create(instance,
817 instance->compose_win_pane);
818 dtb_options_indent_str_tf_create(instance,
820 dtb_options_group23_create(instance,
822 dtb_options_indent_str_lbl_create(instance,
824 dtb_options_reply_include_lbl_create(instance,
826 dtb_options_group7_create(instance,
828 dtb_options_list_create(instance,
830 dtb_options_menu_labels_lbl_create(instance,
832 dtb_options_hdr_field_create(instance,
834 dtb_options_def_value_field_create(instance,
836 dtb_options_hdr_field_lbl_create(instance,
838 dtb_options_def_value_lbl_create(instance,
840 dtb_options_add_button_create(instance,
842 dtb_options_del_button_create(instance,
844 dtb_options_change_button_create(instance,
846 dtb_options_separator8_create(instance,
847 instance->msg_filing_pane);
848 dtb_options_separator5_create(instance,
849 instance->msg_filing_pane);
850 dtb_options_group25_create(instance,
851 instance->msg_filing_pane);
852 dtb_options_mailb_for_sent_lbl_create(instance,
853 instance->msg_filing_pane);
854 dtb_options_group26_create(instance,
855 instance->msg_filing_pane);
856 dtb_options_group9_create(instance,
857 instance->msg_filing_pane);
858 dtb_options_dpy_up_mbox_cb_create(instance,
860 dtb_options_recent_sb_create(instance,
862 dtb_options_visit_mailb_lbl_create(instance,
864 dtb_options_sent_mail_tf_create(instance,
866 dtb_options_log_cb_create(instance,
868 dtb_options_group24_create(instance,
870 dtb_options_path_file_name_tf_create(instance,
872 dtb_options_mv_menu_lst_create(instance,
874 dtb_options_srt_looking_tf_create(instance,
876 dtb_options_move_menu_lbl_create(instance,
878 dtb_options_move_menu_lbl2_create(instance,
880 dtb_options_path_file_lbl_create(instance,
882 dtb_options_start_look_lbl_create(instance,
884 dtb_options_mm_add_butt_create(instance,
886 dtb_options_mm_delete_butt_create(instance,
888 dtb_options_mm_change_butt_create(instance,
890 dtb_options_vacation_lbl_create(instance,
891 instance->vacation_pane);
892 dtb_options_group10_create(instance,
893 instance->vacation_pane);
894 dtb_options_vacation_rb_create(instance,
896 dtb_options_vacation_msg_tp_create(instance,
898 dtb_options_subject_tf_create(instance,
900 dtb_options_msg_list_lbl_create(instance,
902 dtb_options_subject_lbl_create(instance,
904 dtb_options_vacation_rb_lbl_create(instance,
906 dtb_options_group13_create(instance,
907 instance->templates_pane);
908 dtb_options_group11_create(instance,
910 dtb_options_menu_label_create(instance,
912 dtb_options_path_filename_label_create(instance,
914 dtb_options_templates_list_create(instance,
916 dtb_options_templates_list_lbl_create(instance,
918 dtb_options_menu_label_lbl_create(instance,
920 dtb_options_path_filename_label_lbl_create(instance,
922 dtb_options_tem_add_but_create(instance,
924 dtb_options_tem_del_but_create(instance,
926 dtb_options_tem_change_but_create(instance,
928 dtb_options_group14_create(instance,
929 instance->aliases_pane);
930 dtb_options_group15_create(instance,
932 dtb_options_alias_tf_create(instance,
934 dtb_options_addresses_tf_create(instance,
936 dtb_options_alias_list_create(instance,
938 dtb_options_alias_list_lbl_create(instance,
940 dtb_options_alias_tf_lbl_create(instance,
942 dtb_options_address_tf_lbl_create(instance,
944 dtb_options_alias_add_but_create(instance,
946 dtb_options_alias_delete_but_create(instance,
948 dtb_options_al_change_but_create(instance,
950 dtb_options_update_mbox_scale_create(instance,
951 instance->advanced_pane);
952 dtb_options_update_mailb_lbl_create(instance,
953 instance->advanced_pane);
954 dtb_options_frequently_lbl_create(instance,
955 instance->advanced_pane);
956 dtb_options_seldom_lbl_create(instance,
957 instance->advanced_pane);
958 dtb_options_separator11_create(instance,
959 instance->advanced_pane);
960 dtb_options_adv_def_cb_create(instance,
961 instance->advanced_pane);
962 dtb_options_group12_create(instance,
963 instance->advanced_pane);
964 dtb_options_group16_create(instance,
966 dtb_options_local_name_tf_create(instance,
968 dtb_options_local_name_list_create(instance,
970 dtb_options_local_name_add_but_create(instance,
972 dtb_options_local_name_del_but_create(instance,
974 dtb_options_local_name_chg_but_create(instance,
976 dtb_options_ok_button_create(instance,
977 instance->dialog_button_panel);
978 dtb_options_reset_button_create(instance,
979 instance->dialog_button_panel);
980 dtb_options_cancel_button_create(instance,
981 instance->dialog_button_panel);
982 dtb_options_separator_create(instance,
983 instance->dialog_button_panel);
984 dtb_options_apply_button_create(instance,
985 instance->dialog_button_panel);
986 dtb_options_help_button_create(instance,
987 instance->dialog_button_panel);
990 * Add widget-reference resources.
993 XtVaSetValues(instance->dialog_shellform,
994 XmNdefaultButton, instance->ok_button,
997 XtVaSetValues(instance->layer,
998 XmNtopWidget, instance->ctrl_panel,
1001 XtVaSetValues(instance->separator10,
1002 XmNtopWidget, instance->category_opmenu_rowcolumn,
1005 XtVaSetValues(instance->separator2,
1006 XmNtopWidget, instance->group21,
1009 XtVaSetValues(instance->checkbox,
1010 XmNtopWidget, instance->separator2,
1013 XtVaSetValues(instance->separator4,
1014 XmNtopWidget, instance->checkbox,
1017 XtVaSetValues(instance->group28,
1018 XmNtopWidget, instance->separator4,
1021 XtVaSetValues(instance->deleted_msg_cb,
1022 XmNtopWidget, instance->destroy_del_msg_lbl,
1025 XtVaSetValues(instance->seconds_lbl,
1026 XmNleftWidget, instance->mail_check_sb_rowcolumn,
1029 XtVaSetValues(instance->beeps_lbl,
1030 XmNleftWidget, instance->signal_sb_rowcolumn,
1033 XtVaSetValues(instance->flashes_lbl,
1034 XmNleftWidget, instance->spinbox2_rowcolumn,
1037 XtVaSetValues(instance->headers_lbl,
1038 XmNleftWidget, instance->display_sb_rowcolumn,
1041 XtVaSetValues(instance->separator6,
1042 XmNtopWidget, instance->group8,
1045 XtVaSetValues(instance->abr_header_lbl,
1046 XmNtopWidget, instance->separator6,
1049 XtVaSetValues(instance->group17,
1050 XmNtopWidget, instance->abr_header_lbl,
1053 XtVaSetValues(instance->rows_lbl,
1054 XmNleftWidget, instance->display_row_sb_rowcolumn,
1057 XtVaSetValues(instance->char_wide_lbl,
1058 XmNleftWidget, instance->characters_wide_sb_rowcolumn,
1061 XtVaSetValues(instance->group3,
1062 XmNleftWidget, instance->hidden_fields_list_scrolledwin,
1063 XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1066 XtVaSetValues(instance->hidden_fields_list_scrolledwin,
1067 XmNrightWidget, instance->fields_hide,
1068 XmNtopWidget, instance->fields_hide,
1071 XtVaSetValues(instance->hidden_fields_lbl,
1072 XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1075 XtVaSetValues(instance->h_field_delete,
1076 XmNtopWidget, instance->h_field_add,
1079 XtVaSetValues(instance->h_field_change,
1080 XmNtopWidget, instance->h_field_delete,
1083 XtVaSetValues(instance->separator7,
1084 XmNtopWidget, instance->group6,
1087 XtVaSetValues(instance->deadletter_field_rowcolumn,
1088 XmNtopWidget, instance->separator7,
1091 XtVaSetValues(instance->separator9,
1092 XmNtopWidget, instance->deadletter_field_rowcolumn,
1095 XtVaSetValues(instance->format_menu_lbl,
1096 XmNtopWidget, instance->separator9,
1099 XtVaSetValues(instance->confirm_attachment,
1100 XmNtopWidget, instance->wrap_checkbox,
1103 XtVaSetValues(instance->separator3,
1104 XmNtopWidget, instance->confirm_attachment,
1107 XtVaSetValues(instance->group6,
1108 XmNtopWidget, instance->separator3,
1111 XtVaSetValues(instance->group4,
1112 XmNtopWidget, instance->format_menu_lbl,
1115 XtVaSetValues(instance->indent_str_tf,
1116 XmNleftWidget, instance->group23,
1119 XtVaSetValues(instance->group7,
1120 XmNleftWidget, instance->list_scrolledwin,
1121 XmNtopWidget, instance->list_scrolledwin,
1124 XtVaSetValues(instance->list_scrolledwin,
1125 XmNrightWidget, instance->def_value_field,
1126 XmNtopWidget, instance->def_value_field,
1129 XtVaSetValues(instance->menu_labels_lbl,
1130 XmNtopWidget, instance->list_scrolledwin,
1133 XtVaSetValues(instance->def_value_field,
1134 XmNtopWidget, instance->hdr_field,
1137 XtVaSetValues(instance->hdr_field_lbl,
1138 XmNbottomWidget, instance->hdr_field,
1139 XmNtopWidget, instance->hdr_field,
1142 XtVaSetValues(instance->def_value_lbl,
1143 XmNbottomWidget, instance->def_value_field,
1144 XmNtopWidget, instance->def_value_field,
1147 XtVaSetValues(instance->del_button,
1148 XmNtopWidget, instance->add_button,
1151 XtVaSetValues(instance->change_button,
1152 XmNtopWidget, instance->del_button,
1155 XtVaSetValues(instance->separator8,
1156 XmNtopWidget, instance->group25,
1159 XtVaSetValues(instance->separator5,
1160 XmNtopWidget, instance->group9,
1163 XtVaSetValues(instance->group25,
1164 XmNtopWidget, instance->separator5,
1167 XtVaSetValues(instance->mailb_for_sent_lbl,
1168 XmNtopWidget, instance->separator8,
1171 XtVaSetValues(instance->group26,
1172 XmNtopWidget, instance->mailb_for_sent_lbl,
1175 XtVaSetValues(instance->group24,
1176 XmNleftWidget, instance->mv_menu_lst_scrolledwin,
1177 XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1180 XtVaSetValues(instance->mv_menu_lst_scrolledwin,
1181 XmNrightWidget, instance->path_file_name_tf,
1182 XmNtopWidget, instance->path_file_name_tf,
1185 XtVaSetValues(instance->srt_looking_tf,
1186 XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1189 XtVaSetValues(instance->move_menu_lbl,
1190 XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1193 XtVaSetValues(instance->move_menu_lbl2,
1194 XmNtopWidget, instance->move_menu_lbl,
1197 XtVaSetValues(instance->path_file_lbl,
1198 XmNbottomWidget, instance->path_file_name_tf,
1199 XmNtopWidget, instance->path_file_name_tf,
1202 XtVaSetValues(instance->start_look_lbl,
1203 XmNbottomWidget, instance->srt_looking_tf,
1204 XmNtopWidget, instance->srt_looking_tf,
1207 XtVaSetValues(instance->mm_delete_butt,
1208 XmNtopWidget, instance->mm_add_butt,
1211 XtVaSetValues(instance->mm_change_butt,
1212 XmNtopWidget, instance->mm_delete_butt,
1215 XtVaSetValues(instance->group10,
1216 XmNtopWidget, instance->vacation_lbl,
1219 XtVaSetValues(instance->vacation_msg_tp_scrolledwin,
1220 XmNtopWidget, instance->subject_tf,
1223 XtVaSetValues(instance->subject_tf,
1224 XmNtopWidget, instance->vacation_rb,
1227 XtVaSetValues(instance->msg_list_lbl,
1228 XmNtopWidget, instance->vacation_msg_tp_scrolledwin,
1231 XtVaSetValues(instance->subject_lbl,
1232 XmNbottomWidget, instance->subject_tf,
1233 XmNtopWidget, instance->subject_tf,
1236 XtVaSetValues(instance->vacation_rb_lbl,
1237 XmNbottomWidget, instance->vacation_rb,
1238 XmNtopWidget, instance->vacation_rb,
1241 XtVaSetValues(instance->group11,
1242 XmNleftWidget, instance->templates_list_scrolledwin,
1243 XmNtopWidget, instance->templates_list_scrolledwin,
1246 XtVaSetValues(instance->path_filename_label,
1247 XmNtopWidget, instance->menu_label,
1250 XtVaSetValues(instance->templates_list_scrolledwin,
1251 XmNrightWidget, instance->path_filename_label,
1252 XmNtopWidget, instance->path_filename_label,
1255 XtVaSetValues(instance->templates_list_lbl,
1256 XmNtopWidget, instance->templates_list_scrolledwin,
1259 XtVaSetValues(instance->menu_label_lbl,
1260 XmNbottomWidget, instance->menu_label,
1261 XmNtopWidget, instance->menu_label,
1264 XtVaSetValues(instance->path_filename_label_lbl,
1265 XmNbottomWidget, instance->path_filename_label,
1266 XmNtopWidget, instance->path_filename_label,
1269 XtVaSetValues(instance->tem_del_but,
1270 XmNtopWidget, instance->tem_add_but,
1273 XtVaSetValues(instance->tem_change_but,
1274 XmNtopWidget, instance->tem_del_but,
1277 XtVaSetValues(instance->group15,
1278 XmNleftWidget, instance->alias_list_scrolledwin,
1279 XmNtopWidget, instance->alias_list_scrolledwin,
1282 XtVaSetValues(instance->addresses_tf,
1283 XmNtopWidget, instance->alias_tf,
1286 XtVaSetValues(instance->alias_list_scrolledwin,
1287 XmNrightWidget, instance->addresses_tf,
1288 XmNtopWidget, instance->addresses_tf,
1291 XtVaSetValues(instance->alias_list_lbl,
1292 XmNtopWidget, instance->alias_list_scrolledwin,
1295 XtVaSetValues(instance->alias_tf_lbl,
1296 XmNbottomWidget, instance->alias_tf,
1297 XmNtopWidget, instance->alias_tf,
1300 XtVaSetValues(instance->address_tf_lbl,
1301 XmNbottomWidget, instance->addresses_tf,
1302 XmNtopWidget, instance->addresses_tf,
1305 XtVaSetValues(instance->alias_delete_but,
1306 XmNtopWidget, instance->alias_add_but,
1309 XtVaSetValues(instance->al_change_but,
1310 XmNtopWidget, instance->alias_delete_but,
1313 XtVaSetValues(instance->update_mbox_scale,
1314 XmNtopWidget, instance->update_mailb_lbl,
1317 XtVaSetValues(instance->frequently_lbl,
1318 XmNleftWidget, instance->update_mbox_scale,
1319 XmNtopWidget, instance->update_mbox_scale,
1322 XtVaSetValues(instance->seldom_lbl,
1323 XmNrightWidget, instance->update_mbox_scale,
1324 XmNtopWidget, instance->update_mbox_scale,
1327 XtVaSetValues(instance->separator11,
1328 XmNtopWidget, instance->seldom_lbl,
1331 XtVaSetValues(instance->adv_def_cb_rowcolumn,
1332 XmNtopWidget, instance->separator11,
1335 XtVaSetValues(instance->group12,
1336 XmNtopWidget, instance->adv_def_cb_rowcolumn,
1339 XtVaSetValues(instance->group16,
1340 XmNleftWidget, instance->local_name_list_scrolledwin,
1341 XmNtopWidget, instance->local_name_list_scrolledwin,
1344 XtVaSetValues(instance->local_name_list_scrolledwin,
1345 XmNrightWidget, instance->local_name_tf,
1346 XmNtopWidget, instance->local_name_tf,
1349 XtVaSetValues(instance->local_name_del_but,
1350 XmNtopWidget, instance->local_name_add_but,
1353 XtVaSetValues(instance->local_name_chg_but,
1354 XmNtopWidget, instance->local_name_del_but,
1358 * Call utility functions to do group layout
1361 dtb_children_align(instance->group21,
1367 dtb_children_align(instance->group8,
1373 dtb_children_align(instance->group23,
1378 dtb_children_align(instance->group25,
1384 XtVaSetValues(instance->visit_mailb_lbl, XmNtopOffset, 6, NULL);
1386 dtb_children_align(instance->group26,
1392 XtManageChild(instance->category_opmenu_label);
1393 XtManageChild(instance->category_opmenu);
1394 XtManageChild(instance->category_opmenu_rowcolumn);
1395 XtManageChild(instance->separator10);
1396 XtManageChild(instance->ctrl_panel);
1397 XtManageChild(instance->separator2);
1398 XtManageChild(instance->checkbox);
1399 XtManageChild(instance->separator4);
1400 XtManageChild(instance->destroy_del_msg_lbl);
1401 XtManageChild(instance->deleted_msg_cb);
1402 XtManageChild(instance->group28);
1403 XtManageChild(instance->mail_check_sb_label);
1404 XtManageChild(instance->mail_check_sb);
1405 XtManageChild(instance->mail_check_sb_rowcolumn);
1406 XtManageChild(instance->seconds_lbl);
1407 XtManageChild(instance->group);
1408 XtManageChild(instance->signal_sb_label);
1409 XtManageChild(instance->signal_sb);
1410 XtManageChild(instance->signal_sb_rowcolumn);
1411 XtManageChild(instance->beeps_lbl);
1412 XtManageChild(instance->group18);
1413 XtManageChild(instance->spinbox2_label);
1414 XtManageChild(instance->spinbox2);
1415 XtManageChild(instance->spinbox2_rowcolumn);
1416 XtManageChild(instance->flashes_lbl);
1417 XtManageChild(instance->group19);
1418 XtManageChild(instance->display_sb_label);
1419 XtManageChild(instance->display_sb);
1420 XtManageChild(instance->display_sb_rowcolumn);
1421 XtManageChild(instance->headers_lbl);
1422 XtManageChild(instance->group20);
1423 XtManageChild(instance->group21);
1424 XtManageChild(instance->msg_header_pane);
1425 XtManageChild(instance->separator6);
1426 XtManageChild(instance->abr_header_lbl);
1427 XtManageChild(instance->display_row_sb_label);
1428 XtManageChild(instance->display_row_sb);
1429 XtManageChild(instance->display_row_sb_rowcolumn);
1430 XtManageChild(instance->rows_lbl);
1431 XtManageChild(instance->group2);
1432 XtManageChild(instance->characters_wide_sb_label);
1433 XtManageChild(instance->characters_wide_sb);
1434 XtManageChild(instance->characters_wide_sb_rowcolumn);
1435 XtManageChild(instance->char_wide_lbl);
1436 XtManageChild(instance->group22);
1437 XtManageChild(instance->fixed_font_cb);
1438 XtManageChild(instance->group8);
1439 XtManageChild(instance->h_field_add);
1440 XtManageChild(instance->h_field_delete);
1441 XtManageChild(instance->h_field_change);
1442 XtManageChild(instance->group3);
1443 XtManageChild(instance->fields_hide);
1444 XtManageChild(instance->hidden_fields_list);
1445 XtManageChild(instance->hidden_fields_list_scrolledwin);
1446 XtManageChild(instance->hidden_fields_lbl);
1447 XtManageChild(instance->header_fields_lbl);
1448 XtManageChild(instance->group17);
1449 XtManageChild(instance->wrap_checkbox);
1450 XtManageChild(instance->confirm_attachment);
1451 XtManageChild(instance->separator3);
1452 XtManageChild(instance->separator7);
1453 XtManageChild(instance->deadletter_field_label);
1454 XtManageChild(instance->deadletter_field);
1455 XtManageChild(instance->deadletter_field_rowcolumn);
1456 XtManageChild(instance->separator9);
1457 XtManageChild(instance->format_menu_lbl);
1458 XtManageChild(instance->indent_str_tf);
1459 XtManageChild(instance->indent_str_lbl);
1460 XtManageChild(instance->reply_include_lbl);
1461 XtManageChild(instance->group23);
1462 XtManageChild(instance->group6);
1463 XtManageChild(instance->add_button);
1464 XtManageChild(instance->del_button);
1465 XtManageChild(instance->change_button);
1466 XtManageChild(instance->group7);
1467 XtManageChild(instance->list);
1468 XtManageChild(instance->list_scrolledwin);
1469 XtManageChild(instance->menu_labels_lbl);
1470 XtManageChild(instance->hdr_field);
1471 XtManageChild(instance->def_value_field);
1472 XtManageChild(instance->hdr_field_lbl);
1473 XtManageChild(instance->def_value_lbl);
1474 XtManageChild(instance->group4);
1475 XtManageChild(instance->separator8);
1476 XtManageChild(instance->separator5);
1477 XtManageChild(instance->dpy_up_mbox_cb);
1478 XtManageChild(instance->recent_sb);
1479 XtManageChild(instance->visit_mailb_lbl);
1480 XtManageChild(instance->group25);
1481 XtManageChild(instance->mailb_for_sent_lbl);
1482 XtManageChild(instance->sent_mail_tf);
1483 XtManageChild(instance->log_cb);
1484 XtManageChild(instance->group26);
1485 XtManageChild(instance->mm_add_butt);
1486 XtManageChild(instance->mm_delete_butt);
1487 XtManageChild(instance->mm_change_butt);
1488 XtManageChild(instance->group24);
1489 XtManageChild(instance->path_file_name_tf);
1490 XtManageChild(instance->mv_menu_lst);
1491 XtManageChild(instance->mv_menu_lst_scrolledwin);
1492 XtManageChild(instance->srt_looking_tf);
1493 XtManageChild(instance->move_menu_lbl);
1494 XtManageChild(instance->move_menu_lbl2);
1495 XtManageChild(instance->path_file_lbl);
1496 XtManageChild(instance->start_look_lbl);
1497 XtManageChild(instance->group9);
1498 XtManageChild(instance->vacation_lbl);
1499 XtManageChild(instance->vacation_rb);
1500 XtManageChild(instance->vacation_msg_tp);
1501 XtManageChild(instance->vacation_msg_tp_scrolledwin);
1502 XtManageChild(instance->subject_tf);
1503 XtManageChild(instance->msg_list_lbl);
1504 XtManageChild(instance->subject_lbl);
1505 XtManageChild(instance->vacation_rb_lbl);
1506 XtManageChild(instance->group10);
1507 XtManageChild(instance->tem_add_but);
1508 XtManageChild(instance->tem_del_but);
1509 XtManageChild(instance->tem_change_but);
1510 XtManageChild(instance->group11);
1511 XtManageChild(instance->menu_label);
1512 XtManageChild(instance->path_filename_label);
1513 XtManageChild(instance->templates_list);
1514 XtManageChild(instance->templates_list_scrolledwin);
1515 XtManageChild(instance->templates_list_lbl);
1516 XtManageChild(instance->menu_label_lbl);
1517 XtManageChild(instance->path_filename_label_lbl);
1518 XtManageChild(instance->group13);
1519 XtManageChild(instance->alias_add_but);
1520 XtManageChild(instance->alias_delete_but);
1521 XtManageChild(instance->al_change_but);
1522 XtManageChild(instance->group15);
1523 XtManageChild(instance->alias_tf);
1524 XtManageChild(instance->addresses_tf);
1525 XtManageChild(instance->alias_list);
1526 XtManageChild(instance->alias_list_scrolledwin);
1527 XtManageChild(instance->alias_list_lbl);
1528 XtManageChild(instance->alias_tf_lbl);
1529 XtManageChild(instance->address_tf_lbl);
1530 XtManageChild(instance->group14);
1531 XtManageChild(instance->update_mbox_scale);
1532 XtManageChild(instance->update_mailb_lbl);
1533 XtManageChild(instance->frequently_lbl);
1534 XtManageChild(instance->seldom_lbl);
1535 XtManageChild(instance->separator11);
1536 XtManageChild(instance->adv_def_cb_label);
1537 XtManageChild(instance->adv_def_cb);
1538 XtManageChild(instance->adv_def_cb_rowcolumn);
1539 XtManageChild(instance->local_name_add_but);
1540 XtManageChild(instance->local_name_del_but);
1541 XtManageChild(instance->local_name_chg_but);
1542 XtManageChild(instance->group16);
1543 XtManageChild(instance->local_name_tf);
1544 XtManageChild(instance->local_name_list);
1545 XtManageChild(instance->local_name_list_scrolledwin);
1546 XtManageChild(instance->group12);
1547 XtManageChild(instance->layer);
1548 XtManageChild(instance->dialog_form);
1549 XtManageChild(instance->ok_button);
1550 XtManageChild(instance->reset_button);
1551 XtManageChild(instance->cancel_button);
1552 XtManageChild(instance->separator);
1553 XtManageChild(instance->apply_button);
1554 XtManageChild(instance->help_button);
1555 XtManageChild(instance->dialog_button_panel);
1556 XtManageChild(instance->dialog_panedwin);
1559 * Add User and Connection callbacks
1561 XtAddCallback(instance->category_opmenu_items.Message_Header_List_item,
1562 XmNactivateCallback, message_header_listCB,
1563 (XtPointer)&(*instance));
1564 XtAddCallback(instance->category_opmenu_items.Message_View_item,
1565 XmNactivateCallback, message_viewCB,
1566 (XtPointer)&(*instance));
1567 XtAddCallback(instance->category_opmenu_items.Compose_Window_item,
1568 XmNactivateCallback, compose_windowCB,
1569 (XtPointer)&(*instance));
1570 XtAddCallback(instance->category_opmenu_items.Message_Filing_item,
1571 XmNactivateCallback, message_filingCB,
1572 (XtPointer)&(*instance));
1573 XtAddCallback(instance->category_opmenu_items.Vacation_item,
1574 XmNactivateCallback, vacationCB,
1575 (XtPointer)&(*instance));
1576 XtAddCallback(instance->category_opmenu_items.Templates_item,
1577 XmNactivateCallback, templatesCB,
1578 (XtPointer)&(*instance));
1579 XtAddCallback(instance->category_opmenu_items.Aliases_item,
1580 XmNactivateCallback, aliasesCB,
1581 (XtPointer)&(*instance));
1582 XtAddCallback(instance->category_opmenu_items.Advanced_item,
1583 XmNactivateCallback, advancedCB,
1584 (XtPointer)&(*instance));
1585 XtAddCallback(instance->category_opmenu_items.Printing_item,
1586 XmNactivateCallback, printingCB,
1587 (XtPointer)&(*instance));
1588 XtAddCallback(instance->category_opmenu_items.MailRetrieval_item,
1589 XmNactivateCallback, mailretrievalCB,
1590 (XtPointer)&(*instance));
1591 XtAddCallback(instance->vacation_rb_items.On_item,
1592 XmNvalueChangedCallback, vacationOnCB,
1593 (XtPointer)&(*instance));
1594 XtAddCallback(instance->vacation_rb_items.Off_item,
1595 XmNvalueChangedCallback, vacationOffCB,
1596 (XtPointer)&(*instance));
1597 XtAddCallback(instance->alias_add_but,
1598 XmNactivateCallback, alias_addCB,
1599 (XtPointer)&(*instance));
1600 XtAddCallback(instance->alias_delete_but,
1601 XmNactivateCallback, alias_delCB,
1602 (XtPointer)&(*instance));
1603 XtAddCallback(instance->al_change_but,
1604 XmNactivateCallback, alias_changeCB,
1605 (XtPointer)&(*instance));
1606 XtAddCallback(instance->ok_button,
1607 XmNactivateCallback, opt_pane_okCB,
1608 (XtPointer)&(*instance));
1609 XtAddCallback(instance->reset_button,
1610 XmNactivateCallback, opt_dlog_resetCB,
1611 (XtPointer)&(*instance));
1612 XtAddCallback(instance->cancel_button,
1613 XmNactivateCallback, opt_dlog_cancelCB,
1614 (XtPointer)&(*instance));
1615 XtAddCallback(instance->apply_button,
1616 XmNactivateCallback, options_applyCB,
1617 (XtPointer)&(*instance));
1618 XtAddCallback(instance->help_button,
1619 XmNactivateCallback, opt_dlog_HelpCB,
1620 (XtPointer)&(*instance));
1627 dtb_options_dialog_create(
1628 DtbOptionsDialogInfo instance,
1632 XmString label_xmstring = NULL;
1633 Display *display= (parent == NULL? NULL:XtDisplay(parent));
1634 Arg args[8]; /* need 3 args (add 5 to be safe) */
1637 if (instance->dialog == NULL) {
1639 XtSetArg(args[n], XmNallowShellResize, True); ++n;
1640 XtSetArg(args[n], XmNtitle, GETMSG(Dtb_project_catd, 2, 1, "Mailer - Mail Options")); ++n;
1641 XtSetArg(args[n], XmNbackground, dtb_cvt_string_to_pixel(parent, "white")); ++n;
1643 XmCreateDialogShell(parent,
1644 "dtb_options_dialog", args, n);
1646 if (instance->dialog == NULL)
1649 if (instance->dialog_shellform == NULL) {
1650 instance->dialog_shellform =
1651 XtVaCreateWidget("dtb_options_dialog_shellform",
1655 XmNdefaultPosition, False,
1658 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog, "white"),
1661 if (instance->dialog_shellform == NULL)
1664 if (instance->dialog_panedwin == NULL) {
1665 instance->dialog_panedwin =
1666 XtVaCreateWidget("dtb_options_dialog_panedwin",
1667 xmPanedWindowWidgetClass,
1668 instance->dialog_shellform,
1670 XmNbottomPosition, 100,
1671 XmNbottomAttachment, XmATTACH_POSITION,
1673 XmNrightPosition, 100,
1674 XmNrightAttachment, XmATTACH_POSITION,
1677 XmNleftAttachment, XmATTACH_POSITION,
1680 XmNtopAttachment, XmATTACH_POSITION,
1686 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_shellform, "white"),
1689 if (instance->dialog_panedwin == NULL)
1692 if (instance->dialog_form == NULL) {
1693 instance->dialog_form =
1694 XtVaCreateWidget("dtb_options_dialog_form",
1696 instance->dialog_panedwin,
1697 XmNallowResize, True,
1700 XmNresizePolicy, XmRESIZE_ANY,
1701 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_panedwin, "white"),
1704 if (instance->dialog_form == NULL)
1713 dtb_options_dialog_button_panel_create(
1714 DtbOptionsDialogInfo instance,
1719 if (instance->dialog_button_panel == NULL) {
1720 instance->dialog_button_panel =
1721 XtVaCreateWidget("dtb_options_dialog_button_panel",
1724 XmNresizePolicy, XmRESIZE_GROW,
1727 XmNpositionIndex, 1,
1730 if (instance->dialog_button_panel == NULL)
1739 dtb_options_ctrl_panel_create(
1740 DtbOptionsDialogInfo instance,
1745 if (instance->ctrl_panel == NULL) {
1746 instance->ctrl_panel =
1747 XtVaCreateWidget("dtb_options_ctrl_panel",
1750 XmNbottomAttachment, XmATTACH_NONE,
1752 XmNrightAttachment, XmATTACH_FORM,
1754 XmNleftAttachment, XmATTACH_FORM,
1756 XmNtopAttachment, XmATTACH_FORM,
1757 XmNresizePolicy, XmRESIZE_ANY,
1762 if (instance->ctrl_panel == NULL)
1771 dtb_options_layer_create(
1772 DtbOptionsDialogInfo instance,
1777 if (instance->layer == NULL) {
1779 XtVaCreateWidget("dtb_options_layer",
1783 XmNbottomAttachment, XmATTACH_FORM,
1785 XmNrightAttachment, XmATTACH_FORM,
1787 XmNleftAttachment, XmATTACH_FORM,
1789 XmNtopAttachment, XmATTACH_WIDGET,
1790 XmNresizePolicy, XmRESIZE_ANY,
1793 if (instance->layer == NULL)
1802 dtb_options_category_opmenu_create(
1803 DtbOptionsDialogInfo instance,
1807 XmString label_xmstring = NULL;
1808 Arg args[22]; /* need 17 args (add 5 to be safe) */
1810 Widget category_opmenu_menu_items[8];
1812 if (instance->category_opmenu_rowcolumn == NULL) {
1813 instance->category_opmenu_rowcolumn =
1814 XtVaCreateWidget("dtb_options_category_opmenu",
1815 xmRowColumnWidgetClass,
1817 XmNbottomAttachment, XmATTACH_NONE,
1818 XmNrightAttachment, XmATTACH_NONE,
1820 XmNleftPosition, 50,
1821 XmNleftAttachment, XmATTACH_POSITION,
1823 XmNtopAttachment, XmATTACH_FORM,
1825 XmNpacking, XmPACK_TIGHT,
1826 XmNisHomogeneous, False,
1827 XmNadjustLast, True,
1830 XmNentryAlignment, XmALIGNMENT_END,
1831 XmNorientation, XmHORIZONTAL,
1834 if (instance->category_opmenu_rowcolumn == NULL)
1837 if (instance->category_opmenu_menu == NULL) {
1839 XtSetArg(args[n], XmNrowColumnType, XmMENU_PULLDOWN); ++n;
1840 instance->category_opmenu_menu =
1841 XmCreatePulldownMenu(instance->category_opmenu_rowcolumn,
1842 "dtb_options_category_opmenu_menu", args, n);
1844 if (instance->category_opmenu_menu == NULL)
1847 if (instance->category_opmenu_label == NULL) {
1848 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 2, "Category:"));
1849 instance->category_opmenu_label =
1850 XtVaCreateWidget("dtb_options_category_opmenu_label",
1852 instance->category_opmenu_rowcolumn,
1853 XmNlabelType, XmSTRING,
1854 XmNlabelString, label_xmstring,
1856 XmStringFree(label_xmstring);
1857 label_xmstring = NULL;
1859 if (instance->category_opmenu_label == NULL)
1862 if (instance->category_opmenu == NULL) {
1864 XtSetArg(args[n], XmNrowColumnType, XmMENU_OPTION); ++n;
1865 XtSetArg(args[n], XmNspacing, 0); ++n;
1866 XtSetArg(args[n], XmNsubMenuId, instance->category_opmenu_menu); ++n;
1867 instance->category_opmenu =
1868 XmCreateOptionMenu(instance->category_opmenu_rowcolumn,
1869 "dtb_options_category_opmenu_choice", args, n);
1871 if (instance->category_opmenu == NULL)
1874 if (instance->category_opmenu_items.Message_Header_List_item == NULL) {
1875 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 3, "Message Header List"));
1876 instance->category_opmenu_items.Message_Header_List_item =
1877 XtVaCreateManagedWidget("dtb_options_category_opmenu_message_header_list_item",
1878 xmPushButtonWidgetClass,
1879 instance->category_opmenu_menu,
1880 XmNlabelString, label_xmstring,
1882 XmStringFree(label_xmstring);
1883 label_xmstring = NULL;
1885 if (instance->category_opmenu_items.Message_Header_List_item == NULL)
1888 if (instance->category_opmenu_items.Message_View_item == NULL) {
1889 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 4, "Message View"));
1890 instance->category_opmenu_items.Message_View_item =
1891 XtVaCreateManagedWidget("dtb_options_category_opmenu_message_view_item",
1892 xmPushButtonWidgetClass,
1893 instance->category_opmenu_menu,
1894 XmNlabelString, label_xmstring,
1896 XmStringFree(label_xmstring);
1897 label_xmstring = NULL;
1899 if (instance->category_opmenu_items.Message_View_item == NULL)
1902 if (instance->category_opmenu_items.Compose_Window_item == NULL) {
1903 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 5, "Compose Window"));
1904 instance->category_opmenu_items.Compose_Window_item =
1905 XtVaCreateManagedWidget("dtb_options_category_opmenu_compose_window_item",
1906 xmPushButtonWidgetClass,
1907 instance->category_opmenu_menu,
1908 XmNlabelString, label_xmstring,
1910 XmStringFree(label_xmstring);
1911 label_xmstring = NULL;
1913 if (instance->category_opmenu_items.Compose_Window_item == NULL)
1916 if (instance->category_opmenu_items.Message_Filing_item == NULL) {
1917 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 6, "Message Filing"));
1918 instance->category_opmenu_items.Message_Filing_item =
1919 XtVaCreateManagedWidget("dtb_options_category_opmenu_message_filing_item",
1920 xmPushButtonWidgetClass,
1921 instance->category_opmenu_menu,
1922 XmNlabelString, label_xmstring,
1924 XmStringFree(label_xmstring);
1925 label_xmstring = NULL;
1927 if (instance->category_opmenu_items.Message_Filing_item == NULL)
1930 if (instance->category_opmenu_items.Vacation_item == NULL) {
1931 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 7, "Vacation"));
1932 instance->category_opmenu_items.Vacation_item =
1933 XtVaCreateManagedWidget("dtb_options_category_opmenu_vacation_item",
1934 xmPushButtonWidgetClass,
1935 instance->category_opmenu_menu,
1936 XmNlabelString, label_xmstring,
1938 XmStringFree(label_xmstring);
1939 label_xmstring = NULL;
1941 if (instance->category_opmenu_items.Vacation_item == NULL)
1944 if (instance->category_opmenu_items.Templates_item == NULL) {
1945 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 8, "Templates"));
1946 instance->category_opmenu_items.Templates_item =
1947 XtVaCreateManagedWidget("dtb_options_category_opmenu_templates_item",
1948 xmPushButtonWidgetClass,
1949 instance->category_opmenu_menu,
1950 XmNlabelString, label_xmstring,
1952 XmStringFree(label_xmstring);
1953 label_xmstring = NULL;
1955 if (instance->category_opmenu_items.Templates_item == NULL)
1958 if (instance->category_opmenu_items.Aliases_item == NULL) {
1959 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 9, "Aliases"));
1960 instance->category_opmenu_items.Aliases_item =
1961 XtVaCreateManagedWidget("dtb_options_category_opmenu_aliases_item",
1962 xmPushButtonWidgetClass,
1963 instance->category_opmenu_menu,
1964 XmNlabelString, label_xmstring,
1966 XmStringFree(label_xmstring);
1967 label_xmstring = NULL;
1969 if (instance->category_opmenu_items.Aliases_item == NULL)
1972 if (instance->category_opmenu_items.Advanced_item == NULL) {
1973 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 10, "Advanced"));
1974 instance->category_opmenu_items.Advanced_item =
1975 XtVaCreateManagedWidget("dtb_options_category_opmenu_advanced_item",
1976 xmPushButtonWidgetClass,
1977 instance->category_opmenu_menu,
1978 XmNlabelString, label_xmstring,
1980 XmStringFree(label_xmstring);
1981 label_xmstring = NULL;
1983 if (instance->category_opmenu_items.Advanced_item == NULL)
1986 if (instance->category_opmenu_items.Printing_item == NULL) {
1988 XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 92, "Printing"));
1989 instance->category_opmenu_items.Printing_item =
1990 XtVaCreateManagedWidget("dtb_options_category_opmenu_printing_item",
1991 xmPushButtonWidgetClass,
1992 instance->category_opmenu_menu,
1993 XmNlabelString, label_xmstring,
1995 XmStringFree(label_xmstring);
1996 label_xmstring = NULL;
1998 if (instance->category_opmenu_items.Printing_item == NULL)
2001 if (instance->category_opmenu_items.MailRetrieval_item == NULL) {
2003 XmStringCreateLocalized(
2004 GETMSG(Dtb_project_catd, 2, 93, "Mail Retrieval"));
2005 instance->category_opmenu_items.MailRetrieval_item =
2006 XtVaCreateManagedWidget(
2007 "dtb_options_category_opmenu_mailretrieval_item",
2008 xmPushButtonWidgetClass,
2009 instance->category_opmenu_menu,
2010 XmNlabelString, label_xmstring,
2012 XmStringFree(label_xmstring);
2013 label_xmstring = NULL;
2015 if (instance->category_opmenu_items.MailRetrieval_item == NULL)
2018 dtb_center(instance->category_opmenu_rowcolumn, DTB_CENTER_POSITION_VERT);
2025 dtb_options_separator10_create(
2026 DtbOptionsDialogInfo instance,
2031 if (instance->separator10 == NULL) {
2032 instance->separator10 =
2033 XtVaCreateWidget("dtb_options_separator10",
2034 xmSeparatorWidgetClass,
2036 XmNbottomAttachment, XmATTACH_NONE,
2038 XmNrightAttachment, XmATTACH_FORM,
2040 XmNleftAttachment, XmATTACH_FORM,
2042 XmNtopAttachment, XmATTACH_WIDGET,
2043 XmNseparatorType, XmSHADOW_ETCHED_IN,
2044 XmNorientation, XmHORIZONTAL,
2047 if (instance->separator10 == NULL)
2056 dtb_options_msg_header_pane_create(
2057 DtbOptionsDialogInfo instance,
2062 if (instance->msg_header_pane == NULL) {
2063 instance->msg_header_pane =
2064 XtVaCreateWidget("dtb_options_msg_header_pane",
2068 XmNbottomPosition, 100,
2069 XmNbottomAttachment, XmATTACH_POSITION,
2071 XmNrightPosition, 100,
2072 XmNrightAttachment, XmATTACH_POSITION,
2075 XmNleftAttachment, XmATTACH_POSITION,
2078 XmNtopAttachment, XmATTACH_POSITION,
2079 XmNresizePolicy, XmRESIZE_ANY,
2084 if (instance->msg_header_pane == NULL)
2093 dtb_options_msg_view_pane_create(
2094 DtbOptionsDialogInfo instance,
2099 if (instance->msg_view_pane == NULL) {
2100 instance->msg_view_pane =
2101 XtVaCreateWidget("dtb_options_msg_view_pane",
2105 XmNbottomPosition, 100,
2106 XmNbottomAttachment, XmATTACH_POSITION,
2108 XmNrightPosition, 100,
2109 XmNrightAttachment, XmATTACH_POSITION,
2112 XmNleftAttachment, XmATTACH_POSITION,
2115 XmNtopAttachment, XmATTACH_POSITION,
2116 XmNresizePolicy, XmRESIZE_ANY,
2121 if (instance->msg_view_pane == NULL)
2130 dtb_options_compose_win_pane_create(
2131 DtbOptionsDialogInfo instance,
2136 if (instance->compose_win_pane == NULL) {
2137 instance->compose_win_pane =
2138 XtVaCreateWidget("dtb_options_compose_win_pane",
2142 XmNbottomPosition, 100,
2143 XmNbottomAttachment, XmATTACH_POSITION,
2145 XmNrightPosition, 100,
2146 XmNrightAttachment, XmATTACH_POSITION,
2149 XmNleftAttachment, XmATTACH_POSITION,
2152 XmNtopAttachment, XmATTACH_POSITION,
2153 XmNresizePolicy, XmRESIZE_ANY,
2158 if (instance->compose_win_pane == NULL)
2167 dtb_options_msg_filing_pane_create(
2168 DtbOptionsDialogInfo instance,
2173 if (instance->msg_filing_pane == NULL) {
2174 instance->msg_filing_pane =
2175 XtVaCreateWidget("dtb_options_msg_filing_pane",
2179 XmNbottomPosition, 100,
2180 XmNbottomAttachment, XmATTACH_POSITION,
2182 XmNrightPosition, 100,
2183 XmNrightAttachment, XmATTACH_POSITION,
2186 XmNleftAttachment, XmATTACH_POSITION,
2189 XmNtopAttachment, XmATTACH_POSITION,
2190 XmNresizePolicy, XmRESIZE_ANY,
2195 if (instance->msg_filing_pane == NULL)
2204 dtb_options_vacation_pane_create(
2205 DtbOptionsDialogInfo instance,
2210 if (instance->vacation_pane == NULL) {
2211 instance->vacation_pane =
2212 XtVaCreateWidget("dtb_options_vacation_pane",
2216 XmNbottomPosition, 100,
2217 XmNbottomAttachment, XmATTACH_POSITION,
2219 XmNrightPosition, 100,
2220 XmNrightAttachment, XmATTACH_POSITION,
2223 XmNleftAttachment, XmATTACH_POSITION,
2226 XmNtopAttachment, XmATTACH_POSITION,
2227 XmNresizePolicy, XmRESIZE_ANY,
2232 if (instance->vacation_pane == NULL)
2241 dtb_options_templates_pane_create(
2242 DtbOptionsDialogInfo instance,
2247 if (instance->templates_pane == NULL) {
2248 instance->templates_pane =
2249 XtVaCreateWidget("dtb_options_templates_pane",
2253 XmNbottomPosition, 100,
2254 XmNbottomAttachment, XmATTACH_POSITION,
2256 XmNrightPosition, 100,
2257 XmNrightAttachment, XmATTACH_POSITION,
2260 XmNleftAttachment, XmATTACH_POSITION,
2263 XmNtopAttachment, XmATTACH_POSITION,
2264 XmNresizePolicy, XmRESIZE_ANY,
2269 if (instance->templates_pane == NULL)
2278 dtb_options_aliases_pane_create(
2279 DtbOptionsDialogInfo instance,
2284 if (instance->aliases_pane == NULL) {
2285 instance->aliases_pane =
2286 XtVaCreateWidget("dtb_options_aliases_pane",
2290 XmNbottomPosition, 100,
2291 XmNbottomAttachment, XmATTACH_POSITION,
2293 XmNrightPosition, 100,
2294 XmNrightAttachment, XmATTACH_POSITION,
2297 XmNleftAttachment, XmATTACH_POSITION,
2300 XmNtopAttachment, XmATTACH_POSITION,
2301 XmNresizePolicy, XmRESIZE_ANY,
2306 if (instance->aliases_pane == NULL)
2315 dtb_options_advanced_pane_create(
2316 DtbOptionsDialogInfo instance,
2321 if (instance->advanced_pane == NULL) {
2322 instance->advanced_pane =
2323 XtVaCreateWidget("dtb_options_advanced_pane",
2327 XmNbottomPosition, 100,
2328 XmNbottomAttachment, XmATTACH_POSITION,
2330 XmNrightPosition, 100,
2331 XmNrightAttachment, XmATTACH_POSITION,
2334 XmNleftAttachment, XmATTACH_POSITION,
2337 XmNtopAttachment, XmATTACH_POSITION,
2338 XmNresizePolicy, XmRESIZE_ANY,
2343 if (instance->advanced_pane == NULL)
2352 dtb_options_separator2_create(
2353 DtbOptionsDialogInfo instance,
2358 if (instance->separator2 == NULL) {
2359 instance->separator2 =
2360 XtVaCreateWidget("dtb_options_separator2",
2361 xmSeparatorWidgetClass,
2363 XmNbottomAttachment, XmATTACH_NONE,
2365 XmNrightAttachment, XmATTACH_FORM,
2367 XmNleftAttachment, XmATTACH_FORM,
2369 XmNtopAttachment, XmATTACH_WIDGET,
2370 XmNseparatorType, XmSHADOW_ETCHED_IN,
2371 XmNorientation, XmHORIZONTAL,
2374 if (instance->separator2 == NULL)
2383 dtb_options_checkbox_create(
2384 DtbOptionsDialogInfo instance,
2388 XmString label_xmstring = NULL;
2389 Arg args[23]; /* need 18 args (add 5 to be safe) */
2391 Widget checkbox_items[2];
2393 if (instance->checkbox == NULL) {
2395 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
2396 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
2397 XtSetArg(args[n], XmNleftOffset, 76); ++n;
2398 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
2399 XtSetArg(args[n], XmNtopOffset, 4); ++n;
2400 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
2401 XtSetArg(args[n], XmNradioBehavior, False); ++n;
2402 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
2403 XtSetArg(args[n], XmNnumColumns, 1); ++n;
2404 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
2405 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
2406 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
2407 XtSetArg(args[n], XmNspacing, 0); ++n;
2408 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
2409 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
2410 instance->checkbox =
2411 XmCreateRadioBox(parent,
2412 "dtb_options_checkbox", args, n);
2414 if (instance->checkbox == NULL)
2417 if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL) {
2418 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 11, "Show To: recipient when mail is from me"));
2419 instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item =
2420 XtVaCreateManagedWidget("dtb_options_checkbox_show_to_recipient_when_mail_is_from_me_item",
2421 xmToggleButtonWidgetClass,
2424 XmNlabelString, label_xmstring,
2426 XmStringFree(label_xmstring);
2427 label_xmstring = NULL;
2429 if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL)
2432 if (instance->checkbox_items.Display_message_numbers_item == NULL) {
2433 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 12, "Display message numbers"));
2434 instance->checkbox_items.Display_message_numbers_item =
2435 XtVaCreateManagedWidget("dtb_options_checkbox_display_message_numbers_item",
2436 xmToggleButtonWidgetClass,
2439 XmNlabelString, label_xmstring,
2441 XmStringFree(label_xmstring);
2442 label_xmstring = NULL;
2444 if (instance->checkbox_items.Display_message_numbers_item == NULL)
2453 dtb_options_separator4_create(
2454 DtbOptionsDialogInfo instance,
2459 if (instance->separator4 == NULL) {
2460 instance->separator4 =
2461 XtVaCreateWidget("dtb_options_separator4",
2462 xmSeparatorWidgetClass,
2464 XmNbottomAttachment, XmATTACH_NONE,
2466 XmNrightAttachment, XmATTACH_FORM,
2468 XmNleftAttachment, XmATTACH_FORM,
2470 XmNtopAttachment, XmATTACH_WIDGET,
2471 XmNseparatorType, XmSHADOW_ETCHED_IN,
2472 XmNorientation, XmHORIZONTAL,
2475 if (instance->separator4 == NULL)
2484 dtb_options_group28_create(
2485 DtbOptionsDialogInfo instance,
2490 if (instance->group28 == NULL) {
2492 XtVaCreateWidget("dtb_options_group28",
2495 XmNbottomOffset, 10,
2496 XmNbottomAttachment, XmATTACH_FORM,
2497 XmNrightAttachment, XmATTACH_NONE,
2499 XmNleftAttachment, XmATTACH_FORM,
2501 XmNtopAttachment, XmATTACH_WIDGET,
2502 XmNresizePolicy, XmRESIZE_ANY,
2507 if (instance->group28 == NULL)
2516 dtb_options_group21_create(
2517 DtbOptionsDialogInfo instance,
2522 if (instance->group21 == NULL) {
2524 XtVaCreateWidget("dtb_options_group21",
2527 XmNbottomAttachment, XmATTACH_NONE,
2528 XmNrightAttachment, XmATTACH_NONE,
2530 XmNleftAttachment, XmATTACH_FORM,
2532 XmNtopAttachment, XmATTACH_FORM,
2533 XmNresizePolicy, XmRESIZE_ANY,
2538 if (instance->group21 == NULL)
2547 dtb_options_destroy_del_msg_lbl_create(
2548 DtbOptionsDialogInfo instance,
2552 XmString label_xmstring = NULL;
2554 if (instance->destroy_del_msg_lbl == NULL) {
2555 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 20, "Destroy Deleted Messages:"));
2556 instance->destroy_del_msg_lbl =
2557 XtVaCreateWidget("dtb_options_destroy_del_msg_lbl",
2560 XmNbottomAttachment, XmATTACH_NONE,
2561 XmNrightAttachment, XmATTACH_NONE,
2563 XmNleftAttachment, XmATTACH_FORM,
2565 XmNtopAttachment, XmATTACH_FORM,
2566 XmNrecomputeSize, True,
2567 XmNalignment, XmALIGNMENT_CENTER,
2568 XmNlabelType, XmSTRING,
2569 XmNlabelString, label_xmstring,
2571 XmStringFree(label_xmstring);
2572 label_xmstring = NULL;
2574 if (instance->destroy_del_msg_lbl == NULL)
2583 dtb_options_deleted_msg_cb_create(
2584 DtbOptionsDialogInfo instance,
2588 XmString label_xmstring = NULL;
2589 Arg args[23]; /* need 18 args (add 5 to be safe) */
2591 Widget deleted_msg_cb_items[2];
2593 if (instance->deleted_msg_cb == NULL) {
2595 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
2596 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
2597 XtSetArg(args[n], XmNleftOffset, 0); ++n;
2598 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
2599 XtSetArg(args[n], XmNtopOffset, 2); ++n;
2600 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
2601 XtSetArg(args[n], XmNradioBehavior, False); ++n;
2602 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
2603 XtSetArg(args[n], XmNnumColumns, 1); ++n;
2604 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
2605 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
2606 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
2607 XtSetArg(args[n], XmNspacing, 0); ++n;
2608 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
2609 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
2610 instance->deleted_msg_cb =
2611 XmCreateRadioBox(parent,
2612 "dtb_options_deleted_msg_cb", args, n);
2614 if (instance->deleted_msg_cb == NULL)
2617 if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL) {
2618 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 21, "When I close the mailbox"));
2619 instance->deleted_msg_cb_items.When_I_close_the_mailbox_item =
2620 XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_when_i_close_the_mailbox_item",
2621 xmToggleButtonWidgetClass,
2622 instance->deleted_msg_cb,
2624 XmNlabelString, label_xmstring,
2626 XmStringFree(label_xmstring);
2627 label_xmstring = NULL;
2629 if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL)
2632 if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL) {
2633 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 22, "Show confirmation notice"));
2634 instance->deleted_msg_cb_items.Show_confirmation_notice_item =
2635 XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_show_confirmation_notice_item",
2636 xmToggleButtonWidgetClass,
2637 instance->deleted_msg_cb,
2639 XmNlabelString, label_xmstring,
2641 XmStringFree(label_xmstring);
2642 label_xmstring = NULL;
2644 if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL)
2653 dtb_options_group_create(
2654 DtbOptionsDialogInfo instance,
2659 if (instance->group == NULL) {
2661 XtVaCreateWidget("dtb_options_group",
2664 XmNresizePolicy, XmRESIZE_ANY,
2669 if (instance->group == NULL)
2678 dtb_options_group18_create(
2679 DtbOptionsDialogInfo instance,
2684 if (instance->group18 == NULL) {
2686 XtVaCreateWidget("dtb_options_group18",
2689 XmNresizePolicy, XmRESIZE_ANY,
2694 if (instance->group18 == NULL)
2703 dtb_options_group19_create(
2704 DtbOptionsDialogInfo instance,
2709 if (instance->group19 == NULL) {
2711 XtVaCreateWidget("dtb_options_group19",
2714 XmNresizePolicy, XmRESIZE_ANY,
2719 if (instance->group19 == NULL)
2728 dtb_options_group20_create(
2729 DtbOptionsDialogInfo instance,
2734 if (instance->group20 == NULL) {
2736 XtVaCreateWidget("dtb_options_group20",
2739 XmNresizePolicy, XmRESIZE_ANY,
2744 if (instance->group20 == NULL)
2753 dtb_options_mail_check_sb_create(
2754 DtbOptionsDialogInfo instance,
2758 XmString label_xmstring = NULL;
2759 Arg args[18]; /* need 13 args (add 5 to be safe) */
2763 if (instance->mail_check_sb_rowcolumn == NULL) {
2764 instance->mail_check_sb_rowcolumn =
2765 XtVaCreateWidget("dtb_options_mail_check_sb",
2766 xmRowColumnWidgetClass,
2768 XmNbottomAttachment, XmATTACH_NONE,
2769 XmNrightAttachment, XmATTACH_NONE,
2771 XmNleftAttachment, XmATTACH_FORM,
2773 XmNtopAttachment, XmATTACH_FORM,
2774 XmNadjustLast, True,
2777 XmNentryAlignment, XmALIGNMENT_END,
2778 XmNorientation, XmHORIZONTAL,
2781 if (instance->mail_check_sb_rowcolumn == NULL)
2784 if (instance->mail_check_sb_label == NULL) {
2785 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 13, "Check for new mail every:"));
2786 instance->mail_check_sb_label =
2787 XtVaCreateWidget("dtb_options_mail_check_sb_label",
2789 instance->mail_check_sb_rowcolumn,
2790 XmNlabelType, XmSTRING,
2791 XmNlabelString, label_xmstring,
2793 XmStringFree(label_xmstring);
2794 label_xmstring = NULL;
2796 if (instance->mail_check_sb_label == NULL)
2799 if (instance->mail_check_sb == NULL) {
2801 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
2802 XtSetArg(args[n], XmNincrementValue, 1); ++n;
2803 XtSetArg(args[n], XmNposition, 500); ++n;
2804 XtSetArg(args[n], XmNmaximumValue, 999999); ++n;
2805 XtSetArg(args[n], XmNminimumValue, 0); ++n;
2806 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
2807 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
2808 XtSetArg(args[n], XmNcolumns, 6); ++n;
2809 instance->mail_check_sb =
2810 XmCreateSimpleSpinBox(instance->mail_check_sb_rowcolumn,
2811 "dtb_options_mail_check_sb_field", args, n);
2813 if (instance->mail_check_sb == NULL)
2822 dtb_options_seconds_lbl_create(
2823 DtbOptionsDialogInfo instance,
2827 XmString label_xmstring = NULL;
2829 if (instance->seconds_lbl == NULL) {
2830 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 14, "Seconds"));
2831 instance->seconds_lbl =
2832 XtVaCreateWidget("dtb_options_seconds_lbl",
2836 XmNbottomAttachment, XmATTACH_FORM,
2837 XmNrightAttachment, XmATTACH_NONE,
2839 XmNleftAttachment, XmATTACH_WIDGET,
2841 XmNtopAttachment, XmATTACH_FORM,
2842 XmNrecomputeSize, True,
2843 XmNalignment, XmALIGNMENT_CENTER,
2844 XmNlabelType, XmSTRING,
2845 XmNlabelString, label_xmstring,
2847 XmStringFree(label_xmstring);
2848 label_xmstring = NULL;
2850 if (instance->seconds_lbl == NULL)
2859 dtb_options_signal_sb_create(
2860 DtbOptionsDialogInfo instance,
2864 XmString label_xmstring = NULL;
2865 Arg args[18]; /* need 13 args (add 5 to be safe) */
2869 if (instance->signal_sb_rowcolumn == NULL) {
2870 instance->signal_sb_rowcolumn =
2871 XtVaCreateWidget("dtb_options_signal_sb",
2872 xmRowColumnWidgetClass,
2874 XmNbottomAttachment, XmATTACH_NONE,
2875 XmNrightAttachment, XmATTACH_NONE,
2877 XmNleftAttachment, XmATTACH_FORM,
2879 XmNtopAttachment, XmATTACH_FORM,
2880 XmNadjustLast, True,
2883 XmNentryAlignment, XmALIGNMENT_END,
2884 XmNorientation, XmHORIZONTAL,
2887 if (instance->signal_sb_rowcolumn == NULL)
2890 if (instance->signal_sb_label == NULL) {
2891 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 15, "Signal new mail with:"));
2892 instance->signal_sb_label =
2893 XtVaCreateWidget("dtb_options_signal_sb_label",
2895 instance->signal_sb_rowcolumn,
2896 XmNlabelType, XmSTRING,
2897 XmNlabelString, label_xmstring,
2899 XmStringFree(label_xmstring);
2900 label_xmstring = NULL;
2902 if (instance->signal_sb_label == NULL)
2905 if (instance->signal_sb == NULL) {
2907 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
2908 XtSetArg(args[n], XmNincrementValue, 1); ++n;
2909 XtSetArg(args[n], XmNposition, 0); ++n;
2910 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
2911 XtSetArg(args[n], XmNminimumValue, 0); ++n;
2912 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
2913 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
2914 XtSetArg(args[n], XmNcolumns, 6); ++n;
2915 instance->signal_sb =
2916 XmCreateSimpleSpinBox(instance->signal_sb_rowcolumn,
2917 "dtb_options_signal_sb_field", args, n);
2919 if (instance->signal_sb == NULL)
2928 dtb_options_beeps_lbl_create(
2929 DtbOptionsDialogInfo instance,
2933 XmString label_xmstring = NULL;
2935 if (instance->beeps_lbl == NULL) {
2936 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 16, "Beep(s)"));
2937 instance->beeps_lbl =
2938 XtVaCreateWidget("dtb_options_beeps_lbl",
2942 XmNbottomAttachment, XmATTACH_FORM,
2943 XmNrightAttachment, XmATTACH_NONE,
2945 XmNleftAttachment, XmATTACH_WIDGET,
2947 XmNtopAttachment, XmATTACH_FORM,
2948 XmNrecomputeSize, True,
2949 XmNalignment, XmALIGNMENT_CENTER,
2950 XmNlabelType, XmSTRING,
2951 XmNlabelString, label_xmstring,
2953 XmStringFree(label_xmstring);
2954 label_xmstring = NULL;
2956 if (instance->beeps_lbl == NULL)
2965 dtb_options_spinbox2_create(
2966 DtbOptionsDialogInfo instance,
2970 XmString label_xmstring = NULL;
2971 Arg args[18]; /* need 13 args (add 5 to be safe) */
2975 if (instance->spinbox2_rowcolumn == NULL) {
2976 instance->spinbox2_rowcolumn =
2977 XtVaCreateWidget("dtb_options_spinbox2",
2978 xmRowColumnWidgetClass,
2980 XmNbottomAttachment, XmATTACH_NONE,
2981 XmNrightAttachment, XmATTACH_NONE,
2983 XmNleftAttachment, XmATTACH_FORM,
2985 XmNtopAttachment, XmATTACH_FORM,
2986 XmNadjustLast, True,
2989 XmNentryAlignment, XmALIGNMENT_END,
2990 XmNorientation, XmHORIZONTAL,
2993 if (instance->spinbox2_rowcolumn == NULL)
2996 if (instance->spinbox2_label == NULL) {
2997 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
2998 instance->spinbox2_label =
2999 XtVaCreateWidget("dtb_options_spinbox2_label",
3001 instance->spinbox2_rowcolumn,
3002 XmNlabelType, XmSTRING,
3003 XmNlabelString, label_xmstring,
3005 XmStringFree(label_xmstring);
3006 label_xmstring = NULL;
3008 if (instance->spinbox2_label == NULL)
3011 if (instance->spinbox2 == NULL) {
3013 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
3014 XtSetArg(args[n], XmNincrementValue, 1); ++n;
3015 XtSetArg(args[n], XmNposition, 0); ++n;
3016 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
3017 XtSetArg(args[n], XmNminimumValue, 0); ++n;
3018 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
3019 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
3020 XtSetArg(args[n], XmNcolumns, 6); ++n;
3021 instance->spinbox2 =
3022 XmCreateSimpleSpinBox(instance->spinbox2_rowcolumn,
3023 "dtb_options_spinbox2_field", args, n);
3025 if (instance->spinbox2 == NULL)
3034 dtb_options_flashes_lbl_create(
3035 DtbOptionsDialogInfo instance,
3039 XmString label_xmstring = NULL;
3041 if (instance->flashes_lbl == NULL) {
3042 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 17, "Flash(es)"));
3043 instance->flashes_lbl =
3044 XtVaCreateWidget("dtb_options_flashes_lbl",
3048 XmNbottomAttachment, XmATTACH_FORM,
3049 XmNrightAttachment, XmATTACH_NONE,
3051 XmNleftAttachment, XmATTACH_WIDGET,
3053 XmNtopAttachment, XmATTACH_FORM,
3054 XmNrecomputeSize, True,
3055 XmNalignment, XmALIGNMENT_CENTER,
3056 XmNlabelType, XmSTRING,
3057 XmNlabelString, label_xmstring,
3059 XmStringFree(label_xmstring);
3060 label_xmstring = NULL;
3062 if (instance->flashes_lbl == NULL)
3071 dtb_options_display_sb_create(
3072 DtbOptionsDialogInfo instance,
3076 XmString label_xmstring = NULL;
3077 Arg args[18]; /* need 13 args (add 5 to be safe) */
3081 if (instance->display_sb_rowcolumn == NULL) {
3082 instance->display_sb_rowcolumn =
3083 XtVaCreateWidget("dtb_options_display_sb",
3084 xmRowColumnWidgetClass,
3086 XmNbottomAttachment, XmATTACH_NONE,
3087 XmNrightAttachment, XmATTACH_NONE,
3089 XmNleftAttachment, XmATTACH_FORM,
3091 XmNtopAttachment, XmATTACH_FORM,
3092 XmNadjustLast, True,
3095 XmNentryAlignment, XmALIGNMENT_END,
3096 XmNorientation, XmHORIZONTAL,
3099 if (instance->display_sb_rowcolumn == NULL)
3102 if (instance->display_sb_label == NULL) {
3103 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3104 instance->display_sb_label =
3105 XtVaCreateWidget("dtb_options_display_sb_label",
3107 instance->display_sb_rowcolumn,
3108 XmNlabelType, XmSTRING,
3109 XmNlabelString, label_xmstring,
3111 XmStringFree(label_xmstring);
3112 label_xmstring = NULL;
3114 if (instance->display_sb_label == NULL)
3117 if (instance->display_sb == NULL) {
3119 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
3120 XtSetArg(args[n], XmNincrementValue, 1); ++n;
3121 XtSetArg(args[n], XmNposition, 15); ++n;
3122 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
3123 XtSetArg(args[n], XmNminimumValue, 0); ++n;
3124 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
3125 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
3126 XtSetArg(args[n], XmNcolumns, 6); ++n;
3127 instance->display_sb =
3128 XmCreateSimpleSpinBox(instance->display_sb_rowcolumn,
3129 "dtb_options_display_sb_field", args, n);
3131 if (instance->display_sb == NULL)
3140 dtb_options_headers_lbl_create(
3141 DtbOptionsDialogInfo instance,
3145 XmString label_xmstring = NULL;
3147 if (instance->headers_lbl == NULL) {
3148 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 19, "Headers"));
3149 instance->headers_lbl =
3150 XtVaCreateWidget("dtb_options_headers_lbl",
3154 XmNbottomAttachment, XmATTACH_FORM,
3155 XmNrightAttachment, XmATTACH_NONE,
3157 XmNleftAttachment, XmATTACH_WIDGET,
3159 XmNtopAttachment, XmATTACH_FORM,
3160 XmNrecomputeSize, True,
3161 XmNalignment, XmALIGNMENT_CENTER,
3162 XmNlabelType, XmSTRING,
3163 XmNlabelString, label_xmstring,
3165 XmStringFree(label_xmstring);
3166 label_xmstring = NULL;
3168 if (instance->headers_lbl == NULL)
3177 dtb_options_separator6_create(
3178 DtbOptionsDialogInfo instance,
3183 if (instance->separator6 == NULL) {
3184 instance->separator6 =
3185 XtVaCreateWidget("dtb_options_separator6",
3186 xmSeparatorWidgetClass,
3188 XmNbottomAttachment, XmATTACH_NONE,
3190 XmNrightPosition, 100,
3191 XmNrightAttachment, XmATTACH_POSITION,
3194 XmNleftAttachment, XmATTACH_POSITION,
3196 XmNtopAttachment, XmATTACH_WIDGET,
3197 XmNseparatorType, XmSHADOW_ETCHED_IN,
3198 XmNorientation, XmHORIZONTAL,
3201 if (instance->separator6 == NULL)
3210 dtb_options_abr_header_lbl_create(
3211 DtbOptionsDialogInfo instance,
3215 XmString label_xmstring = NULL;
3217 if (instance->abr_header_lbl == NULL) {
3218 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 23, "Abbreviated header will not include:"));
3219 instance->abr_header_lbl =
3220 XtVaCreateWidget("dtb_options_abr_header_lbl",
3223 XmNbottomAttachment, XmATTACH_NONE,
3224 XmNrightAttachment, XmATTACH_NONE,
3226 XmNleftAttachment, XmATTACH_FORM,
3228 XmNtopAttachment, XmATTACH_WIDGET,
3229 XmNrecomputeSize, True,
3230 XmNalignment, XmALIGNMENT_CENTER,
3231 XmNlabelType, XmSTRING,
3232 XmNlabelString, label_xmstring,
3234 XmStringFree(label_xmstring);
3235 label_xmstring = NULL;
3237 if (instance->abr_header_lbl == NULL)
3246 dtb_options_group8_create(
3247 DtbOptionsDialogInfo instance,
3252 if (instance->group8 == NULL) {
3254 XtVaCreateWidget("dtb_options_group8",
3257 XmNbottomAttachment, XmATTACH_NONE,
3258 XmNrightAttachment, XmATTACH_NONE,
3260 XmNleftAttachment, XmATTACH_FORM,
3262 XmNtopAttachment, XmATTACH_FORM,
3263 XmNresizePolicy, XmRESIZE_ANY,
3268 if (instance->group8 == NULL)
3277 dtb_options_group17_create(
3278 DtbOptionsDialogInfo instance,
3283 if (instance->group17 == NULL) {
3285 XtVaCreateWidget("dtb_options_group17",
3288 XmNbottomOffset, 10,
3289 XmNbottomAttachment, XmATTACH_FORM,
3290 XmNrightAttachment, XmATTACH_NONE,
3292 XmNleftAttachment, XmATTACH_FORM,
3294 XmNtopAttachment, XmATTACH_WIDGET,
3295 XmNresizePolicy, XmRESIZE_ANY,
3300 if (instance->group17 == NULL)
3309 dtb_options_group2_create(
3310 DtbOptionsDialogInfo instance,
3315 if (instance->group2 == NULL) {
3317 XtVaCreateWidget("dtb_options_group2",
3320 XmNresizePolicy, XmRESIZE_ANY,
3325 if (instance->group2 == NULL)
3334 dtb_options_group22_create(
3335 DtbOptionsDialogInfo instance,
3340 if (instance->group22 == NULL) {
3342 XtVaCreateWidget("dtb_options_group22",
3345 XmNresizePolicy, XmRESIZE_ANY,
3350 if (instance->group22 == NULL)
3359 dtb_options_fixed_font_cb_create(
3360 DtbOptionsDialogInfo instance,
3364 Arg args[14]; /* need 9 args (add 5 to be safe) */
3367 if (instance->fixed_font_cb == NULL) {
3369 XtSetArg(args[n], XmNradioBehavior, False); ++n;
3370 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
3371 XtSetArg(args[n], XmNnumColumns, 1); ++n;
3372 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
3373 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
3374 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
3375 XtSetArg(args[n], XmNspacing, 0); ++n;
3376 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
3377 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
3378 instance->fixed_font_cb =
3379 XmCreateRadioBox(parent,
3380 "dtb_options_fixed_font_cb", args, n);
3382 if (instance->fixed_font_cb == NULL)
3391 dtb_options_display_row_sb_create(
3392 DtbOptionsDialogInfo instance,
3396 XmString label_xmstring = NULL;
3397 Arg args[18]; /* need 13 args (add 5 to be safe) */
3401 if (instance->display_row_sb_rowcolumn == NULL) {
3402 instance->display_row_sb_rowcolumn =
3403 XtVaCreateWidget("dtb_options_display_row_sb",
3404 xmRowColumnWidgetClass,
3406 XmNbottomAttachment, XmATTACH_NONE,
3407 XmNrightAttachment, XmATTACH_NONE,
3409 XmNleftAttachment, XmATTACH_FORM,
3411 XmNtopAttachment, XmATTACH_FORM,
3412 XmNadjustLast, True,
3415 XmNentryAlignment, XmALIGNMENT_END,
3416 XmNorientation, XmHORIZONTAL,
3419 if (instance->display_row_sb_rowcolumn == NULL)
3422 if (instance->display_row_sb_label == NULL) {
3423 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3424 instance->display_row_sb_label =
3425 XtVaCreateWidget("dtb_options_display_row_sb_label",
3427 instance->display_row_sb_rowcolumn,
3428 XmNlabelType, XmSTRING,
3429 XmNlabelString, label_xmstring,
3431 XmStringFree(label_xmstring);
3432 label_xmstring = NULL;
3434 if (instance->display_row_sb_label == NULL)
3437 if (instance->display_row_sb == NULL) {
3439 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
3440 XtSetArg(args[n], XmNincrementValue, 1); ++n;
3441 XtSetArg(args[n], XmNposition, 24); ++n;
3442 XtSetArg(args[n], XmNmaximumValue, 360); ++n;
3443 XtSetArg(args[n], XmNminimumValue, 0); ++n;
3444 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
3445 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
3446 XtSetArg(args[n], XmNcolumns, 6); ++n;
3447 instance->display_row_sb =
3448 XmCreateSimpleSpinBox(instance->display_row_sb_rowcolumn,
3449 "dtb_options_display_row_sb_field", args, n);
3451 if (instance->display_row_sb == NULL)
3460 dtb_options_rows_lbl_create(
3461 DtbOptionsDialogInfo instance,
3465 XmString label_xmstring = NULL;
3467 if (instance->rows_lbl == NULL) {
3468 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 33, "Rows"));
3469 instance->rows_lbl =
3470 XtVaCreateWidget("dtb_options_rows_lbl",
3474 XmNbottomAttachment, XmATTACH_FORM,
3475 XmNrightAttachment, XmATTACH_NONE,
3477 XmNleftAttachment, XmATTACH_WIDGET,
3479 XmNtopAttachment, XmATTACH_FORM,
3480 XmNrecomputeSize, True,
3481 XmNalignment, XmALIGNMENT_CENTER,
3482 XmNlabelType, XmSTRING,
3483 XmNlabelString, label_xmstring,
3485 XmStringFree(label_xmstring);
3486 label_xmstring = NULL;
3488 if (instance->rows_lbl == NULL)
3497 dtb_options_characters_wide_sb_create(
3498 DtbOptionsDialogInfo instance,
3502 XmString label_xmstring = NULL;
3503 Arg args[18]; /* need 13 args (add 5 to be safe) */
3507 if (instance->characters_wide_sb_rowcolumn == NULL) {
3508 instance->characters_wide_sb_rowcolumn =
3509 XtVaCreateWidget("dtb_options_characters_wide_sb",
3510 xmRowColumnWidgetClass,
3512 XmNbottomAttachment, XmATTACH_NONE,
3513 XmNrightAttachment, XmATTACH_NONE,
3515 XmNleftAttachment, XmATTACH_FORM,
3517 XmNtopAttachment, XmATTACH_FORM,
3518 XmNadjustLast, True,
3521 XmNentryAlignment, XmALIGNMENT_END,
3522 XmNorientation, XmHORIZONTAL,
3525 if (instance->characters_wide_sb_rowcolumn == NULL)
3528 if (instance->characters_wide_sb_label == NULL) {
3529 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
3530 instance->characters_wide_sb_label =
3531 XtVaCreateWidget("dtb_options_characters_wide_sb_label",
3533 instance->characters_wide_sb_rowcolumn,
3534 XmNlabelType, XmSTRING,
3535 XmNlabelString, label_xmstring,
3537 XmStringFree(label_xmstring);
3538 label_xmstring = NULL;
3540 if (instance->characters_wide_sb_label == NULL)
3543 if (instance->characters_wide_sb == NULL) {
3545 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
3546 XtSetArg(args[n], XmNincrementValue, 1); ++n;
3547 XtSetArg(args[n], XmNposition, 80); ++n;
3548 XtSetArg(args[n], XmNmaximumValue, 132); ++n;
3549 XtSetArg(args[n], XmNminimumValue, 0); ++n;
3550 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
3551 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
3552 XtSetArg(args[n], XmNcolumns, 6); ++n;
3553 instance->characters_wide_sb =
3554 XmCreateSimpleSpinBox(instance->characters_wide_sb_rowcolumn,
3555 "dtb_options_characters_wide_sb_field", args, n);
3557 if (instance->characters_wide_sb == NULL)
3566 dtb_options_char_wide_lbl_create(
3567 DtbOptionsDialogInfo instance,
3571 XmString label_xmstring = NULL;
3573 if (instance->char_wide_lbl == NULL) {
3574 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 34, "Characters Wide"));
3575 instance->char_wide_lbl =
3576 XtVaCreateWidget("dtb_options_char_wide_lbl",
3580 XmNbottomAttachment, XmATTACH_FORM,
3581 XmNrightAttachment, XmATTACH_NONE,
3583 XmNleftAttachment, XmATTACH_WIDGET,
3585 XmNtopAttachment, XmATTACH_FORM,
3586 XmNrecomputeSize, True,
3587 XmNalignment, XmALIGNMENT_CENTER,
3588 XmNlabelType, XmSTRING,
3589 XmNlabelString, label_xmstring,
3591 XmStringFree(label_xmstring);
3592 label_xmstring = NULL;
3594 if (instance->char_wide_lbl == NULL)
3603 dtb_options_group3_create(
3604 DtbOptionsDialogInfo instance,
3609 if (instance->group3 == NULL) {
3611 XtVaCreateWidget("dtb_options_group3",
3614 XmNbottomAttachment, XmATTACH_NONE,
3615 XmNrightAttachment, XmATTACH_NONE,
3617 XmNleftAttachment, XmATTACH_WIDGET,
3619 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3620 XmNresizePolicy, XmRESIZE_ANY,
3625 if (instance->group3 == NULL)
3634 dtb_options_fields_hide_create(
3635 DtbOptionsDialogInfo instance,
3639 Arg args[18]; /* need 13 args (add 5 to be safe) */
3642 if (instance->fields_hide == NULL) {
3644 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
3645 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
3646 XtSetArg(args[n], XmNleftOffset, 4); ++n;
3647 XtSetArg(args[n], XmNleftPosition, 34); ++n;
3648 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
3649 XtSetArg(args[n], XmNtopOffset, 0); ++n;
3650 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
3651 XtSetArg(args[n], XmNmaxLength, 80); ++n;
3652 XtSetArg(args[n], XmNeditable, True); ++n;
3653 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
3654 instance->fields_hide =
3655 XmCreateTextField(parent,
3656 "dtb_options_fields_hide", args, n);
3658 if (instance->fields_hide == NULL)
3667 dtb_options_hidden_fields_list_create(
3668 DtbOptionsDialogInfo instance,
3672 XmString label_xmstring = NULL;
3673 Arg args[21]; /* need 16 args (add 5 to be safe) */
3676 XmString hidden_fields_list_list_xmstrings[3];
3680 * Convert char* strings to XmStrings
3682 hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 25, "x-lines"));
3683 hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 26, "email-version"));
3684 hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 27, "expires"));
3685 if (instance->hidden_fields_list == NULL) {
3687 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
3688 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
3689 XtSetArg(args[n], XmNselectionPolicy, XmSINGLE_SELECT); ++n;
3690 XtSetArg(args[n], XmNvisibleItemCount, 7); ++n;
3691 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
3692 XtSetArg(args[n], XmNrightOffset, 0); ++n;
3693 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
3694 XtSetArg(args[n], XmNleftOffset, 4); ++n;
3695 XtSetArg(args[n], XmNleftPosition, 34); ++n;
3696 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
3697 XtSetArg(args[n], XmNtopOffset, 6); ++n;
3698 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
3699 XtSetArg(args[n], XmNitems, (XtArgVal)hidden_fields_list_list_xmstrings); n++;
3700 XtSetArg(args[n], XmNitemCount, (XtArgVal)3); n++;
3701 instance->hidden_fields_list =
3702 XmCreateScrolledList(parent,
3703 "dtb_options_hidden_fields_list_list", args, n);
3705 instance->hidden_fields_list_scrolledwin = XtParent(instance->hidden_fields_list);
3706 if (instance->hidden_fields_list == NULL)
3715 dtb_options_hidden_fields_lbl_create(
3716 DtbOptionsDialogInfo instance,
3720 XmString label_xmstring = NULL;
3722 if (instance->hidden_fields_lbl == NULL) {
3723 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 28, "Hidden Fields:"));
3724 instance->hidden_fields_lbl =
3725 XtVaCreateWidget("dtb_options_hidden_fields_lbl",
3728 XmNbottomAttachment, XmATTACH_NONE,
3730 XmNrightPosition, 34,
3731 XmNrightAttachment, XmATTACH_POSITION,
3732 XmNleftAttachment, XmATTACH_NONE,
3734 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3735 XmNrecomputeSize, True,
3736 XmNalignment, XmALIGNMENT_END,
3737 XmNlabelType, XmSTRING,
3738 XmNlabelString, label_xmstring,
3740 XmStringFree(label_xmstring);
3741 label_xmstring = NULL;
3743 if (instance->hidden_fields_lbl == NULL)
3752 dtb_options_header_fields_lbl_create(
3753 DtbOptionsDialogInfo instance,
3757 XmString label_xmstring = NULL;
3759 if (instance->header_fields_lbl == NULL) {
3760 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 24, "Header Field:"));
3761 instance->header_fields_lbl =
3762 XtVaCreateWidget("dtb_options_header_fields_lbl",
3765 XmNbottomAttachment, XmATTACH_NONE,
3767 XmNrightPosition, 34,
3768 XmNrightAttachment, XmATTACH_POSITION,
3769 XmNleftAttachment, XmATTACH_NONE,
3771 XmNtopAttachment, XmATTACH_FORM,
3772 XmNrecomputeSize, True,
3773 XmNalignment, XmALIGNMENT_CENTER,
3774 XmNlabelType, XmSTRING,
3775 XmNlabelString, label_xmstring,
3777 XmStringFree(label_xmstring);
3778 label_xmstring = NULL;
3780 if (instance->header_fields_lbl == NULL)
3789 dtb_options_h_field_add_create(
3790 DtbOptionsDialogInfo instance,
3794 XmString label_xmstring = NULL;
3796 if (instance->h_field_add == NULL) {
3797 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
3798 instance->h_field_add =
3799 XtVaCreateWidget("dtb_options_h_field_add",
3800 xmPushButtonWidgetClass,
3802 XmNbottomAttachment, XmATTACH_NONE,
3804 XmNrightAttachment, XmATTACH_FORM,
3806 XmNleftAttachment, XmATTACH_FORM,
3808 XmNtopAttachment, XmATTACH_FORM,
3809 XmNrecomputeSize, True,
3810 XmNalignment, XmALIGNMENT_CENTER,
3811 XmNlabelType, XmSTRING,
3812 XmNlabelString, label_xmstring,
3814 XmStringFree(label_xmstring);
3815 label_xmstring = NULL;
3817 if (instance->h_field_add == NULL)
3826 dtb_options_h_field_delete_create(
3827 DtbOptionsDialogInfo instance,
3831 XmString label_xmstring = NULL;
3833 if (instance->h_field_delete == NULL) {
3834 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
3835 instance->h_field_delete =
3836 XtVaCreateWidget("dtb_options_h_field_delete",
3837 xmPushButtonWidgetClass,
3839 XmNbottomAttachment, XmATTACH_NONE,
3841 XmNrightAttachment, XmATTACH_FORM,
3843 XmNleftAttachment, XmATTACH_FORM,
3845 XmNtopAttachment, XmATTACH_WIDGET,
3846 XmNrecomputeSize, True,
3847 XmNalignment, XmALIGNMENT_CENTER,
3848 XmNlabelType, XmSTRING,
3849 XmNlabelString, label_xmstring,
3851 XmStringFree(label_xmstring);
3852 label_xmstring = NULL;
3854 if (instance->h_field_delete == NULL)
3863 dtb_options_h_field_change_create(
3864 DtbOptionsDialogInfo instance,
3868 XmString label_xmstring = NULL;
3870 if (instance->h_field_change == NULL) {
3871 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
3872 instance->h_field_change =
3873 XtVaCreateWidget("dtb_options_h_field_change",
3874 xmPushButtonWidgetClass,
3876 XmNbottomAttachment, XmATTACH_NONE,
3878 XmNrightAttachment, XmATTACH_FORM,
3880 XmNleftAttachment, XmATTACH_FORM,
3882 XmNtopAttachment, XmATTACH_WIDGET,
3883 XmNrecomputeSize, True,
3884 XmNalignment, XmALIGNMENT_CENTER,
3885 XmNlabelType, XmSTRING,
3886 XmNlabelString, label_xmstring,
3888 XmStringFree(label_xmstring);
3889 label_xmstring = NULL;
3891 if (instance->h_field_change == NULL)
3900 dtb_options_wrap_checkbox_create(
3901 DtbOptionsDialogInfo instance,
3905 XmString label_xmstring = NULL;
3906 Arg args[22]; /* need 17 args (add 5 to be safe) */
3908 Widget wrap_checkbox_items[1];
3910 if (instance->wrap_checkbox == NULL) {
3912 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
3913 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
3914 XtSetArg(args[n], XmNleftPosition, 26); ++n;
3915 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
3916 XtSetArg(args[n], XmNtopOffset, 9); ++n;
3917 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
3918 XtSetArg(args[n], XmNradioBehavior, False); ++n;
3919 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
3920 XtSetArg(args[n], XmNnumColumns, 1); ++n;
3921 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
3922 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
3923 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
3924 XtSetArg(args[n], XmNspacing, 0); ++n;
3925 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
3926 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
3927 instance->wrap_checkbox =
3928 XmCreateRadioBox(parent,
3929 "dtb_options_wrap_checkbox", args, n);
3931 if (instance->wrap_checkbox == NULL)
3934 if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL) {
3935 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 36, "Show Attachment List"));
3936 instance->wrap_checkbox_items.Show_Attachment_List_item =
3937 XtVaCreateManagedWidget("dtb_options_wrap_checkbox_show_attachment_list_item",
3938 xmToggleButtonWidgetClass,
3939 instance->wrap_checkbox,
3941 XmNlabelString, label_xmstring,
3943 XmStringFree(label_xmstring);
3944 label_xmstring = NULL;
3946 if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL)
3955 dtb_options_confirm_attachment_create(
3956 DtbOptionsDialogInfo instance,
3959 XmString label_xmstring = NULL;
3960 Arg args[32]; /* need 9 args (add 5 to be safe) */
3963 if (instance->confirm_attachment == NULL)
3965 instance->confirm_attachment =
3966 XtVaCreateWidget("dtb_options_confirm_attachment",
3969 XmNbottomAttachment, XmATTACH_NONE,
3970 XmNrightAttachment, XmATTACH_NONE,
3971 XmNleftPosition, 26,
3972 XmNleftAttachment, XmATTACH_POSITION,
3974 XmNtopAttachment, XmATTACH_WIDGET,
3975 XmNresizePolicy, XmRESIZE_ANY,
3980 if (instance->confirm_attachment == NULL) return -1;
3982 parent = instance->confirm_attachment;
3984 if (instance->cfrm_att_checkbox == NULL)
3987 XtSetArg(args[n], XmNradioBehavior, False); ++n;
3988 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
3989 XtSetArg(args[n], XmNnumColumns, 1); ++n;
3990 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
3991 XtSetArg(args[n], XmNentryVerticalAlignment,
3992 XmALIGNMENT_BASELINE_BOTTOM); ++n;
3993 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
3994 XtSetArg(args[n], XmNspacing, 0); ++n;
3995 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
3996 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
3997 instance->cfrm_att_checkbox =
3998 XmCreateRadioBox(parent, "dtb_options_cfrm_att_checkbox", args, n);
4000 if (instance->cfrm_att_checkbox == NULL) return -1;
4003 instance->cfrm_att_checkbox,
4004 XmNbottomAttachment, XmATTACH_FORM,
4005 XmNtopAttachment, XmATTACH_FORM,
4006 XmNleftAttachment, XmATTACH_FORM,
4007 XmNleftPosition, 50,
4008 XmNrightAttachment, XmATTACH_NONE,
4011 XtManageChild(instance->cfrm_att_checkbox);
4014 if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
4016 label_xmstring = XmStringCreateLocalized(
4017 GETMSG(Dtb_project_catd, 2, 94, "Confirm attachments over:"));
4019 instance->cfrm_att_checkbox_items.Confirm_Attachment_item =
4020 XtVaCreateManagedWidget(
4021 "dtb_options_cfrm_att_checkbox_Confirm_Attachment_item",
4022 xmToggleButtonWidgetClass,
4023 instance->cfrm_att_checkbox,
4025 XmNlabelString, label_xmstring,
4027 XmStringFree(label_xmstring);
4028 label_xmstring = NULL;
4030 if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
4034 if (instance->cfrm_att_size_sb == NULL)
4037 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
4038 XtSetArg(args[n], XmNincrementValue, 1); ++n;
4039 XtSetArg(args[n], XmNposition, 1024*1024); ++n;
4040 XtSetArg(args[n], XmNminimumValue, 0); ++n;
4041 XtSetArg(args[n], XmNmaximumValue, 1024*1024); ++n;
4042 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
4043 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
4044 XtSetArg(args[n], XmNcolumns, 8); ++n;
4045 instance->cfrm_att_size_sb =
4046 XmCreateSimpleSpinBox(parent, "dtb_options_cfrm_att_size_sb", args,n);
4048 if (instance->cfrm_att_size_sb == NULL) return -1;
4051 instance->cfrm_att_size_sb,
4052 XmNbottomAttachment, XmATTACH_FORM,
4053 XmNtopAttachment, XmATTACH_FORM,
4054 XmNleftAttachment, XmATTACH_WIDGET,
4055 XmNleftWidget, instance->cfrm_att_checkbox,
4056 XmNrightAttachment, XmATTACH_NONE,
4058 XtManageChild(instance->cfrm_att_size_sb);
4061 if (instance->visit_mailb_lbl == NULL)
4064 XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 95, "kilobytes"));
4065 instance->cfrm_att_size_mb_lbl =
4066 XtVaCreateManagedWidget("dtb_options_cfrm_att_size_mb_lbl",
4069 XmNrecomputeSize, True,
4070 XmNalignment, XmALIGNMENT_CENTER,
4071 XmNlabelType, XmSTRING,
4072 XmNlabelString, label_xmstring,
4073 XmNtopAttachment, XmATTACH_FORM,
4074 XmNbottomAttachment, XmATTACH_FORM,
4076 XmNrightAttachment, XmATTACH_NONE,
4078 XmNleftAttachment, XmATTACH_WIDGET,
4079 XmNleftWidget, instance->cfrm_att_size_sb,
4081 XmStringFree(label_xmstring);
4082 label_xmstring = NULL;
4084 if (instance->cfrm_att_size_mb_lbl == NULL) return -1;
4087 instance->cfrm_att_size_mb_lbl,
4088 XmNbottomAttachment, XmATTACH_FORM,
4089 XmNtopAttachment, XmATTACH_FORM,
4090 XmNleftAttachment, XmATTACH_WIDGET,
4091 XmNleftWidget, instance->cfrm_att_size_sb,
4092 XmNrightAttachment, XmATTACH_NONE,
4102 dtb_options_separator3_create(
4103 DtbOptionsDialogInfo instance,
4108 if (instance->separator3 == NULL) {
4109 instance->separator3 =
4110 XtVaCreateWidget("dtb_options_separator3",
4111 xmSeparatorWidgetClass,
4113 XmNbottomAttachment, XmATTACH_NONE,
4115 XmNrightAttachment, XmATTACH_FORM,
4117 XmNleftAttachment, XmATTACH_FORM,
4118 XmNtopAttachment, XmATTACH_WIDGET,
4120 XmNseparatorType, XmSHADOW_ETCHED_IN,
4121 XmNorientation, XmHORIZONTAL,
4124 if (instance->separator3 == NULL)
4133 dtb_options_separator7_create(
4134 DtbOptionsDialogInfo instance,
4139 if (instance->separator7 == NULL) {
4140 instance->separator7 =
4141 XtVaCreateWidget("dtb_options_separator7",
4142 xmSeparatorWidgetClass,
4144 XmNbottomAttachment, XmATTACH_NONE,
4146 XmNrightAttachment, XmATTACH_FORM,
4148 XmNleftAttachment, XmATTACH_FORM,
4150 XmNtopAttachment, XmATTACH_WIDGET,
4151 XmNseparatorType, XmSHADOW_ETCHED_IN,
4152 XmNorientation, XmHORIZONTAL,
4155 if (instance->separator7 == NULL)
4164 dtb_options_deadletter_field_create(
4165 DtbOptionsDialogInfo instance,
4169 XmString label_xmstring = NULL;
4170 Arg args[44]; /* need 39 args (add 5 to be safe) */
4173 if (instance->deadletter_field_rowcolumn == NULL) {
4174 instance->deadletter_field_rowcolumn =
4175 XtVaCreateWidget("dtb_options_deadletter_field",
4176 xmRowColumnWidgetClass,
4178 XmNbottomAttachment, XmATTACH_NONE,
4179 XmNrightAttachment, XmATTACH_NONE,
4181 XmNleftAttachment, XmATTACH_FORM,
4183 XmNtopAttachment, XmATTACH_WIDGET,
4184 XmNadjustLast, True,
4187 XmNentryAlignment, XmALIGNMENT_END,
4188 XmNorientation, XmHORIZONTAL,
4191 if (instance->deadletter_field_rowcolumn == NULL)
4194 if (instance->deadletter_field_label == NULL) {
4195 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 38, "Dead Letter Folder:"));
4196 instance->deadletter_field_label =
4197 XtVaCreateWidget("dtb_options_deadletter_field_label",
4199 instance->deadletter_field_rowcolumn,
4200 XmNlabelType, XmSTRING,
4201 XmNlabelString, label_xmstring,
4203 XmStringFree(label_xmstring);
4204 label_xmstring = NULL;
4206 if (instance->deadletter_field_label == NULL)
4209 if (instance->deadletter_field == NULL) {
4211 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4212 XtSetArg(args[n], XmNeditable, True); ++n;
4213 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4214 instance->deadletter_field =
4215 XmCreateTextField(instance->deadletter_field_rowcolumn,
4216 "dtb_options_deadletter_field_field", args, n);
4218 if (instance->deadletter_field == NULL)
4227 dtb_options_separator9_create(
4228 DtbOptionsDialogInfo instance,
4233 if (instance->separator9 == NULL) {
4234 instance->separator9 =
4235 XtVaCreateWidget("dtb_options_separator9",
4236 xmSeparatorWidgetClass,
4238 XmNbottomAttachment, XmATTACH_NONE,
4240 XmNrightAttachment, XmATTACH_FORM,
4242 XmNleftAttachment, XmATTACH_FORM,
4244 XmNtopAttachment, XmATTACH_WIDGET,
4245 XmNseparatorType, XmSHADOW_ETCHED_IN,
4246 XmNorientation, XmHORIZONTAL,
4249 if (instance->separator9 == NULL)
4258 dtb_options_format_menu_lbl_create(
4259 DtbOptionsDialogInfo instance,
4263 XmString label_xmstring = NULL;
4265 if (instance->format_menu_lbl == NULL) {
4266 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 39, "Format Menu Custom Fields"));
4267 instance->format_menu_lbl =
4268 XtVaCreateWidget("dtb_options_format_menu_lbl",
4271 XmNbottomAttachment, XmATTACH_NONE,
4272 XmNrightAttachment, XmATTACH_NONE,
4274 XmNleftAttachment, XmATTACH_FORM,
4276 XmNtopAttachment, XmATTACH_WIDGET,
4277 XmNrecomputeSize, True,
4278 XmNalignment, XmALIGNMENT_CENTER,
4279 XmNlabelType, XmSTRING,
4280 XmNlabelString, label_xmstring,
4282 XmStringFree(label_xmstring);
4283 label_xmstring = NULL;
4285 if (instance->format_menu_lbl == NULL)
4294 dtb_options_group6_create(
4295 DtbOptionsDialogInfo instance,
4300 if (instance->group6 == NULL) {
4302 XtVaCreateWidget("dtb_options_group6",
4305 XmNbottomAttachment, XmATTACH_NONE,
4306 XmNrightAttachment, XmATTACH_NONE,
4308 XmNleftAttachment, XmATTACH_FORM,
4310 XmNtopAttachment, XmATTACH_WIDGET,
4311 XmNresizePolicy, XmRESIZE_ANY,
4316 if (instance->group6 == NULL)
4325 dtb_options_group4_create(
4326 DtbOptionsDialogInfo instance,
4331 if (instance->group4 == NULL) {
4333 XtVaCreateWidget("dtb_options_group4",
4336 XmNbottomOffset, 10,
4337 XmNbottomAttachment, XmATTACH_FORM,
4338 XmNrightAttachment, XmATTACH_NONE,
4340 XmNleftAttachment, XmATTACH_FORM,
4342 XmNtopAttachment, XmATTACH_WIDGET,
4343 XmNresizePolicy, XmRESIZE_ANY,
4348 if (instance->group4 == NULL)
4357 dtb_options_indent_str_tf_create(
4358 DtbOptionsDialogInfo instance,
4362 Arg args[19]; /* need 14 args (add 5 to be safe) */
4365 if (instance->indent_str_tf == NULL) {
4367 XtSetArg(args[n], XmNbottomOffset, 0); ++n;
4368 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); ++n;
4369 XtSetArg(args[n], XmNrightOffset, 0); ++n;
4370 XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); ++n;
4371 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4372 XtSetArg(args[n], XmNleftAttachment, XmATTACH_WIDGET); ++n;
4373 XtSetArg(args[n], XmNtopAttachment, XmATTACH_NONE); ++n;
4374 XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 37, ">")); ++n;
4375 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4376 XtSetArg(args[n], XmNeditable, True); ++n;
4377 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4378 instance->indent_str_tf =
4379 XmCreateTextField(parent,
4380 "dtb_options_indent_str_tf", args, n);
4382 if (instance->indent_str_tf == NULL)
4391 dtb_options_group23_create(
4392 DtbOptionsDialogInfo instance,
4397 if (instance->group23 == NULL) {
4399 XtVaCreateWidget("dtb_options_group23",
4403 XmNbottomAttachment, XmATTACH_FORM,
4404 XmNrightAttachment, XmATTACH_NONE,
4406 XmNleftAttachment, XmATTACH_FORM,
4408 XmNtopAttachment, XmATTACH_FORM,
4409 XmNresizePolicy, XmRESIZE_ANY,
4414 if (instance->group23 == NULL)
4423 dtb_options_indent_str_lbl_create(
4424 DtbOptionsDialogInfo instance,
4428 XmString label_xmstring = NULL;
4430 if (instance->indent_str_lbl == NULL) {
4431 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 52, "Indent string"));
4432 instance->indent_str_lbl =
4433 XtVaCreateWidget("dtb_options_indent_str_lbl",
4436 XmNrecomputeSize, True,
4437 XmNalignment, XmALIGNMENT_CENTER,
4438 XmNlabelType, XmSTRING,
4439 XmNlabelString, label_xmstring,
4441 XmStringFree(label_xmstring);
4442 label_xmstring = NULL;
4444 if (instance->indent_str_lbl == NULL)
4453 dtb_options_reply_include_lbl_create(
4454 DtbOptionsDialogInfo instance,
4458 XmString label_xmstring = NULL;
4460 if (instance->reply_include_lbl == NULL) {
4461 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 53, "for Reply Include:"));
4462 instance->reply_include_lbl =
4463 XtVaCreateWidget("dtb_options_reply_include_lbl",
4466 XmNrecomputeSize, True,
4467 XmNalignment, XmALIGNMENT_CENTER,
4468 XmNlabelType, XmSTRING,
4469 XmNlabelString, label_xmstring,
4471 XmStringFree(label_xmstring);
4472 label_xmstring = NULL;
4474 if (instance->reply_include_lbl == NULL)
4483 dtb_options_group7_create(
4484 DtbOptionsDialogInfo instance,
4489 if (instance->group7 == NULL) {
4491 XtVaCreateWidget("dtb_options_group7",
4494 XmNbottomAttachment, XmATTACH_NONE,
4495 XmNrightAttachment, XmATTACH_NONE,
4497 XmNleftAttachment, XmATTACH_WIDGET,
4499 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4500 XmNresizePolicy, XmRESIZE_ANY,
4505 if (instance->group7 == NULL)
4514 dtb_options_list_create(
4515 DtbOptionsDialogInfo instance,
4519 XmString label_xmstring = NULL;
4520 Arg args[21]; /* need 16 args (add 5 to be safe) */
4523 XmString list_list_xmstrings[2];
4527 * Convert char* strings to XmStrings
4529 list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 40, "bcc"));
4530 list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 41, "return-receipt"));
4531 if (instance->list == NULL) {
4533 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
4534 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
4535 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
4536 XtSetArg(args[n], XmNvisibleItemCount, 5); ++n;
4537 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
4538 XtSetArg(args[n], XmNrightOffset, 0); ++n;
4539 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
4540 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4541 XtSetArg(args[n], XmNleftPosition, 24); ++n;
4542 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
4543 XtSetArg(args[n], XmNtopOffset, 6); ++n;
4544 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
4545 XtSetArg(args[n], XmNitems, (XtArgVal)list_list_xmstrings); n++;
4546 XtSetArg(args[n], XmNitemCount, (XtArgVal)2); n++;
4548 XmCreateScrolledList(parent,
4549 "dtb_options_list_list", args, n);
4551 instance->list_scrolledwin = XtParent(instance->list);
4552 if (instance->list == NULL)
4561 dtb_options_menu_labels_lbl_create(
4562 DtbOptionsDialogInfo instance,
4566 XmString label_xmstring = NULL;
4568 if (instance->menu_labels_lbl == NULL) {
4569 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 42, "Menu Labels:"));
4570 instance->menu_labels_lbl =
4571 XtVaCreateWidget("dtb_options_menu_labels_lbl",
4574 XmNbottomAttachment, XmATTACH_NONE,
4576 XmNrightPosition, 24,
4577 XmNrightAttachment, XmATTACH_POSITION,
4578 XmNleftAttachment, XmATTACH_NONE,
4580 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4581 XmNrecomputeSize, True,
4582 XmNalignment, XmALIGNMENT_CENTER,
4583 XmNlabelType, XmSTRING,
4584 XmNlabelString, label_xmstring,
4586 XmStringFree(label_xmstring);
4587 label_xmstring = NULL;
4589 if (instance->menu_labels_lbl == NULL)
4598 dtb_options_hdr_field_create(
4599 DtbOptionsDialogInfo instance,
4603 Arg args[18]; /* need 13 args (add 5 to be safe) */
4606 if (instance->hdr_field == NULL) {
4608 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
4609 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
4610 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4611 XtSetArg(args[n], XmNleftPosition, 24); ++n;
4612 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
4613 XtSetArg(args[n], XmNtopOffset, 0); ++n;
4614 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
4615 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4616 XtSetArg(args[n], XmNeditable, True); ++n;
4617 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4618 instance->hdr_field =
4619 XmCreateTextField(parent,
4620 "dtb_options_hdr_field", args, n);
4622 if (instance->hdr_field == NULL)
4631 dtb_options_def_value_field_create(
4632 DtbOptionsDialogInfo instance,
4636 Arg args[18]; /* need 13 args (add 5 to be safe) */
4639 if (instance->def_value_field == NULL) {
4641 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
4642 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
4643 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4644 XtSetArg(args[n], XmNleftPosition, 24); ++n;
4645 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
4646 XtSetArg(args[n], XmNtopOffset, 6); ++n;
4647 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
4648 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4649 XtSetArg(args[n], XmNeditable, True); ++n;
4650 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4651 instance->def_value_field =
4652 XmCreateTextField(parent,
4653 "dtb_options_def_value_field", args, n);
4655 if (instance->def_value_field == NULL)
4664 dtb_options_hdr_field_lbl_create(
4665 DtbOptionsDialogInfo instance,
4669 XmString label_xmstring = NULL;
4671 if (instance->hdr_field_lbl == NULL) {
4672 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 50, "Header Field:"));
4673 instance->hdr_field_lbl =
4674 XtVaCreateWidget("dtb_options_hdr_field_lbl",
4678 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4680 XmNrightPosition, 24,
4681 XmNrightAttachment, XmATTACH_POSITION,
4682 XmNleftAttachment, XmATTACH_NONE,
4684 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4685 XmNrecomputeSize, True,
4686 XmNalignment, XmALIGNMENT_CENTER,
4687 XmNlabelType, XmSTRING,
4688 XmNlabelString, label_xmstring,
4690 XmStringFree(label_xmstring);
4691 label_xmstring = NULL;
4693 if (instance->hdr_field_lbl == NULL)
4702 dtb_options_def_value_lbl_create(
4703 DtbOptionsDialogInfo instance,
4707 XmString label_xmstring = NULL;
4709 if (instance->def_value_lbl == NULL) {
4710 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 51, "Default Value:"));
4711 instance->def_value_lbl =
4712 XtVaCreateWidget("dtb_options_def_value_lbl",
4716 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4718 XmNrightPosition, 24,
4719 XmNrightAttachment, XmATTACH_POSITION,
4720 XmNleftAttachment, XmATTACH_NONE,
4722 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4723 XmNrecomputeSize, True,
4724 XmNalignment, XmALIGNMENT_CENTER,
4725 XmNlabelType, XmSTRING,
4726 XmNlabelString, label_xmstring,
4728 XmStringFree(label_xmstring);
4729 label_xmstring = NULL;
4731 if (instance->def_value_lbl == NULL)
4740 dtb_options_add_button_create(
4741 DtbOptionsDialogInfo instance,
4745 XmString label_xmstring = NULL;
4747 if (instance->add_button == NULL) {
4748 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
4749 instance->add_button =
4750 XtVaCreateWidget("dtb_options_add_button",
4751 xmPushButtonWidgetClass,
4753 XmNbottomAttachment, XmATTACH_NONE,
4755 XmNrightAttachment, XmATTACH_FORM,
4757 XmNleftAttachment, XmATTACH_FORM,
4759 XmNtopAttachment, XmATTACH_FORM,
4760 XmNrecomputeSize, True,
4761 XmNalignment, XmALIGNMENT_CENTER,
4762 XmNlabelType, XmSTRING,
4763 XmNlabelString, label_xmstring,
4765 XmStringFree(label_xmstring);
4766 label_xmstring = NULL;
4768 if (instance->add_button == NULL)
4777 dtb_options_del_button_create(
4778 DtbOptionsDialogInfo instance,
4782 XmString label_xmstring = NULL;
4784 if (instance->del_button == NULL) {
4785 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
4786 instance->del_button =
4787 XtVaCreateWidget("dtb_options_del_button",
4788 xmPushButtonWidgetClass,
4790 XmNbottomAttachment, XmATTACH_NONE,
4792 XmNrightAttachment, XmATTACH_FORM,
4794 XmNleftAttachment, XmATTACH_FORM,
4796 XmNtopAttachment, XmATTACH_WIDGET,
4797 XmNrecomputeSize, True,
4798 XmNalignment, XmALIGNMENT_CENTER,
4799 XmNlabelType, XmSTRING,
4800 XmNlabelString, label_xmstring,
4802 XmStringFree(label_xmstring);
4803 label_xmstring = NULL;
4805 if (instance->del_button == NULL)
4814 dtb_options_change_button_create(
4815 DtbOptionsDialogInfo instance,
4819 XmString label_xmstring = NULL;
4821 if (instance->change_button == NULL) {
4822 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
4823 instance->change_button =
4824 XtVaCreateWidget("dtb_options_change_button",
4825 xmPushButtonWidgetClass,
4827 XmNbottomAttachment, XmATTACH_NONE,
4828 XmNrightAttachment, XmATTACH_NONE,
4830 XmNleftAttachment, XmATTACH_FORM,
4832 XmNtopAttachment, XmATTACH_WIDGET,
4833 XmNrecomputeSize, True,
4834 XmNalignment, XmALIGNMENT_CENTER,
4835 XmNlabelType, XmSTRING,
4836 XmNlabelString, label_xmstring,
4838 XmStringFree(label_xmstring);
4839 label_xmstring = NULL;
4841 if (instance->change_button == NULL)
4850 dtb_options_separator8_create(
4851 DtbOptionsDialogInfo instance,
4856 if (instance->separator8 == NULL) {
4857 instance->separator8 =
4858 XtVaCreateWidget("dtb_options_separator8",
4859 xmSeparatorWidgetClass,
4861 XmNbottomAttachment, XmATTACH_NONE,
4863 XmNrightAttachment, XmATTACH_FORM,
4865 XmNleftAttachment, XmATTACH_FORM,
4867 XmNtopAttachment, XmATTACH_WIDGET,
4868 XmNseparatorType, XmSHADOW_ETCHED_IN,
4869 XmNorientation, XmHORIZONTAL,
4872 if (instance->separator8 == NULL)
4881 dtb_options_separator5_create(
4882 DtbOptionsDialogInfo instance,
4887 if (instance->separator5 == NULL) {
4888 instance->separator5 =
4889 XtVaCreateWidget("dtb_options_separator5",
4890 xmSeparatorWidgetClass,
4892 XmNbottomAttachment, XmATTACH_NONE,
4894 XmNrightAttachment, XmATTACH_FORM,
4896 XmNleftAttachment, XmATTACH_FORM,
4898 XmNtopAttachment, XmATTACH_WIDGET,
4899 XmNseparatorType, XmSHADOW_ETCHED_IN,
4900 XmNorientation, XmHORIZONTAL,
4903 if (instance->separator5 == NULL)
4912 dtb_options_group25_create(
4913 DtbOptionsDialogInfo instance,
4918 if (instance->group25 == NULL) {
4920 XtVaCreateWidget("dtb_options_group25",
4923 XmNbottomAttachment, XmATTACH_NONE,
4924 XmNrightAttachment, XmATTACH_NONE,
4926 XmNleftAttachment, XmATTACH_FORM,
4928 XmNtopAttachment, XmATTACH_WIDGET,
4929 XmNresizePolicy, XmRESIZE_ANY,
4934 if (instance->group25 == NULL)
4943 dtb_options_mailb_for_sent_lbl_create(
4944 DtbOptionsDialogInfo instance,
4948 XmString label_xmstring = NULL;
4950 if (instance->mailb_for_sent_lbl == NULL) {
4951 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 61, "Mailbox for sent messages:"));
4952 instance->mailb_for_sent_lbl =
4953 XtVaCreateWidget("dtb_options_mailb_for_sent_lbl",
4956 XmNbottomAttachment, XmATTACH_NONE,
4957 XmNrightAttachment, XmATTACH_NONE,
4959 XmNleftAttachment, XmATTACH_FORM,
4961 XmNtopAttachment, XmATTACH_WIDGET,
4962 XmNrecomputeSize, True,
4963 XmNalignment, XmALIGNMENT_CENTER,
4964 XmNlabelType, XmSTRING,
4965 XmNlabelString, label_xmstring,
4967 XmStringFree(label_xmstring);
4968 label_xmstring = NULL;
4970 if (instance->mailb_for_sent_lbl == NULL)
4979 dtb_options_group26_create(
4980 DtbOptionsDialogInfo instance,
4985 if (instance->group26 == NULL) {
4987 XtVaCreateWidget("dtb_options_group26",
4990 XmNbottomOffset, 10,
4991 XmNbottomAttachment, XmATTACH_FORM,
4992 XmNrightAttachment, XmATTACH_NONE,
4994 XmNleftAttachment, XmATTACH_FORM,
4996 XmNtopAttachment, XmATTACH_WIDGET,
4997 XmNresizePolicy, XmRESIZE_ANY,
5002 if (instance->group26 == NULL)
5011 dtb_options_group9_create(
5012 DtbOptionsDialogInfo instance,
5017 if (instance->group9 == NULL) {
5019 XtVaCreateWidget("dtb_options_group9",
5022 XmNbottomAttachment, XmATTACH_NONE,
5023 XmNrightAttachment, XmATTACH_NONE,
5025 XmNleftAttachment, XmATTACH_FORM,
5027 XmNtopAttachment, XmATTACH_FORM,
5028 XmNresizePolicy, XmRESIZE_ANY,
5033 if (instance->group9 == NULL)
5042 dtb_options_dpy_up_mbox_cb_create(
5043 DtbOptionsDialogInfo instance,
5047 XmString label_xmstring = NULL;
5048 Arg args[14]; /* need 9 args (add 5 to be safe) */
5050 Widget dpy_up_mbox_cb_items[1];
5052 if (instance->dpy_up_mbox_cb == NULL) {
5054 XtSetArg(args[n], XmNradioBehavior, False); ++n;
5055 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
5056 XtSetArg(args[n], XmNnumColumns, 1); ++n;
5057 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
5058 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
5059 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
5060 XtSetArg(args[n], XmNspacing, 0); ++n;
5061 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
5062 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
5063 instance->dpy_up_mbox_cb =
5064 XmCreateRadioBox(parent,
5065 "dtb_options_dpy_up_mbox_cb", args, n);
5067 if (instance->dpy_up_mbox_cb == NULL)
5070 if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL) {
5071 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 59, "Display up to:"));
5072 instance->dpy_up_mbox_cb_items.Display_up_to_item =
5073 XtVaCreateManagedWidget("dtb_options_dpy_up_mbox_cb_display_up_to_item",
5074 xmToggleButtonWidgetClass,
5075 instance->dpy_up_mbox_cb,
5077 XmNlabelString, label_xmstring,
5079 XmStringFree(label_xmstring);
5080 label_xmstring = NULL;
5082 if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL)
5091 dtb_options_recent_sb_create(
5092 DtbOptionsDialogInfo instance,
5096 Arg args[13]; /* need 8 args (add 5 to be safe) */
5100 if (instance->recent_sb == NULL) {
5102 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
5103 XtSetArg(args[n], XmNincrementValue, 1); ++n;
5104 XtSetArg(args[n], XmNposition, 5); ++n;
5105 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
5106 XtSetArg(args[n], XmNminimumValue, 0); ++n;
5107 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
5108 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
5109 XtSetArg(args[n], XmNcolumns, 6); ++n;
5110 instance->recent_sb =
5111 XmCreateSimpleSpinBox(parent,
5112 "dtb_options_recent_sb", args, n);
5114 if (instance->recent_sb == NULL)
5123 dtb_options_visit_mailb_lbl_create(
5124 DtbOptionsDialogInfo instance,
5128 XmString label_xmstring = NULL;
5130 if (instance->visit_mailb_lbl == NULL) {
5131 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 60, "Recently visited mailboxes"));
5132 instance->visit_mailb_lbl =
5133 XtVaCreateWidget("dtb_options_visit_mailb_lbl",
5136 XmNrecomputeSize, True,
5137 XmNalignment, XmALIGNMENT_CENTER,
5138 XmNlabelType, XmSTRING,
5139 XmNlabelString, label_xmstring,
5140 XmNtopAttachment, XmATTACH_FORM,
5142 XmNbottomAttachment, XmATTACH_FORM,
5144 XmNrightAttachment, XmATTACH_NONE,
5146 XmNleftAttachment, XmATTACH_WIDGET,
5148 XmStringFree(label_xmstring);
5149 label_xmstring = NULL;
5151 if (instance->visit_mailb_lbl == NULL)
5160 dtb_options_sent_mail_tf_create(
5161 DtbOptionsDialogInfo instance,
5165 Arg args[9]; /* need 4 args (add 5 to be safe) */
5168 if (instance->sent_mail_tf == NULL) {
5170 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5171 XtSetArg(args[n], XmNeditable, True); ++n;
5172 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5173 instance->sent_mail_tf =
5174 XmCreateTextField(parent,
5175 "dtb_options_sent_mail_tf", args, n);
5177 if (instance->sent_mail_tf == NULL)
5186 dtb_options_log_cb_create(
5187 DtbOptionsDialogInfo instance,
5191 XmString label_xmstring = NULL;
5192 Arg args[14]; /* need 9 args (add 5 to be safe) */
5194 Widget log_cb_items[1];
5196 if (instance->log_cb == NULL) {
5198 XtSetArg(args[n], XmNradioBehavior, False); ++n;
5199 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
5200 XtSetArg(args[n], XmNnumColumns, 1); ++n;
5201 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
5202 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
5203 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
5204 XtSetArg(args[n], XmNspacing, 0); ++n;
5205 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
5206 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
5208 XmCreateRadioBox(parent,
5209 "dtb_options_log_cb", args, n);
5211 if (instance->log_cb == NULL)
5214 if (instance->log_cb_items.Log_all_sent_messages_item == NULL) {
5215 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 62, "Log all sent messages"));
5216 instance->log_cb_items.Log_all_sent_messages_item =
5217 XtVaCreateManagedWidget("dtb_options_log_cb_log_all_sent_messages_item",
5218 xmToggleButtonWidgetClass,
5221 XmNlabelString, label_xmstring,
5223 XmStringFree(label_xmstring);
5224 label_xmstring = NULL;
5226 if (instance->log_cb_items.Log_all_sent_messages_item == NULL)
5235 dtb_options_group24_create(
5236 DtbOptionsDialogInfo instance,
5241 if (instance->group24 == NULL) {
5243 XtVaCreateWidget("dtb_options_group24",
5246 XmNbottomAttachment, XmATTACH_NONE,
5247 XmNrightAttachment, XmATTACH_NONE,
5249 XmNleftAttachment, XmATTACH_WIDGET,
5251 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5252 XmNresizePolicy, XmRESIZE_ANY,
5257 if (instance->group24 == NULL)
5266 dtb_options_path_file_name_tf_create(
5267 DtbOptionsDialogInfo instance,
5271 Arg args[18]; /* need 13 args (add 5 to be safe) */
5274 if (instance->path_file_name_tf == NULL) {
5276 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5277 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5278 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5279 XtSetArg(args[n], XmNleftPosition, 30); ++n;
5280 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5281 XtSetArg(args[n], XmNtopOffset, 0); ++n;
5282 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
5283 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5284 XtSetArg(args[n], XmNeditable, True); ++n;
5285 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5286 instance->path_file_name_tf =
5287 XmCreateTextField(parent,
5288 "dtb_options_path_file_name_tf", args, n);
5290 if (instance->path_file_name_tf == NULL)
5299 dtb_options_mv_menu_lst_create(
5300 DtbOptionsDialogInfo instance,
5304 Arg args[17]; /* need 12 args (add 5 to be safe) */
5308 if (instance->mv_menu_lst == NULL) {
5310 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
5311 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
5312 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
5313 XtSetArg(args[n], XmNvisibleItemCount, 8); ++n;
5314 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5315 XtSetArg(args[n], XmNrightOffset, 0); ++n;
5316 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
5317 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5318 XtSetArg(args[n], XmNleftPosition, 30); ++n;
5319 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5320 XtSetArg(args[n], XmNtopOffset, 6); ++n;
5321 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5322 instance->mv_menu_lst =
5323 XmCreateScrolledList(parent,
5324 "dtb_options_mv_menu_lst_list", args, n);
5326 instance->mv_menu_lst_scrolledwin = XtParent(instance->mv_menu_lst);
5327 if (instance->mv_menu_lst == NULL)
5336 dtb_options_srt_looking_tf_create(
5337 DtbOptionsDialogInfo instance,
5341 Arg args[18]; /* need 13 args (add 5 to be safe) */
5344 if (instance->srt_looking_tf == NULL) {
5346 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5347 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5348 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5349 XtSetArg(args[n], XmNleftPosition, 30); ++n;
5350 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5351 XtSetArg(args[n], XmNtopOffset, 6); ++n;
5352 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5353 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5354 XtSetArg(args[n], XmNeditable, True); ++n;
5355 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5356 instance->srt_looking_tf =
5357 XmCreateTextField(parent,
5358 "dtb_options_srt_looking_tf", args, n);
5360 if (instance->srt_looking_tf == NULL)
5369 dtb_options_move_menu_lbl_create(
5370 DtbOptionsDialogInfo instance,
5374 XmString label_xmstring = NULL;
5376 if (instance->move_menu_lbl == NULL) {
5377 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 57, "Move Menu"));
5378 instance->move_menu_lbl =
5379 XtVaCreateWidget("dtb_options_move_menu_lbl",
5382 XmNbottomAttachment, XmATTACH_NONE,
5384 XmNrightPosition, 30,
5385 XmNrightAttachment, XmATTACH_POSITION,
5386 XmNleftAttachment, XmATTACH_NONE,
5388 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5389 XmNrecomputeSize, True,
5390 XmNalignment, XmALIGNMENT_CENTER,
5391 XmNlabelType, XmSTRING,
5392 XmNlabelString, label_xmstring,
5394 XmStringFree(label_xmstring);
5395 label_xmstring = NULL;
5397 if (instance->move_menu_lbl == NULL)
5406 dtb_options_move_menu_lbl2_create(
5407 DtbOptionsDialogInfo instance,
5411 XmString label_xmstring = NULL;
5413 if (instance->move_menu_lbl2 == NULL) {
5414 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 58, "and Copy To Menu:"));
5415 instance->move_menu_lbl2 =
5416 XtVaCreateWidget("dtb_options_move_menu_lbl2",
5419 XmNbottomAttachment, XmATTACH_NONE,
5421 XmNrightPosition, 30,
5422 XmNrightAttachment, XmATTACH_POSITION,
5423 XmNleftAttachment, XmATTACH_NONE,
5425 XmNtopAttachment, XmATTACH_WIDGET,
5426 XmNrecomputeSize, True,
5427 XmNalignment, XmALIGNMENT_CENTER,
5428 XmNlabelType, XmSTRING,
5429 XmNlabelString, label_xmstring,
5431 XmStringFree(label_xmstring);
5432 label_xmstring = NULL;
5434 if (instance->move_menu_lbl2 == NULL)
5443 dtb_options_path_file_lbl_create(
5444 DtbOptionsDialogInfo instance,
5448 XmString label_xmstring = NULL;
5450 if (instance->path_file_lbl == NULL) {
5451 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
5452 instance->path_file_lbl =
5453 XtVaCreateWidget("dtb_options_path_file_lbl",
5457 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5459 XmNrightPosition, 30,
5460 XmNrightAttachment, XmATTACH_POSITION,
5461 XmNleftAttachment, XmATTACH_NONE,
5463 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5464 XmNrecomputeSize, True,
5465 XmNalignment, XmALIGNMENT_CENTER,
5466 XmNlabelType, XmSTRING,
5467 XmNlabelString, label_xmstring,
5469 XmStringFree(label_xmstring);
5470 label_xmstring = NULL;
5472 if (instance->path_file_lbl == NULL)
5481 dtb_options_start_look_lbl_create(
5482 DtbOptionsDialogInfo instance,
5486 XmString label_xmstring = NULL;
5488 if (instance->start_look_lbl == NULL) {
5489 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 55, "Start looking in:"));
5490 instance->start_look_lbl =
5491 XtVaCreateWidget("dtb_options_start_look_lbl",
5495 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5497 XmNrightPosition, 30,
5498 XmNrightAttachment, XmATTACH_POSITION,
5499 XmNleftAttachment, XmATTACH_NONE,
5501 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5502 XmNrecomputeSize, True,
5503 XmNalignment, XmALIGNMENT_CENTER,
5504 XmNlabelType, XmSTRING,
5505 XmNlabelString, label_xmstring,
5507 XmStringFree(label_xmstring);
5508 label_xmstring = NULL;
5510 if (instance->start_look_lbl == NULL)
5519 dtb_options_mm_add_butt_create(
5520 DtbOptionsDialogInfo instance,
5524 XmString label_xmstring = NULL;
5526 if (instance->mm_add_butt == NULL) {
5527 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
5528 instance->mm_add_butt =
5529 XtVaCreateWidget("dtb_options_mm_add_butt",
5530 xmPushButtonWidgetClass,
5532 XmNbottomAttachment, XmATTACH_NONE,
5534 XmNrightAttachment, XmATTACH_FORM,
5536 XmNleftAttachment, XmATTACH_FORM,
5538 XmNtopAttachment, XmATTACH_FORM,
5539 XmNrecomputeSize, True,
5540 XmNalignment, XmALIGNMENT_CENTER,
5541 XmNlabelType, XmSTRING,
5542 XmNlabelString, label_xmstring,
5544 XmStringFree(label_xmstring);
5545 label_xmstring = NULL;
5547 if (instance->mm_add_butt == NULL)
5556 dtb_options_mm_delete_butt_create(
5557 DtbOptionsDialogInfo instance,
5561 XmString label_xmstring = NULL;
5563 if (instance->mm_delete_butt == NULL) {
5564 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
5565 instance->mm_delete_butt =
5566 XtVaCreateWidget("dtb_options_mm_delete_butt",
5567 xmPushButtonWidgetClass,
5569 XmNbottomAttachment, XmATTACH_NONE,
5571 XmNrightAttachment, XmATTACH_FORM,
5573 XmNleftAttachment, XmATTACH_FORM,
5575 XmNtopAttachment, XmATTACH_WIDGET,
5576 XmNrecomputeSize, True,
5577 XmNalignment, XmALIGNMENT_CENTER,
5578 XmNlabelType, XmSTRING,
5579 XmNlabelString, label_xmstring,
5581 XmStringFree(label_xmstring);
5582 label_xmstring = NULL;
5584 if (instance->mm_delete_butt == NULL)
5593 dtb_options_mm_change_butt_create(
5594 DtbOptionsDialogInfo instance,
5598 XmString label_xmstring = NULL;
5600 if (instance->mm_change_butt == NULL) {
5601 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
5602 instance->mm_change_butt =
5603 XtVaCreateWidget("dtb_options_mm_change_butt",
5604 xmPushButtonWidgetClass,
5606 XmNbottomAttachment, XmATTACH_NONE,
5608 XmNrightAttachment, XmATTACH_FORM,
5610 XmNleftAttachment, XmATTACH_FORM,
5612 XmNtopAttachment, XmATTACH_WIDGET,
5613 XmNrecomputeSize, True,
5614 XmNalignment, XmALIGNMENT_CENTER,
5615 XmNlabelType, XmSTRING,
5616 XmNlabelString, label_xmstring,
5618 XmStringFree(label_xmstring);
5619 label_xmstring = NULL;
5621 if (instance->mm_change_butt == NULL)
5630 dtb_options_vacation_lbl_create(
5631 DtbOptionsDialogInfo instance,
5635 XmString label_xmstring = NULL;
5637 if (instance->vacation_lbl == NULL) {
5638 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 66, "Vacation Precedence = junk"));
5639 instance->vacation_lbl =
5640 XtVaCreateWidget("dtb_options_vacation_lbl",
5643 XmNbottomAttachment, XmATTACH_NONE,
5644 XmNrightAttachment, XmATTACH_NONE,
5646 XmNleftAttachment, XmATTACH_FORM,
5648 XmNtopAttachment, XmATTACH_FORM,
5649 XmNrecomputeSize, True,
5650 XmNalignment, XmALIGNMENT_CENTER,
5651 XmNlabelType, XmSTRING,
5652 XmNlabelString, label_xmstring,
5654 XmStringFree(label_xmstring);
5655 label_xmstring = NULL;
5657 if (instance->vacation_lbl == NULL)
5666 dtb_options_group10_create(
5667 DtbOptionsDialogInfo instance,
5672 if (instance->group10 == NULL) {
5674 XtVaCreateWidget("dtb_options_group10",
5677 XmNbottomOffset, 10,
5678 XmNbottomAttachment, XmATTACH_FORM,
5679 XmNrightAttachment, XmATTACH_NONE,
5681 XmNleftAttachment, XmATTACH_FORM,
5683 XmNtopAttachment, XmATTACH_WIDGET,
5684 XmNresizePolicy, XmRESIZE_ANY,
5689 if (instance->group10 == NULL)
5698 dtb_options_vacation_rb_create(
5699 DtbOptionsDialogInfo instance,
5703 XmString label_xmstring = NULL;
5704 Arg args[22]; /* need 17 args (add 5 to be safe) */
5706 Widget vacation_rb_items[2];
5708 if (instance->vacation_rb == NULL) {
5710 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5711 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5712 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5713 XtSetArg(args[n], XmNleftPosition, 20); ++n;
5714 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5715 XtSetArg(args[n], XmNtopOffset, 0); ++n;
5716 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
5717 XtSetArg(args[n], XmNradioBehavior, True); ++n;
5718 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
5719 XtSetArg(args[n], XmNnumColumns, 1); ++n;
5720 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
5721 XtSetArg(args[n], XmNorientation, XmHORIZONTAL); ++n;
5722 XtSetArg(args[n], XmNspacing, 0); ++n;
5723 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
5724 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
5725 instance->vacation_rb =
5726 XmCreateRadioBox(parent,
5727 "dtb_options_vacation_rb", args, n);
5729 if (instance->vacation_rb == NULL)
5732 if (instance->vacation_rb_items.On_item == NULL) {
5733 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 64, "On"));
5734 instance->vacation_rb_items.On_item =
5735 XtVaCreateManagedWidget("dtb_options_vacation_rb_on_item",
5736 xmToggleButtonWidgetClass,
5737 instance->vacation_rb,
5739 XmNlabelString, label_xmstring,
5741 XmStringFree(label_xmstring);
5742 label_xmstring = NULL;
5744 if (instance->vacation_rb_items.On_item == NULL)
5747 if (instance->vacation_rb_items.Off_item == NULL) {
5748 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 65, "Off"));
5749 instance->vacation_rb_items.Off_item =
5750 XtVaCreateManagedWidget("dtb_options_vacation_rb_off_item",
5751 xmToggleButtonWidgetClass,
5752 instance->vacation_rb,
5754 XmNlabelString, label_xmstring,
5756 XmStringFree(label_xmstring);
5757 label_xmstring = NULL;
5759 if (instance->vacation_rb_items.Off_item == NULL)
5768 dtb_options_vacation_msg_tp_create(
5769 DtbOptionsDialogInfo instance,
5773 Arg args[33]; /* need 28 args (add 5 to be safe) */
5776 if (instance->vacation_msg_tp == NULL) {
5778 XtSetArg(args[n], XmNbottomOffset, 0); ++n;
5779 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); ++n;
5780 XtSetArg(args[n], XmNrightOffset, 0); ++n;
5781 XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); ++n;
5782 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5783 XtSetArg(args[n], XmNleftPosition, 20); ++n;
5784 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5785 XtSetArg(args[n], XmNtopOffset, 6); ++n;
5786 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5787 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
5788 XtSetArg(args[n], XmNvisualPolicy, XmVARIABLE); ++n;
5789 XtSetArg(args[n], XmNscrollingPolicy, XmAPPLICATION_DEFINED); ++n;
5790 XtSetArg(args[n], XmNwordWrap, True); ++n;
5791 XtSetArg(args[n], XmNeditMode, XmMULTI_LINE_EDIT); ++n;
5792 XtSetArg(args[n], XmNscrollHorizontal, False); ++n;
5793 XtSetArg(args[n], XmNscrollVertical, True); ++n;
5794 XtSetArg(args[n], XmNrows, 20); ++n;
5795 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5796 XtSetArg(args[n], XmNeditable, True); ++n;
5797 instance->vacation_msg_tp =
5798 XmCreateScrolledText(parent,
5799 "dtb_options_vacation_msg_tp_pane", args, n);
5801 instance->vacation_msg_tp_scrolledwin = XtParent(instance->vacation_msg_tp);
5808 dtb_options_subject_tf_create(
5809 DtbOptionsDialogInfo instance,
5813 Arg args[19]; /* need 14 args (add 5 to be safe) */
5816 if (instance->subject_tf == NULL) {
5818 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5819 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5820 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5821 XtSetArg(args[n], XmNleftPosition, 20); ++n;
5822 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5823 XtSetArg(args[n], XmNtopOffset, 4); ++n;
5824 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5825 XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 68, "Out of the office")); ++n;
5826 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5827 XtSetArg(args[n], XmNeditable, True); ++n;
5828 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5829 instance->subject_tf =
5830 XmCreateTextField(parent,
5831 "dtb_options_subject_tf", args, n);
5833 if (instance->subject_tf == NULL)
5842 dtb_options_msg_list_lbl_create(
5843 DtbOptionsDialogInfo instance,
5847 XmString label_xmstring = NULL;
5849 if (instance->msg_list_lbl == NULL) {
5850 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 69, "Message:"));
5851 instance->msg_list_lbl =
5852 XtVaCreateWidget("dtb_options_msg_list_lbl",
5855 XmNbottomAttachment, XmATTACH_NONE,
5857 XmNrightPosition, 20,
5858 XmNrightAttachment, XmATTACH_POSITION,
5859 XmNleftAttachment, XmATTACH_NONE,
5861 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5862 XmNrecomputeSize, True,
5863 XmNalignment, XmALIGNMENT_CENTER,
5864 XmNlabelType, XmSTRING,
5865 XmNlabelString, label_xmstring,
5867 XmStringFree(label_xmstring);
5868 label_xmstring = NULL;
5870 if (instance->msg_list_lbl == NULL)
5879 dtb_options_subject_lbl_create(
5880 DtbOptionsDialogInfo instance,
5884 XmString label_xmstring = NULL;
5886 if (instance->subject_lbl == NULL) {
5887 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 67, "Subject:"));
5888 instance->subject_lbl =
5889 XtVaCreateWidget("dtb_options_subject_lbl",
5893 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5895 XmNrightPosition, 20,
5896 XmNrightAttachment, XmATTACH_POSITION,
5897 XmNleftAttachment, XmATTACH_NONE,
5899 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5900 XmNrecomputeSize, True,
5901 XmNalignment, XmALIGNMENT_CENTER,
5902 XmNlabelType, XmSTRING,
5903 XmNlabelString, label_xmstring,
5905 XmStringFree(label_xmstring);
5906 label_xmstring = NULL;
5908 if (instance->subject_lbl == NULL)
5917 dtb_options_vacation_rb_lbl_create(
5918 DtbOptionsDialogInfo instance,
5922 XmString label_xmstring = NULL;
5924 if (instance->vacation_rb_lbl == NULL) {
5925 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 63, "Vacation:"));
5926 instance->vacation_rb_lbl =
5927 XtVaCreateWidget("dtb_options_vacation_rb_lbl",
5931 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5933 XmNrightPosition, 20,
5934 XmNrightAttachment, XmATTACH_POSITION,
5935 XmNleftAttachment, XmATTACH_NONE,
5937 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5938 XmNrecomputeSize, True,
5939 XmNalignment, XmALIGNMENT_CENTER,
5940 XmNlabelType, XmSTRING,
5941 XmNlabelString, label_xmstring,
5943 XmStringFree(label_xmstring);
5944 label_xmstring = NULL;
5946 if (instance->vacation_rb_lbl == NULL)
5955 dtb_options_group13_create(
5956 DtbOptionsDialogInfo instance,
5961 if (instance->group13 == NULL) {
5963 XtVaCreateWidget("dtb_options_group13",
5966 XmNbottomOffset, 10,
5967 XmNbottomAttachment, XmATTACH_FORM,
5969 XmNrightAttachment, XmATTACH_FORM,
5971 XmNleftAttachment, XmATTACH_FORM,
5973 XmNtopAttachment, XmATTACH_FORM,
5974 XmNresizePolicy, XmRESIZE_ANY,
5979 if (instance->group13 == NULL)
5988 dtb_options_group11_create(
5989 DtbOptionsDialogInfo instance,
5994 if (instance->group11 == NULL) {
5996 XtVaCreateWidget("dtb_options_group11",
5999 XmNbottomAttachment, XmATTACH_NONE,
6000 XmNrightAttachment, XmATTACH_NONE,
6002 XmNleftAttachment, XmATTACH_WIDGET,
6004 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6005 XmNresizePolicy, XmRESIZE_ANY,
6010 if (instance->group11 == NULL)
6019 dtb_options_menu_label_create(
6020 DtbOptionsDialogInfo instance,
6024 Arg args[18]; /* need 13 args (add 5 to be safe) */
6027 if (instance->menu_label == NULL) {
6029 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6030 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6031 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6032 XtSetArg(args[n], XmNleftPosition, 23); ++n;
6033 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6034 XtSetArg(args[n], XmNtopOffset, 0); ++n;
6035 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
6036 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6037 XtSetArg(args[n], XmNeditable, True); ++n;
6038 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6039 instance->menu_label =
6040 XmCreateTextField(parent,
6041 "dtb_options_menu_label", args, n);
6043 if (instance->menu_label == NULL)
6052 dtb_options_path_filename_label_create(
6053 DtbOptionsDialogInfo instance,
6057 Arg args[18]; /* need 13 args (add 5 to be safe) */
6060 if (instance->path_filename_label == NULL) {
6062 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6063 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6064 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6065 XtSetArg(args[n], XmNleftPosition, 23); ++n;
6066 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6067 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6068 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6069 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6070 XtSetArg(args[n], XmNeditable, True); ++n;
6071 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6072 instance->path_filename_label =
6073 XmCreateTextField(parent,
6074 "dtb_options_path_filename_label", args, n);
6076 if (instance->path_filename_label == NULL)
6085 dtb_options_templates_list_create(
6086 DtbOptionsDialogInfo instance,
6090 Arg args[17]; /* need 12 args (add 5 to be safe) */
6094 if (instance->templates_list == NULL) {
6096 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
6097 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
6098 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
6099 XtSetArg(args[n], XmNvisibleItemCount, 18); ++n;
6100 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6101 XtSetArg(args[n], XmNrightOffset, 0); ++n;
6102 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
6103 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6104 XtSetArg(args[n], XmNleftPosition, 23); ++n;
6105 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6106 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6107 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6108 instance->templates_list =
6109 XmCreateScrolledList(parent,
6110 "dtb_options_templates_list_list", args, n);
6112 instance->templates_list_scrolledwin = XtParent(instance->templates_list);
6113 if (instance->templates_list == NULL)
6122 dtb_options_templates_list_lbl_create(
6123 DtbOptionsDialogInfo instance,
6127 XmString label_xmstring = NULL;
6129 if (instance->templates_list_lbl == NULL) {
6130 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 72, "Templates:"));
6131 instance->templates_list_lbl =
6132 XtVaCreateWidget("dtb_options_templates_list_lbl",
6135 XmNbottomAttachment, XmATTACH_NONE,
6137 XmNrightPosition, 23,
6138 XmNrightAttachment, XmATTACH_POSITION,
6139 XmNleftAttachment, XmATTACH_NONE,
6141 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6142 XmNrecomputeSize, True,
6143 XmNalignment, XmALIGNMENT_CENTER,
6144 XmNlabelType, XmSTRING,
6145 XmNlabelString, label_xmstring,
6147 XmStringFree(label_xmstring);
6148 label_xmstring = NULL;
6150 if (instance->templates_list_lbl == NULL)
6159 dtb_options_menu_label_lbl_create(
6160 DtbOptionsDialogInfo instance,
6164 XmString label_xmstring = NULL;
6166 if (instance->menu_label_lbl == NULL) {
6167 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 71, "Menu Label:"));
6168 instance->menu_label_lbl =
6169 XtVaCreateWidget("dtb_options_menu_label_lbl",
6173 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6175 XmNrightPosition, 23,
6176 XmNrightAttachment, XmATTACH_POSITION,
6177 XmNleftAttachment, XmATTACH_NONE,
6179 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6180 XmNrecomputeSize, True,
6181 XmNalignment, XmALIGNMENT_CENTER,
6182 XmNlabelType, XmSTRING,
6183 XmNlabelString, label_xmstring,
6185 XmStringFree(label_xmstring);
6186 label_xmstring = NULL;
6188 if (instance->menu_label_lbl == NULL)
6197 dtb_options_path_filename_label_lbl_create(
6198 DtbOptionsDialogInfo instance,
6202 XmString label_xmstring = NULL;
6204 if (instance->path_filename_label_lbl == NULL) {
6205 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
6206 instance->path_filename_label_lbl =
6207 XtVaCreateWidget("dtb_options_path_filename_label_lbl",
6211 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6213 XmNrightPosition, 23,
6214 XmNrightAttachment, XmATTACH_POSITION,
6215 XmNleftAttachment, XmATTACH_NONE,
6217 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6218 XmNrecomputeSize, True,
6219 XmNalignment, XmALIGNMENT_CENTER,
6220 XmNlabelType, XmSTRING,
6221 XmNlabelString, label_xmstring,
6223 XmStringFree(label_xmstring);
6224 label_xmstring = NULL;
6226 if (instance->path_filename_label_lbl == NULL)
6235 dtb_options_tem_add_but_create(
6236 DtbOptionsDialogInfo instance,
6240 XmString label_xmstring = NULL;
6242 if (instance->tem_add_but == NULL) {
6243 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6244 instance->tem_add_but =
6245 XtVaCreateWidget("dtb_options_tem_add_but",
6246 xmPushButtonWidgetClass,
6248 XmNbottomAttachment, XmATTACH_NONE,
6250 XmNrightAttachment, XmATTACH_FORM,
6252 XmNleftAttachment, XmATTACH_FORM,
6254 XmNtopAttachment, XmATTACH_FORM,
6255 XmNrecomputeSize, True,
6256 XmNalignment, XmALIGNMENT_CENTER,
6257 XmNlabelType, XmSTRING,
6258 XmNlabelString, label_xmstring,
6260 XmStringFree(label_xmstring);
6261 label_xmstring = NULL;
6263 if (instance->tem_add_but == NULL)
6272 dtb_options_tem_del_but_create(
6273 DtbOptionsDialogInfo instance,
6277 XmString label_xmstring = NULL;
6279 if (instance->tem_del_but == NULL) {
6280 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6281 instance->tem_del_but =
6282 XtVaCreateWidget("dtb_options_tem_del_but",
6283 xmPushButtonWidgetClass,
6285 XmNbottomAttachment, XmATTACH_NONE,
6287 XmNrightAttachment, XmATTACH_FORM,
6289 XmNleftAttachment, XmATTACH_FORM,
6291 XmNtopAttachment, XmATTACH_WIDGET,
6292 XmNrecomputeSize, True,
6293 XmNalignment, XmALIGNMENT_CENTER,
6294 XmNlabelType, XmSTRING,
6295 XmNlabelString, label_xmstring,
6297 XmStringFree(label_xmstring);
6298 label_xmstring = NULL;
6300 if (instance->tem_del_but == NULL)
6309 dtb_options_tem_change_but_create(
6310 DtbOptionsDialogInfo instance,
6314 XmString label_xmstring = NULL;
6316 if (instance->tem_change_but == NULL) {
6317 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6318 instance->tem_change_but =
6319 XtVaCreateWidget("dtb_options_tem_change_but",
6320 xmPushButtonWidgetClass,
6322 XmNbottomAttachment, XmATTACH_NONE,
6324 XmNrightAttachment, XmATTACH_FORM,
6326 XmNleftAttachment, XmATTACH_FORM,
6328 XmNtopAttachment, XmATTACH_WIDGET,
6329 XmNrecomputeSize, True,
6330 XmNalignment, XmALIGNMENT_CENTER,
6331 XmNlabelType, XmSTRING,
6332 XmNlabelString, label_xmstring,
6334 XmStringFree(label_xmstring);
6335 label_xmstring = NULL;
6337 if (instance->tem_change_but == NULL)
6346 dtb_options_group14_create(
6347 DtbOptionsDialogInfo instance,
6352 if (instance->group14 == NULL) {
6354 XtVaCreateWidget("dtb_options_group14",
6357 XmNbottomOffset, 10,
6358 XmNbottomAttachment, XmATTACH_FORM,
6360 XmNrightAttachment, XmATTACH_FORM,
6362 XmNleftAttachment, XmATTACH_FORM,
6364 XmNtopAttachment, XmATTACH_FORM,
6365 XmNresizePolicy, XmRESIZE_ANY,
6370 if (instance->group14 == NULL)
6379 dtb_options_group15_create(
6380 DtbOptionsDialogInfo instance,
6385 if (instance->group15 == NULL) {
6387 XtVaCreateWidget("dtb_options_group15",
6390 XmNbottomAttachment, XmATTACH_NONE,
6391 XmNrightAttachment, XmATTACH_NONE,
6393 XmNleftAttachment, XmATTACH_WIDGET,
6395 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6396 XmNresizePolicy, XmRESIZE_ANY,
6401 if (instance->group15 == NULL)
6410 dtb_options_alias_tf_create(
6411 DtbOptionsDialogInfo instance,
6415 Arg args[18]; /* need 13 args (add 5 to be safe) */
6418 if (instance->alias_tf == NULL) {
6420 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6421 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6422 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6423 XtSetArg(args[n], XmNleftPosition, 15); ++n;
6424 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6425 XtSetArg(args[n], XmNtopOffset, 0); ++n;
6426 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
6427 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6428 XtSetArg(args[n], XmNeditable, True); ++n;
6429 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6430 instance->alias_tf =
6431 XmCreateTextField(parent,
6432 "dtb_options_alias_tf", args, n);
6434 if (instance->alias_tf == NULL)
6443 dtb_options_addresses_tf_create(
6444 DtbOptionsDialogInfo instance,
6448 Arg args[18]; /* need 13 args (add 5 to be safe) */
6451 if (instance->addresses_tf == NULL) {
6453 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6454 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6455 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6456 XtSetArg(args[n], XmNleftPosition, 15); ++n;
6457 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6458 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6459 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6460 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6461 XtSetArg(args[n], XmNeditable, True); ++n;
6462 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6463 instance->addresses_tf =
6464 XmCreateTextField(parent,
6465 "dtb_options_addresses_tf", args, n);
6467 if (instance->addresses_tf == NULL)
6476 dtb_options_alias_list_create(
6477 DtbOptionsDialogInfo instance,
6481 Arg args[17]; /* need 12 args (add 5 to be safe) */
6485 if (instance->alias_list == NULL) {
6487 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
6488 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
6489 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
6490 XtSetArg(args[n], XmNvisibleItemCount, 19); ++n;
6491 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6492 XtSetArg(args[n], XmNrightOffset, 0); ++n;
6493 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
6494 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6495 XtSetArg(args[n], XmNleftPosition, 15); ++n;
6496 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6497 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6498 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6499 instance->alias_list =
6500 XmCreateScrolledList(parent,
6501 "dtb_options_alias_list_list", args, n);
6503 instance->alias_list_scrolledwin = XtParent(instance->alias_list);
6504 if (instance->alias_list == NULL)
6513 dtb_options_alias_list_lbl_create(
6514 DtbOptionsDialogInfo instance,
6518 XmString label_xmstring = NULL;
6520 if (instance->alias_list_lbl == NULL) {
6521 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 75, "Aliases:"));
6522 instance->alias_list_lbl =
6523 XtVaCreateWidget("dtb_options_alias_list_lbl",
6526 XmNbottomAttachment, XmATTACH_NONE,
6528 XmNrightPosition, 15,
6529 XmNrightAttachment, XmATTACH_POSITION,
6530 XmNleftAttachment, XmATTACH_NONE,
6532 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6533 XmNrecomputeSize, True,
6534 XmNalignment, XmALIGNMENT_CENTER,
6535 XmNlabelType, XmSTRING,
6536 XmNlabelString, label_xmstring,
6538 XmStringFree(label_xmstring);
6539 label_xmstring = NULL;
6541 if (instance->alias_list_lbl == NULL)
6550 dtb_options_alias_tf_lbl_create(
6551 DtbOptionsDialogInfo instance,
6555 XmString label_xmstring = NULL;
6557 if (instance->alias_tf_lbl == NULL) {
6558 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 73, "Alias:"));
6559 instance->alias_tf_lbl =
6560 XtVaCreateWidget("dtb_options_alias_tf_lbl",
6564 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6566 XmNrightPosition, 15,
6567 XmNrightAttachment, XmATTACH_POSITION,
6568 XmNleftAttachment, XmATTACH_NONE,
6570 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6571 XmNrecomputeSize, True,
6572 XmNalignment, XmALIGNMENT_CENTER,
6573 XmNlabelType, XmSTRING,
6574 XmNlabelString, label_xmstring,
6576 XmStringFree(label_xmstring);
6577 label_xmstring = NULL;
6579 if (instance->alias_tf_lbl == NULL)
6588 dtb_options_address_tf_lbl_create(
6589 DtbOptionsDialogInfo instance,
6593 XmString label_xmstring = NULL;
6595 if (instance->address_tf_lbl == NULL) {
6596 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 74, "Addresses:"));
6597 instance->address_tf_lbl =
6598 XtVaCreateWidget("dtb_options_address_tf_lbl",
6602 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6604 XmNrightPosition, 15,
6605 XmNrightAttachment, XmATTACH_POSITION,
6606 XmNleftAttachment, XmATTACH_NONE,
6608 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6609 XmNrecomputeSize, True,
6610 XmNalignment, XmALIGNMENT_CENTER,
6611 XmNlabelType, XmSTRING,
6612 XmNlabelString, label_xmstring,
6614 XmStringFree(label_xmstring);
6615 label_xmstring = NULL;
6617 if (instance->address_tf_lbl == NULL)
6626 dtb_options_alias_add_but_create(
6627 DtbOptionsDialogInfo instance,
6631 XmString label_xmstring = NULL;
6633 if (instance->alias_add_but == NULL) {
6634 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6635 instance->alias_add_but =
6636 XtVaCreateWidget("dtb_options_alias_add_but",
6637 xmPushButtonWidgetClass,
6639 XmNbottomAttachment, XmATTACH_NONE,
6641 XmNrightAttachment, XmATTACH_FORM,
6643 XmNleftAttachment, XmATTACH_FORM,
6645 XmNtopAttachment, XmATTACH_FORM,
6646 XmNrecomputeSize, True,
6647 XmNalignment, XmALIGNMENT_CENTER,
6648 XmNlabelType, XmSTRING,
6649 XmNlabelString, label_xmstring,
6651 XmStringFree(label_xmstring);
6652 label_xmstring = NULL;
6654 if (instance->alias_add_but == NULL)
6663 dtb_options_alias_delete_but_create(
6664 DtbOptionsDialogInfo instance,
6668 XmString label_xmstring = NULL;
6670 if (instance->alias_delete_but == NULL) {
6671 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6672 instance->alias_delete_but =
6673 XtVaCreateWidget("dtb_options_alias_delete_but",
6674 xmPushButtonWidgetClass,
6676 XmNbottomAttachment, XmATTACH_NONE,
6678 XmNrightAttachment, XmATTACH_FORM,
6680 XmNleftAttachment, XmATTACH_FORM,
6682 XmNtopAttachment, XmATTACH_WIDGET,
6683 XmNrecomputeSize, True,
6684 XmNalignment, XmALIGNMENT_CENTER,
6685 XmNlabelType, XmSTRING,
6686 XmNlabelString, label_xmstring,
6688 XmStringFree(label_xmstring);
6689 label_xmstring = NULL;
6691 if (instance->alias_delete_but == NULL)
6700 dtb_options_al_change_but_create(
6701 DtbOptionsDialogInfo instance,
6705 XmString label_xmstring = NULL;
6707 if (instance->al_change_but == NULL) {
6708 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6709 instance->al_change_but =
6710 XtVaCreateWidget("dtb_options_al_change_but",
6711 xmPushButtonWidgetClass,
6713 XmNbottomAttachment, XmATTACH_NONE,
6715 XmNrightAttachment, XmATTACH_FORM,
6717 XmNleftAttachment, XmATTACH_FORM,
6719 XmNtopAttachment, XmATTACH_WIDGET,
6720 XmNrecomputeSize, True,
6721 XmNalignment, XmALIGNMENT_CENTER,
6722 XmNlabelType, XmSTRING,
6723 XmNlabelString, label_xmstring,
6725 XmStringFree(label_xmstring);
6726 label_xmstring = NULL;
6728 if (instance->al_change_but == NULL)
6737 dtb_options_update_mbox_scale_create(
6738 DtbOptionsDialogInfo instance,
6743 if (instance->update_mbox_scale == NULL) {
6744 instance->update_mbox_scale =
6745 XtVaCreateWidget("dtb_options_update_mbox_scale",
6748 XmNbottomAttachment, XmATTACH_NONE,
6749 XmNrightAttachment, XmATTACH_NONE,
6751 XmNleftAttachment, XmATTACH_FORM,
6753 XmNtopAttachment, XmATTACH_WIDGET,
6754 XmNshowValue, False,
6756 XmNdecimalPoints, 0,
6757 XmNscaleMultiple, 1,
6761 XmNprocessingDirection, XmMAX_ON_RIGHT,
6762 XmNorientation, XmHORIZONTAL,
6763 "slidingMode", False,
6766 if (instance->update_mbox_scale == NULL)
6775 dtb_options_update_mailb_lbl_create(
6776 DtbOptionsDialogInfo instance,
6780 XmString label_xmstring = NULL;
6782 if (instance->update_mailb_lbl == NULL) {
6783 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 76, "Update mailbox state:"));
6784 instance->update_mailb_lbl =
6785 XtVaCreateWidget("dtb_options_update_mailb_lbl",
6788 XmNbottomAttachment, XmATTACH_NONE,
6789 XmNrightAttachment, XmATTACH_NONE,
6791 XmNleftAttachment, XmATTACH_FORM,
6793 XmNtopAttachment, XmATTACH_FORM,
6794 XmNrecomputeSize, True,
6795 XmNalignment, XmALIGNMENT_CENTER,
6796 XmNlabelType, XmSTRING,
6797 XmNlabelString, label_xmstring,
6799 XmStringFree(label_xmstring);
6800 label_xmstring = NULL;
6802 if (instance->update_mailb_lbl == NULL)
6811 dtb_options_frequently_lbl_create(
6812 DtbOptionsDialogInfo instance,
6816 XmString label_xmstring = NULL;
6818 if (instance->frequently_lbl == NULL) {
6819 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 77, "Frequently"));
6820 instance->frequently_lbl =
6821 XtVaCreateWidget("dtb_options_frequently_lbl",
6824 XmNbottomAttachment, XmATTACH_NONE,
6825 XmNrightAttachment, XmATTACH_NONE,
6827 XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
6829 XmNtopAttachment, XmATTACH_WIDGET,
6830 XmNrecomputeSize, True,
6831 XmNalignment, XmALIGNMENT_CENTER,
6832 XmNlabelType, XmSTRING,
6833 XmNlabelString, label_xmstring,
6835 XmStringFree(label_xmstring);
6836 label_xmstring = NULL;
6838 if (instance->frequently_lbl == NULL)
6847 dtb_options_seldom_lbl_create(
6848 DtbOptionsDialogInfo instance,
6852 XmString label_xmstring = NULL;
6854 if (instance->seldom_lbl == NULL) {
6855 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 78, "Seldom"));
6856 instance->seldom_lbl =
6857 XtVaCreateWidget("dtb_options_seldom_lbl",
6860 XmNbottomAttachment, XmATTACH_NONE,
6861 XmNrightOffset, -23,
6862 XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET,
6863 XmNleftAttachment, XmATTACH_NONE,
6865 XmNtopAttachment, XmATTACH_WIDGET,
6866 XmNrecomputeSize, True,
6867 XmNalignment, XmALIGNMENT_CENTER,
6868 XmNlabelType, XmSTRING,
6869 XmNlabelString, label_xmstring,
6871 XmStringFree(label_xmstring);
6872 label_xmstring = NULL;
6874 if (instance->seldom_lbl == NULL)
6883 dtb_options_separator11_create(
6884 DtbOptionsDialogInfo instance,
6889 if (instance->separator11 == NULL) {
6890 instance->separator11 =
6891 XtVaCreateWidget("dtb_options_separator11",
6892 xmSeparatorWidgetClass,
6894 XmNbottomAttachment, XmATTACH_NONE,
6896 XmNrightAttachment, XmATTACH_FORM,
6898 XmNleftAttachment, XmATTACH_FORM,
6900 XmNtopAttachment, XmATTACH_WIDGET,
6901 XmNseparatorType, XmSHADOW_ETCHED_IN,
6902 XmNorientation, XmHORIZONTAL,
6905 if (instance->separator11 == NULL)
6914 dtb_options_adv_def_cb_create(
6915 DtbOptionsDialogInfo instance,
6919 XmString label_xmstring = NULL;
6920 Arg args[23]; /* need 18 args (add 5 to be safe) */
6922 Widget adv_def_cb_choice_items[6];
6924 if (instance->adv_def_cb_rowcolumn == NULL) {
6925 instance->adv_def_cb_rowcolumn =
6926 XtVaCreateWidget("dtb_options_adv_def_cb",
6927 xmRowColumnWidgetClass,
6929 XmNbottomAttachment, XmATTACH_NONE,
6930 XmNrightAttachment, XmATTACH_NONE,
6932 XmNleftAttachment, XmATTACH_FORM,
6934 XmNtopAttachment, XmATTACH_WIDGET,
6935 XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM,
6937 XmNpacking, XmPACK_TIGHT,
6938 XmNisHomogeneous, False,
6939 XmNadjustLast, True,
6942 XmNentryAlignment, XmALIGNMENT_END,
6943 XmNorientation, XmHORIZONTAL,
6946 if (instance->adv_def_cb_rowcolumn == NULL)
6949 if (instance->adv_def_cb_label == NULL) {
6950 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 79, "Defaults:"));
6951 instance->adv_def_cb_label =
6952 XtVaCreateWidget("dtb_options_adv_def_cb_label",
6954 instance->adv_def_cb_rowcolumn,
6956 XmNlabelType, XmSTRING,
6957 XmNlabelString, label_xmstring,
6959 XmStringFree(label_xmstring);
6960 label_xmstring = NULL;
6962 if (instance->adv_def_cb_label == NULL)
6965 if (instance->adv_def_cb == NULL) {
6967 XtSetArg(args[n], XmNradioBehavior, False); ++n;
6968 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
6969 XtSetArg(args[n], XmNnumColumns, 1); ++n;
6970 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
6971 XtSetArg(args[n], XmNspacing, 0); ++n;
6972 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
6973 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
6974 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
6975 instance->adv_def_cb =
6976 XmCreateRadioBox(instance->adv_def_cb_rowcolumn,
6977 "dtb_options_adv_def_cb_choice", args, n);
6979 if (instance->adv_def_cb == NULL)
6982 if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL) {
6983 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 80, "Show confirmation notices"));
6984 instance->adv_def_cb_items.Show_confirmation_notices_item =
6985 XtVaCreateManagedWidget("dtb_options_adv_def_cb_show_confirmation_notices_item",
6986 xmToggleButtonWidgetClass,
6987 instance->adv_def_cb,
6989 XmNlabelString, label_xmstring,
6991 XmStringFree(label_xmstring);
6992 label_xmstring = NULL;
6994 if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL)
6997 if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL) {
6998 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 81, "Use strict MIME character encoding"));
6999 instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item =
7000 XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_strict_m_i_m_e_character_encoding_item",
7001 xmToggleButtonWidgetClass,
7002 instance->adv_def_cb,
7004 XmNlabelString, label_xmstring,
7006 XmStringFree(label_xmstring);
7007 label_xmstring = NULL;
7009 if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL)
7012 if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL) {
7013 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 82, "Use network aware mail file locking"));
7014 instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item =
7015 XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_network_aware_mail_file_locking_item",
7016 xmToggleButtonWidgetClass,
7017 instance->adv_def_cb,
7019 XmNlabelString, label_xmstring,
7021 XmStringFree(label_xmstring);
7022 label_xmstring = NULL;
7024 if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL)
7027 if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL) {
7028 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 83, "Ignore host name in address (allnet)"));
7029 instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item =
7030 XtVaCreateManagedWidget("dtb_options_adv_def_cb_ignore_host_name_in_address_allnet_item",
7031 xmToggleButtonWidgetClass,
7032 instance->adv_def_cb,
7034 XmNlabelString, label_xmstring,
7036 XmStringFree(label_xmstring);
7037 label_xmstring = NULL;
7039 if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL)
7042 if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL) {
7043 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 84, "Include me when I \"Reply to All\" (metoo)"));
7044 instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item =
7045 XtVaCreateManagedWidget("dtb_options_adv_def_cb_include_me_when_i_reply_to_all_metoo_item",
7046 xmToggleButtonWidgetClass,
7047 instance->adv_def_cb,
7049 XmNlabelString, label_xmstring,
7051 XmStringFree(label_xmstring);
7052 label_xmstring = NULL;
7054 if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL)
7057 if (instance->adv_def_cb_items.Use_local_name_username_item == NULL) {
7058 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 85, "Use local name: username ="));
7059 instance->adv_def_cb_items.Use_local_name_username_item =
7060 XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_local_name_username_item",
7061 xmToggleButtonWidgetClass,
7062 instance->adv_def_cb,
7064 XmNlabelString, label_xmstring,
7066 XmStringFree(label_xmstring);
7067 label_xmstring = NULL;
7069 if (instance->adv_def_cb_items.Use_local_name_username_item == NULL)
7078 dtb_options_group12_create(
7079 DtbOptionsDialogInfo instance,
7084 if (instance->group12 == NULL) {
7086 XtVaCreateWidget("dtb_options_group12",
7089 XmNbottomOffset, 10,
7090 XmNbottomAttachment, XmATTACH_FORM,
7091 XmNrightAttachment, XmATTACH_NONE,
7093 XmNleftAttachment, XmATTACH_FORM,
7095 XmNtopAttachment, XmATTACH_WIDGET,
7096 XmNresizePolicy, XmRESIZE_ANY,
7101 if (instance->group12 == NULL)
7110 dtb_options_group16_create(
7111 DtbOptionsDialogInfo instance,
7116 if (instance->group16 == NULL) {
7118 XtVaCreateWidget("dtb_options_group16",
7121 XmNbottomAttachment, XmATTACH_NONE,
7122 XmNrightAttachment, XmATTACH_NONE,
7124 XmNleftAttachment, XmATTACH_WIDGET,
7126 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
7127 XmNresizePolicy, XmRESIZE_ANY,
7132 if (instance->group16 == NULL)
7141 dtb_options_local_name_tf_create(
7142 DtbOptionsDialogInfo instance,
7146 Arg args[17]; /* need 12 args (add 5 to be safe) */
7149 if (instance->local_name_tf == NULL) {
7151 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
7152 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
7153 XtSetArg(args[n], XmNleftOffset, 0); ++n;
7154 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
7155 XtSetArg(args[n], XmNtopOffset, 0); ++n;
7156 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
7157 XtSetArg(args[n], XmNmaxLength, 80); ++n;
7158 XtSetArg(args[n], XmNeditable, True); ++n;
7159 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
7160 instance->local_name_tf =
7161 XmCreateTextField(parent,
7162 "dtb_options_local_name_tf", args, n);
7164 if (instance->local_name_tf == NULL)
7173 dtb_options_local_name_list_create(
7174 DtbOptionsDialogInfo instance,
7178 Arg args[16]; /* need 11 args (add 5 to be safe) */
7182 if (instance->local_name_list == NULL) {
7184 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
7185 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
7186 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
7187 XtSetArg(args[n], XmNvisibleItemCount, 8); ++n;
7188 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
7189 XtSetArg(args[n], XmNrightOffset, 0); ++n;
7190 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
7191 XtSetArg(args[n], XmNleftOffset, 0); ++n;
7192 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
7193 XtSetArg(args[n], XmNtopOffset, 6); ++n;
7194 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
7195 instance->local_name_list =
7196 XmCreateScrolledList(parent,
7197 "dtb_options_local_name_list_list", args, n);
7199 instance->local_name_list_scrolledwin = XtParent(instance->local_name_list);
7200 if (instance->local_name_list == NULL)
7209 dtb_options_local_name_add_but_create(
7210 DtbOptionsDialogInfo instance,
7214 XmString label_xmstring = NULL;
7216 if (instance->local_name_add_but == NULL) {
7217 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
7218 instance->local_name_add_but =
7219 XtVaCreateWidget("dtb_options_local_name_add_but",
7220 xmPushButtonWidgetClass,
7222 XmNbottomAttachment, XmATTACH_NONE,
7224 XmNrightAttachment, XmATTACH_FORM,
7226 XmNleftAttachment, XmATTACH_FORM,
7228 XmNtopAttachment, XmATTACH_FORM,
7229 XmNrecomputeSize, True,
7230 XmNalignment, XmALIGNMENT_CENTER,
7231 XmNlabelType, XmSTRING,
7232 XmNlabelString, label_xmstring,
7234 XmStringFree(label_xmstring);
7235 label_xmstring = NULL;
7237 if (instance->local_name_add_but == NULL)
7246 dtb_options_local_name_del_but_create(
7247 DtbOptionsDialogInfo instance,
7251 XmString label_xmstring = NULL;
7253 if (instance->local_name_del_but == NULL) {
7254 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
7255 instance->local_name_del_but =
7256 XtVaCreateWidget("dtb_options_local_name_del_but",
7257 xmPushButtonWidgetClass,
7259 XmNbottomAttachment, XmATTACH_NONE,
7261 XmNrightAttachment, XmATTACH_FORM,
7263 XmNleftAttachment, XmATTACH_FORM,
7265 XmNtopAttachment, XmATTACH_WIDGET,
7266 XmNrecomputeSize, True,
7267 XmNalignment, XmALIGNMENT_CENTER,
7268 XmNlabelType, XmSTRING,
7269 XmNlabelString, label_xmstring,
7271 XmStringFree(label_xmstring);
7272 label_xmstring = NULL;
7274 if (instance->local_name_del_but == NULL)
7283 dtb_options_local_name_chg_but_create(
7284 DtbOptionsDialogInfo instance,
7288 XmString label_xmstring = NULL;
7290 if (instance->local_name_chg_but == NULL) {
7291 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
7292 instance->local_name_chg_but =
7293 XtVaCreateWidget("dtb_options_local_name_chg_but",
7294 xmPushButtonWidgetClass,
7296 XmNbottomAttachment, XmATTACH_NONE,
7298 XmNrightAttachment, XmATTACH_FORM,
7300 XmNleftAttachment, XmATTACH_FORM,
7302 XmNtopAttachment, XmATTACH_WIDGET,
7303 XmNrecomputeSize, True,
7304 XmNalignment, XmALIGNMENT_CENTER,
7305 XmNlabelType, XmSTRING,
7306 XmNlabelString, label_xmstring,
7308 XmStringFree(label_xmstring);
7309 label_xmstring = NULL;
7311 if (instance->local_name_chg_but == NULL)
7320 dtb_options_ok_button_create(
7321 DtbOptionsDialogInfo instance,
7325 XmString label_xmstring = NULL;
7327 if (instance->ok_button == NULL) {
7328 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 86, "OK"));
7329 instance->ok_button =
7330 XtVaCreateWidget("dtb_options_ok_button",
7331 xmPushButtonWidgetClass,
7333 XmNbottomAttachment, XmATTACH_NONE,
7335 XmNrightPosition, 19,
7336 XmNrightAttachment, XmATTACH_POSITION,
7339 XmNleftAttachment, XmATTACH_POSITION,
7341 XmNtopAttachment, XmATTACH_FORM,
7342 XmNrecomputeSize, True,
7343 XmNalignment, XmALIGNMENT_CENTER,
7344 XmNlabelType, XmSTRING,
7345 XmNdefaultButtonShadowThickness, 1,
7346 XmNlabelString, label_xmstring,
7348 XmStringFree(label_xmstring);
7349 label_xmstring = NULL;
7351 if (instance->ok_button == NULL)
7360 dtb_options_reset_button_create(
7361 DtbOptionsDialogInfo instance,
7365 XmString label_xmstring = NULL;
7367 if (instance->reset_button == NULL) {
7368 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 87, "Reset"));
7369 instance->reset_button =
7370 XtVaCreateWidget("dtb_options_reset_button",
7371 xmPushButtonWidgetClass,
7373 XmNbottomAttachment, XmATTACH_NONE,
7375 XmNrightPosition, 59,
7376 XmNrightAttachment, XmATTACH_POSITION,
7378 XmNleftPosition, 41,
7379 XmNleftAttachment, XmATTACH_POSITION,
7381 XmNtopAttachment, XmATTACH_FORM,
7382 XmNrecomputeSize, True,
7383 XmNalignment, XmALIGNMENT_CENTER,
7384 XmNlabelType, XmSTRING,
7385 XmNdefaultButtonShadowThickness, 1,
7386 XmNlabelString, label_xmstring,
7388 XmStringFree(label_xmstring);
7389 label_xmstring = NULL;
7391 if (instance->reset_button == NULL)
7400 dtb_options_cancel_button_create(
7401 DtbOptionsDialogInfo instance,
7405 XmString label_xmstring = NULL;
7407 if (instance->cancel_button == NULL) {
7408 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 88, "Cancel"));
7409 instance->cancel_button =
7410 XtVaCreateWidget("dtb_options_cancel_button",
7411 xmPushButtonWidgetClass,
7413 XmNbottomAttachment, XmATTACH_NONE,
7415 XmNrightPosition, 79,
7416 XmNrightAttachment, XmATTACH_POSITION,
7418 XmNleftPosition, 61,
7419 XmNleftAttachment, XmATTACH_POSITION,
7421 XmNtopAttachment, XmATTACH_FORM,
7422 XmNrecomputeSize, True,
7423 XmNalignment, XmALIGNMENT_CENTER,
7424 XmNlabelType, XmSTRING,
7425 XmNdefaultButtonShadowThickness, 1,
7426 XmNlabelString, label_xmstring,
7428 XmStringFree(label_xmstring);
7429 label_xmstring = NULL;
7431 if (instance->cancel_button == NULL)
7440 dtb_options_separator_create(
7441 DtbOptionsDialogInfo instance,
7446 if (instance->separator == NULL) {
7447 instance->separator =
7448 XtVaCreateWidget("dtb_options_separator",
7449 xmSeparatorWidgetClass,
7451 XmNbottomAttachment, XmATTACH_NONE,
7453 XmNrightAttachment, XmATTACH_FORM,
7455 XmNleftAttachment, XmATTACH_FORM,
7457 XmNtopAttachment, XmATTACH_FORM,
7458 XmNseparatorType, XmSHADOW_ETCHED_IN,
7459 XmNorientation, XmHORIZONTAL,
7462 if (instance->separator == NULL)
7471 dtb_options_apply_button_create(
7472 DtbOptionsDialogInfo instance,
7476 XmString label_xmstring = NULL;
7478 if (instance->apply_button == NULL) {
7479 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 89, "Apply"));
7480 instance->apply_button =
7481 XtVaCreateWidget("dtb_options_apply_button",
7482 xmPushButtonWidgetClass,
7484 XmNbottomAttachment, XmATTACH_NONE,
7486 XmNrightPosition, 39,
7487 XmNrightAttachment, XmATTACH_POSITION,
7489 XmNleftPosition, 21,
7490 XmNleftAttachment, XmATTACH_POSITION,
7492 XmNtopAttachment, XmATTACH_FORM,
7493 XmNrecomputeSize, True,
7494 XmNalignment, XmALIGNMENT_CENTER,
7495 XmNlabelType, XmSTRING,
7496 XmNdefaultButtonShadowThickness, 1,
7497 XmNlabelString, label_xmstring,
7499 XmStringFree(label_xmstring);
7500 label_xmstring = NULL;
7502 if (instance->apply_button == NULL)
7511 dtb_options_help_button_create(
7512 DtbOptionsDialogInfo instance,
7516 XmString label_xmstring = NULL;
7518 if (instance->help_button == NULL) {
7519 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 90, "Help"));
7520 instance->help_button =
7521 XtVaCreateWidget("dtb_options_help_button",
7522 xmPushButtonWidgetClass,
7524 XmNbottomAttachment, XmATTACH_NONE,
7526 XmNrightPosition, 98,
7527 XmNrightAttachment, XmATTACH_POSITION,
7529 XmNleftPosition, 81,
7530 XmNleftAttachment, XmATTACH_POSITION,
7532 XmNtopAttachment, XmATTACH_FORM,
7533 XmNrecomputeSize, True,
7534 XmNalignment, XmALIGNMENT_CENTER,
7535 XmNlabelType, XmSTRING,
7536 XmNdefaultButtonShadowThickness, 1,
7537 XmNlabelString, label_xmstring,
7539 XmStringFree(label_xmstring);
7540 label_xmstring = NULL;
7542 if (instance->help_button == NULL)