1 /* $TOG: options_ui.C /main/17 1999/03/25 14:17:16 mgreess $ */
4 * Contains: user module object initialize and create functions
6 * This file was generated by dtcodegen, from module options
8 * ** DO NOT MODIFY BY HAND - ALL MODIFICATIONS WILL BE LOST **
11 * Common Desktop Environment
13 * (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
14 * (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
15 * (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
16 * (c) Copyright 1993, 1994, 1995 Novell, Inc.
17 * (c) Copyright 1995 Digital Equipment Corp.
18 * (c) Copyright 1995 Fujitsu Limited
19 * (c) Copyright 1995 Hitachi, Ltd.
22 * RESTRICTED RIGHTS LEGEND
24 *Use, duplication, or disclosure by the U.S. Government is subject to
25 *restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in
26 *Technical Data and Computer Software clause in DFARS 252.227-7013. Rights
27 *for non-DOD U.S. Government Departments and Agencies are as set forth in
28 *FAR 52.227-19(c)(1,2).
30 *Hewlett-Packard Company, 3000 Hanover Street, Palo Alto, CA 94304 U.S.A.
31 *International Business Machines Corp., Route 100, Somers, NY 10589 U.S.A.
32 *Sun Microsystems, Inc., 2550 Garcia Avenue, Mountain View, CA 94043 U.S.A.
33 *Novell, Inc., 190 River Road, Summit, NJ 07901 U.S.A.
34 *Digital Equipment Corp., 111 Powdermill Road, Maynard, MA 01754, U.S.A.
35 *Fujitsu Limited, 1015, Kamikodanaka Nakahara-Ku, Kawasaki 211, Japan
36 *Hitachi, Ltd., 6, Kanda Surugadai 4-Chome, Chiyoda-ku, Tokyo 101, Japan
41 #include <X11/Intrinsic.h>
42 #include <Xm/DialogS.h>
44 #include <Xm/PanedW.h>
45 #include <Xm/RowColumn.h>
46 #include <Xm/Separator.h>
49 #include <Xm/ToggleB.h>
50 #include <Xm/SSpinB.h>
52 #include <Xm/ScrollBar.h>
53 #include <Xm/ScrolledW.h>
57 #include "dtb_utils.h"
58 #include "dtmailopts.h"
59 #include "options_ui.h"
62 DtbOptionsDialogInfoRec dtb_options_dialog =
64 False /* initialized */
68 * Widget create procedure decls
70 static int dtb_options_dialog_create(
71 DtbOptionsDialogInfo instance,
74 static int dtb_options_dialog_button_panel_create(
75 DtbOptionsDialogInfo instance,
78 static int dtb_options_ctrl_panel_create(
79 DtbOptionsDialogInfo instance,
82 static int dtb_options_layer_create(
83 DtbOptionsDialogInfo instance,
86 static int dtb_options_category_opmenu_create(
87 DtbOptionsDialogInfo instance,
90 static int dtb_options_separator10_create(
91 DtbOptionsDialogInfo instance,
94 static int dtb_options_msg_header_pane_create(
95 DtbOptionsDialogInfo instance,
98 static int dtb_options_msg_view_pane_create(
99 DtbOptionsDialogInfo instance,
102 static int dtb_options_compose_win_pane_create(
103 DtbOptionsDialogInfo instance,
106 static int dtb_options_msg_filing_pane_create(
107 DtbOptionsDialogInfo instance,
110 static int dtb_options_vacation_pane_create(
111 DtbOptionsDialogInfo instance,
114 static int dtb_options_templates_pane_create(
115 DtbOptionsDialogInfo instance,
118 static int dtb_options_aliases_pane_create(
119 DtbOptionsDialogInfo instance,
122 static int dtb_options_advanced_pane_create(
123 DtbOptionsDialogInfo instance,
126 static int dtb_options_separator2_create(
127 DtbOptionsDialogInfo instance,
130 static int dtb_options_checkbox_create(
131 DtbOptionsDialogInfo instance,
134 static int dtb_options_separator4_create(
135 DtbOptionsDialogInfo instance,
138 static int dtb_options_group28_create(
139 DtbOptionsDialogInfo instance,
142 static int dtb_options_group21_create(
143 DtbOptionsDialogInfo instance,
146 static int dtb_options_destroy_del_msg_lbl_create(
147 DtbOptionsDialogInfo instance,
150 static int dtb_options_deleted_msg_cb_create(
151 DtbOptionsDialogInfo instance,
154 static int dtb_options_group_create(
155 DtbOptionsDialogInfo instance,
158 static int dtb_options_group18_create(
159 DtbOptionsDialogInfo instance,
162 static int dtb_options_group19_create(
163 DtbOptionsDialogInfo instance,
166 static int dtb_options_group20_create(
167 DtbOptionsDialogInfo instance,
170 static int dtb_options_mail_check_sb_create(
171 DtbOptionsDialogInfo instance,
174 static int dtb_options_seconds_lbl_create(
175 DtbOptionsDialogInfo instance,
178 static int dtb_options_signal_sb_create(
179 DtbOptionsDialogInfo instance,
182 static int dtb_options_beeps_lbl_create(
183 DtbOptionsDialogInfo instance,
186 static int dtb_options_spinbox2_create(
187 DtbOptionsDialogInfo instance,
190 static int dtb_options_flashes_lbl_create(
191 DtbOptionsDialogInfo instance,
194 static int dtb_options_display_sb_create(
195 DtbOptionsDialogInfo instance,
198 static int dtb_options_headers_lbl_create(
199 DtbOptionsDialogInfo instance,
202 static int dtb_options_separator6_create(
203 DtbOptionsDialogInfo instance,
206 static int dtb_options_abr_header_lbl_create(
207 DtbOptionsDialogInfo instance,
210 static int dtb_options_group8_create(
211 DtbOptionsDialogInfo instance,
214 static int dtb_options_group17_create(
215 DtbOptionsDialogInfo instance,
218 static int dtb_options_group2_create(
219 DtbOptionsDialogInfo instance,
222 static int dtb_options_group22_create(
223 DtbOptionsDialogInfo instance,
226 static int dtb_options_fixed_font_cb_create(
227 DtbOptionsDialogInfo instance,
230 static int dtb_options_display_row_sb_create(
231 DtbOptionsDialogInfo instance,
234 static int dtb_options_rows_lbl_create(
235 DtbOptionsDialogInfo instance,
238 static int dtb_options_characters_wide_sb_create(
239 DtbOptionsDialogInfo instance,
242 static int dtb_options_char_wide_lbl_create(
243 DtbOptionsDialogInfo instance,
246 static int dtb_options_group3_create(
247 DtbOptionsDialogInfo instance,
250 static int dtb_options_fields_hide_create(
251 DtbOptionsDialogInfo instance,
254 static int dtb_options_hidden_fields_list_create(
255 DtbOptionsDialogInfo instance,
258 static int dtb_options_hidden_fields_lbl_create(
259 DtbOptionsDialogInfo instance,
262 static int dtb_options_header_fields_lbl_create(
263 DtbOptionsDialogInfo instance,
266 static int dtb_options_h_field_add_create(
267 DtbOptionsDialogInfo instance,
270 static int dtb_options_h_field_delete_create(
271 DtbOptionsDialogInfo instance,
274 static int dtb_options_h_field_change_create(
275 DtbOptionsDialogInfo instance,
278 static int dtb_options_wrap_checkbox_create(
279 DtbOptionsDialogInfo instance,
282 static int dtb_options_confirm_attachment_create(
283 DtbOptionsDialogInfo instance,
286 static int dtb_options_separator3_create(
287 DtbOptionsDialogInfo instance,
290 static int dtb_options_separator7_create(
291 DtbOptionsDialogInfo instance,
294 static int dtb_options_deadletter_field_create(
295 DtbOptionsDialogInfo instance,
298 static int dtb_options_separator9_create(
299 DtbOptionsDialogInfo instance,
302 static int dtb_options_format_menu_lbl_create(
303 DtbOptionsDialogInfo instance,
306 static int dtb_options_group6_create(
307 DtbOptionsDialogInfo instance,
310 static int dtb_options_group4_create(
311 DtbOptionsDialogInfo instance,
314 static int dtb_options_indent_str_tf_create(
315 DtbOptionsDialogInfo instance,
318 static int dtb_options_group23_create(
319 DtbOptionsDialogInfo instance,
322 static int dtb_options_indent_str_lbl_create(
323 DtbOptionsDialogInfo instance,
326 static int dtb_options_reply_include_lbl_create(
327 DtbOptionsDialogInfo instance,
330 static int dtb_options_group7_create(
331 DtbOptionsDialogInfo instance,
334 static int dtb_options_list_create(
335 DtbOptionsDialogInfo instance,
338 static int dtb_options_menu_labels_lbl_create(
339 DtbOptionsDialogInfo instance,
342 static int dtb_options_hdr_field_create(
343 DtbOptionsDialogInfo instance,
346 static int dtb_options_def_value_field_create(
347 DtbOptionsDialogInfo instance,
350 static int dtb_options_hdr_field_lbl_create(
351 DtbOptionsDialogInfo instance,
354 static int dtb_options_def_value_lbl_create(
355 DtbOptionsDialogInfo instance,
358 static int dtb_options_add_button_create(
359 DtbOptionsDialogInfo instance,
362 static int dtb_options_del_button_create(
363 DtbOptionsDialogInfo instance,
366 static int dtb_options_change_button_create(
367 DtbOptionsDialogInfo instance,
370 static int dtb_options_separator8_create(
371 DtbOptionsDialogInfo instance,
374 static int dtb_options_separator5_create(
375 DtbOptionsDialogInfo instance,
378 static int dtb_options_group25_create(
379 DtbOptionsDialogInfo instance,
382 static int dtb_options_mailb_for_sent_lbl_create(
383 DtbOptionsDialogInfo instance,
386 static int dtb_options_group26_create(
387 DtbOptionsDialogInfo instance,
390 static int dtb_options_group9_create(
391 DtbOptionsDialogInfo instance,
394 static int dtb_options_dpy_up_mbox_cb_create(
395 DtbOptionsDialogInfo instance,
398 static int dtb_options_recent_sb_create(
399 DtbOptionsDialogInfo instance,
402 static int dtb_options_visit_mailb_lbl_create(
403 DtbOptionsDialogInfo instance,
406 static int dtb_options_sent_mail_tf_create(
407 DtbOptionsDialogInfo instance,
410 static int dtb_options_log_cb_create(
411 DtbOptionsDialogInfo instance,
414 static int dtb_options_group24_create(
415 DtbOptionsDialogInfo instance,
418 static int dtb_options_path_file_name_tf_create(
419 DtbOptionsDialogInfo instance,
422 static int dtb_options_mv_menu_lst_create(
423 DtbOptionsDialogInfo instance,
426 static int dtb_options_srt_looking_tf_create(
427 DtbOptionsDialogInfo instance,
430 static int dtb_options_move_menu_lbl_create(
431 DtbOptionsDialogInfo instance,
434 static int dtb_options_move_menu_lbl2_create(
435 DtbOptionsDialogInfo instance,
438 static int dtb_options_path_file_lbl_create(
439 DtbOptionsDialogInfo instance,
442 static int dtb_options_start_look_lbl_create(
443 DtbOptionsDialogInfo instance,
446 static int dtb_options_mm_add_butt_create(
447 DtbOptionsDialogInfo instance,
450 static int dtb_options_mm_delete_butt_create(
451 DtbOptionsDialogInfo instance,
454 static int dtb_options_mm_change_butt_create(
455 DtbOptionsDialogInfo instance,
458 static int dtb_options_vacation_lbl_create(
459 DtbOptionsDialogInfo instance,
462 static int dtb_options_group10_create(
463 DtbOptionsDialogInfo instance,
466 static int dtb_options_vacation_rb_create(
467 DtbOptionsDialogInfo instance,
470 static int dtb_options_vacation_msg_tp_create(
471 DtbOptionsDialogInfo instance,
474 static int dtb_options_subject_tf_create(
475 DtbOptionsDialogInfo instance,
478 static int dtb_options_msg_list_lbl_create(
479 DtbOptionsDialogInfo instance,
482 static int dtb_options_subject_lbl_create(
483 DtbOptionsDialogInfo instance,
486 static int dtb_options_vacation_rb_lbl_create(
487 DtbOptionsDialogInfo instance,
490 static int dtb_options_group13_create(
491 DtbOptionsDialogInfo instance,
494 static int dtb_options_group11_create(
495 DtbOptionsDialogInfo instance,
498 static int dtb_options_menu_label_create(
499 DtbOptionsDialogInfo instance,
502 static int dtb_options_path_filename_label_create(
503 DtbOptionsDialogInfo instance,
506 static int dtb_options_templates_list_create(
507 DtbOptionsDialogInfo instance,
510 static int dtb_options_templates_list_lbl_create(
511 DtbOptionsDialogInfo instance,
514 static int dtb_options_menu_label_lbl_create(
515 DtbOptionsDialogInfo instance,
518 static int dtb_options_path_filename_label_lbl_create(
519 DtbOptionsDialogInfo instance,
522 static int dtb_options_tem_add_but_create(
523 DtbOptionsDialogInfo instance,
526 static int dtb_options_tem_del_but_create(
527 DtbOptionsDialogInfo instance,
530 static int dtb_options_tem_change_but_create(
531 DtbOptionsDialogInfo instance,
534 static int dtb_options_group14_create(
535 DtbOptionsDialogInfo instance,
538 static int dtb_options_group15_create(
539 DtbOptionsDialogInfo instance,
542 static int dtb_options_alias_tf_create(
543 DtbOptionsDialogInfo instance,
546 static int dtb_options_addresses_tf_create(
547 DtbOptionsDialogInfo instance,
550 static int dtb_options_alias_list_create(
551 DtbOptionsDialogInfo instance,
554 static int dtb_options_alias_list_lbl_create(
555 DtbOptionsDialogInfo instance,
558 static int dtb_options_alias_tf_lbl_create(
559 DtbOptionsDialogInfo instance,
562 static int dtb_options_address_tf_lbl_create(
563 DtbOptionsDialogInfo instance,
566 static int dtb_options_alias_add_but_create(
567 DtbOptionsDialogInfo instance,
570 static int dtb_options_alias_delete_but_create(
571 DtbOptionsDialogInfo instance,
574 static int dtb_options_al_change_but_create(
575 DtbOptionsDialogInfo instance,
578 static int dtb_options_update_mbox_scale_create(
579 DtbOptionsDialogInfo instance,
582 static int dtb_options_update_mailb_lbl_create(
583 DtbOptionsDialogInfo instance,
586 static int dtb_options_frequently_lbl_create(
587 DtbOptionsDialogInfo instance,
590 static int dtb_options_seldom_lbl_create(
591 DtbOptionsDialogInfo instance,
594 static int dtb_options_separator11_create(
595 DtbOptionsDialogInfo instance,
598 static int dtb_options_adv_def_cb_create(
599 DtbOptionsDialogInfo instance,
602 static int dtb_options_group12_create(
603 DtbOptionsDialogInfo instance,
606 static int dtb_options_group16_create(
607 DtbOptionsDialogInfo instance,
610 static int dtb_options_local_name_tf_create(
611 DtbOptionsDialogInfo instance,
614 static int dtb_options_local_name_list_create(
615 DtbOptionsDialogInfo instance,
618 static int dtb_options_local_name_add_but_create(
619 DtbOptionsDialogInfo instance,
622 static int dtb_options_local_name_del_but_create(
623 DtbOptionsDialogInfo instance,
626 static int dtb_options_local_name_chg_but_create(
627 DtbOptionsDialogInfo instance,
630 static int dtb_options_ok_button_create(
631 DtbOptionsDialogInfo instance,
634 static int dtb_options_reset_button_create(
635 DtbOptionsDialogInfo instance,
638 static int dtb_options_cancel_button_create(
639 DtbOptionsDialogInfo instance,
642 static int dtb_options_separator_create(
643 DtbOptionsDialogInfo instance,
646 static int dtb_options_apply_button_create(
647 DtbOptionsDialogInfo instance,
650 static int dtb_options_help_button_create(
651 DtbOptionsDialogInfo instance,
656 dtbOptionsDialogInfo_clear(DtbOptionsDialogInfo instance)
658 memset((void *)(instance), 0, sizeof(*instance));
663 dtb_options_dialog_initialize(
664 DtbOptionsDialogInfo instance,
668 if (instance->initialized)
672 instance->initialized = True;
674 dtb_options_dialog_create(instance,
676 dtb_options_dialog_button_panel_create(instance,
677 instance->dialog_panedwin);
678 dtb_options_ctrl_panel_create(instance,
679 instance->dialog_form);
680 dtb_options_layer_create(instance,
681 instance->dialog_form);
682 dtb_options_category_opmenu_create(instance,
683 instance->ctrl_panel);
684 dtb_options_separator10_create(instance,
685 instance->ctrl_panel);
686 dtb_options_msg_header_pane_create(instance,
688 dtb_options_msg_view_pane_create(instance,
690 dtb_options_compose_win_pane_create(instance,
692 dtb_options_msg_filing_pane_create(instance,
694 dtb_options_vacation_pane_create(instance,
696 dtb_options_templates_pane_create(instance,
698 dtb_options_aliases_pane_create(instance,
700 dtb_options_advanced_pane_create(instance,
702 dtb_options_separator2_create(instance,
703 instance->msg_header_pane);
704 dtb_options_checkbox_create(instance,
705 instance->msg_header_pane);
706 dtb_options_separator4_create(instance,
707 instance->msg_header_pane);
708 dtb_options_group28_create(instance,
709 instance->msg_header_pane);
710 dtb_options_group21_create(instance,
711 instance->msg_header_pane);
712 dtb_options_destroy_del_msg_lbl_create(instance,
714 dtb_options_deleted_msg_cb_create(instance,
716 dtb_options_group_create(instance,
718 dtb_options_group18_create(instance,
720 dtb_options_group19_create(instance,
722 dtb_options_group20_create(instance,
724 dtb_options_mail_check_sb_create(instance,
726 dtb_options_seconds_lbl_create(instance,
728 dtb_options_signal_sb_create(instance,
730 dtb_options_beeps_lbl_create(instance,
732 dtb_options_spinbox2_create(instance,
734 dtb_options_flashes_lbl_create(instance,
736 dtb_options_display_sb_create(instance,
738 dtb_options_headers_lbl_create(instance,
740 dtb_options_separator6_create(instance,
741 instance->msg_view_pane);
742 dtb_options_abr_header_lbl_create(instance,
743 instance->msg_view_pane);
744 dtb_options_group8_create(instance,
745 instance->msg_view_pane);
746 dtb_options_group17_create(instance,
747 instance->msg_view_pane);
748 dtb_options_group2_create(instance,
750 dtb_options_group22_create(instance,
752 dtb_options_fixed_font_cb_create(instance,
754 dtb_options_display_row_sb_create(instance,
756 dtb_options_rows_lbl_create(instance,
758 dtb_options_characters_wide_sb_create(instance,
760 dtb_options_char_wide_lbl_create(instance,
762 dtb_options_group3_create(instance,
764 dtb_options_fields_hide_create(instance,
766 dtb_options_hidden_fields_list_create(instance,
768 dtb_options_hidden_fields_lbl_create(instance,
770 dtb_options_header_fields_lbl_create(instance,
772 dtb_options_h_field_add_create(instance,
774 dtb_options_h_field_delete_create(instance,
776 dtb_options_h_field_change_create(instance,
778 dtb_options_wrap_checkbox_create(instance,
779 instance->compose_win_pane);
780 dtb_options_confirm_attachment_create(instance,
781 instance->compose_win_pane);
782 dtb_options_separator3_create(instance,
783 instance->compose_win_pane);
784 dtb_options_separator7_create(instance,
785 instance->compose_win_pane);
786 dtb_options_deadletter_field_create(instance,
787 instance->compose_win_pane);
788 dtb_options_separator9_create(instance,
789 instance->compose_win_pane);
790 dtb_options_format_menu_lbl_create(instance,
791 instance->compose_win_pane);
792 dtb_options_group6_create(instance,
793 instance->compose_win_pane);
794 dtb_options_group4_create(instance,
795 instance->compose_win_pane);
796 dtb_options_indent_str_tf_create(instance,
798 dtb_options_group23_create(instance,
800 dtb_options_indent_str_lbl_create(instance,
802 dtb_options_reply_include_lbl_create(instance,
804 dtb_options_group7_create(instance,
806 dtb_options_list_create(instance,
808 dtb_options_menu_labels_lbl_create(instance,
810 dtb_options_hdr_field_create(instance,
812 dtb_options_def_value_field_create(instance,
814 dtb_options_hdr_field_lbl_create(instance,
816 dtb_options_def_value_lbl_create(instance,
818 dtb_options_add_button_create(instance,
820 dtb_options_del_button_create(instance,
822 dtb_options_change_button_create(instance,
824 dtb_options_separator8_create(instance,
825 instance->msg_filing_pane);
826 dtb_options_separator5_create(instance,
827 instance->msg_filing_pane);
828 dtb_options_group25_create(instance,
829 instance->msg_filing_pane);
830 dtb_options_mailb_for_sent_lbl_create(instance,
831 instance->msg_filing_pane);
832 dtb_options_group26_create(instance,
833 instance->msg_filing_pane);
834 dtb_options_group9_create(instance,
835 instance->msg_filing_pane);
836 dtb_options_dpy_up_mbox_cb_create(instance,
838 dtb_options_recent_sb_create(instance,
840 dtb_options_visit_mailb_lbl_create(instance,
842 dtb_options_sent_mail_tf_create(instance,
844 dtb_options_log_cb_create(instance,
846 dtb_options_group24_create(instance,
848 dtb_options_path_file_name_tf_create(instance,
850 dtb_options_mv_menu_lst_create(instance,
852 dtb_options_srt_looking_tf_create(instance,
854 dtb_options_move_menu_lbl_create(instance,
856 dtb_options_move_menu_lbl2_create(instance,
858 dtb_options_path_file_lbl_create(instance,
860 dtb_options_start_look_lbl_create(instance,
862 dtb_options_mm_add_butt_create(instance,
864 dtb_options_mm_delete_butt_create(instance,
866 dtb_options_mm_change_butt_create(instance,
868 dtb_options_vacation_lbl_create(instance,
869 instance->vacation_pane);
870 dtb_options_group10_create(instance,
871 instance->vacation_pane);
872 dtb_options_vacation_rb_create(instance,
874 dtb_options_vacation_msg_tp_create(instance,
876 dtb_options_subject_tf_create(instance,
878 dtb_options_msg_list_lbl_create(instance,
880 dtb_options_subject_lbl_create(instance,
882 dtb_options_vacation_rb_lbl_create(instance,
884 dtb_options_group13_create(instance,
885 instance->templates_pane);
886 dtb_options_group11_create(instance,
888 dtb_options_menu_label_create(instance,
890 dtb_options_path_filename_label_create(instance,
892 dtb_options_templates_list_create(instance,
894 dtb_options_templates_list_lbl_create(instance,
896 dtb_options_menu_label_lbl_create(instance,
898 dtb_options_path_filename_label_lbl_create(instance,
900 dtb_options_tem_add_but_create(instance,
902 dtb_options_tem_del_but_create(instance,
904 dtb_options_tem_change_but_create(instance,
906 dtb_options_group14_create(instance,
907 instance->aliases_pane);
908 dtb_options_group15_create(instance,
910 dtb_options_alias_tf_create(instance,
912 dtb_options_addresses_tf_create(instance,
914 dtb_options_alias_list_create(instance,
916 dtb_options_alias_list_lbl_create(instance,
918 dtb_options_alias_tf_lbl_create(instance,
920 dtb_options_address_tf_lbl_create(instance,
922 dtb_options_alias_add_but_create(instance,
924 dtb_options_alias_delete_but_create(instance,
926 dtb_options_al_change_but_create(instance,
928 dtb_options_update_mbox_scale_create(instance,
929 instance->advanced_pane);
930 dtb_options_update_mailb_lbl_create(instance,
931 instance->advanced_pane);
932 dtb_options_frequently_lbl_create(instance,
933 instance->advanced_pane);
934 dtb_options_seldom_lbl_create(instance,
935 instance->advanced_pane);
936 dtb_options_separator11_create(instance,
937 instance->advanced_pane);
938 dtb_options_adv_def_cb_create(instance,
939 instance->advanced_pane);
940 dtb_options_group12_create(instance,
941 instance->advanced_pane);
942 dtb_options_group16_create(instance,
944 dtb_options_local_name_tf_create(instance,
946 dtb_options_local_name_list_create(instance,
948 dtb_options_local_name_add_but_create(instance,
950 dtb_options_local_name_del_but_create(instance,
952 dtb_options_local_name_chg_but_create(instance,
954 dtb_options_ok_button_create(instance,
955 instance->dialog_button_panel);
956 dtb_options_reset_button_create(instance,
957 instance->dialog_button_panel);
958 dtb_options_cancel_button_create(instance,
959 instance->dialog_button_panel);
960 dtb_options_separator_create(instance,
961 instance->dialog_button_panel);
962 dtb_options_apply_button_create(instance,
963 instance->dialog_button_panel);
964 dtb_options_help_button_create(instance,
965 instance->dialog_button_panel);
968 * Add widget-reference resources.
971 XtVaSetValues(instance->dialog_shellform,
972 XmNdefaultButton, instance->ok_button,
975 XtVaSetValues(instance->layer,
976 XmNtopWidget, instance->ctrl_panel,
979 XtVaSetValues(instance->separator10,
980 XmNtopWidget, instance->category_opmenu_rowcolumn,
983 XtVaSetValues(instance->separator2,
984 XmNtopWidget, instance->group21,
987 XtVaSetValues(instance->checkbox,
988 XmNtopWidget, instance->separator2,
991 XtVaSetValues(instance->separator4,
992 XmNtopWidget, instance->checkbox,
995 XtVaSetValues(instance->group28,
996 XmNtopWidget, instance->separator4,
999 XtVaSetValues(instance->deleted_msg_cb,
1000 XmNtopWidget, instance->destroy_del_msg_lbl,
1003 XtVaSetValues(instance->seconds_lbl,
1004 XmNleftWidget, instance->mail_check_sb_rowcolumn,
1007 XtVaSetValues(instance->beeps_lbl,
1008 XmNleftWidget, instance->signal_sb_rowcolumn,
1011 XtVaSetValues(instance->flashes_lbl,
1012 XmNleftWidget, instance->spinbox2_rowcolumn,
1015 XtVaSetValues(instance->headers_lbl,
1016 XmNleftWidget, instance->display_sb_rowcolumn,
1019 XtVaSetValues(instance->separator6,
1020 XmNtopWidget, instance->group8,
1023 XtVaSetValues(instance->abr_header_lbl,
1024 XmNtopWidget, instance->separator6,
1027 XtVaSetValues(instance->group17,
1028 XmNtopWidget, instance->abr_header_lbl,
1031 XtVaSetValues(instance->rows_lbl,
1032 XmNleftWidget, instance->display_row_sb_rowcolumn,
1035 XtVaSetValues(instance->char_wide_lbl,
1036 XmNleftWidget, instance->characters_wide_sb_rowcolumn,
1039 XtVaSetValues(instance->group3,
1040 XmNleftWidget, instance->hidden_fields_list_scrolledwin,
1041 XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1044 XtVaSetValues(instance->hidden_fields_list_scrolledwin,
1045 XmNrightWidget, instance->fields_hide,
1046 XmNtopWidget, instance->fields_hide,
1049 XtVaSetValues(instance->hidden_fields_lbl,
1050 XmNtopWidget, instance->hidden_fields_list_scrolledwin,
1053 XtVaSetValues(instance->h_field_delete,
1054 XmNtopWidget, instance->h_field_add,
1057 XtVaSetValues(instance->h_field_change,
1058 XmNtopWidget, instance->h_field_delete,
1061 XtVaSetValues(instance->separator7,
1062 XmNtopWidget, instance->group6,
1065 XtVaSetValues(instance->deadletter_field_rowcolumn,
1066 XmNtopWidget, instance->separator7,
1069 XtVaSetValues(instance->separator9,
1070 XmNtopWidget, instance->deadletter_field_rowcolumn,
1073 XtVaSetValues(instance->format_menu_lbl,
1074 XmNtopWidget, instance->separator9,
1077 XtVaSetValues(instance->confirm_attachment,
1078 XmNtopWidget, instance->wrap_checkbox,
1081 XtVaSetValues(instance->separator3,
1082 XmNtopWidget, instance->confirm_attachment,
1085 XtVaSetValues(instance->group6,
1086 XmNtopWidget, instance->separator3,
1089 XtVaSetValues(instance->group4,
1090 XmNtopWidget, instance->format_menu_lbl,
1093 XtVaSetValues(instance->indent_str_tf,
1094 XmNleftWidget, instance->group23,
1097 XtVaSetValues(instance->group7,
1098 XmNleftWidget, instance->list_scrolledwin,
1099 XmNtopWidget, instance->list_scrolledwin,
1102 XtVaSetValues(instance->list_scrolledwin,
1103 XmNrightWidget, instance->def_value_field,
1104 XmNtopWidget, instance->def_value_field,
1107 XtVaSetValues(instance->menu_labels_lbl,
1108 XmNtopWidget, instance->list_scrolledwin,
1111 XtVaSetValues(instance->def_value_field,
1112 XmNtopWidget, instance->hdr_field,
1115 XtVaSetValues(instance->hdr_field_lbl,
1116 XmNbottomWidget, instance->hdr_field,
1117 XmNtopWidget, instance->hdr_field,
1120 XtVaSetValues(instance->def_value_lbl,
1121 XmNbottomWidget, instance->def_value_field,
1122 XmNtopWidget, instance->def_value_field,
1125 XtVaSetValues(instance->del_button,
1126 XmNtopWidget, instance->add_button,
1129 XtVaSetValues(instance->change_button,
1130 XmNtopWidget, instance->del_button,
1133 XtVaSetValues(instance->separator8,
1134 XmNtopWidget, instance->group25,
1137 XtVaSetValues(instance->separator5,
1138 XmNtopWidget, instance->group9,
1141 XtVaSetValues(instance->group25,
1142 XmNtopWidget, instance->separator5,
1145 XtVaSetValues(instance->mailb_for_sent_lbl,
1146 XmNtopWidget, instance->separator8,
1149 XtVaSetValues(instance->group26,
1150 XmNtopWidget, instance->mailb_for_sent_lbl,
1153 XtVaSetValues(instance->group24,
1154 XmNleftWidget, instance->mv_menu_lst_scrolledwin,
1155 XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1158 XtVaSetValues(instance->mv_menu_lst_scrolledwin,
1159 XmNrightWidget, instance->path_file_name_tf,
1160 XmNtopWidget, instance->path_file_name_tf,
1163 XtVaSetValues(instance->srt_looking_tf,
1164 XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1167 XtVaSetValues(instance->move_menu_lbl,
1168 XmNtopWidget, instance->mv_menu_lst_scrolledwin,
1171 XtVaSetValues(instance->move_menu_lbl2,
1172 XmNtopWidget, instance->move_menu_lbl,
1175 XtVaSetValues(instance->path_file_lbl,
1176 XmNbottomWidget, instance->path_file_name_tf,
1177 XmNtopWidget, instance->path_file_name_tf,
1180 XtVaSetValues(instance->start_look_lbl,
1181 XmNbottomWidget, instance->srt_looking_tf,
1182 XmNtopWidget, instance->srt_looking_tf,
1185 XtVaSetValues(instance->mm_delete_butt,
1186 XmNtopWidget, instance->mm_add_butt,
1189 XtVaSetValues(instance->mm_change_butt,
1190 XmNtopWidget, instance->mm_delete_butt,
1193 XtVaSetValues(instance->group10,
1194 XmNtopWidget, instance->vacation_lbl,
1197 XtVaSetValues(instance->vacation_msg_tp_scrolledwin,
1198 XmNtopWidget, instance->subject_tf,
1201 XtVaSetValues(instance->subject_tf,
1202 XmNtopWidget, instance->vacation_rb,
1205 XtVaSetValues(instance->msg_list_lbl,
1206 XmNtopWidget, instance->vacation_msg_tp_scrolledwin,
1209 XtVaSetValues(instance->subject_lbl,
1210 XmNbottomWidget, instance->subject_tf,
1211 XmNtopWidget, instance->subject_tf,
1214 XtVaSetValues(instance->vacation_rb_lbl,
1215 XmNbottomWidget, instance->vacation_rb,
1216 XmNtopWidget, instance->vacation_rb,
1219 XtVaSetValues(instance->group11,
1220 XmNleftWidget, instance->templates_list_scrolledwin,
1221 XmNtopWidget, instance->templates_list_scrolledwin,
1224 XtVaSetValues(instance->path_filename_label,
1225 XmNtopWidget, instance->menu_label,
1228 XtVaSetValues(instance->templates_list_scrolledwin,
1229 XmNrightWidget, instance->path_filename_label,
1230 XmNtopWidget, instance->path_filename_label,
1233 XtVaSetValues(instance->templates_list_lbl,
1234 XmNtopWidget, instance->templates_list_scrolledwin,
1237 XtVaSetValues(instance->menu_label_lbl,
1238 XmNbottomWidget, instance->menu_label,
1239 XmNtopWidget, instance->menu_label,
1242 XtVaSetValues(instance->path_filename_label_lbl,
1243 XmNbottomWidget, instance->path_filename_label,
1244 XmNtopWidget, instance->path_filename_label,
1247 XtVaSetValues(instance->tem_del_but,
1248 XmNtopWidget, instance->tem_add_but,
1251 XtVaSetValues(instance->tem_change_but,
1252 XmNtopWidget, instance->tem_del_but,
1255 XtVaSetValues(instance->group15,
1256 XmNleftWidget, instance->alias_list_scrolledwin,
1257 XmNtopWidget, instance->alias_list_scrolledwin,
1260 XtVaSetValues(instance->addresses_tf,
1261 XmNtopWidget, instance->alias_tf,
1264 XtVaSetValues(instance->alias_list_scrolledwin,
1265 XmNrightWidget, instance->addresses_tf,
1266 XmNtopWidget, instance->addresses_tf,
1269 XtVaSetValues(instance->alias_list_lbl,
1270 XmNtopWidget, instance->alias_list_scrolledwin,
1273 XtVaSetValues(instance->alias_tf_lbl,
1274 XmNbottomWidget, instance->alias_tf,
1275 XmNtopWidget, instance->alias_tf,
1278 XtVaSetValues(instance->address_tf_lbl,
1279 XmNbottomWidget, instance->addresses_tf,
1280 XmNtopWidget, instance->addresses_tf,
1283 XtVaSetValues(instance->alias_delete_but,
1284 XmNtopWidget, instance->alias_add_but,
1287 XtVaSetValues(instance->al_change_but,
1288 XmNtopWidget, instance->alias_delete_but,
1291 XtVaSetValues(instance->update_mbox_scale,
1292 XmNtopWidget, instance->update_mailb_lbl,
1295 XtVaSetValues(instance->frequently_lbl,
1296 XmNleftWidget, instance->update_mbox_scale,
1297 XmNtopWidget, instance->update_mbox_scale,
1300 XtVaSetValues(instance->seldom_lbl,
1301 XmNrightWidget, instance->update_mbox_scale,
1302 XmNtopWidget, instance->update_mbox_scale,
1305 XtVaSetValues(instance->separator11,
1306 XmNtopWidget, instance->seldom_lbl,
1309 XtVaSetValues(instance->adv_def_cb_rowcolumn,
1310 XmNtopWidget, instance->separator11,
1313 XtVaSetValues(instance->group12,
1314 XmNtopWidget, instance->adv_def_cb_rowcolumn,
1317 XtVaSetValues(instance->group16,
1318 XmNleftWidget, instance->local_name_list_scrolledwin,
1319 XmNtopWidget, instance->local_name_list_scrolledwin,
1322 XtVaSetValues(instance->local_name_list_scrolledwin,
1323 XmNrightWidget, instance->local_name_tf,
1324 XmNtopWidget, instance->local_name_tf,
1327 XtVaSetValues(instance->local_name_del_but,
1328 XmNtopWidget, instance->local_name_add_but,
1331 XtVaSetValues(instance->local_name_chg_but,
1332 XmNtopWidget, instance->local_name_del_but,
1336 * Call utility functions to do group layout
1339 dtb_children_align(instance->group21,
1345 dtb_children_align(instance->group8,
1351 dtb_children_align(instance->group23,
1356 dtb_children_align(instance->group25,
1362 XtVaSetValues(instance->visit_mailb_lbl, XmNtopOffset, 6, NULL);
1364 dtb_children_align(instance->group26,
1370 XtManageChild(instance->category_opmenu_label);
1371 XtManageChild(instance->category_opmenu);
1372 XtManageChild(instance->category_opmenu_rowcolumn);
1373 XtManageChild(instance->separator10);
1374 XtManageChild(instance->ctrl_panel);
1375 XtManageChild(instance->separator2);
1376 XtManageChild(instance->checkbox);
1377 XtManageChild(instance->separator4);
1378 XtManageChild(instance->destroy_del_msg_lbl);
1379 XtManageChild(instance->deleted_msg_cb);
1380 XtManageChild(instance->group28);
1381 XtManageChild(instance->mail_check_sb_label);
1382 XtManageChild(instance->mail_check_sb);
1383 XtManageChild(instance->mail_check_sb_rowcolumn);
1384 XtManageChild(instance->seconds_lbl);
1385 XtManageChild(instance->group);
1386 XtManageChild(instance->signal_sb_label);
1387 XtManageChild(instance->signal_sb);
1388 XtManageChild(instance->signal_sb_rowcolumn);
1389 XtManageChild(instance->beeps_lbl);
1390 XtManageChild(instance->group18);
1391 XtManageChild(instance->spinbox2_label);
1392 XtManageChild(instance->spinbox2);
1393 XtManageChild(instance->spinbox2_rowcolumn);
1394 XtManageChild(instance->flashes_lbl);
1395 XtManageChild(instance->group19);
1396 XtManageChild(instance->display_sb_label);
1397 XtManageChild(instance->display_sb);
1398 XtManageChild(instance->display_sb_rowcolumn);
1399 XtManageChild(instance->headers_lbl);
1400 XtManageChild(instance->group20);
1401 XtManageChild(instance->group21);
1402 XtManageChild(instance->msg_header_pane);
1403 XtManageChild(instance->separator6);
1404 XtManageChild(instance->abr_header_lbl);
1405 XtManageChild(instance->display_row_sb_label);
1406 XtManageChild(instance->display_row_sb);
1407 XtManageChild(instance->display_row_sb_rowcolumn);
1408 XtManageChild(instance->rows_lbl);
1409 XtManageChild(instance->group2);
1410 XtManageChild(instance->characters_wide_sb_label);
1411 XtManageChild(instance->characters_wide_sb);
1412 XtManageChild(instance->characters_wide_sb_rowcolumn);
1413 XtManageChild(instance->char_wide_lbl);
1414 XtManageChild(instance->group22);
1415 XtManageChild(instance->fixed_font_cb);
1416 XtManageChild(instance->group8);
1417 XtManageChild(instance->h_field_add);
1418 XtManageChild(instance->h_field_delete);
1419 XtManageChild(instance->h_field_change);
1420 XtManageChild(instance->group3);
1421 XtManageChild(instance->fields_hide);
1422 XtManageChild(instance->hidden_fields_list);
1423 XtManageChild(instance->hidden_fields_list_scrolledwin);
1424 XtManageChild(instance->hidden_fields_lbl);
1425 XtManageChild(instance->header_fields_lbl);
1426 XtManageChild(instance->group17);
1427 XtManageChild(instance->wrap_checkbox);
1428 XtManageChild(instance->confirm_attachment);
1429 XtManageChild(instance->separator3);
1430 XtManageChild(instance->separator7);
1431 XtManageChild(instance->deadletter_field_label);
1432 XtManageChild(instance->deadletter_field);
1433 XtManageChild(instance->deadletter_field_rowcolumn);
1434 XtManageChild(instance->separator9);
1435 XtManageChild(instance->format_menu_lbl);
1436 XtManageChild(instance->indent_str_tf);
1437 XtManageChild(instance->indent_str_lbl);
1438 XtManageChild(instance->reply_include_lbl);
1439 XtManageChild(instance->group23);
1440 XtManageChild(instance->group6);
1441 XtManageChild(instance->add_button);
1442 XtManageChild(instance->del_button);
1443 XtManageChild(instance->change_button);
1444 XtManageChild(instance->group7);
1445 XtManageChild(instance->list);
1446 XtManageChild(instance->list_scrolledwin);
1447 XtManageChild(instance->menu_labels_lbl);
1448 XtManageChild(instance->hdr_field);
1449 XtManageChild(instance->def_value_field);
1450 XtManageChild(instance->hdr_field_lbl);
1451 XtManageChild(instance->def_value_lbl);
1452 XtManageChild(instance->group4);
1453 XtManageChild(instance->separator8);
1454 XtManageChild(instance->separator5);
1455 XtManageChild(instance->dpy_up_mbox_cb);
1456 XtManageChild(instance->recent_sb);
1457 XtManageChild(instance->visit_mailb_lbl);
1458 XtManageChild(instance->group25);
1459 XtManageChild(instance->mailb_for_sent_lbl);
1460 XtManageChild(instance->sent_mail_tf);
1461 XtManageChild(instance->log_cb);
1462 XtManageChild(instance->group26);
1463 XtManageChild(instance->mm_add_butt);
1464 XtManageChild(instance->mm_delete_butt);
1465 XtManageChild(instance->mm_change_butt);
1466 XtManageChild(instance->group24);
1467 XtManageChild(instance->path_file_name_tf);
1468 XtManageChild(instance->mv_menu_lst);
1469 XtManageChild(instance->mv_menu_lst_scrolledwin);
1470 XtManageChild(instance->srt_looking_tf);
1471 XtManageChild(instance->move_menu_lbl);
1472 XtManageChild(instance->move_menu_lbl2);
1473 XtManageChild(instance->path_file_lbl);
1474 XtManageChild(instance->start_look_lbl);
1475 XtManageChild(instance->group9);
1476 XtManageChild(instance->vacation_lbl);
1477 XtManageChild(instance->vacation_rb);
1478 XtManageChild(instance->vacation_msg_tp);
1479 XtManageChild(instance->vacation_msg_tp_scrolledwin);
1480 XtManageChild(instance->subject_tf);
1481 XtManageChild(instance->msg_list_lbl);
1482 XtManageChild(instance->subject_lbl);
1483 XtManageChild(instance->vacation_rb_lbl);
1484 XtManageChild(instance->group10);
1485 XtManageChild(instance->tem_add_but);
1486 XtManageChild(instance->tem_del_but);
1487 XtManageChild(instance->tem_change_but);
1488 XtManageChild(instance->group11);
1489 XtManageChild(instance->menu_label);
1490 XtManageChild(instance->path_filename_label);
1491 XtManageChild(instance->templates_list);
1492 XtManageChild(instance->templates_list_scrolledwin);
1493 XtManageChild(instance->templates_list_lbl);
1494 XtManageChild(instance->menu_label_lbl);
1495 XtManageChild(instance->path_filename_label_lbl);
1496 XtManageChild(instance->group13);
1497 XtManageChild(instance->alias_add_but);
1498 XtManageChild(instance->alias_delete_but);
1499 XtManageChild(instance->al_change_but);
1500 XtManageChild(instance->group15);
1501 XtManageChild(instance->alias_tf);
1502 XtManageChild(instance->addresses_tf);
1503 XtManageChild(instance->alias_list);
1504 XtManageChild(instance->alias_list_scrolledwin);
1505 XtManageChild(instance->alias_list_lbl);
1506 XtManageChild(instance->alias_tf_lbl);
1507 XtManageChild(instance->address_tf_lbl);
1508 XtManageChild(instance->group14);
1509 XtManageChild(instance->update_mbox_scale);
1510 XtManageChild(instance->update_mailb_lbl);
1511 XtManageChild(instance->frequently_lbl);
1512 XtManageChild(instance->seldom_lbl);
1513 XtManageChild(instance->separator11);
1514 XtManageChild(instance->adv_def_cb_label);
1515 XtManageChild(instance->adv_def_cb);
1516 XtManageChild(instance->adv_def_cb_rowcolumn);
1517 XtManageChild(instance->local_name_add_but);
1518 XtManageChild(instance->local_name_del_but);
1519 XtManageChild(instance->local_name_chg_but);
1520 XtManageChild(instance->group16);
1521 XtManageChild(instance->local_name_tf);
1522 XtManageChild(instance->local_name_list);
1523 XtManageChild(instance->local_name_list_scrolledwin);
1524 XtManageChild(instance->group12);
1525 XtManageChild(instance->layer);
1526 XtManageChild(instance->dialog_form);
1527 XtManageChild(instance->ok_button);
1528 XtManageChild(instance->reset_button);
1529 XtManageChild(instance->cancel_button);
1530 XtManageChild(instance->separator);
1531 XtManageChild(instance->apply_button);
1532 XtManageChild(instance->help_button);
1533 XtManageChild(instance->dialog_button_panel);
1534 XtManageChild(instance->dialog_panedwin);
1537 * Add User and Connection callbacks
1539 XtAddCallback(instance->category_opmenu_items.Message_Header_List_item,
1540 XmNactivateCallback, message_header_listCB,
1541 (XtPointer)&(*instance));
1542 XtAddCallback(instance->category_opmenu_items.Message_View_item,
1543 XmNactivateCallback, message_viewCB,
1544 (XtPointer)&(*instance));
1545 XtAddCallback(instance->category_opmenu_items.Compose_Window_item,
1546 XmNactivateCallback, compose_windowCB,
1547 (XtPointer)&(*instance));
1548 XtAddCallback(instance->category_opmenu_items.Message_Filing_item,
1549 XmNactivateCallback, message_filingCB,
1550 (XtPointer)&(*instance));
1551 XtAddCallback(instance->category_opmenu_items.Vacation_item,
1552 XmNactivateCallback, vacationCB,
1553 (XtPointer)&(*instance));
1554 XtAddCallback(instance->category_opmenu_items.Templates_item,
1555 XmNactivateCallback, templatesCB,
1556 (XtPointer)&(*instance));
1557 XtAddCallback(instance->category_opmenu_items.Aliases_item,
1558 XmNactivateCallback, aliasesCB,
1559 (XtPointer)&(*instance));
1560 XtAddCallback(instance->category_opmenu_items.Advanced_item,
1561 XmNactivateCallback, advancedCB,
1562 (XtPointer)&(*instance));
1563 XtAddCallback(instance->category_opmenu_items.Printing_item,
1564 XmNactivateCallback, printingCB,
1565 (XtPointer)&(*instance));
1566 XtAddCallback(instance->category_opmenu_items.MailRetrieval_item,
1567 XmNactivateCallback, mailretrievalCB,
1568 (XtPointer)&(*instance));
1569 XtAddCallback(instance->vacation_rb_items.On_item,
1570 XmNvalueChangedCallback, vacationOnCB,
1571 (XtPointer)&(*instance));
1572 XtAddCallback(instance->vacation_rb_items.Off_item,
1573 XmNvalueChangedCallback, vacationOffCB,
1574 (XtPointer)&(*instance));
1575 XtAddCallback(instance->alias_add_but,
1576 XmNactivateCallback, alias_addCB,
1577 (XtPointer)&(*instance));
1578 XtAddCallback(instance->alias_delete_but,
1579 XmNactivateCallback, alias_delCB,
1580 (XtPointer)&(*instance));
1581 XtAddCallback(instance->al_change_but,
1582 XmNactivateCallback, alias_changeCB,
1583 (XtPointer)&(*instance));
1584 XtAddCallback(instance->ok_button,
1585 XmNactivateCallback, opt_pane_okCB,
1586 (XtPointer)&(*instance));
1587 XtAddCallback(instance->reset_button,
1588 XmNactivateCallback, opt_dlog_resetCB,
1589 (XtPointer)&(*instance));
1590 XtAddCallback(instance->cancel_button,
1591 XmNactivateCallback, opt_dlog_cancelCB,
1592 (XtPointer)&(*instance));
1593 XtAddCallback(instance->apply_button,
1594 XmNactivateCallback, options_applyCB,
1595 (XtPointer)&(*instance));
1596 XtAddCallback(instance->help_button,
1597 XmNactivateCallback, opt_dlog_HelpCB,
1598 (XtPointer)&(*instance));
1605 dtb_options_dialog_create(
1606 DtbOptionsDialogInfo instance,
1610 XmString label_xmstring = NULL;
1611 Display *display= (parent == NULL? NULL:XtDisplay(parent));
1612 Arg args[8]; /* need 3 args (add 5 to be safe) */
1615 if (instance->dialog == NULL) {
1617 XtSetArg(args[n], XmNallowShellResize, True); ++n;
1618 XtSetArg(args[n], XmNtitle, GETMSG(Dtb_project_catd, 2, 1, "Mailer - Mail Options")); ++n;
1619 XtSetArg(args[n], XmNbackground, dtb_cvt_string_to_pixel(parent, "white")); ++n;
1621 XmCreateDialogShell(parent,
1622 "dtb_options_dialog", args, n);
1624 if (instance->dialog == NULL)
1627 if (instance->dialog_shellform == NULL) {
1628 instance->dialog_shellform =
1629 XtVaCreateWidget("dtb_options_dialog_shellform",
1633 XmNdefaultPosition, False,
1636 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog, "white"),
1639 if (instance->dialog_shellform == NULL)
1642 if (instance->dialog_panedwin == NULL) {
1643 instance->dialog_panedwin =
1644 XtVaCreateWidget("dtb_options_dialog_panedwin",
1645 xmPanedWindowWidgetClass,
1646 instance->dialog_shellform,
1648 XmNbottomPosition, 100,
1649 XmNbottomAttachment, XmATTACH_POSITION,
1651 XmNrightPosition, 100,
1652 XmNrightAttachment, XmATTACH_POSITION,
1655 XmNleftAttachment, XmATTACH_POSITION,
1658 XmNtopAttachment, XmATTACH_POSITION,
1664 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_shellform, "white"),
1667 if (instance->dialog_panedwin == NULL)
1670 if (instance->dialog_form == NULL) {
1671 instance->dialog_form =
1672 XtVaCreateWidget("dtb_options_dialog_form",
1674 instance->dialog_panedwin,
1675 XmNallowResize, True,
1678 XmNresizePolicy, XmRESIZE_ANY,
1679 XmNbackground, dtb_cvt_string_to_pixel(instance->dialog_panedwin, "white"),
1682 if (instance->dialog_form == NULL)
1691 dtb_options_dialog_button_panel_create(
1692 DtbOptionsDialogInfo instance,
1697 if (instance->dialog_button_panel == NULL) {
1698 instance->dialog_button_panel =
1699 XtVaCreateWidget("dtb_options_dialog_button_panel",
1702 XmNresizePolicy, XmRESIZE_GROW,
1705 XmNpositionIndex, 1,
1708 if (instance->dialog_button_panel == NULL)
1717 dtb_options_ctrl_panel_create(
1718 DtbOptionsDialogInfo instance,
1723 if (instance->ctrl_panel == NULL) {
1724 instance->ctrl_panel =
1725 XtVaCreateWidget("dtb_options_ctrl_panel",
1728 XmNbottomAttachment, XmATTACH_NONE,
1730 XmNrightAttachment, XmATTACH_FORM,
1732 XmNleftAttachment, XmATTACH_FORM,
1734 XmNtopAttachment, XmATTACH_FORM,
1735 XmNresizePolicy, XmRESIZE_ANY,
1740 if (instance->ctrl_panel == NULL)
1749 dtb_options_layer_create(
1750 DtbOptionsDialogInfo instance,
1755 if (instance->layer == NULL) {
1757 XtVaCreateWidget("dtb_options_layer",
1761 XmNbottomAttachment, XmATTACH_FORM,
1763 XmNrightAttachment, XmATTACH_FORM,
1765 XmNleftAttachment, XmATTACH_FORM,
1767 XmNtopAttachment, XmATTACH_WIDGET,
1768 XmNresizePolicy, XmRESIZE_ANY,
1771 if (instance->layer == NULL)
1780 dtb_options_category_opmenu_create(
1781 DtbOptionsDialogInfo instance,
1785 XmString label_xmstring = NULL;
1786 Arg args[22]; /* need 17 args (add 5 to be safe) */
1788 Widget category_opmenu_menu_items[8];
1790 if (instance->category_opmenu_rowcolumn == NULL) {
1791 instance->category_opmenu_rowcolumn =
1792 XtVaCreateWidget("dtb_options_category_opmenu",
1793 xmRowColumnWidgetClass,
1795 XmNbottomAttachment, XmATTACH_NONE,
1796 XmNrightAttachment, XmATTACH_NONE,
1798 XmNleftPosition, 50,
1799 XmNleftAttachment, XmATTACH_POSITION,
1801 XmNtopAttachment, XmATTACH_FORM,
1803 XmNpacking, XmPACK_TIGHT,
1804 XmNisHomogeneous, False,
1805 XmNadjustLast, True,
1808 XmNentryAlignment, XmALIGNMENT_END,
1809 XmNorientation, XmHORIZONTAL,
1812 if (instance->category_opmenu_rowcolumn == NULL)
1815 if (instance->category_opmenu_menu == NULL) {
1817 XtSetArg(args[n], XmNrowColumnType, XmMENU_PULLDOWN); ++n;
1818 instance->category_opmenu_menu =
1819 XmCreatePulldownMenu(instance->category_opmenu_rowcolumn,
1820 "dtb_options_category_opmenu_menu", args, n);
1822 if (instance->category_opmenu_menu == NULL)
1825 if (instance->category_opmenu_label == NULL) {
1826 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 2, "Category:"));
1827 instance->category_opmenu_label =
1828 XtVaCreateWidget("dtb_options_category_opmenu_label",
1830 instance->category_opmenu_rowcolumn,
1831 XmNlabelType, XmSTRING,
1832 XmNlabelString, label_xmstring,
1834 XmStringFree(label_xmstring);
1835 label_xmstring = NULL;
1837 if (instance->category_opmenu_label == NULL)
1840 if (instance->category_opmenu == NULL) {
1842 XtSetArg(args[n], XmNrowColumnType, XmMENU_OPTION); ++n;
1843 XtSetArg(args[n], XmNspacing, 0); ++n;
1844 XtSetArg(args[n], XmNsubMenuId, instance->category_opmenu_menu); ++n;
1845 instance->category_opmenu =
1846 XmCreateOptionMenu(instance->category_opmenu_rowcolumn,
1847 "dtb_options_category_opmenu_choice", args, n);
1849 if (instance->category_opmenu == NULL)
1852 if (instance->category_opmenu_items.Message_Header_List_item == NULL) {
1853 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 3, "Message Header List"));
1854 instance->category_opmenu_items.Message_Header_List_item =
1855 XtVaCreateManagedWidget("dtb_options_category_opmenu_message_header_list_item",
1856 xmPushButtonWidgetClass,
1857 instance->category_opmenu_menu,
1858 XmNlabelString, label_xmstring,
1860 XmStringFree(label_xmstring);
1861 label_xmstring = NULL;
1863 if (instance->category_opmenu_items.Message_Header_List_item == NULL)
1866 if (instance->category_opmenu_items.Message_View_item == NULL) {
1867 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 4, "Message View"));
1868 instance->category_opmenu_items.Message_View_item =
1869 XtVaCreateManagedWidget("dtb_options_category_opmenu_message_view_item",
1870 xmPushButtonWidgetClass,
1871 instance->category_opmenu_menu,
1872 XmNlabelString, label_xmstring,
1874 XmStringFree(label_xmstring);
1875 label_xmstring = NULL;
1877 if (instance->category_opmenu_items.Message_View_item == NULL)
1880 if (instance->category_opmenu_items.Compose_Window_item == NULL) {
1881 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 5, "Compose Window"));
1882 instance->category_opmenu_items.Compose_Window_item =
1883 XtVaCreateManagedWidget("dtb_options_category_opmenu_compose_window_item",
1884 xmPushButtonWidgetClass,
1885 instance->category_opmenu_menu,
1886 XmNlabelString, label_xmstring,
1888 XmStringFree(label_xmstring);
1889 label_xmstring = NULL;
1891 if (instance->category_opmenu_items.Compose_Window_item == NULL)
1894 if (instance->category_opmenu_items.Message_Filing_item == NULL) {
1895 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 6, "Message Filing"));
1896 instance->category_opmenu_items.Message_Filing_item =
1897 XtVaCreateManagedWidget("dtb_options_category_opmenu_message_filing_item",
1898 xmPushButtonWidgetClass,
1899 instance->category_opmenu_menu,
1900 XmNlabelString, label_xmstring,
1902 XmStringFree(label_xmstring);
1903 label_xmstring = NULL;
1905 if (instance->category_opmenu_items.Message_Filing_item == NULL)
1908 if (instance->category_opmenu_items.Vacation_item == NULL) {
1909 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 7, "Vacation"));
1910 instance->category_opmenu_items.Vacation_item =
1911 XtVaCreateManagedWidget("dtb_options_category_opmenu_vacation_item",
1912 xmPushButtonWidgetClass,
1913 instance->category_opmenu_menu,
1914 XmNlabelString, label_xmstring,
1916 XmStringFree(label_xmstring);
1917 label_xmstring = NULL;
1919 if (instance->category_opmenu_items.Vacation_item == NULL)
1922 if (instance->category_opmenu_items.Templates_item == NULL) {
1923 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 8, "Templates"));
1924 instance->category_opmenu_items.Templates_item =
1925 XtVaCreateManagedWidget("dtb_options_category_opmenu_templates_item",
1926 xmPushButtonWidgetClass,
1927 instance->category_opmenu_menu,
1928 XmNlabelString, label_xmstring,
1930 XmStringFree(label_xmstring);
1931 label_xmstring = NULL;
1933 if (instance->category_opmenu_items.Templates_item == NULL)
1936 if (instance->category_opmenu_items.Aliases_item == NULL) {
1937 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 9, "Aliases"));
1938 instance->category_opmenu_items.Aliases_item =
1939 XtVaCreateManagedWidget("dtb_options_category_opmenu_aliases_item",
1940 xmPushButtonWidgetClass,
1941 instance->category_opmenu_menu,
1942 XmNlabelString, label_xmstring,
1944 XmStringFree(label_xmstring);
1945 label_xmstring = NULL;
1947 if (instance->category_opmenu_items.Aliases_item == NULL)
1950 if (instance->category_opmenu_items.Advanced_item == NULL) {
1951 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 10, "Advanced"));
1952 instance->category_opmenu_items.Advanced_item =
1953 XtVaCreateManagedWidget("dtb_options_category_opmenu_advanced_item",
1954 xmPushButtonWidgetClass,
1955 instance->category_opmenu_menu,
1956 XmNlabelString, label_xmstring,
1958 XmStringFree(label_xmstring);
1959 label_xmstring = NULL;
1961 if (instance->category_opmenu_items.Advanced_item == NULL)
1964 if (instance->category_opmenu_items.Printing_item == NULL) {
1966 XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 92, "Printing"));
1967 instance->category_opmenu_items.Printing_item =
1968 XtVaCreateManagedWidget("dtb_options_category_opmenu_printing_item",
1969 xmPushButtonWidgetClass,
1970 instance->category_opmenu_menu,
1971 XmNlabelString, label_xmstring,
1973 XmStringFree(label_xmstring);
1974 label_xmstring = NULL;
1976 if (instance->category_opmenu_items.Printing_item == NULL)
1979 if (instance->category_opmenu_items.MailRetrieval_item == NULL) {
1981 XmStringCreateLocalized(
1982 GETMSG(Dtb_project_catd, 2, 93, "Mail Retrieval"));
1983 instance->category_opmenu_items.MailRetrieval_item =
1984 XtVaCreateManagedWidget(
1985 "dtb_options_category_opmenu_mailretrieval_item",
1986 xmPushButtonWidgetClass,
1987 instance->category_opmenu_menu,
1988 XmNlabelString, label_xmstring,
1990 XmStringFree(label_xmstring);
1991 label_xmstring = NULL;
1993 if (instance->category_opmenu_items.MailRetrieval_item == NULL)
1996 dtb_center(instance->category_opmenu_rowcolumn, DTB_CENTER_POSITION_VERT);
2003 dtb_options_separator10_create(
2004 DtbOptionsDialogInfo instance,
2009 if (instance->separator10 == NULL) {
2010 instance->separator10 =
2011 XtVaCreateWidget("dtb_options_separator10",
2012 xmSeparatorWidgetClass,
2014 XmNbottomAttachment, XmATTACH_NONE,
2016 XmNrightAttachment, XmATTACH_FORM,
2018 XmNleftAttachment, XmATTACH_FORM,
2020 XmNtopAttachment, XmATTACH_WIDGET,
2021 XmNseparatorType, XmSHADOW_ETCHED_IN,
2022 XmNorientation, XmHORIZONTAL,
2025 if (instance->separator10 == NULL)
2034 dtb_options_msg_header_pane_create(
2035 DtbOptionsDialogInfo instance,
2040 if (instance->msg_header_pane == NULL) {
2041 instance->msg_header_pane =
2042 XtVaCreateWidget("dtb_options_msg_header_pane",
2046 XmNbottomPosition, 100,
2047 XmNbottomAttachment, XmATTACH_POSITION,
2049 XmNrightPosition, 100,
2050 XmNrightAttachment, XmATTACH_POSITION,
2053 XmNleftAttachment, XmATTACH_POSITION,
2056 XmNtopAttachment, XmATTACH_POSITION,
2057 XmNresizePolicy, XmRESIZE_ANY,
2062 if (instance->msg_header_pane == NULL)
2071 dtb_options_msg_view_pane_create(
2072 DtbOptionsDialogInfo instance,
2077 if (instance->msg_view_pane == NULL) {
2078 instance->msg_view_pane =
2079 XtVaCreateWidget("dtb_options_msg_view_pane",
2083 XmNbottomPosition, 100,
2084 XmNbottomAttachment, XmATTACH_POSITION,
2086 XmNrightPosition, 100,
2087 XmNrightAttachment, XmATTACH_POSITION,
2090 XmNleftAttachment, XmATTACH_POSITION,
2093 XmNtopAttachment, XmATTACH_POSITION,
2094 XmNresizePolicy, XmRESIZE_ANY,
2099 if (instance->msg_view_pane == NULL)
2108 dtb_options_compose_win_pane_create(
2109 DtbOptionsDialogInfo instance,
2114 if (instance->compose_win_pane == NULL) {
2115 instance->compose_win_pane =
2116 XtVaCreateWidget("dtb_options_compose_win_pane",
2120 XmNbottomPosition, 100,
2121 XmNbottomAttachment, XmATTACH_POSITION,
2123 XmNrightPosition, 100,
2124 XmNrightAttachment, XmATTACH_POSITION,
2127 XmNleftAttachment, XmATTACH_POSITION,
2130 XmNtopAttachment, XmATTACH_POSITION,
2131 XmNresizePolicy, XmRESIZE_ANY,
2136 if (instance->compose_win_pane == NULL)
2145 dtb_options_msg_filing_pane_create(
2146 DtbOptionsDialogInfo instance,
2151 if (instance->msg_filing_pane == NULL) {
2152 instance->msg_filing_pane =
2153 XtVaCreateWidget("dtb_options_msg_filing_pane",
2157 XmNbottomPosition, 100,
2158 XmNbottomAttachment, XmATTACH_POSITION,
2160 XmNrightPosition, 100,
2161 XmNrightAttachment, XmATTACH_POSITION,
2164 XmNleftAttachment, XmATTACH_POSITION,
2167 XmNtopAttachment, XmATTACH_POSITION,
2168 XmNresizePolicy, XmRESIZE_ANY,
2173 if (instance->msg_filing_pane == NULL)
2182 dtb_options_vacation_pane_create(
2183 DtbOptionsDialogInfo instance,
2188 if (instance->vacation_pane == NULL) {
2189 instance->vacation_pane =
2190 XtVaCreateWidget("dtb_options_vacation_pane",
2194 XmNbottomPosition, 100,
2195 XmNbottomAttachment, XmATTACH_POSITION,
2197 XmNrightPosition, 100,
2198 XmNrightAttachment, XmATTACH_POSITION,
2201 XmNleftAttachment, XmATTACH_POSITION,
2204 XmNtopAttachment, XmATTACH_POSITION,
2205 XmNresizePolicy, XmRESIZE_ANY,
2210 if (instance->vacation_pane == NULL)
2219 dtb_options_templates_pane_create(
2220 DtbOptionsDialogInfo instance,
2225 if (instance->templates_pane == NULL) {
2226 instance->templates_pane =
2227 XtVaCreateWidget("dtb_options_templates_pane",
2231 XmNbottomPosition, 100,
2232 XmNbottomAttachment, XmATTACH_POSITION,
2234 XmNrightPosition, 100,
2235 XmNrightAttachment, XmATTACH_POSITION,
2238 XmNleftAttachment, XmATTACH_POSITION,
2241 XmNtopAttachment, XmATTACH_POSITION,
2242 XmNresizePolicy, XmRESIZE_ANY,
2247 if (instance->templates_pane == NULL)
2256 dtb_options_aliases_pane_create(
2257 DtbOptionsDialogInfo instance,
2262 if (instance->aliases_pane == NULL) {
2263 instance->aliases_pane =
2264 XtVaCreateWidget("dtb_options_aliases_pane",
2268 XmNbottomPosition, 100,
2269 XmNbottomAttachment, XmATTACH_POSITION,
2271 XmNrightPosition, 100,
2272 XmNrightAttachment, XmATTACH_POSITION,
2275 XmNleftAttachment, XmATTACH_POSITION,
2278 XmNtopAttachment, XmATTACH_POSITION,
2279 XmNresizePolicy, XmRESIZE_ANY,
2284 if (instance->aliases_pane == NULL)
2293 dtb_options_advanced_pane_create(
2294 DtbOptionsDialogInfo instance,
2299 if (instance->advanced_pane == NULL) {
2300 instance->advanced_pane =
2301 XtVaCreateWidget("dtb_options_advanced_pane",
2305 XmNbottomPosition, 100,
2306 XmNbottomAttachment, XmATTACH_POSITION,
2308 XmNrightPosition, 100,
2309 XmNrightAttachment, XmATTACH_POSITION,
2312 XmNleftAttachment, XmATTACH_POSITION,
2315 XmNtopAttachment, XmATTACH_POSITION,
2316 XmNresizePolicy, XmRESIZE_ANY,
2321 if (instance->advanced_pane == NULL)
2330 dtb_options_separator2_create(
2331 DtbOptionsDialogInfo instance,
2336 if (instance->separator2 == NULL) {
2337 instance->separator2 =
2338 XtVaCreateWidget("dtb_options_separator2",
2339 xmSeparatorWidgetClass,
2341 XmNbottomAttachment, XmATTACH_NONE,
2343 XmNrightAttachment, XmATTACH_FORM,
2345 XmNleftAttachment, XmATTACH_FORM,
2347 XmNtopAttachment, XmATTACH_WIDGET,
2348 XmNseparatorType, XmSHADOW_ETCHED_IN,
2349 XmNorientation, XmHORIZONTAL,
2352 if (instance->separator2 == NULL)
2361 dtb_options_checkbox_create(
2362 DtbOptionsDialogInfo instance,
2366 XmString label_xmstring = NULL;
2367 Arg args[23]; /* need 18 args (add 5 to be safe) */
2369 Widget checkbox_items[2];
2371 if (instance->checkbox == NULL) {
2373 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
2374 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
2375 XtSetArg(args[n], XmNleftOffset, 76); ++n;
2376 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
2377 XtSetArg(args[n], XmNtopOffset, 4); ++n;
2378 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
2379 XtSetArg(args[n], XmNradioBehavior, False); ++n;
2380 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
2381 XtSetArg(args[n], XmNnumColumns, 1); ++n;
2382 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
2383 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
2384 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
2385 XtSetArg(args[n], XmNspacing, 0); ++n;
2386 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
2387 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
2388 instance->checkbox =
2389 XmCreateRadioBox(parent,
2390 "dtb_options_checkbox", args, n);
2392 if (instance->checkbox == NULL)
2395 if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL) {
2396 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 11, "Show To: recipient when mail is from me"));
2397 instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item =
2398 XtVaCreateManagedWidget("dtb_options_checkbox_show_to_recipient_when_mail_is_from_me_item",
2399 xmToggleButtonWidgetClass,
2402 XmNlabelString, label_xmstring,
2404 XmStringFree(label_xmstring);
2405 label_xmstring = NULL;
2407 if (instance->checkbox_items.Show_To_recipient_when_mail_is_from_me_item == NULL)
2410 if (instance->checkbox_items.Display_message_numbers_item == NULL) {
2411 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 12, "Display message numbers"));
2412 instance->checkbox_items.Display_message_numbers_item =
2413 XtVaCreateManagedWidget("dtb_options_checkbox_display_message_numbers_item",
2414 xmToggleButtonWidgetClass,
2417 XmNlabelString, label_xmstring,
2419 XmStringFree(label_xmstring);
2420 label_xmstring = NULL;
2422 if (instance->checkbox_items.Display_message_numbers_item == NULL)
2431 dtb_options_separator4_create(
2432 DtbOptionsDialogInfo instance,
2437 if (instance->separator4 == NULL) {
2438 instance->separator4 =
2439 XtVaCreateWidget("dtb_options_separator4",
2440 xmSeparatorWidgetClass,
2442 XmNbottomAttachment, XmATTACH_NONE,
2444 XmNrightAttachment, XmATTACH_FORM,
2446 XmNleftAttachment, XmATTACH_FORM,
2448 XmNtopAttachment, XmATTACH_WIDGET,
2449 XmNseparatorType, XmSHADOW_ETCHED_IN,
2450 XmNorientation, XmHORIZONTAL,
2453 if (instance->separator4 == NULL)
2462 dtb_options_group28_create(
2463 DtbOptionsDialogInfo instance,
2468 if (instance->group28 == NULL) {
2470 XtVaCreateWidget("dtb_options_group28",
2473 XmNbottomOffset, 10,
2474 XmNbottomAttachment, XmATTACH_FORM,
2475 XmNrightAttachment, XmATTACH_NONE,
2477 XmNleftAttachment, XmATTACH_FORM,
2479 XmNtopAttachment, XmATTACH_WIDGET,
2480 XmNresizePolicy, XmRESIZE_ANY,
2485 if (instance->group28 == NULL)
2494 dtb_options_group21_create(
2495 DtbOptionsDialogInfo instance,
2500 if (instance->group21 == NULL) {
2502 XtVaCreateWidget("dtb_options_group21",
2505 XmNbottomAttachment, XmATTACH_NONE,
2506 XmNrightAttachment, XmATTACH_NONE,
2508 XmNleftAttachment, XmATTACH_FORM,
2510 XmNtopAttachment, XmATTACH_FORM,
2511 XmNresizePolicy, XmRESIZE_ANY,
2516 if (instance->group21 == NULL)
2525 dtb_options_destroy_del_msg_lbl_create(
2526 DtbOptionsDialogInfo instance,
2530 XmString label_xmstring = NULL;
2532 if (instance->destroy_del_msg_lbl == NULL) {
2533 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 20, "Destroy Deleted Messages:"));
2534 instance->destroy_del_msg_lbl =
2535 XtVaCreateWidget("dtb_options_destroy_del_msg_lbl",
2538 XmNbottomAttachment, XmATTACH_NONE,
2539 XmNrightAttachment, XmATTACH_NONE,
2541 XmNleftAttachment, XmATTACH_FORM,
2543 XmNtopAttachment, XmATTACH_FORM,
2544 XmNrecomputeSize, True,
2545 XmNalignment, XmALIGNMENT_CENTER,
2546 XmNlabelType, XmSTRING,
2547 XmNlabelString, label_xmstring,
2549 XmStringFree(label_xmstring);
2550 label_xmstring = NULL;
2552 if (instance->destroy_del_msg_lbl == NULL)
2561 dtb_options_deleted_msg_cb_create(
2562 DtbOptionsDialogInfo instance,
2566 XmString label_xmstring = NULL;
2567 Arg args[23]; /* need 18 args (add 5 to be safe) */
2569 Widget deleted_msg_cb_items[2];
2571 if (instance->deleted_msg_cb == NULL) {
2573 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
2574 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
2575 XtSetArg(args[n], XmNleftOffset, 0); ++n;
2576 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
2577 XtSetArg(args[n], XmNtopOffset, 2); ++n;
2578 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
2579 XtSetArg(args[n], XmNradioBehavior, False); ++n;
2580 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
2581 XtSetArg(args[n], XmNnumColumns, 1); ++n;
2582 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
2583 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
2584 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
2585 XtSetArg(args[n], XmNspacing, 0); ++n;
2586 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
2587 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
2588 instance->deleted_msg_cb =
2589 XmCreateRadioBox(parent,
2590 "dtb_options_deleted_msg_cb", args, n);
2592 if (instance->deleted_msg_cb == NULL)
2595 if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL) {
2596 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 21, "When I close the mailbox"));
2597 instance->deleted_msg_cb_items.When_I_close_the_mailbox_item =
2598 XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_when_i_close_the_mailbox_item",
2599 xmToggleButtonWidgetClass,
2600 instance->deleted_msg_cb,
2602 XmNlabelString, label_xmstring,
2604 XmStringFree(label_xmstring);
2605 label_xmstring = NULL;
2607 if (instance->deleted_msg_cb_items.When_I_close_the_mailbox_item == NULL)
2610 if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL) {
2611 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 22, "Show confirmation notice"));
2612 instance->deleted_msg_cb_items.Show_confirmation_notice_item =
2613 XtVaCreateManagedWidget("dtb_options_deleted_msg_cb_show_confirmation_notice_item",
2614 xmToggleButtonWidgetClass,
2615 instance->deleted_msg_cb,
2617 XmNlabelString, label_xmstring,
2619 XmStringFree(label_xmstring);
2620 label_xmstring = NULL;
2622 if (instance->deleted_msg_cb_items.Show_confirmation_notice_item == NULL)
2631 dtb_options_group_create(
2632 DtbOptionsDialogInfo instance,
2637 if (instance->group == NULL) {
2639 XtVaCreateWidget("dtb_options_group",
2642 XmNresizePolicy, XmRESIZE_ANY,
2647 if (instance->group == NULL)
2656 dtb_options_group18_create(
2657 DtbOptionsDialogInfo instance,
2662 if (instance->group18 == NULL) {
2664 XtVaCreateWidget("dtb_options_group18",
2667 XmNresizePolicy, XmRESIZE_ANY,
2672 if (instance->group18 == NULL)
2681 dtb_options_group19_create(
2682 DtbOptionsDialogInfo instance,
2687 if (instance->group19 == NULL) {
2689 XtVaCreateWidget("dtb_options_group19",
2692 XmNresizePolicy, XmRESIZE_ANY,
2697 if (instance->group19 == NULL)
2706 dtb_options_group20_create(
2707 DtbOptionsDialogInfo instance,
2712 if (instance->group20 == NULL) {
2714 XtVaCreateWidget("dtb_options_group20",
2717 XmNresizePolicy, XmRESIZE_ANY,
2722 if (instance->group20 == NULL)
2731 dtb_options_mail_check_sb_create(
2732 DtbOptionsDialogInfo instance,
2736 XmString label_xmstring = NULL;
2737 Arg args[18]; /* need 13 args (add 5 to be safe) */
2741 if (instance->mail_check_sb_rowcolumn == NULL) {
2742 instance->mail_check_sb_rowcolumn =
2743 XtVaCreateWidget("dtb_options_mail_check_sb",
2744 xmRowColumnWidgetClass,
2746 XmNbottomAttachment, XmATTACH_NONE,
2747 XmNrightAttachment, XmATTACH_NONE,
2749 XmNleftAttachment, XmATTACH_FORM,
2751 XmNtopAttachment, XmATTACH_FORM,
2752 XmNadjustLast, True,
2755 XmNentryAlignment, XmALIGNMENT_END,
2756 XmNorientation, XmHORIZONTAL,
2759 if (instance->mail_check_sb_rowcolumn == NULL)
2762 if (instance->mail_check_sb_label == NULL) {
2763 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 13, "Check for new mail every:"));
2764 instance->mail_check_sb_label =
2765 XtVaCreateWidget("dtb_options_mail_check_sb_label",
2767 instance->mail_check_sb_rowcolumn,
2768 XmNlabelType, XmSTRING,
2769 XmNlabelString, label_xmstring,
2771 XmStringFree(label_xmstring);
2772 label_xmstring = NULL;
2774 if (instance->mail_check_sb_label == NULL)
2777 if (instance->mail_check_sb == NULL) {
2779 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
2780 XtSetArg(args[n], XmNincrementValue, 1); ++n;
2781 XtSetArg(args[n], XmNposition, 500); ++n;
2782 XtSetArg(args[n], XmNmaximumValue, 999999); ++n;
2783 XtSetArg(args[n], XmNminimumValue, 0); ++n;
2784 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
2785 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
2786 XtSetArg(args[n], XmNcolumns, 6); ++n;
2787 instance->mail_check_sb =
2788 XmCreateSimpleSpinBox(instance->mail_check_sb_rowcolumn,
2789 "dtb_options_mail_check_sb_field", args, n);
2791 if (instance->mail_check_sb == NULL)
2800 dtb_options_seconds_lbl_create(
2801 DtbOptionsDialogInfo instance,
2805 XmString label_xmstring = NULL;
2807 if (instance->seconds_lbl == NULL) {
2808 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 14, "Seconds"));
2809 instance->seconds_lbl =
2810 XtVaCreateWidget("dtb_options_seconds_lbl",
2814 XmNbottomAttachment, XmATTACH_FORM,
2815 XmNrightAttachment, XmATTACH_NONE,
2817 XmNleftAttachment, XmATTACH_WIDGET,
2819 XmNtopAttachment, XmATTACH_FORM,
2820 XmNrecomputeSize, True,
2821 XmNalignment, XmALIGNMENT_CENTER,
2822 XmNlabelType, XmSTRING,
2823 XmNlabelString, label_xmstring,
2825 XmStringFree(label_xmstring);
2826 label_xmstring = NULL;
2828 if (instance->seconds_lbl == NULL)
2837 dtb_options_signal_sb_create(
2838 DtbOptionsDialogInfo instance,
2842 XmString label_xmstring = NULL;
2843 Arg args[18]; /* need 13 args (add 5 to be safe) */
2847 if (instance->signal_sb_rowcolumn == NULL) {
2848 instance->signal_sb_rowcolumn =
2849 XtVaCreateWidget("dtb_options_signal_sb",
2850 xmRowColumnWidgetClass,
2852 XmNbottomAttachment, XmATTACH_NONE,
2853 XmNrightAttachment, XmATTACH_NONE,
2855 XmNleftAttachment, XmATTACH_FORM,
2857 XmNtopAttachment, XmATTACH_FORM,
2858 XmNadjustLast, True,
2861 XmNentryAlignment, XmALIGNMENT_END,
2862 XmNorientation, XmHORIZONTAL,
2865 if (instance->signal_sb_rowcolumn == NULL)
2868 if (instance->signal_sb_label == NULL) {
2869 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 15, "Signal new mail with:"));
2870 instance->signal_sb_label =
2871 XtVaCreateWidget("dtb_options_signal_sb_label",
2873 instance->signal_sb_rowcolumn,
2874 XmNlabelType, XmSTRING,
2875 XmNlabelString, label_xmstring,
2877 XmStringFree(label_xmstring);
2878 label_xmstring = NULL;
2880 if (instance->signal_sb_label == NULL)
2883 if (instance->signal_sb == NULL) {
2885 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
2886 XtSetArg(args[n], XmNincrementValue, 1); ++n;
2887 XtSetArg(args[n], XmNposition, 0); ++n;
2888 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
2889 XtSetArg(args[n], XmNminimumValue, 0); ++n;
2890 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
2891 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
2892 XtSetArg(args[n], XmNcolumns, 6); ++n;
2893 instance->signal_sb =
2894 XmCreateSimpleSpinBox(instance->signal_sb_rowcolumn,
2895 "dtb_options_signal_sb_field", args, n);
2897 if (instance->signal_sb == NULL)
2906 dtb_options_beeps_lbl_create(
2907 DtbOptionsDialogInfo instance,
2911 XmString label_xmstring = NULL;
2913 if (instance->beeps_lbl == NULL) {
2914 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 16, "Beep(s)"));
2915 instance->beeps_lbl =
2916 XtVaCreateWidget("dtb_options_beeps_lbl",
2920 XmNbottomAttachment, XmATTACH_FORM,
2921 XmNrightAttachment, XmATTACH_NONE,
2923 XmNleftAttachment, XmATTACH_WIDGET,
2925 XmNtopAttachment, XmATTACH_FORM,
2926 XmNrecomputeSize, True,
2927 XmNalignment, XmALIGNMENT_CENTER,
2928 XmNlabelType, XmSTRING,
2929 XmNlabelString, label_xmstring,
2931 XmStringFree(label_xmstring);
2932 label_xmstring = NULL;
2934 if (instance->beeps_lbl == NULL)
2943 dtb_options_spinbox2_create(
2944 DtbOptionsDialogInfo instance,
2948 XmString label_xmstring = NULL;
2949 Arg args[18]; /* need 13 args (add 5 to be safe) */
2953 if (instance->spinbox2_rowcolumn == NULL) {
2954 instance->spinbox2_rowcolumn =
2955 XtVaCreateWidget("dtb_options_spinbox2",
2956 xmRowColumnWidgetClass,
2958 XmNbottomAttachment, XmATTACH_NONE,
2959 XmNrightAttachment, XmATTACH_NONE,
2961 XmNleftAttachment, XmATTACH_FORM,
2963 XmNtopAttachment, XmATTACH_FORM,
2964 XmNadjustLast, True,
2967 XmNentryAlignment, XmALIGNMENT_END,
2968 XmNorientation, XmHORIZONTAL,
2971 if (instance->spinbox2_rowcolumn == NULL)
2974 if (instance->spinbox2_label == NULL) {
2975 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
2976 instance->spinbox2_label =
2977 XtVaCreateWidget("dtb_options_spinbox2_label",
2979 instance->spinbox2_rowcolumn,
2980 XmNlabelType, XmSTRING,
2981 XmNlabelString, label_xmstring,
2983 XmStringFree(label_xmstring);
2984 label_xmstring = NULL;
2986 if (instance->spinbox2_label == NULL)
2989 if (instance->spinbox2 == NULL) {
2991 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
2992 XtSetArg(args[n], XmNincrementValue, 1); ++n;
2993 XtSetArg(args[n], XmNposition, 0); ++n;
2994 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
2995 XtSetArg(args[n], XmNminimumValue, 0); ++n;
2996 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
2997 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
2998 XtSetArg(args[n], XmNcolumns, 6); ++n;
2999 instance->spinbox2 =
3000 XmCreateSimpleSpinBox(instance->spinbox2_rowcolumn,
3001 "dtb_options_spinbox2_field", args, n);
3003 if (instance->spinbox2 == NULL)
3012 dtb_options_flashes_lbl_create(
3013 DtbOptionsDialogInfo instance,
3017 XmString label_xmstring = NULL;
3019 if (instance->flashes_lbl == NULL) {
3020 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 17, "Flash(es)"));
3021 instance->flashes_lbl =
3022 XtVaCreateWidget("dtb_options_flashes_lbl",
3026 XmNbottomAttachment, XmATTACH_FORM,
3027 XmNrightAttachment, XmATTACH_NONE,
3029 XmNleftAttachment, XmATTACH_WIDGET,
3031 XmNtopAttachment, XmATTACH_FORM,
3032 XmNrecomputeSize, True,
3033 XmNalignment, XmALIGNMENT_CENTER,
3034 XmNlabelType, XmSTRING,
3035 XmNlabelString, label_xmstring,
3037 XmStringFree(label_xmstring);
3038 label_xmstring = NULL;
3040 if (instance->flashes_lbl == NULL)
3049 dtb_options_display_sb_create(
3050 DtbOptionsDialogInfo instance,
3054 XmString label_xmstring = NULL;
3055 Arg args[18]; /* need 13 args (add 5 to be safe) */
3059 if (instance->display_sb_rowcolumn == NULL) {
3060 instance->display_sb_rowcolumn =
3061 XtVaCreateWidget("dtb_options_display_sb",
3062 xmRowColumnWidgetClass,
3064 XmNbottomAttachment, XmATTACH_NONE,
3065 XmNrightAttachment, XmATTACH_NONE,
3067 XmNleftAttachment, XmATTACH_FORM,
3069 XmNtopAttachment, XmATTACH_FORM,
3070 XmNadjustLast, True,
3073 XmNentryAlignment, XmALIGNMENT_END,
3074 XmNorientation, XmHORIZONTAL,
3077 if (instance->display_sb_rowcolumn == NULL)
3080 if (instance->display_sb_label == NULL) {
3081 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3082 instance->display_sb_label =
3083 XtVaCreateWidget("dtb_options_display_sb_label",
3085 instance->display_sb_rowcolumn,
3086 XmNlabelType, XmSTRING,
3087 XmNlabelString, label_xmstring,
3089 XmStringFree(label_xmstring);
3090 label_xmstring = NULL;
3092 if (instance->display_sb_label == NULL)
3095 if (instance->display_sb == NULL) {
3097 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
3098 XtSetArg(args[n], XmNincrementValue, 1); ++n;
3099 XtSetArg(args[n], XmNposition, 15); ++n;
3100 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
3101 XtSetArg(args[n], XmNminimumValue, 0); ++n;
3102 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
3103 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
3104 XtSetArg(args[n], XmNcolumns, 6); ++n;
3105 instance->display_sb =
3106 XmCreateSimpleSpinBox(instance->display_sb_rowcolumn,
3107 "dtb_options_display_sb_field", args, n);
3109 if (instance->display_sb == NULL)
3118 dtb_options_headers_lbl_create(
3119 DtbOptionsDialogInfo instance,
3123 XmString label_xmstring = NULL;
3125 if (instance->headers_lbl == NULL) {
3126 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 19, "Headers"));
3127 instance->headers_lbl =
3128 XtVaCreateWidget("dtb_options_headers_lbl",
3132 XmNbottomAttachment, XmATTACH_FORM,
3133 XmNrightAttachment, XmATTACH_NONE,
3135 XmNleftAttachment, XmATTACH_WIDGET,
3137 XmNtopAttachment, XmATTACH_FORM,
3138 XmNrecomputeSize, True,
3139 XmNalignment, XmALIGNMENT_CENTER,
3140 XmNlabelType, XmSTRING,
3141 XmNlabelString, label_xmstring,
3143 XmStringFree(label_xmstring);
3144 label_xmstring = NULL;
3146 if (instance->headers_lbl == NULL)
3155 dtb_options_separator6_create(
3156 DtbOptionsDialogInfo instance,
3161 if (instance->separator6 == NULL) {
3162 instance->separator6 =
3163 XtVaCreateWidget("dtb_options_separator6",
3164 xmSeparatorWidgetClass,
3166 XmNbottomAttachment, XmATTACH_NONE,
3168 XmNrightPosition, 100,
3169 XmNrightAttachment, XmATTACH_POSITION,
3172 XmNleftAttachment, XmATTACH_POSITION,
3174 XmNtopAttachment, XmATTACH_WIDGET,
3175 XmNseparatorType, XmSHADOW_ETCHED_IN,
3176 XmNorientation, XmHORIZONTAL,
3179 if (instance->separator6 == NULL)
3188 dtb_options_abr_header_lbl_create(
3189 DtbOptionsDialogInfo instance,
3193 XmString label_xmstring = NULL;
3195 if (instance->abr_header_lbl == NULL) {
3196 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 23, "Abbreviated header will not include:"));
3197 instance->abr_header_lbl =
3198 XtVaCreateWidget("dtb_options_abr_header_lbl",
3201 XmNbottomAttachment, XmATTACH_NONE,
3202 XmNrightAttachment, XmATTACH_NONE,
3204 XmNleftAttachment, XmATTACH_FORM,
3206 XmNtopAttachment, XmATTACH_WIDGET,
3207 XmNrecomputeSize, True,
3208 XmNalignment, XmALIGNMENT_CENTER,
3209 XmNlabelType, XmSTRING,
3210 XmNlabelString, label_xmstring,
3212 XmStringFree(label_xmstring);
3213 label_xmstring = NULL;
3215 if (instance->abr_header_lbl == NULL)
3224 dtb_options_group8_create(
3225 DtbOptionsDialogInfo instance,
3230 if (instance->group8 == NULL) {
3232 XtVaCreateWidget("dtb_options_group8",
3235 XmNbottomAttachment, XmATTACH_NONE,
3236 XmNrightAttachment, XmATTACH_NONE,
3238 XmNleftAttachment, XmATTACH_FORM,
3240 XmNtopAttachment, XmATTACH_FORM,
3241 XmNresizePolicy, XmRESIZE_ANY,
3246 if (instance->group8 == NULL)
3255 dtb_options_group17_create(
3256 DtbOptionsDialogInfo instance,
3261 if (instance->group17 == NULL) {
3263 XtVaCreateWidget("dtb_options_group17",
3266 XmNbottomOffset, 10,
3267 XmNbottomAttachment, XmATTACH_FORM,
3268 XmNrightAttachment, XmATTACH_NONE,
3270 XmNleftAttachment, XmATTACH_FORM,
3272 XmNtopAttachment, XmATTACH_WIDGET,
3273 XmNresizePolicy, XmRESIZE_ANY,
3278 if (instance->group17 == NULL)
3287 dtb_options_group2_create(
3288 DtbOptionsDialogInfo instance,
3293 if (instance->group2 == NULL) {
3295 XtVaCreateWidget("dtb_options_group2",
3298 XmNresizePolicy, XmRESIZE_ANY,
3303 if (instance->group2 == NULL)
3312 dtb_options_group22_create(
3313 DtbOptionsDialogInfo instance,
3318 if (instance->group22 == NULL) {
3320 XtVaCreateWidget("dtb_options_group22",
3323 XmNresizePolicy, XmRESIZE_ANY,
3328 if (instance->group22 == NULL)
3337 dtb_options_fixed_font_cb_create(
3338 DtbOptionsDialogInfo instance,
3342 Arg args[14]; /* need 9 args (add 5 to be safe) */
3345 if (instance->fixed_font_cb == NULL) {
3347 XtSetArg(args[n], XmNradioBehavior, False); ++n;
3348 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
3349 XtSetArg(args[n], XmNnumColumns, 1); ++n;
3350 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
3351 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
3352 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
3353 XtSetArg(args[n], XmNspacing, 0); ++n;
3354 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
3355 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
3356 instance->fixed_font_cb =
3357 XmCreateRadioBox(parent,
3358 "dtb_options_fixed_font_cb", args, n);
3360 if (instance->fixed_font_cb == NULL)
3369 dtb_options_display_row_sb_create(
3370 DtbOptionsDialogInfo instance,
3374 XmString label_xmstring = NULL;
3375 Arg args[18]; /* need 13 args (add 5 to be safe) */
3379 if (instance->display_row_sb_rowcolumn == NULL) {
3380 instance->display_row_sb_rowcolumn =
3381 XtVaCreateWidget("dtb_options_display_row_sb",
3382 xmRowColumnWidgetClass,
3384 XmNbottomAttachment, XmATTACH_NONE,
3385 XmNrightAttachment, XmATTACH_NONE,
3387 XmNleftAttachment, XmATTACH_FORM,
3389 XmNtopAttachment, XmATTACH_FORM,
3390 XmNadjustLast, True,
3393 XmNentryAlignment, XmALIGNMENT_END,
3394 XmNorientation, XmHORIZONTAL,
3397 if (instance->display_row_sb_rowcolumn == NULL)
3400 if (instance->display_row_sb_label == NULL) {
3401 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 18, "Display"));
3402 instance->display_row_sb_label =
3403 XtVaCreateWidget("dtb_options_display_row_sb_label",
3405 instance->display_row_sb_rowcolumn,
3406 XmNlabelType, XmSTRING,
3407 XmNlabelString, label_xmstring,
3409 XmStringFree(label_xmstring);
3410 label_xmstring = NULL;
3412 if (instance->display_row_sb_label == NULL)
3415 if (instance->display_row_sb == NULL) {
3417 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
3418 XtSetArg(args[n], XmNincrementValue, 1); ++n;
3419 XtSetArg(args[n], XmNposition, 24); ++n;
3420 XtSetArg(args[n], XmNmaximumValue, 360); ++n;
3421 XtSetArg(args[n], XmNminimumValue, 0); ++n;
3422 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
3423 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
3424 XtSetArg(args[n], XmNcolumns, 6); ++n;
3425 instance->display_row_sb =
3426 XmCreateSimpleSpinBox(instance->display_row_sb_rowcolumn,
3427 "dtb_options_display_row_sb_field", args, n);
3429 if (instance->display_row_sb == NULL)
3438 dtb_options_rows_lbl_create(
3439 DtbOptionsDialogInfo instance,
3443 XmString label_xmstring = NULL;
3445 if (instance->rows_lbl == NULL) {
3446 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 33, "Rows"));
3447 instance->rows_lbl =
3448 XtVaCreateWidget("dtb_options_rows_lbl",
3452 XmNbottomAttachment, XmATTACH_FORM,
3453 XmNrightAttachment, XmATTACH_NONE,
3455 XmNleftAttachment, XmATTACH_WIDGET,
3457 XmNtopAttachment, XmATTACH_FORM,
3458 XmNrecomputeSize, True,
3459 XmNalignment, XmALIGNMENT_CENTER,
3460 XmNlabelType, XmSTRING,
3461 XmNlabelString, label_xmstring,
3463 XmStringFree(label_xmstring);
3464 label_xmstring = NULL;
3466 if (instance->rows_lbl == NULL)
3475 dtb_options_characters_wide_sb_create(
3476 DtbOptionsDialogInfo instance,
3480 XmString label_xmstring = NULL;
3481 Arg args[18]; /* need 13 args (add 5 to be safe) */
3485 if (instance->characters_wide_sb_rowcolumn == NULL) {
3486 instance->characters_wide_sb_rowcolumn =
3487 XtVaCreateWidget("dtb_options_characters_wide_sb",
3488 xmRowColumnWidgetClass,
3490 XmNbottomAttachment, XmATTACH_NONE,
3491 XmNrightAttachment, XmATTACH_NONE,
3493 XmNleftAttachment, XmATTACH_FORM,
3495 XmNtopAttachment, XmATTACH_FORM,
3496 XmNadjustLast, True,
3499 XmNentryAlignment, XmALIGNMENT_END,
3500 XmNorientation, XmHORIZONTAL,
3503 if (instance->characters_wide_sb_rowcolumn == NULL)
3506 if (instance->characters_wide_sb_label == NULL) {
3507 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 91, " "));
3508 instance->characters_wide_sb_label =
3509 XtVaCreateWidget("dtb_options_characters_wide_sb_label",
3511 instance->characters_wide_sb_rowcolumn,
3512 XmNlabelType, XmSTRING,
3513 XmNlabelString, label_xmstring,
3515 XmStringFree(label_xmstring);
3516 label_xmstring = NULL;
3518 if (instance->characters_wide_sb_label == NULL)
3521 if (instance->characters_wide_sb == NULL) {
3523 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
3524 XtSetArg(args[n], XmNincrementValue, 1); ++n;
3525 XtSetArg(args[n], XmNposition, 80); ++n;
3526 XtSetArg(args[n], XmNmaximumValue, 132); ++n;
3527 XtSetArg(args[n], XmNminimumValue, 0); ++n;
3528 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
3529 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
3530 XtSetArg(args[n], XmNcolumns, 6); ++n;
3531 instance->characters_wide_sb =
3532 XmCreateSimpleSpinBox(instance->characters_wide_sb_rowcolumn,
3533 "dtb_options_characters_wide_sb_field", args, n);
3535 if (instance->characters_wide_sb == NULL)
3544 dtb_options_char_wide_lbl_create(
3545 DtbOptionsDialogInfo instance,
3549 XmString label_xmstring = NULL;
3551 if (instance->char_wide_lbl == NULL) {
3552 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 34, "Characters Wide"));
3553 instance->char_wide_lbl =
3554 XtVaCreateWidget("dtb_options_char_wide_lbl",
3558 XmNbottomAttachment, XmATTACH_FORM,
3559 XmNrightAttachment, XmATTACH_NONE,
3561 XmNleftAttachment, XmATTACH_WIDGET,
3563 XmNtopAttachment, XmATTACH_FORM,
3564 XmNrecomputeSize, True,
3565 XmNalignment, XmALIGNMENT_CENTER,
3566 XmNlabelType, XmSTRING,
3567 XmNlabelString, label_xmstring,
3569 XmStringFree(label_xmstring);
3570 label_xmstring = NULL;
3572 if (instance->char_wide_lbl == NULL)
3581 dtb_options_group3_create(
3582 DtbOptionsDialogInfo instance,
3587 if (instance->group3 == NULL) {
3589 XtVaCreateWidget("dtb_options_group3",
3592 XmNbottomAttachment, XmATTACH_NONE,
3593 XmNrightAttachment, XmATTACH_NONE,
3595 XmNleftAttachment, XmATTACH_WIDGET,
3597 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3598 XmNresizePolicy, XmRESIZE_ANY,
3603 if (instance->group3 == NULL)
3612 dtb_options_fields_hide_create(
3613 DtbOptionsDialogInfo instance,
3617 Arg args[18]; /* need 13 args (add 5 to be safe) */
3620 if (instance->fields_hide == NULL) {
3622 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
3623 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
3624 XtSetArg(args[n], XmNleftOffset, 4); ++n;
3625 XtSetArg(args[n], XmNleftPosition, 34); ++n;
3626 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
3627 XtSetArg(args[n], XmNtopOffset, 0); ++n;
3628 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
3629 XtSetArg(args[n], XmNmaxLength, 80); ++n;
3630 XtSetArg(args[n], XmNeditable, True); ++n;
3631 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
3632 instance->fields_hide =
3633 XmCreateTextField(parent,
3634 "dtb_options_fields_hide", args, n);
3636 if (instance->fields_hide == NULL)
3645 dtb_options_hidden_fields_list_create(
3646 DtbOptionsDialogInfo instance,
3650 XmString label_xmstring = NULL;
3651 Arg args[21]; /* need 16 args (add 5 to be safe) */
3654 XmString hidden_fields_list_list_xmstrings[3];
3658 * Convert char* strings to XmStrings
3660 hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 25, "x-lines"));
3661 hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 26, "email-version"));
3662 hidden_fields_list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 27, "expires"));
3663 if (instance->hidden_fields_list == NULL) {
3665 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
3666 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
3667 XtSetArg(args[n], XmNselectionPolicy, XmSINGLE_SELECT); ++n;
3668 XtSetArg(args[n], XmNvisibleItemCount, 7); ++n;
3669 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
3670 XtSetArg(args[n], XmNrightOffset, 0); ++n;
3671 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
3672 XtSetArg(args[n], XmNleftOffset, 4); ++n;
3673 XtSetArg(args[n], XmNleftPosition, 34); ++n;
3674 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
3675 XtSetArg(args[n], XmNtopOffset, 6); ++n;
3676 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
3677 XtSetArg(args[n], XmNitems, (XtArgVal)hidden_fields_list_list_xmstrings); n++;
3678 XtSetArg(args[n], XmNitemCount, (XtArgVal)3); n++;
3679 instance->hidden_fields_list =
3680 XmCreateScrolledList(parent,
3681 "dtb_options_hidden_fields_list_list", args, n);
3683 instance->hidden_fields_list_scrolledwin = XtParent(instance->hidden_fields_list);
3684 if (instance->hidden_fields_list == NULL)
3693 dtb_options_hidden_fields_lbl_create(
3694 DtbOptionsDialogInfo instance,
3698 XmString label_xmstring = NULL;
3700 if (instance->hidden_fields_lbl == NULL) {
3701 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 28, "Hidden Fields:"));
3702 instance->hidden_fields_lbl =
3703 XtVaCreateWidget("dtb_options_hidden_fields_lbl",
3706 XmNbottomAttachment, XmATTACH_NONE,
3708 XmNrightPosition, 34,
3709 XmNrightAttachment, XmATTACH_POSITION,
3710 XmNleftAttachment, XmATTACH_NONE,
3712 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
3713 XmNrecomputeSize, True,
3714 XmNalignment, XmALIGNMENT_END,
3715 XmNlabelType, XmSTRING,
3716 XmNlabelString, label_xmstring,
3718 XmStringFree(label_xmstring);
3719 label_xmstring = NULL;
3721 if (instance->hidden_fields_lbl == NULL)
3730 dtb_options_header_fields_lbl_create(
3731 DtbOptionsDialogInfo instance,
3735 XmString label_xmstring = NULL;
3737 if (instance->header_fields_lbl == NULL) {
3738 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 24, "Header Field:"));
3739 instance->header_fields_lbl =
3740 XtVaCreateWidget("dtb_options_header_fields_lbl",
3743 XmNbottomAttachment, XmATTACH_NONE,
3745 XmNrightPosition, 34,
3746 XmNrightAttachment, XmATTACH_POSITION,
3747 XmNleftAttachment, XmATTACH_NONE,
3749 XmNtopAttachment, XmATTACH_FORM,
3750 XmNrecomputeSize, True,
3751 XmNalignment, XmALIGNMENT_CENTER,
3752 XmNlabelType, XmSTRING,
3753 XmNlabelString, label_xmstring,
3755 XmStringFree(label_xmstring);
3756 label_xmstring = NULL;
3758 if (instance->header_fields_lbl == NULL)
3767 dtb_options_h_field_add_create(
3768 DtbOptionsDialogInfo instance,
3772 XmString label_xmstring = NULL;
3774 if (instance->h_field_add == NULL) {
3775 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
3776 instance->h_field_add =
3777 XtVaCreateWidget("dtb_options_h_field_add",
3778 xmPushButtonWidgetClass,
3780 XmNbottomAttachment, XmATTACH_NONE,
3782 XmNrightAttachment, XmATTACH_FORM,
3784 XmNleftAttachment, XmATTACH_FORM,
3786 XmNtopAttachment, XmATTACH_FORM,
3787 XmNrecomputeSize, True,
3788 XmNalignment, XmALIGNMENT_CENTER,
3789 XmNlabelType, XmSTRING,
3790 XmNlabelString, label_xmstring,
3792 XmStringFree(label_xmstring);
3793 label_xmstring = NULL;
3795 if (instance->h_field_add == NULL)
3804 dtb_options_h_field_delete_create(
3805 DtbOptionsDialogInfo instance,
3809 XmString label_xmstring = NULL;
3811 if (instance->h_field_delete == NULL) {
3812 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
3813 instance->h_field_delete =
3814 XtVaCreateWidget("dtb_options_h_field_delete",
3815 xmPushButtonWidgetClass,
3817 XmNbottomAttachment, XmATTACH_NONE,
3819 XmNrightAttachment, XmATTACH_FORM,
3821 XmNleftAttachment, XmATTACH_FORM,
3823 XmNtopAttachment, XmATTACH_WIDGET,
3824 XmNrecomputeSize, True,
3825 XmNalignment, XmALIGNMENT_CENTER,
3826 XmNlabelType, XmSTRING,
3827 XmNlabelString, label_xmstring,
3829 XmStringFree(label_xmstring);
3830 label_xmstring = NULL;
3832 if (instance->h_field_delete == NULL)
3841 dtb_options_h_field_change_create(
3842 DtbOptionsDialogInfo instance,
3846 XmString label_xmstring = NULL;
3848 if (instance->h_field_change == NULL) {
3849 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
3850 instance->h_field_change =
3851 XtVaCreateWidget("dtb_options_h_field_change",
3852 xmPushButtonWidgetClass,
3854 XmNbottomAttachment, XmATTACH_NONE,
3856 XmNrightAttachment, XmATTACH_FORM,
3858 XmNleftAttachment, XmATTACH_FORM,
3860 XmNtopAttachment, XmATTACH_WIDGET,
3861 XmNrecomputeSize, True,
3862 XmNalignment, XmALIGNMENT_CENTER,
3863 XmNlabelType, XmSTRING,
3864 XmNlabelString, label_xmstring,
3866 XmStringFree(label_xmstring);
3867 label_xmstring = NULL;
3869 if (instance->h_field_change == NULL)
3878 dtb_options_wrap_checkbox_create(
3879 DtbOptionsDialogInfo instance,
3883 XmString label_xmstring = NULL;
3884 Arg args[22]; /* need 17 args (add 5 to be safe) */
3886 Widget wrap_checkbox_items[1];
3888 if (instance->wrap_checkbox == NULL) {
3890 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
3891 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
3892 XtSetArg(args[n], XmNleftPosition, 26); ++n;
3893 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
3894 XtSetArg(args[n], XmNtopOffset, 9); ++n;
3895 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
3896 XtSetArg(args[n], XmNradioBehavior, False); ++n;
3897 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
3898 XtSetArg(args[n], XmNnumColumns, 1); ++n;
3899 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
3900 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
3901 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
3902 XtSetArg(args[n], XmNspacing, 0); ++n;
3903 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
3904 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
3905 instance->wrap_checkbox =
3906 XmCreateRadioBox(parent,
3907 "dtb_options_wrap_checkbox", args, n);
3909 if (instance->wrap_checkbox == NULL)
3912 if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL) {
3913 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 36, "Show Attachment List"));
3914 instance->wrap_checkbox_items.Show_Attachment_List_item =
3915 XtVaCreateManagedWidget("dtb_options_wrap_checkbox_show_attachment_list_item",
3916 xmToggleButtonWidgetClass,
3917 instance->wrap_checkbox,
3919 XmNlabelString, label_xmstring,
3921 XmStringFree(label_xmstring);
3922 label_xmstring = NULL;
3924 if (instance->wrap_checkbox_items.Show_Attachment_List_item == NULL)
3933 dtb_options_confirm_attachment_create(
3934 DtbOptionsDialogInfo instance,
3937 XmString label_xmstring = NULL;
3938 Arg args[32]; /* need 9 args (add 5 to be safe) */
3941 if (instance->confirm_attachment == NULL)
3943 instance->confirm_attachment =
3944 XtVaCreateWidget("dtb_options_confirm_attachment",
3947 XmNbottomAttachment, XmATTACH_NONE,
3948 XmNrightAttachment, XmATTACH_NONE,
3949 XmNleftPosition, 26,
3950 XmNleftAttachment, XmATTACH_POSITION,
3952 XmNtopAttachment, XmATTACH_WIDGET,
3953 XmNresizePolicy, XmRESIZE_ANY,
3958 if (instance->confirm_attachment == NULL) return -1;
3960 parent = instance->confirm_attachment;
3962 if (instance->cfrm_att_checkbox == NULL)
3965 XtSetArg(args[n], XmNradioBehavior, False); ++n;
3966 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
3967 XtSetArg(args[n], XmNnumColumns, 1); ++n;
3968 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
3969 XtSetArg(args[n], XmNentryVerticalAlignment,
3970 XmALIGNMENT_BASELINE_BOTTOM); ++n;
3971 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
3972 XtSetArg(args[n], XmNspacing, 0); ++n;
3973 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
3974 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
3975 instance->cfrm_att_checkbox =
3976 XmCreateRadioBox(parent, "dtb_options_cfrm_att_checkbox", args, n);
3978 if (instance->cfrm_att_checkbox == NULL) return -1;
3981 instance->cfrm_att_checkbox,
3982 XmNbottomAttachment, XmATTACH_FORM,
3983 XmNtopAttachment, XmATTACH_FORM,
3984 XmNleftAttachment, XmATTACH_FORM,
3985 XmNleftPosition, 50,
3986 XmNrightAttachment, XmATTACH_NONE,
3989 XtManageChild(instance->cfrm_att_checkbox);
3992 if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
3994 label_xmstring = XmStringCreateLocalized(
3995 GETMSG(Dtb_project_catd, 2, 94, "Confirm attachments over:"));
3997 instance->cfrm_att_checkbox_items.Confirm_Attachment_item =
3998 XtVaCreateManagedWidget(
3999 "dtb_options_cfrm_att_checkbox_Confirm_Attachment_item",
4000 xmToggleButtonWidgetClass,
4001 instance->cfrm_att_checkbox,
4003 XmNlabelString, label_xmstring,
4005 XmStringFree(label_xmstring);
4006 label_xmstring = NULL;
4008 if (instance->cfrm_att_checkbox_items.Confirm_Attachment_item == NULL)
4012 if (instance->cfrm_att_size_sb == NULL)
4015 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
4016 XtSetArg(args[n], XmNincrementValue, 1); ++n;
4017 XtSetArg(args[n], XmNposition, 1024*1024); ++n;
4018 XtSetArg(args[n], XmNminimumValue, 0); ++n;
4019 XtSetArg(args[n], XmNmaximumValue, 1024*1024); ++n;
4020 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
4021 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
4022 XtSetArg(args[n], XmNcolumns, 8); ++n;
4023 instance->cfrm_att_size_sb =
4024 XmCreateSimpleSpinBox(parent, "dtb_options_cfrm_att_size_sb", args,n);
4026 if (instance->cfrm_att_size_sb == NULL) return -1;
4029 instance->cfrm_att_size_sb,
4030 XmNbottomAttachment, XmATTACH_FORM,
4031 XmNtopAttachment, XmATTACH_FORM,
4032 XmNleftAttachment, XmATTACH_WIDGET,
4033 XmNleftWidget, instance->cfrm_att_checkbox,
4034 XmNrightAttachment, XmATTACH_NONE,
4036 XtManageChild(instance->cfrm_att_size_sb);
4039 if (instance->visit_mailb_lbl == NULL)
4042 XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 95, "kilobytes"));
4043 instance->cfrm_att_size_mb_lbl =
4044 XtVaCreateManagedWidget("dtb_options_cfrm_att_size_mb_lbl",
4047 XmNrecomputeSize, True,
4048 XmNalignment, XmALIGNMENT_CENTER,
4049 XmNlabelType, XmSTRING,
4050 XmNlabelString, label_xmstring,
4051 XmNtopAttachment, XmATTACH_FORM,
4052 XmNbottomAttachment, XmATTACH_FORM,
4054 XmNrightAttachment, XmATTACH_NONE,
4056 XmNleftAttachment, XmATTACH_WIDGET,
4057 XmNleftWidget, instance->cfrm_att_size_sb,
4059 XmStringFree(label_xmstring);
4060 label_xmstring = NULL;
4062 if (instance->cfrm_att_size_mb_lbl == NULL) return -1;
4065 instance->cfrm_att_size_mb_lbl,
4066 XmNbottomAttachment, XmATTACH_FORM,
4067 XmNtopAttachment, XmATTACH_FORM,
4068 XmNleftAttachment, XmATTACH_WIDGET,
4069 XmNleftWidget, instance->cfrm_att_size_sb,
4070 XmNrightAttachment, XmATTACH_NONE,
4080 dtb_options_separator3_create(
4081 DtbOptionsDialogInfo instance,
4086 if (instance->separator3 == NULL) {
4087 instance->separator3 =
4088 XtVaCreateWidget("dtb_options_separator3",
4089 xmSeparatorWidgetClass,
4091 XmNbottomAttachment, XmATTACH_NONE,
4093 XmNrightAttachment, XmATTACH_FORM,
4095 XmNleftAttachment, XmATTACH_FORM,
4096 XmNtopAttachment, XmATTACH_WIDGET,
4098 XmNseparatorType, XmSHADOW_ETCHED_IN,
4099 XmNorientation, XmHORIZONTAL,
4102 if (instance->separator3 == NULL)
4111 dtb_options_separator7_create(
4112 DtbOptionsDialogInfo instance,
4117 if (instance->separator7 == NULL) {
4118 instance->separator7 =
4119 XtVaCreateWidget("dtb_options_separator7",
4120 xmSeparatorWidgetClass,
4122 XmNbottomAttachment, XmATTACH_NONE,
4124 XmNrightAttachment, XmATTACH_FORM,
4126 XmNleftAttachment, XmATTACH_FORM,
4128 XmNtopAttachment, XmATTACH_WIDGET,
4129 XmNseparatorType, XmSHADOW_ETCHED_IN,
4130 XmNorientation, XmHORIZONTAL,
4133 if (instance->separator7 == NULL)
4142 dtb_options_deadletter_field_create(
4143 DtbOptionsDialogInfo instance,
4147 XmString label_xmstring = NULL;
4148 Arg args[44]; /* need 39 args (add 5 to be safe) */
4151 if (instance->deadletter_field_rowcolumn == NULL) {
4152 instance->deadletter_field_rowcolumn =
4153 XtVaCreateWidget("dtb_options_deadletter_field",
4154 xmRowColumnWidgetClass,
4156 XmNbottomAttachment, XmATTACH_NONE,
4157 XmNrightAttachment, XmATTACH_NONE,
4159 XmNleftAttachment, XmATTACH_FORM,
4161 XmNtopAttachment, XmATTACH_WIDGET,
4162 XmNadjustLast, True,
4165 XmNentryAlignment, XmALIGNMENT_END,
4166 XmNorientation, XmHORIZONTAL,
4169 if (instance->deadletter_field_rowcolumn == NULL)
4172 if (instance->deadletter_field_label == NULL) {
4173 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 38, "Dead Letter Folder:"));
4174 instance->deadletter_field_label =
4175 XtVaCreateWidget("dtb_options_deadletter_field_label",
4177 instance->deadletter_field_rowcolumn,
4178 XmNlabelType, XmSTRING,
4179 XmNlabelString, label_xmstring,
4181 XmStringFree(label_xmstring);
4182 label_xmstring = NULL;
4184 if (instance->deadletter_field_label == NULL)
4187 if (instance->deadletter_field == NULL) {
4189 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4190 XtSetArg(args[n], XmNeditable, True); ++n;
4191 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4192 instance->deadletter_field =
4193 XmCreateTextField(instance->deadletter_field_rowcolumn,
4194 "dtb_options_deadletter_field_field", args, n);
4196 if (instance->deadletter_field == NULL)
4205 dtb_options_separator9_create(
4206 DtbOptionsDialogInfo instance,
4211 if (instance->separator9 == NULL) {
4212 instance->separator9 =
4213 XtVaCreateWidget("dtb_options_separator9",
4214 xmSeparatorWidgetClass,
4216 XmNbottomAttachment, XmATTACH_NONE,
4218 XmNrightAttachment, XmATTACH_FORM,
4220 XmNleftAttachment, XmATTACH_FORM,
4222 XmNtopAttachment, XmATTACH_WIDGET,
4223 XmNseparatorType, XmSHADOW_ETCHED_IN,
4224 XmNorientation, XmHORIZONTAL,
4227 if (instance->separator9 == NULL)
4236 dtb_options_format_menu_lbl_create(
4237 DtbOptionsDialogInfo instance,
4241 XmString label_xmstring = NULL;
4243 if (instance->format_menu_lbl == NULL) {
4244 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 39, "Format Menu Custom Fields"));
4245 instance->format_menu_lbl =
4246 XtVaCreateWidget("dtb_options_format_menu_lbl",
4249 XmNbottomAttachment, XmATTACH_NONE,
4250 XmNrightAttachment, XmATTACH_NONE,
4252 XmNleftAttachment, XmATTACH_FORM,
4254 XmNtopAttachment, XmATTACH_WIDGET,
4255 XmNrecomputeSize, True,
4256 XmNalignment, XmALIGNMENT_CENTER,
4257 XmNlabelType, XmSTRING,
4258 XmNlabelString, label_xmstring,
4260 XmStringFree(label_xmstring);
4261 label_xmstring = NULL;
4263 if (instance->format_menu_lbl == NULL)
4272 dtb_options_group6_create(
4273 DtbOptionsDialogInfo instance,
4278 if (instance->group6 == NULL) {
4280 XtVaCreateWidget("dtb_options_group6",
4283 XmNbottomAttachment, XmATTACH_NONE,
4284 XmNrightAttachment, XmATTACH_NONE,
4286 XmNleftAttachment, XmATTACH_FORM,
4288 XmNtopAttachment, XmATTACH_WIDGET,
4289 XmNresizePolicy, XmRESIZE_ANY,
4294 if (instance->group6 == NULL)
4303 dtb_options_group4_create(
4304 DtbOptionsDialogInfo instance,
4309 if (instance->group4 == NULL) {
4311 XtVaCreateWidget("dtb_options_group4",
4314 XmNbottomOffset, 10,
4315 XmNbottomAttachment, XmATTACH_FORM,
4316 XmNrightAttachment, XmATTACH_NONE,
4318 XmNleftAttachment, XmATTACH_FORM,
4320 XmNtopAttachment, XmATTACH_WIDGET,
4321 XmNresizePolicy, XmRESIZE_ANY,
4326 if (instance->group4 == NULL)
4335 dtb_options_indent_str_tf_create(
4336 DtbOptionsDialogInfo instance,
4340 Arg args[19]; /* need 14 args (add 5 to be safe) */
4343 if (instance->indent_str_tf == NULL) {
4345 XtSetArg(args[n], XmNbottomOffset, 0); ++n;
4346 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); ++n;
4347 XtSetArg(args[n], XmNrightOffset, 0); ++n;
4348 XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); ++n;
4349 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4350 XtSetArg(args[n], XmNleftAttachment, XmATTACH_WIDGET); ++n;
4351 XtSetArg(args[n], XmNtopAttachment, XmATTACH_NONE); ++n;
4352 XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 37, ">")); ++n;
4353 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4354 XtSetArg(args[n], XmNeditable, True); ++n;
4355 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4356 instance->indent_str_tf =
4357 XmCreateTextField(parent,
4358 "dtb_options_indent_str_tf", args, n);
4360 if (instance->indent_str_tf == NULL)
4369 dtb_options_group23_create(
4370 DtbOptionsDialogInfo instance,
4375 if (instance->group23 == NULL) {
4377 XtVaCreateWidget("dtb_options_group23",
4381 XmNbottomAttachment, XmATTACH_FORM,
4382 XmNrightAttachment, XmATTACH_NONE,
4384 XmNleftAttachment, XmATTACH_FORM,
4386 XmNtopAttachment, XmATTACH_FORM,
4387 XmNresizePolicy, XmRESIZE_ANY,
4392 if (instance->group23 == NULL)
4401 dtb_options_indent_str_lbl_create(
4402 DtbOptionsDialogInfo instance,
4406 XmString label_xmstring = NULL;
4408 if (instance->indent_str_lbl == NULL) {
4409 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 52, "Indent string"));
4410 instance->indent_str_lbl =
4411 XtVaCreateWidget("dtb_options_indent_str_lbl",
4414 XmNrecomputeSize, True,
4415 XmNalignment, XmALIGNMENT_CENTER,
4416 XmNlabelType, XmSTRING,
4417 XmNlabelString, label_xmstring,
4419 XmStringFree(label_xmstring);
4420 label_xmstring = NULL;
4422 if (instance->indent_str_lbl == NULL)
4431 dtb_options_reply_include_lbl_create(
4432 DtbOptionsDialogInfo instance,
4436 XmString label_xmstring = NULL;
4438 if (instance->reply_include_lbl == NULL) {
4439 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 53, "for Reply Include:"));
4440 instance->reply_include_lbl =
4441 XtVaCreateWidget("dtb_options_reply_include_lbl",
4444 XmNrecomputeSize, True,
4445 XmNalignment, XmALIGNMENT_CENTER,
4446 XmNlabelType, XmSTRING,
4447 XmNlabelString, label_xmstring,
4449 XmStringFree(label_xmstring);
4450 label_xmstring = NULL;
4452 if (instance->reply_include_lbl == NULL)
4461 dtb_options_group7_create(
4462 DtbOptionsDialogInfo instance,
4467 if (instance->group7 == NULL) {
4469 XtVaCreateWidget("dtb_options_group7",
4472 XmNbottomAttachment, XmATTACH_NONE,
4473 XmNrightAttachment, XmATTACH_NONE,
4475 XmNleftAttachment, XmATTACH_WIDGET,
4477 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4478 XmNresizePolicy, XmRESIZE_ANY,
4483 if (instance->group7 == NULL)
4492 dtb_options_list_create(
4493 DtbOptionsDialogInfo instance,
4497 XmString label_xmstring = NULL;
4498 Arg args[21]; /* need 16 args (add 5 to be safe) */
4501 XmString list_list_xmstrings[2];
4505 * Convert char* strings to XmStrings
4507 list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 40, "bcc"));
4508 list_list_xmstrings[i++] = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 41, "return-receipt"));
4509 if (instance->list == NULL) {
4511 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
4512 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
4513 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
4514 XtSetArg(args[n], XmNvisibleItemCount, 5); ++n;
4515 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
4516 XtSetArg(args[n], XmNrightOffset, 0); ++n;
4517 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
4518 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4519 XtSetArg(args[n], XmNleftPosition, 24); ++n;
4520 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
4521 XtSetArg(args[n], XmNtopOffset, 6); ++n;
4522 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
4523 XtSetArg(args[n], XmNitems, (XtArgVal)list_list_xmstrings); n++;
4524 XtSetArg(args[n], XmNitemCount, (XtArgVal)2); n++;
4526 XmCreateScrolledList(parent,
4527 "dtb_options_list_list", args, n);
4529 instance->list_scrolledwin = XtParent(instance->list);
4530 if (instance->list == NULL)
4539 dtb_options_menu_labels_lbl_create(
4540 DtbOptionsDialogInfo instance,
4544 XmString label_xmstring = NULL;
4546 if (instance->menu_labels_lbl == NULL) {
4547 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 42, "Menu Labels:"));
4548 instance->menu_labels_lbl =
4549 XtVaCreateWidget("dtb_options_menu_labels_lbl",
4552 XmNbottomAttachment, XmATTACH_NONE,
4554 XmNrightPosition, 24,
4555 XmNrightAttachment, XmATTACH_POSITION,
4556 XmNleftAttachment, XmATTACH_NONE,
4558 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4559 XmNrecomputeSize, True,
4560 XmNalignment, XmALIGNMENT_CENTER,
4561 XmNlabelType, XmSTRING,
4562 XmNlabelString, label_xmstring,
4564 XmStringFree(label_xmstring);
4565 label_xmstring = NULL;
4567 if (instance->menu_labels_lbl == NULL)
4576 dtb_options_hdr_field_create(
4577 DtbOptionsDialogInfo instance,
4581 Arg args[18]; /* need 13 args (add 5 to be safe) */
4584 if (instance->hdr_field == NULL) {
4586 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
4587 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
4588 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4589 XtSetArg(args[n], XmNleftPosition, 24); ++n;
4590 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
4591 XtSetArg(args[n], XmNtopOffset, 0); ++n;
4592 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
4593 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4594 XtSetArg(args[n], XmNeditable, True); ++n;
4595 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4596 instance->hdr_field =
4597 XmCreateTextField(parent,
4598 "dtb_options_hdr_field", args, n);
4600 if (instance->hdr_field == NULL)
4609 dtb_options_def_value_field_create(
4610 DtbOptionsDialogInfo instance,
4614 Arg args[18]; /* need 13 args (add 5 to be safe) */
4617 if (instance->def_value_field == NULL) {
4619 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
4620 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
4621 XtSetArg(args[n], XmNleftOffset, 4); ++n;
4622 XtSetArg(args[n], XmNleftPosition, 24); ++n;
4623 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
4624 XtSetArg(args[n], XmNtopOffset, 6); ++n;
4625 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
4626 XtSetArg(args[n], XmNmaxLength, 80); ++n;
4627 XtSetArg(args[n], XmNeditable, True); ++n;
4628 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
4629 instance->def_value_field =
4630 XmCreateTextField(parent,
4631 "dtb_options_def_value_field", args, n);
4633 if (instance->def_value_field == NULL)
4642 dtb_options_hdr_field_lbl_create(
4643 DtbOptionsDialogInfo instance,
4647 XmString label_xmstring = NULL;
4649 if (instance->hdr_field_lbl == NULL) {
4650 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 50, "Header Field:"));
4651 instance->hdr_field_lbl =
4652 XtVaCreateWidget("dtb_options_hdr_field_lbl",
4656 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4658 XmNrightPosition, 24,
4659 XmNrightAttachment, XmATTACH_POSITION,
4660 XmNleftAttachment, XmATTACH_NONE,
4662 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4663 XmNrecomputeSize, True,
4664 XmNalignment, XmALIGNMENT_CENTER,
4665 XmNlabelType, XmSTRING,
4666 XmNlabelString, label_xmstring,
4668 XmStringFree(label_xmstring);
4669 label_xmstring = NULL;
4671 if (instance->hdr_field_lbl == NULL)
4680 dtb_options_def_value_lbl_create(
4681 DtbOptionsDialogInfo instance,
4685 XmString label_xmstring = NULL;
4687 if (instance->def_value_lbl == NULL) {
4688 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 51, "Default Value:"));
4689 instance->def_value_lbl =
4690 XtVaCreateWidget("dtb_options_def_value_lbl",
4694 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
4696 XmNrightPosition, 24,
4697 XmNrightAttachment, XmATTACH_POSITION,
4698 XmNleftAttachment, XmATTACH_NONE,
4700 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
4701 XmNrecomputeSize, True,
4702 XmNalignment, XmALIGNMENT_CENTER,
4703 XmNlabelType, XmSTRING,
4704 XmNlabelString, label_xmstring,
4706 XmStringFree(label_xmstring);
4707 label_xmstring = NULL;
4709 if (instance->def_value_lbl == NULL)
4718 dtb_options_add_button_create(
4719 DtbOptionsDialogInfo instance,
4723 XmString label_xmstring = NULL;
4725 if (instance->add_button == NULL) {
4726 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
4727 instance->add_button =
4728 XtVaCreateWidget("dtb_options_add_button",
4729 xmPushButtonWidgetClass,
4731 XmNbottomAttachment, XmATTACH_NONE,
4733 XmNrightAttachment, XmATTACH_FORM,
4735 XmNleftAttachment, XmATTACH_FORM,
4737 XmNtopAttachment, XmATTACH_FORM,
4738 XmNrecomputeSize, True,
4739 XmNalignment, XmALIGNMENT_CENTER,
4740 XmNlabelType, XmSTRING,
4741 XmNlabelString, label_xmstring,
4743 XmStringFree(label_xmstring);
4744 label_xmstring = NULL;
4746 if (instance->add_button == NULL)
4755 dtb_options_del_button_create(
4756 DtbOptionsDialogInfo instance,
4760 XmString label_xmstring = NULL;
4762 if (instance->del_button == NULL) {
4763 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
4764 instance->del_button =
4765 XtVaCreateWidget("dtb_options_del_button",
4766 xmPushButtonWidgetClass,
4768 XmNbottomAttachment, XmATTACH_NONE,
4770 XmNrightAttachment, XmATTACH_FORM,
4772 XmNleftAttachment, XmATTACH_FORM,
4774 XmNtopAttachment, XmATTACH_WIDGET,
4775 XmNrecomputeSize, True,
4776 XmNalignment, XmALIGNMENT_CENTER,
4777 XmNlabelType, XmSTRING,
4778 XmNlabelString, label_xmstring,
4780 XmStringFree(label_xmstring);
4781 label_xmstring = NULL;
4783 if (instance->del_button == NULL)
4792 dtb_options_change_button_create(
4793 DtbOptionsDialogInfo instance,
4797 XmString label_xmstring = NULL;
4799 if (instance->change_button == NULL) {
4800 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
4801 instance->change_button =
4802 XtVaCreateWidget("dtb_options_change_button",
4803 xmPushButtonWidgetClass,
4805 XmNbottomAttachment, XmATTACH_NONE,
4806 XmNrightAttachment, XmATTACH_NONE,
4808 XmNleftAttachment, XmATTACH_FORM,
4810 XmNtopAttachment, XmATTACH_WIDGET,
4811 XmNrecomputeSize, True,
4812 XmNalignment, XmALIGNMENT_CENTER,
4813 XmNlabelType, XmSTRING,
4814 XmNlabelString, label_xmstring,
4816 XmStringFree(label_xmstring);
4817 label_xmstring = NULL;
4819 if (instance->change_button == NULL)
4828 dtb_options_separator8_create(
4829 DtbOptionsDialogInfo instance,
4834 if (instance->separator8 == NULL) {
4835 instance->separator8 =
4836 XtVaCreateWidget("dtb_options_separator8",
4837 xmSeparatorWidgetClass,
4839 XmNbottomAttachment, XmATTACH_NONE,
4841 XmNrightAttachment, XmATTACH_FORM,
4843 XmNleftAttachment, XmATTACH_FORM,
4845 XmNtopAttachment, XmATTACH_WIDGET,
4846 XmNseparatorType, XmSHADOW_ETCHED_IN,
4847 XmNorientation, XmHORIZONTAL,
4850 if (instance->separator8 == NULL)
4859 dtb_options_separator5_create(
4860 DtbOptionsDialogInfo instance,
4865 if (instance->separator5 == NULL) {
4866 instance->separator5 =
4867 XtVaCreateWidget("dtb_options_separator5",
4868 xmSeparatorWidgetClass,
4870 XmNbottomAttachment, XmATTACH_NONE,
4872 XmNrightAttachment, XmATTACH_FORM,
4874 XmNleftAttachment, XmATTACH_FORM,
4876 XmNtopAttachment, XmATTACH_WIDGET,
4877 XmNseparatorType, XmSHADOW_ETCHED_IN,
4878 XmNorientation, XmHORIZONTAL,
4881 if (instance->separator5 == NULL)
4890 dtb_options_group25_create(
4891 DtbOptionsDialogInfo instance,
4896 if (instance->group25 == NULL) {
4898 XtVaCreateWidget("dtb_options_group25",
4901 XmNbottomAttachment, XmATTACH_NONE,
4902 XmNrightAttachment, XmATTACH_NONE,
4904 XmNleftAttachment, XmATTACH_FORM,
4906 XmNtopAttachment, XmATTACH_WIDGET,
4907 XmNresizePolicy, XmRESIZE_ANY,
4912 if (instance->group25 == NULL)
4921 dtb_options_mailb_for_sent_lbl_create(
4922 DtbOptionsDialogInfo instance,
4926 XmString label_xmstring = NULL;
4928 if (instance->mailb_for_sent_lbl == NULL) {
4929 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 61, "Mailbox for sent messages:"));
4930 instance->mailb_for_sent_lbl =
4931 XtVaCreateWidget("dtb_options_mailb_for_sent_lbl",
4934 XmNbottomAttachment, XmATTACH_NONE,
4935 XmNrightAttachment, XmATTACH_NONE,
4937 XmNleftAttachment, XmATTACH_FORM,
4939 XmNtopAttachment, XmATTACH_WIDGET,
4940 XmNrecomputeSize, True,
4941 XmNalignment, XmALIGNMENT_CENTER,
4942 XmNlabelType, XmSTRING,
4943 XmNlabelString, label_xmstring,
4945 XmStringFree(label_xmstring);
4946 label_xmstring = NULL;
4948 if (instance->mailb_for_sent_lbl == NULL)
4957 dtb_options_group26_create(
4958 DtbOptionsDialogInfo instance,
4963 if (instance->group26 == NULL) {
4965 XtVaCreateWidget("dtb_options_group26",
4968 XmNbottomOffset, 10,
4969 XmNbottomAttachment, XmATTACH_FORM,
4970 XmNrightAttachment, XmATTACH_NONE,
4972 XmNleftAttachment, XmATTACH_FORM,
4974 XmNtopAttachment, XmATTACH_WIDGET,
4975 XmNresizePolicy, XmRESIZE_ANY,
4980 if (instance->group26 == NULL)
4989 dtb_options_group9_create(
4990 DtbOptionsDialogInfo instance,
4995 if (instance->group9 == NULL) {
4997 XtVaCreateWidget("dtb_options_group9",
5000 XmNbottomAttachment, XmATTACH_NONE,
5001 XmNrightAttachment, XmATTACH_NONE,
5003 XmNleftAttachment, XmATTACH_FORM,
5005 XmNtopAttachment, XmATTACH_FORM,
5006 XmNresizePolicy, XmRESIZE_ANY,
5011 if (instance->group9 == NULL)
5020 dtb_options_dpy_up_mbox_cb_create(
5021 DtbOptionsDialogInfo instance,
5025 XmString label_xmstring = NULL;
5026 Arg args[14]; /* need 9 args (add 5 to be safe) */
5028 Widget dpy_up_mbox_cb_items[1];
5030 if (instance->dpy_up_mbox_cb == NULL) {
5032 XtSetArg(args[n], XmNradioBehavior, False); ++n;
5033 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
5034 XtSetArg(args[n], XmNnumColumns, 1); ++n;
5035 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
5036 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
5037 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
5038 XtSetArg(args[n], XmNspacing, 0); ++n;
5039 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
5040 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
5041 instance->dpy_up_mbox_cb =
5042 XmCreateRadioBox(parent,
5043 "dtb_options_dpy_up_mbox_cb", args, n);
5045 if (instance->dpy_up_mbox_cb == NULL)
5048 if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL) {
5049 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 59, "Display up to:"));
5050 instance->dpy_up_mbox_cb_items.Display_up_to_item =
5051 XtVaCreateManagedWidget("dtb_options_dpy_up_mbox_cb_display_up_to_item",
5052 xmToggleButtonWidgetClass,
5053 instance->dpy_up_mbox_cb,
5055 XmNlabelString, label_xmstring,
5057 XmStringFree(label_xmstring);
5058 label_xmstring = NULL;
5060 if (instance->dpy_up_mbox_cb_items.Display_up_to_item == NULL)
5069 dtb_options_recent_sb_create(
5070 DtbOptionsDialogInfo instance,
5074 Arg args[13]; /* need 8 args (add 5 to be safe) */
5078 if (instance->recent_sb == NULL) {
5080 XtSetArg(args[n], XmNdecimalPoints, 0); ++n;
5081 XtSetArg(args[n], XmNincrementValue, 1); ++n;
5082 XtSetArg(args[n], XmNposition, 5); ++n;
5083 XtSetArg(args[n], XmNmaximumValue, 100); ++n;
5084 XtSetArg(args[n], XmNminimumValue, 0); ++n;
5085 XtSetArg(args[n], XmNarrowLayout, XmARROWS_END); ++n;
5086 XtSetArg(args[n], XmNspinBoxChildType, XmNUMERIC); ++n;
5087 XtSetArg(args[n], XmNcolumns, 6); ++n;
5088 instance->recent_sb =
5089 XmCreateSimpleSpinBox(parent,
5090 "dtb_options_recent_sb", args, n);
5092 if (instance->recent_sb == NULL)
5101 dtb_options_visit_mailb_lbl_create(
5102 DtbOptionsDialogInfo instance,
5106 XmString label_xmstring = NULL;
5108 if (instance->visit_mailb_lbl == NULL) {
5109 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 60, "Recently visited mailboxes"));
5110 instance->visit_mailb_lbl =
5111 XtVaCreateWidget("dtb_options_visit_mailb_lbl",
5114 XmNrecomputeSize, True,
5115 XmNalignment, XmALIGNMENT_CENTER,
5116 XmNlabelType, XmSTRING,
5117 XmNlabelString, label_xmstring,
5118 XmNtopAttachment, XmATTACH_FORM,
5120 XmNbottomAttachment, XmATTACH_FORM,
5122 XmNrightAttachment, XmATTACH_NONE,
5124 XmNleftAttachment, XmATTACH_WIDGET,
5126 XmStringFree(label_xmstring);
5127 label_xmstring = NULL;
5129 if (instance->visit_mailb_lbl == NULL)
5138 dtb_options_sent_mail_tf_create(
5139 DtbOptionsDialogInfo instance,
5143 Arg args[9]; /* need 4 args (add 5 to be safe) */
5146 if (instance->sent_mail_tf == NULL) {
5148 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5149 XtSetArg(args[n], XmNeditable, True); ++n;
5150 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5151 instance->sent_mail_tf =
5152 XmCreateTextField(parent,
5153 "dtb_options_sent_mail_tf", args, n);
5155 if (instance->sent_mail_tf == NULL)
5164 dtb_options_log_cb_create(
5165 DtbOptionsDialogInfo instance,
5169 XmString label_xmstring = NULL;
5170 Arg args[14]; /* need 9 args (add 5 to be safe) */
5172 Widget log_cb_items[1];
5174 if (instance->log_cb == NULL) {
5176 XtSetArg(args[n], XmNradioBehavior, False); ++n;
5177 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
5178 XtSetArg(args[n], XmNnumColumns, 1); ++n;
5179 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
5180 XtSetArg(args[n], XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM); ++n;
5181 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
5182 XtSetArg(args[n], XmNspacing, 0); ++n;
5183 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
5184 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
5186 XmCreateRadioBox(parent,
5187 "dtb_options_log_cb", args, n);
5189 if (instance->log_cb == NULL)
5192 if (instance->log_cb_items.Log_all_sent_messages_item == NULL) {
5193 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 62, "Log all sent messages"));
5194 instance->log_cb_items.Log_all_sent_messages_item =
5195 XtVaCreateManagedWidget("dtb_options_log_cb_log_all_sent_messages_item",
5196 xmToggleButtonWidgetClass,
5199 XmNlabelString, label_xmstring,
5201 XmStringFree(label_xmstring);
5202 label_xmstring = NULL;
5204 if (instance->log_cb_items.Log_all_sent_messages_item == NULL)
5213 dtb_options_group24_create(
5214 DtbOptionsDialogInfo instance,
5219 if (instance->group24 == NULL) {
5221 XtVaCreateWidget("dtb_options_group24",
5224 XmNbottomAttachment, XmATTACH_NONE,
5225 XmNrightAttachment, XmATTACH_NONE,
5227 XmNleftAttachment, XmATTACH_WIDGET,
5229 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5230 XmNresizePolicy, XmRESIZE_ANY,
5235 if (instance->group24 == NULL)
5244 dtb_options_path_file_name_tf_create(
5245 DtbOptionsDialogInfo instance,
5249 Arg args[18]; /* need 13 args (add 5 to be safe) */
5252 if (instance->path_file_name_tf == NULL) {
5254 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5255 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5256 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5257 XtSetArg(args[n], XmNleftPosition, 30); ++n;
5258 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5259 XtSetArg(args[n], XmNtopOffset, 0); ++n;
5260 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
5261 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5262 XtSetArg(args[n], XmNeditable, True); ++n;
5263 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5264 instance->path_file_name_tf =
5265 XmCreateTextField(parent,
5266 "dtb_options_path_file_name_tf", args, n);
5268 if (instance->path_file_name_tf == NULL)
5277 dtb_options_mv_menu_lst_create(
5278 DtbOptionsDialogInfo instance,
5282 Arg args[17]; /* need 12 args (add 5 to be safe) */
5286 if (instance->mv_menu_lst == NULL) {
5288 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
5289 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
5290 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
5291 XtSetArg(args[n], XmNvisibleItemCount, 8); ++n;
5292 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5293 XtSetArg(args[n], XmNrightOffset, 0); ++n;
5294 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
5295 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5296 XtSetArg(args[n], XmNleftPosition, 30); ++n;
5297 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5298 XtSetArg(args[n], XmNtopOffset, 6); ++n;
5299 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5300 instance->mv_menu_lst =
5301 XmCreateScrolledList(parent,
5302 "dtb_options_mv_menu_lst_list", args, n);
5304 instance->mv_menu_lst_scrolledwin = XtParent(instance->mv_menu_lst);
5305 if (instance->mv_menu_lst == NULL)
5314 dtb_options_srt_looking_tf_create(
5315 DtbOptionsDialogInfo instance,
5319 Arg args[18]; /* need 13 args (add 5 to be safe) */
5322 if (instance->srt_looking_tf == NULL) {
5324 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5325 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5326 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5327 XtSetArg(args[n], XmNleftPosition, 30); ++n;
5328 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5329 XtSetArg(args[n], XmNtopOffset, 6); ++n;
5330 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5331 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5332 XtSetArg(args[n], XmNeditable, True); ++n;
5333 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5334 instance->srt_looking_tf =
5335 XmCreateTextField(parent,
5336 "dtb_options_srt_looking_tf", args, n);
5338 if (instance->srt_looking_tf == NULL)
5347 dtb_options_move_menu_lbl_create(
5348 DtbOptionsDialogInfo instance,
5352 XmString label_xmstring = NULL;
5354 if (instance->move_menu_lbl == NULL) {
5355 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 57, "Move Menu"));
5356 instance->move_menu_lbl =
5357 XtVaCreateWidget("dtb_options_move_menu_lbl",
5360 XmNbottomAttachment, XmATTACH_NONE,
5362 XmNrightPosition, 30,
5363 XmNrightAttachment, XmATTACH_POSITION,
5364 XmNleftAttachment, XmATTACH_NONE,
5366 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5367 XmNrecomputeSize, True,
5368 XmNalignment, XmALIGNMENT_CENTER,
5369 XmNlabelType, XmSTRING,
5370 XmNlabelString, label_xmstring,
5372 XmStringFree(label_xmstring);
5373 label_xmstring = NULL;
5375 if (instance->move_menu_lbl == NULL)
5384 dtb_options_move_menu_lbl2_create(
5385 DtbOptionsDialogInfo instance,
5389 XmString label_xmstring = NULL;
5391 if (instance->move_menu_lbl2 == NULL) {
5392 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 58, "and Copy To Menu:"));
5393 instance->move_menu_lbl2 =
5394 XtVaCreateWidget("dtb_options_move_menu_lbl2",
5397 XmNbottomAttachment, XmATTACH_NONE,
5399 XmNrightPosition, 30,
5400 XmNrightAttachment, XmATTACH_POSITION,
5401 XmNleftAttachment, XmATTACH_NONE,
5403 XmNtopAttachment, XmATTACH_WIDGET,
5404 XmNrecomputeSize, True,
5405 XmNalignment, XmALIGNMENT_CENTER,
5406 XmNlabelType, XmSTRING,
5407 XmNlabelString, label_xmstring,
5409 XmStringFree(label_xmstring);
5410 label_xmstring = NULL;
5412 if (instance->move_menu_lbl2 == NULL)
5421 dtb_options_path_file_lbl_create(
5422 DtbOptionsDialogInfo instance,
5426 XmString label_xmstring = NULL;
5428 if (instance->path_file_lbl == NULL) {
5429 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
5430 instance->path_file_lbl =
5431 XtVaCreateWidget("dtb_options_path_file_lbl",
5435 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5437 XmNrightPosition, 30,
5438 XmNrightAttachment, XmATTACH_POSITION,
5439 XmNleftAttachment, XmATTACH_NONE,
5441 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5442 XmNrecomputeSize, True,
5443 XmNalignment, XmALIGNMENT_CENTER,
5444 XmNlabelType, XmSTRING,
5445 XmNlabelString, label_xmstring,
5447 XmStringFree(label_xmstring);
5448 label_xmstring = NULL;
5450 if (instance->path_file_lbl == NULL)
5459 dtb_options_start_look_lbl_create(
5460 DtbOptionsDialogInfo instance,
5464 XmString label_xmstring = NULL;
5466 if (instance->start_look_lbl == NULL) {
5467 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 55, "Start looking in:"));
5468 instance->start_look_lbl =
5469 XtVaCreateWidget("dtb_options_start_look_lbl",
5473 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5475 XmNrightPosition, 30,
5476 XmNrightAttachment, XmATTACH_POSITION,
5477 XmNleftAttachment, XmATTACH_NONE,
5479 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5480 XmNrecomputeSize, True,
5481 XmNalignment, XmALIGNMENT_CENTER,
5482 XmNlabelType, XmSTRING,
5483 XmNlabelString, label_xmstring,
5485 XmStringFree(label_xmstring);
5486 label_xmstring = NULL;
5488 if (instance->start_look_lbl == NULL)
5497 dtb_options_mm_add_butt_create(
5498 DtbOptionsDialogInfo instance,
5502 XmString label_xmstring = NULL;
5504 if (instance->mm_add_butt == NULL) {
5505 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
5506 instance->mm_add_butt =
5507 XtVaCreateWidget("dtb_options_mm_add_butt",
5508 xmPushButtonWidgetClass,
5510 XmNbottomAttachment, XmATTACH_NONE,
5512 XmNrightAttachment, XmATTACH_FORM,
5514 XmNleftAttachment, XmATTACH_FORM,
5516 XmNtopAttachment, XmATTACH_FORM,
5517 XmNrecomputeSize, True,
5518 XmNalignment, XmALIGNMENT_CENTER,
5519 XmNlabelType, XmSTRING,
5520 XmNlabelString, label_xmstring,
5522 XmStringFree(label_xmstring);
5523 label_xmstring = NULL;
5525 if (instance->mm_add_butt == NULL)
5534 dtb_options_mm_delete_butt_create(
5535 DtbOptionsDialogInfo instance,
5539 XmString label_xmstring = NULL;
5541 if (instance->mm_delete_butt == NULL) {
5542 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
5543 instance->mm_delete_butt =
5544 XtVaCreateWidget("dtb_options_mm_delete_butt",
5545 xmPushButtonWidgetClass,
5547 XmNbottomAttachment, XmATTACH_NONE,
5549 XmNrightAttachment, XmATTACH_FORM,
5551 XmNleftAttachment, XmATTACH_FORM,
5553 XmNtopAttachment, XmATTACH_WIDGET,
5554 XmNrecomputeSize, True,
5555 XmNalignment, XmALIGNMENT_CENTER,
5556 XmNlabelType, XmSTRING,
5557 XmNlabelString, label_xmstring,
5559 XmStringFree(label_xmstring);
5560 label_xmstring = NULL;
5562 if (instance->mm_delete_butt == NULL)
5571 dtb_options_mm_change_butt_create(
5572 DtbOptionsDialogInfo instance,
5576 XmString label_xmstring = NULL;
5578 if (instance->mm_change_butt == NULL) {
5579 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
5580 instance->mm_change_butt =
5581 XtVaCreateWidget("dtb_options_mm_change_butt",
5582 xmPushButtonWidgetClass,
5584 XmNbottomAttachment, XmATTACH_NONE,
5586 XmNrightAttachment, XmATTACH_FORM,
5588 XmNleftAttachment, XmATTACH_FORM,
5590 XmNtopAttachment, XmATTACH_WIDGET,
5591 XmNrecomputeSize, True,
5592 XmNalignment, XmALIGNMENT_CENTER,
5593 XmNlabelType, XmSTRING,
5594 XmNlabelString, label_xmstring,
5596 XmStringFree(label_xmstring);
5597 label_xmstring = NULL;
5599 if (instance->mm_change_butt == NULL)
5608 dtb_options_vacation_lbl_create(
5609 DtbOptionsDialogInfo instance,
5613 XmString label_xmstring = NULL;
5615 if (instance->vacation_lbl == NULL) {
5616 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 66, "Vacation Precedence = junk"));
5617 instance->vacation_lbl =
5618 XtVaCreateWidget("dtb_options_vacation_lbl",
5621 XmNbottomAttachment, XmATTACH_NONE,
5622 XmNrightAttachment, XmATTACH_NONE,
5624 XmNleftAttachment, XmATTACH_FORM,
5626 XmNtopAttachment, XmATTACH_FORM,
5627 XmNrecomputeSize, True,
5628 XmNalignment, XmALIGNMENT_CENTER,
5629 XmNlabelType, XmSTRING,
5630 XmNlabelString, label_xmstring,
5632 XmStringFree(label_xmstring);
5633 label_xmstring = NULL;
5635 if (instance->vacation_lbl == NULL)
5644 dtb_options_group10_create(
5645 DtbOptionsDialogInfo instance,
5650 if (instance->group10 == NULL) {
5652 XtVaCreateWidget("dtb_options_group10",
5655 XmNbottomOffset, 10,
5656 XmNbottomAttachment, XmATTACH_FORM,
5657 XmNrightAttachment, XmATTACH_NONE,
5659 XmNleftAttachment, XmATTACH_FORM,
5661 XmNtopAttachment, XmATTACH_WIDGET,
5662 XmNresizePolicy, XmRESIZE_ANY,
5667 if (instance->group10 == NULL)
5676 dtb_options_vacation_rb_create(
5677 DtbOptionsDialogInfo instance,
5681 XmString label_xmstring = NULL;
5682 Arg args[22]; /* need 17 args (add 5 to be safe) */
5684 Widget vacation_rb_items[2];
5686 if (instance->vacation_rb == NULL) {
5688 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5689 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5690 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5691 XtSetArg(args[n], XmNleftPosition, 20); ++n;
5692 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5693 XtSetArg(args[n], XmNtopOffset, 0); ++n;
5694 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
5695 XtSetArg(args[n], XmNradioBehavior, True); ++n;
5696 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
5697 XtSetArg(args[n], XmNnumColumns, 1); ++n;
5698 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
5699 XtSetArg(args[n], XmNorientation, XmHORIZONTAL); ++n;
5700 XtSetArg(args[n], XmNspacing, 0); ++n;
5701 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
5702 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
5703 instance->vacation_rb =
5704 XmCreateRadioBox(parent,
5705 "dtb_options_vacation_rb", args, n);
5707 if (instance->vacation_rb == NULL)
5710 if (instance->vacation_rb_items.On_item == NULL) {
5711 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 64, "On"));
5712 instance->vacation_rb_items.On_item =
5713 XtVaCreateManagedWidget("dtb_options_vacation_rb_on_item",
5714 xmToggleButtonWidgetClass,
5715 instance->vacation_rb,
5717 XmNlabelString, label_xmstring,
5719 XmStringFree(label_xmstring);
5720 label_xmstring = NULL;
5722 if (instance->vacation_rb_items.On_item == NULL)
5725 if (instance->vacation_rb_items.Off_item == NULL) {
5726 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 65, "Off"));
5727 instance->vacation_rb_items.Off_item =
5728 XtVaCreateManagedWidget("dtb_options_vacation_rb_off_item",
5729 xmToggleButtonWidgetClass,
5730 instance->vacation_rb,
5732 XmNlabelString, label_xmstring,
5734 XmStringFree(label_xmstring);
5735 label_xmstring = NULL;
5737 if (instance->vacation_rb_items.Off_item == NULL)
5746 dtb_options_vacation_msg_tp_create(
5747 DtbOptionsDialogInfo instance,
5751 Arg args[33]; /* need 28 args (add 5 to be safe) */
5754 if (instance->vacation_msg_tp == NULL) {
5756 XtSetArg(args[n], XmNbottomOffset, 0); ++n;
5757 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_FORM); ++n;
5758 XtSetArg(args[n], XmNrightOffset, 0); ++n;
5759 XtSetArg(args[n], XmNrightAttachment, XmATTACH_FORM); ++n;
5760 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5761 XtSetArg(args[n], XmNleftPosition, 20); ++n;
5762 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5763 XtSetArg(args[n], XmNtopOffset, 6); ++n;
5764 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5765 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
5766 XtSetArg(args[n], XmNvisualPolicy, XmVARIABLE); ++n;
5767 XtSetArg(args[n], XmNscrollingPolicy, XmAPPLICATION_DEFINED); ++n;
5768 XtSetArg(args[n], XmNwordWrap, True); ++n;
5769 XtSetArg(args[n], XmNeditMode, XmMULTI_LINE_EDIT); ++n;
5770 XtSetArg(args[n], XmNscrollHorizontal, False); ++n;
5771 XtSetArg(args[n], XmNscrollVertical, True); ++n;
5772 XtSetArg(args[n], XmNrows, 20); ++n;
5773 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5774 XtSetArg(args[n], XmNeditable, True); ++n;
5775 instance->vacation_msg_tp =
5776 XmCreateScrolledText(parent,
5777 "dtb_options_vacation_msg_tp_pane", args, n);
5779 instance->vacation_msg_tp_scrolledwin = XtParent(instance->vacation_msg_tp);
5786 dtb_options_subject_tf_create(
5787 DtbOptionsDialogInfo instance,
5791 Arg args[19]; /* need 14 args (add 5 to be safe) */
5794 if (instance->subject_tf == NULL) {
5796 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
5797 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
5798 XtSetArg(args[n], XmNleftOffset, 4); ++n;
5799 XtSetArg(args[n], XmNleftPosition, 20); ++n;
5800 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
5801 XtSetArg(args[n], XmNtopOffset, 4); ++n;
5802 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
5803 XtSetArg(args[n], XmNvalue, GETMSG(Dtb_project_catd, 2, 68, "Out of the office")); ++n;
5804 XtSetArg(args[n], XmNmaxLength, 80); ++n;
5805 XtSetArg(args[n], XmNeditable, True); ++n;
5806 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
5807 instance->subject_tf =
5808 XmCreateTextField(parent,
5809 "dtb_options_subject_tf", args, n);
5811 if (instance->subject_tf == NULL)
5820 dtb_options_msg_list_lbl_create(
5821 DtbOptionsDialogInfo instance,
5825 XmString label_xmstring = NULL;
5827 if (instance->msg_list_lbl == NULL) {
5828 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 69, "Message:"));
5829 instance->msg_list_lbl =
5830 XtVaCreateWidget("dtb_options_msg_list_lbl",
5833 XmNbottomAttachment, XmATTACH_NONE,
5835 XmNrightPosition, 20,
5836 XmNrightAttachment, XmATTACH_POSITION,
5837 XmNleftAttachment, XmATTACH_NONE,
5839 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5840 XmNrecomputeSize, True,
5841 XmNalignment, XmALIGNMENT_CENTER,
5842 XmNlabelType, XmSTRING,
5843 XmNlabelString, label_xmstring,
5845 XmStringFree(label_xmstring);
5846 label_xmstring = NULL;
5848 if (instance->msg_list_lbl == NULL)
5857 dtb_options_subject_lbl_create(
5858 DtbOptionsDialogInfo instance,
5862 XmString label_xmstring = NULL;
5864 if (instance->subject_lbl == NULL) {
5865 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 67, "Subject:"));
5866 instance->subject_lbl =
5867 XtVaCreateWidget("dtb_options_subject_lbl",
5871 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5873 XmNrightPosition, 20,
5874 XmNrightAttachment, XmATTACH_POSITION,
5875 XmNleftAttachment, XmATTACH_NONE,
5877 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5878 XmNrecomputeSize, True,
5879 XmNalignment, XmALIGNMENT_CENTER,
5880 XmNlabelType, XmSTRING,
5881 XmNlabelString, label_xmstring,
5883 XmStringFree(label_xmstring);
5884 label_xmstring = NULL;
5886 if (instance->subject_lbl == NULL)
5895 dtb_options_vacation_rb_lbl_create(
5896 DtbOptionsDialogInfo instance,
5900 XmString label_xmstring = NULL;
5902 if (instance->vacation_rb_lbl == NULL) {
5903 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 63, "Vacation:"));
5904 instance->vacation_rb_lbl =
5905 XtVaCreateWidget("dtb_options_vacation_rb_lbl",
5909 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
5911 XmNrightPosition, 20,
5912 XmNrightAttachment, XmATTACH_POSITION,
5913 XmNleftAttachment, XmATTACH_NONE,
5915 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5916 XmNrecomputeSize, True,
5917 XmNalignment, XmALIGNMENT_CENTER,
5918 XmNlabelType, XmSTRING,
5919 XmNlabelString, label_xmstring,
5921 XmStringFree(label_xmstring);
5922 label_xmstring = NULL;
5924 if (instance->vacation_rb_lbl == NULL)
5933 dtb_options_group13_create(
5934 DtbOptionsDialogInfo instance,
5939 if (instance->group13 == NULL) {
5941 XtVaCreateWidget("dtb_options_group13",
5944 XmNbottomOffset, 10,
5945 XmNbottomAttachment, XmATTACH_FORM,
5947 XmNrightAttachment, XmATTACH_FORM,
5949 XmNleftAttachment, XmATTACH_FORM,
5951 XmNtopAttachment, XmATTACH_FORM,
5952 XmNresizePolicy, XmRESIZE_ANY,
5957 if (instance->group13 == NULL)
5966 dtb_options_group11_create(
5967 DtbOptionsDialogInfo instance,
5972 if (instance->group11 == NULL) {
5974 XtVaCreateWidget("dtb_options_group11",
5977 XmNbottomAttachment, XmATTACH_NONE,
5978 XmNrightAttachment, XmATTACH_NONE,
5980 XmNleftAttachment, XmATTACH_WIDGET,
5982 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
5983 XmNresizePolicy, XmRESIZE_ANY,
5988 if (instance->group11 == NULL)
5997 dtb_options_menu_label_create(
5998 DtbOptionsDialogInfo instance,
6002 Arg args[18]; /* need 13 args (add 5 to be safe) */
6005 if (instance->menu_label == NULL) {
6007 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6008 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6009 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6010 XtSetArg(args[n], XmNleftPosition, 23); ++n;
6011 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6012 XtSetArg(args[n], XmNtopOffset, 0); ++n;
6013 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
6014 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6015 XtSetArg(args[n], XmNeditable, True); ++n;
6016 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6017 instance->menu_label =
6018 XmCreateTextField(parent,
6019 "dtb_options_menu_label", args, n);
6021 if (instance->menu_label == NULL)
6030 dtb_options_path_filename_label_create(
6031 DtbOptionsDialogInfo instance,
6035 Arg args[18]; /* need 13 args (add 5 to be safe) */
6038 if (instance->path_filename_label == NULL) {
6040 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6041 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6042 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6043 XtSetArg(args[n], XmNleftPosition, 23); ++n;
6044 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6045 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6046 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6047 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6048 XtSetArg(args[n], XmNeditable, True); ++n;
6049 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6050 instance->path_filename_label =
6051 XmCreateTextField(parent,
6052 "dtb_options_path_filename_label", args, n);
6054 if (instance->path_filename_label == NULL)
6063 dtb_options_templates_list_create(
6064 DtbOptionsDialogInfo instance,
6068 Arg args[17]; /* need 12 args (add 5 to be safe) */
6072 if (instance->templates_list == NULL) {
6074 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
6075 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
6076 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
6077 XtSetArg(args[n], XmNvisibleItemCount, 18); ++n;
6078 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6079 XtSetArg(args[n], XmNrightOffset, 0); ++n;
6080 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
6081 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6082 XtSetArg(args[n], XmNleftPosition, 23); ++n;
6083 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6084 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6085 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6086 instance->templates_list =
6087 XmCreateScrolledList(parent,
6088 "dtb_options_templates_list_list", args, n);
6090 instance->templates_list_scrolledwin = XtParent(instance->templates_list);
6091 if (instance->templates_list == NULL)
6100 dtb_options_templates_list_lbl_create(
6101 DtbOptionsDialogInfo instance,
6105 XmString label_xmstring = NULL;
6107 if (instance->templates_list_lbl == NULL) {
6108 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 72, "Templates:"));
6109 instance->templates_list_lbl =
6110 XtVaCreateWidget("dtb_options_templates_list_lbl",
6113 XmNbottomAttachment, XmATTACH_NONE,
6115 XmNrightPosition, 23,
6116 XmNrightAttachment, XmATTACH_POSITION,
6117 XmNleftAttachment, XmATTACH_NONE,
6119 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6120 XmNrecomputeSize, True,
6121 XmNalignment, XmALIGNMENT_CENTER,
6122 XmNlabelType, XmSTRING,
6123 XmNlabelString, label_xmstring,
6125 XmStringFree(label_xmstring);
6126 label_xmstring = NULL;
6128 if (instance->templates_list_lbl == NULL)
6137 dtb_options_menu_label_lbl_create(
6138 DtbOptionsDialogInfo instance,
6142 XmString label_xmstring = NULL;
6144 if (instance->menu_label_lbl == NULL) {
6145 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 71, "Menu Label:"));
6146 instance->menu_label_lbl =
6147 XtVaCreateWidget("dtb_options_menu_label_lbl",
6151 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6153 XmNrightPosition, 23,
6154 XmNrightAttachment, XmATTACH_POSITION,
6155 XmNleftAttachment, XmATTACH_NONE,
6157 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6158 XmNrecomputeSize, True,
6159 XmNalignment, XmALIGNMENT_CENTER,
6160 XmNlabelType, XmSTRING,
6161 XmNlabelString, label_xmstring,
6163 XmStringFree(label_xmstring);
6164 label_xmstring = NULL;
6166 if (instance->menu_label_lbl == NULL)
6175 dtb_options_path_filename_label_lbl_create(
6176 DtbOptionsDialogInfo instance,
6180 XmString label_xmstring = NULL;
6182 if (instance->path_filename_label_lbl == NULL) {
6183 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 54, "Path / File Name:"));
6184 instance->path_filename_label_lbl =
6185 XtVaCreateWidget("dtb_options_path_filename_label_lbl",
6189 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6191 XmNrightPosition, 23,
6192 XmNrightAttachment, XmATTACH_POSITION,
6193 XmNleftAttachment, XmATTACH_NONE,
6195 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6196 XmNrecomputeSize, True,
6197 XmNalignment, XmALIGNMENT_CENTER,
6198 XmNlabelType, XmSTRING,
6199 XmNlabelString, label_xmstring,
6201 XmStringFree(label_xmstring);
6202 label_xmstring = NULL;
6204 if (instance->path_filename_label_lbl == NULL)
6213 dtb_options_tem_add_but_create(
6214 DtbOptionsDialogInfo instance,
6218 XmString label_xmstring = NULL;
6220 if (instance->tem_add_but == NULL) {
6221 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6222 instance->tem_add_but =
6223 XtVaCreateWidget("dtb_options_tem_add_but",
6224 xmPushButtonWidgetClass,
6226 XmNbottomAttachment, XmATTACH_NONE,
6228 XmNrightAttachment, XmATTACH_FORM,
6230 XmNleftAttachment, XmATTACH_FORM,
6232 XmNtopAttachment, XmATTACH_FORM,
6233 XmNrecomputeSize, True,
6234 XmNalignment, XmALIGNMENT_CENTER,
6235 XmNlabelType, XmSTRING,
6236 XmNlabelString, label_xmstring,
6238 XmStringFree(label_xmstring);
6239 label_xmstring = NULL;
6241 if (instance->tem_add_but == NULL)
6250 dtb_options_tem_del_but_create(
6251 DtbOptionsDialogInfo instance,
6255 XmString label_xmstring = NULL;
6257 if (instance->tem_del_but == NULL) {
6258 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6259 instance->tem_del_but =
6260 XtVaCreateWidget("dtb_options_tem_del_but",
6261 xmPushButtonWidgetClass,
6263 XmNbottomAttachment, XmATTACH_NONE,
6265 XmNrightAttachment, XmATTACH_FORM,
6267 XmNleftAttachment, XmATTACH_FORM,
6269 XmNtopAttachment, XmATTACH_WIDGET,
6270 XmNrecomputeSize, True,
6271 XmNalignment, XmALIGNMENT_CENTER,
6272 XmNlabelType, XmSTRING,
6273 XmNlabelString, label_xmstring,
6275 XmStringFree(label_xmstring);
6276 label_xmstring = NULL;
6278 if (instance->tem_del_but == NULL)
6287 dtb_options_tem_change_but_create(
6288 DtbOptionsDialogInfo instance,
6292 XmString label_xmstring = NULL;
6294 if (instance->tem_change_but == NULL) {
6295 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6296 instance->tem_change_but =
6297 XtVaCreateWidget("dtb_options_tem_change_but",
6298 xmPushButtonWidgetClass,
6300 XmNbottomAttachment, XmATTACH_NONE,
6302 XmNrightAttachment, XmATTACH_FORM,
6304 XmNleftAttachment, XmATTACH_FORM,
6306 XmNtopAttachment, XmATTACH_WIDGET,
6307 XmNrecomputeSize, True,
6308 XmNalignment, XmALIGNMENT_CENTER,
6309 XmNlabelType, XmSTRING,
6310 XmNlabelString, label_xmstring,
6312 XmStringFree(label_xmstring);
6313 label_xmstring = NULL;
6315 if (instance->tem_change_but == NULL)
6324 dtb_options_group14_create(
6325 DtbOptionsDialogInfo instance,
6330 if (instance->group14 == NULL) {
6332 XtVaCreateWidget("dtb_options_group14",
6335 XmNbottomOffset, 10,
6336 XmNbottomAttachment, XmATTACH_FORM,
6338 XmNrightAttachment, XmATTACH_FORM,
6340 XmNleftAttachment, XmATTACH_FORM,
6342 XmNtopAttachment, XmATTACH_FORM,
6343 XmNresizePolicy, XmRESIZE_ANY,
6348 if (instance->group14 == NULL)
6357 dtb_options_group15_create(
6358 DtbOptionsDialogInfo instance,
6363 if (instance->group15 == NULL) {
6365 XtVaCreateWidget("dtb_options_group15",
6368 XmNbottomAttachment, XmATTACH_NONE,
6369 XmNrightAttachment, XmATTACH_NONE,
6371 XmNleftAttachment, XmATTACH_WIDGET,
6373 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6374 XmNresizePolicy, XmRESIZE_ANY,
6379 if (instance->group15 == NULL)
6388 dtb_options_alias_tf_create(
6389 DtbOptionsDialogInfo instance,
6393 Arg args[18]; /* need 13 args (add 5 to be safe) */
6396 if (instance->alias_tf == NULL) {
6398 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6399 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6400 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6401 XtSetArg(args[n], XmNleftPosition, 15); ++n;
6402 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6403 XtSetArg(args[n], XmNtopOffset, 0); ++n;
6404 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
6405 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6406 XtSetArg(args[n], XmNeditable, True); ++n;
6407 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6408 instance->alias_tf =
6409 XmCreateTextField(parent,
6410 "dtb_options_alias_tf", args, n);
6412 if (instance->alias_tf == NULL)
6421 dtb_options_addresses_tf_create(
6422 DtbOptionsDialogInfo instance,
6426 Arg args[18]; /* need 13 args (add 5 to be safe) */
6429 if (instance->addresses_tf == NULL) {
6431 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6432 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
6433 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6434 XtSetArg(args[n], XmNleftPosition, 15); ++n;
6435 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6436 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6437 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6438 XtSetArg(args[n], XmNmaxLength, 256); ++n;
6439 XtSetArg(args[n], XmNeditable, True); ++n;
6440 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
6441 instance->addresses_tf =
6442 XmCreateTextField(parent,
6443 "dtb_options_addresses_tf", args, n);
6445 if (instance->addresses_tf == NULL)
6454 dtb_options_alias_list_create(
6455 DtbOptionsDialogInfo instance,
6459 Arg args[17]; /* need 12 args (add 5 to be safe) */
6463 if (instance->alias_list == NULL) {
6465 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
6466 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
6467 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
6468 XtSetArg(args[n], XmNvisibleItemCount, 19); ++n;
6469 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
6470 XtSetArg(args[n], XmNrightOffset, 0); ++n;
6471 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
6472 XtSetArg(args[n], XmNleftOffset, 4); ++n;
6473 XtSetArg(args[n], XmNleftPosition, 15); ++n;
6474 XtSetArg(args[n], XmNleftAttachment, XmATTACH_POSITION); ++n;
6475 XtSetArg(args[n], XmNtopOffset, 6); ++n;
6476 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
6477 instance->alias_list =
6478 XmCreateScrolledList(parent,
6479 "dtb_options_alias_list_list", args, n);
6481 instance->alias_list_scrolledwin = XtParent(instance->alias_list);
6482 if (instance->alias_list == NULL)
6491 dtb_options_alias_list_lbl_create(
6492 DtbOptionsDialogInfo instance,
6496 XmString label_xmstring = NULL;
6498 if (instance->alias_list_lbl == NULL) {
6499 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 75, "Aliases:"));
6500 instance->alias_list_lbl =
6501 XtVaCreateWidget("dtb_options_alias_list_lbl",
6504 XmNbottomAttachment, XmATTACH_NONE,
6506 XmNrightPosition, 15,
6507 XmNrightAttachment, XmATTACH_POSITION,
6508 XmNleftAttachment, XmATTACH_NONE,
6510 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6511 XmNrecomputeSize, True,
6512 XmNalignment, XmALIGNMENT_CENTER,
6513 XmNlabelType, XmSTRING,
6514 XmNlabelString, label_xmstring,
6516 XmStringFree(label_xmstring);
6517 label_xmstring = NULL;
6519 if (instance->alias_list_lbl == NULL)
6528 dtb_options_alias_tf_lbl_create(
6529 DtbOptionsDialogInfo instance,
6533 XmString label_xmstring = NULL;
6535 if (instance->alias_tf_lbl == NULL) {
6536 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 73, "Alias:"));
6537 instance->alias_tf_lbl =
6538 XtVaCreateWidget("dtb_options_alias_tf_lbl",
6542 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6544 XmNrightPosition, 15,
6545 XmNrightAttachment, XmATTACH_POSITION,
6546 XmNleftAttachment, XmATTACH_NONE,
6548 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6549 XmNrecomputeSize, True,
6550 XmNalignment, XmALIGNMENT_CENTER,
6551 XmNlabelType, XmSTRING,
6552 XmNlabelString, label_xmstring,
6554 XmStringFree(label_xmstring);
6555 label_xmstring = NULL;
6557 if (instance->alias_tf_lbl == NULL)
6566 dtb_options_address_tf_lbl_create(
6567 DtbOptionsDialogInfo instance,
6571 XmString label_xmstring = NULL;
6573 if (instance->address_tf_lbl == NULL) {
6574 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 74, "Addresses:"));
6575 instance->address_tf_lbl =
6576 XtVaCreateWidget("dtb_options_address_tf_lbl",
6580 XmNbottomAttachment, XmATTACH_OPPOSITE_WIDGET,
6582 XmNrightPosition, 15,
6583 XmNrightAttachment, XmATTACH_POSITION,
6584 XmNleftAttachment, XmATTACH_NONE,
6586 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
6587 XmNrecomputeSize, True,
6588 XmNalignment, XmALIGNMENT_CENTER,
6589 XmNlabelType, XmSTRING,
6590 XmNlabelString, label_xmstring,
6592 XmStringFree(label_xmstring);
6593 label_xmstring = NULL;
6595 if (instance->address_tf_lbl == NULL)
6604 dtb_options_alias_add_but_create(
6605 DtbOptionsDialogInfo instance,
6609 XmString label_xmstring = NULL;
6611 if (instance->alias_add_but == NULL) {
6612 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
6613 instance->alias_add_but =
6614 XtVaCreateWidget("dtb_options_alias_add_but",
6615 xmPushButtonWidgetClass,
6617 XmNbottomAttachment, XmATTACH_NONE,
6619 XmNrightAttachment, XmATTACH_FORM,
6621 XmNleftAttachment, XmATTACH_FORM,
6623 XmNtopAttachment, XmATTACH_FORM,
6624 XmNrecomputeSize, True,
6625 XmNalignment, XmALIGNMENT_CENTER,
6626 XmNlabelType, XmSTRING,
6627 XmNlabelString, label_xmstring,
6629 XmStringFree(label_xmstring);
6630 label_xmstring = NULL;
6632 if (instance->alias_add_but == NULL)
6641 dtb_options_alias_delete_but_create(
6642 DtbOptionsDialogInfo instance,
6646 XmString label_xmstring = NULL;
6648 if (instance->alias_delete_but == NULL) {
6649 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
6650 instance->alias_delete_but =
6651 XtVaCreateWidget("dtb_options_alias_delete_but",
6652 xmPushButtonWidgetClass,
6654 XmNbottomAttachment, XmATTACH_NONE,
6656 XmNrightAttachment, XmATTACH_FORM,
6658 XmNleftAttachment, XmATTACH_FORM,
6660 XmNtopAttachment, XmATTACH_WIDGET,
6661 XmNrecomputeSize, True,
6662 XmNalignment, XmALIGNMENT_CENTER,
6663 XmNlabelType, XmSTRING,
6664 XmNlabelString, label_xmstring,
6666 XmStringFree(label_xmstring);
6667 label_xmstring = NULL;
6669 if (instance->alias_delete_but == NULL)
6678 dtb_options_al_change_but_create(
6679 DtbOptionsDialogInfo instance,
6683 XmString label_xmstring = NULL;
6685 if (instance->al_change_but == NULL) {
6686 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
6687 instance->al_change_but =
6688 XtVaCreateWidget("dtb_options_al_change_but",
6689 xmPushButtonWidgetClass,
6691 XmNbottomAttachment, XmATTACH_NONE,
6693 XmNrightAttachment, XmATTACH_FORM,
6695 XmNleftAttachment, XmATTACH_FORM,
6697 XmNtopAttachment, XmATTACH_WIDGET,
6698 XmNrecomputeSize, True,
6699 XmNalignment, XmALIGNMENT_CENTER,
6700 XmNlabelType, XmSTRING,
6701 XmNlabelString, label_xmstring,
6703 XmStringFree(label_xmstring);
6704 label_xmstring = NULL;
6706 if (instance->al_change_but == NULL)
6715 dtb_options_update_mbox_scale_create(
6716 DtbOptionsDialogInfo instance,
6721 if (instance->update_mbox_scale == NULL) {
6722 instance->update_mbox_scale =
6723 XtVaCreateWidget("dtb_options_update_mbox_scale",
6726 XmNbottomAttachment, XmATTACH_NONE,
6727 XmNrightAttachment, XmATTACH_NONE,
6729 XmNleftAttachment, XmATTACH_FORM,
6731 XmNtopAttachment, XmATTACH_WIDGET,
6732 XmNshowValue, False,
6734 XmNdecimalPoints, 0,
6735 XmNscaleMultiple, 1,
6739 XmNprocessingDirection, XmMAX_ON_RIGHT,
6740 XmNorientation, XmHORIZONTAL,
6741 "slidingMode", False,
6744 if (instance->update_mbox_scale == NULL)
6753 dtb_options_update_mailb_lbl_create(
6754 DtbOptionsDialogInfo instance,
6758 XmString label_xmstring = NULL;
6760 if (instance->update_mailb_lbl == NULL) {
6761 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 76, "Update mailbox state:"));
6762 instance->update_mailb_lbl =
6763 XtVaCreateWidget("dtb_options_update_mailb_lbl",
6766 XmNbottomAttachment, XmATTACH_NONE,
6767 XmNrightAttachment, XmATTACH_NONE,
6769 XmNleftAttachment, XmATTACH_FORM,
6771 XmNtopAttachment, XmATTACH_FORM,
6772 XmNrecomputeSize, True,
6773 XmNalignment, XmALIGNMENT_CENTER,
6774 XmNlabelType, XmSTRING,
6775 XmNlabelString, label_xmstring,
6777 XmStringFree(label_xmstring);
6778 label_xmstring = NULL;
6780 if (instance->update_mailb_lbl == NULL)
6789 dtb_options_frequently_lbl_create(
6790 DtbOptionsDialogInfo instance,
6794 XmString label_xmstring = NULL;
6796 if (instance->frequently_lbl == NULL) {
6797 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 77, "Frequently"));
6798 instance->frequently_lbl =
6799 XtVaCreateWidget("dtb_options_frequently_lbl",
6802 XmNbottomAttachment, XmATTACH_NONE,
6803 XmNrightAttachment, XmATTACH_NONE,
6805 XmNleftAttachment, XmATTACH_OPPOSITE_WIDGET,
6807 XmNtopAttachment, XmATTACH_WIDGET,
6808 XmNrecomputeSize, True,
6809 XmNalignment, XmALIGNMENT_CENTER,
6810 XmNlabelType, XmSTRING,
6811 XmNlabelString, label_xmstring,
6813 XmStringFree(label_xmstring);
6814 label_xmstring = NULL;
6816 if (instance->frequently_lbl == NULL)
6825 dtb_options_seldom_lbl_create(
6826 DtbOptionsDialogInfo instance,
6830 XmString label_xmstring = NULL;
6832 if (instance->seldom_lbl == NULL) {
6833 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 78, "Seldom"));
6834 instance->seldom_lbl =
6835 XtVaCreateWidget("dtb_options_seldom_lbl",
6838 XmNbottomAttachment, XmATTACH_NONE,
6839 XmNrightOffset, -23,
6840 XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET,
6841 XmNleftAttachment, XmATTACH_NONE,
6843 XmNtopAttachment, XmATTACH_WIDGET,
6844 XmNrecomputeSize, True,
6845 XmNalignment, XmALIGNMENT_CENTER,
6846 XmNlabelType, XmSTRING,
6847 XmNlabelString, label_xmstring,
6849 XmStringFree(label_xmstring);
6850 label_xmstring = NULL;
6852 if (instance->seldom_lbl == NULL)
6861 dtb_options_separator11_create(
6862 DtbOptionsDialogInfo instance,
6867 if (instance->separator11 == NULL) {
6868 instance->separator11 =
6869 XtVaCreateWidget("dtb_options_separator11",
6870 xmSeparatorWidgetClass,
6872 XmNbottomAttachment, XmATTACH_NONE,
6874 XmNrightAttachment, XmATTACH_FORM,
6876 XmNleftAttachment, XmATTACH_FORM,
6878 XmNtopAttachment, XmATTACH_WIDGET,
6879 XmNseparatorType, XmSHADOW_ETCHED_IN,
6880 XmNorientation, XmHORIZONTAL,
6883 if (instance->separator11 == NULL)
6892 dtb_options_adv_def_cb_create(
6893 DtbOptionsDialogInfo instance,
6897 XmString label_xmstring = NULL;
6898 Arg args[23]; /* need 18 args (add 5 to be safe) */
6900 Widget adv_def_cb_choice_items[6];
6902 if (instance->adv_def_cb_rowcolumn == NULL) {
6903 instance->adv_def_cb_rowcolumn =
6904 XtVaCreateWidget("dtb_options_adv_def_cb",
6905 xmRowColumnWidgetClass,
6907 XmNbottomAttachment, XmATTACH_NONE,
6908 XmNrightAttachment, XmATTACH_NONE,
6910 XmNleftAttachment, XmATTACH_FORM,
6912 XmNtopAttachment, XmATTACH_WIDGET,
6913 XmNentryVerticalAlignment, XmALIGNMENT_BASELINE_BOTTOM,
6915 XmNpacking, XmPACK_TIGHT,
6916 XmNisHomogeneous, False,
6917 XmNadjustLast, True,
6920 XmNentryAlignment, XmALIGNMENT_END,
6921 XmNorientation, XmHORIZONTAL,
6924 if (instance->adv_def_cb_rowcolumn == NULL)
6927 if (instance->adv_def_cb_label == NULL) {
6928 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 79, "Defaults:"));
6929 instance->adv_def_cb_label =
6930 XtVaCreateWidget("dtb_options_adv_def_cb_label",
6932 instance->adv_def_cb_rowcolumn,
6934 XmNlabelType, XmSTRING,
6935 XmNlabelString, label_xmstring,
6937 XmStringFree(label_xmstring);
6938 label_xmstring = NULL;
6940 if (instance->adv_def_cb_label == NULL)
6943 if (instance->adv_def_cb == NULL) {
6945 XtSetArg(args[n], XmNradioBehavior, False); ++n;
6946 XtSetArg(args[n], XmNentryClass, xmToggleButtonWidgetClass); ++n;
6947 XtSetArg(args[n], XmNnumColumns, 1); ++n;
6948 XtSetArg(args[n], XmNisHomogeneous, True); ++n;
6949 XtSetArg(args[n], XmNspacing, 0); ++n;
6950 XtSetArg(args[n], XmNrowColumnType, XmWORK_AREA); ++n;
6951 XtSetArg(args[n], XmNpacking, XmPACK_TIGHT); ++n;
6952 XtSetArg(args[n], XmNorientation, XmVERTICAL); ++n;
6953 instance->adv_def_cb =
6954 XmCreateRadioBox(instance->adv_def_cb_rowcolumn,
6955 "dtb_options_adv_def_cb_choice", args, n);
6957 if (instance->adv_def_cb == NULL)
6960 if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL) {
6961 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 80, "Show confirmation notices"));
6962 instance->adv_def_cb_items.Show_confirmation_notices_item =
6963 XtVaCreateManagedWidget("dtb_options_adv_def_cb_show_confirmation_notices_item",
6964 xmToggleButtonWidgetClass,
6965 instance->adv_def_cb,
6967 XmNlabelString, label_xmstring,
6969 XmStringFree(label_xmstring);
6970 label_xmstring = NULL;
6972 if (instance->adv_def_cb_items.Show_confirmation_notices_item == NULL)
6975 if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL) {
6976 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 81, "Use strict MIME character encoding"));
6977 instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item =
6978 XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_strict_m_i_m_e_character_encoding_item",
6979 xmToggleButtonWidgetClass,
6980 instance->adv_def_cb,
6982 XmNlabelString, label_xmstring,
6984 XmStringFree(label_xmstring);
6985 label_xmstring = NULL;
6987 if (instance->adv_def_cb_items.Use_strict_MIME_character_encoding_item == NULL)
6990 if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL) {
6991 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 82, "Use network aware mail file locking"));
6992 instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item =
6993 XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_network_aware_mail_file_locking_item",
6994 xmToggleButtonWidgetClass,
6995 instance->adv_def_cb,
6997 XmNlabelString, label_xmstring,
6999 XmStringFree(label_xmstring);
7000 label_xmstring = NULL;
7002 if (instance->adv_def_cb_items.Use_network_aware_mail_file_locking_item == NULL)
7005 if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL) {
7006 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 83, "Ignore host name in address (allnet)"));
7007 instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item =
7008 XtVaCreateManagedWidget("dtb_options_adv_def_cb_ignore_host_name_in_address_allnet_item",
7009 xmToggleButtonWidgetClass,
7010 instance->adv_def_cb,
7012 XmNlabelString, label_xmstring,
7014 XmStringFree(label_xmstring);
7015 label_xmstring = NULL;
7017 if (instance->adv_def_cb_items.Ignore_host_name_in_address_allnet_item == NULL)
7020 if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL) {
7021 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 84, "Include me when I \"Reply to All\" (metoo)"));
7022 instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item =
7023 XtVaCreateManagedWidget("dtb_options_adv_def_cb_include_me_when_i_reply_to_all_metoo_item",
7024 xmToggleButtonWidgetClass,
7025 instance->adv_def_cb,
7027 XmNlabelString, label_xmstring,
7029 XmStringFree(label_xmstring);
7030 label_xmstring = NULL;
7032 if (instance->adv_def_cb_items.Include_me_when_I_Reply_to_all_metoo_item == NULL)
7035 if (instance->adv_def_cb_items.Use_local_name_username_item == NULL) {
7036 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 85, "Use local name: username ="));
7037 instance->adv_def_cb_items.Use_local_name_username_item =
7038 XtVaCreateManagedWidget("dtb_options_adv_def_cb_use_local_name_username_item",
7039 xmToggleButtonWidgetClass,
7040 instance->adv_def_cb,
7042 XmNlabelString, label_xmstring,
7044 XmStringFree(label_xmstring);
7045 label_xmstring = NULL;
7047 if (instance->adv_def_cb_items.Use_local_name_username_item == NULL)
7056 dtb_options_group12_create(
7057 DtbOptionsDialogInfo instance,
7062 if (instance->group12 == NULL) {
7064 XtVaCreateWidget("dtb_options_group12",
7067 XmNbottomOffset, 10,
7068 XmNbottomAttachment, XmATTACH_FORM,
7069 XmNrightAttachment, XmATTACH_NONE,
7071 XmNleftAttachment, XmATTACH_FORM,
7073 XmNtopAttachment, XmATTACH_WIDGET,
7074 XmNresizePolicy, XmRESIZE_ANY,
7079 if (instance->group12 == NULL)
7088 dtb_options_group16_create(
7089 DtbOptionsDialogInfo instance,
7094 if (instance->group16 == NULL) {
7096 XtVaCreateWidget("dtb_options_group16",
7099 XmNbottomAttachment, XmATTACH_NONE,
7100 XmNrightAttachment, XmATTACH_NONE,
7102 XmNleftAttachment, XmATTACH_WIDGET,
7104 XmNtopAttachment, XmATTACH_OPPOSITE_WIDGET,
7105 XmNresizePolicy, XmRESIZE_ANY,
7110 if (instance->group16 == NULL)
7119 dtb_options_local_name_tf_create(
7120 DtbOptionsDialogInfo instance,
7124 Arg args[17]; /* need 12 args (add 5 to be safe) */
7127 if (instance->local_name_tf == NULL) {
7129 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
7130 XtSetArg(args[n], XmNrightAttachment, XmATTACH_NONE); ++n;
7131 XtSetArg(args[n], XmNleftOffset, 0); ++n;
7132 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
7133 XtSetArg(args[n], XmNtopOffset, 0); ++n;
7134 XtSetArg(args[n], XmNtopAttachment, XmATTACH_FORM); ++n;
7135 XtSetArg(args[n], XmNmaxLength, 80); ++n;
7136 XtSetArg(args[n], XmNeditable, True); ++n;
7137 XtSetArg(args[n], XmNcursorPositionVisible, True); ++n;
7138 instance->local_name_tf =
7139 XmCreateTextField(parent,
7140 "dtb_options_local_name_tf", args, n);
7142 if (instance->local_name_tf == NULL)
7151 dtb_options_local_name_list_create(
7152 DtbOptionsDialogInfo instance,
7156 Arg args[16]; /* need 11 args (add 5 to be safe) */
7160 if (instance->local_name_list == NULL) {
7162 XtSetArg(args[n], XmNscrollBarDisplayPolicy, XmAUTOMATIC); ++n;
7163 XtSetArg(args[n], XmNlistSizePolicy, XmCONSTANT); ++n;
7164 XtSetArg(args[n], XmNselectionPolicy, XmBROWSE_SELECT); ++n;
7165 XtSetArg(args[n], XmNvisibleItemCount, 8); ++n;
7166 XtSetArg(args[n], XmNbottomAttachment, XmATTACH_NONE); ++n;
7167 XtSetArg(args[n], XmNrightOffset, 0); ++n;
7168 XtSetArg(args[n], XmNrightAttachment, XmATTACH_OPPOSITE_WIDGET); ++n;
7169 XtSetArg(args[n], XmNleftOffset, 0); ++n;
7170 XtSetArg(args[n], XmNleftAttachment, XmATTACH_FORM); ++n;
7171 XtSetArg(args[n], XmNtopOffset, 6); ++n;
7172 XtSetArg(args[n], XmNtopAttachment, XmATTACH_WIDGET); ++n;
7173 instance->local_name_list =
7174 XmCreateScrolledList(parent,
7175 "dtb_options_local_name_list_list", args, n);
7177 instance->local_name_list_scrolledwin = XtParent(instance->local_name_list);
7178 if (instance->local_name_list == NULL)
7187 dtb_options_local_name_add_but_create(
7188 DtbOptionsDialogInfo instance,
7192 XmString label_xmstring = NULL;
7194 if (instance->local_name_add_but == NULL) {
7195 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 29, "Add"));
7196 instance->local_name_add_but =
7197 XtVaCreateWidget("dtb_options_local_name_add_but",
7198 xmPushButtonWidgetClass,
7200 XmNbottomAttachment, XmATTACH_NONE,
7202 XmNrightAttachment, XmATTACH_FORM,
7204 XmNleftAttachment, XmATTACH_FORM,
7206 XmNtopAttachment, XmATTACH_FORM,
7207 XmNrecomputeSize, True,
7208 XmNalignment, XmALIGNMENT_CENTER,
7209 XmNlabelType, XmSTRING,
7210 XmNlabelString, label_xmstring,
7212 XmStringFree(label_xmstring);
7213 label_xmstring = NULL;
7215 if (instance->local_name_add_but == NULL)
7224 dtb_options_local_name_del_but_create(
7225 DtbOptionsDialogInfo instance,
7229 XmString label_xmstring = NULL;
7231 if (instance->local_name_del_but == NULL) {
7232 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 30, "Delete"));
7233 instance->local_name_del_but =
7234 XtVaCreateWidget("dtb_options_local_name_del_but",
7235 xmPushButtonWidgetClass,
7237 XmNbottomAttachment, XmATTACH_NONE,
7239 XmNrightAttachment, XmATTACH_FORM,
7241 XmNleftAttachment, XmATTACH_FORM,
7243 XmNtopAttachment, XmATTACH_WIDGET,
7244 XmNrecomputeSize, True,
7245 XmNalignment, XmALIGNMENT_CENTER,
7246 XmNlabelType, XmSTRING,
7247 XmNlabelString, label_xmstring,
7249 XmStringFree(label_xmstring);
7250 label_xmstring = NULL;
7252 if (instance->local_name_del_but == NULL)
7261 dtb_options_local_name_chg_but_create(
7262 DtbOptionsDialogInfo instance,
7266 XmString label_xmstring = NULL;
7268 if (instance->local_name_chg_but == NULL) {
7269 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 31, "Change"));
7270 instance->local_name_chg_but =
7271 XtVaCreateWidget("dtb_options_local_name_chg_but",
7272 xmPushButtonWidgetClass,
7274 XmNbottomAttachment, XmATTACH_NONE,
7276 XmNrightAttachment, XmATTACH_FORM,
7278 XmNleftAttachment, XmATTACH_FORM,
7280 XmNtopAttachment, XmATTACH_WIDGET,
7281 XmNrecomputeSize, True,
7282 XmNalignment, XmALIGNMENT_CENTER,
7283 XmNlabelType, XmSTRING,
7284 XmNlabelString, label_xmstring,
7286 XmStringFree(label_xmstring);
7287 label_xmstring = NULL;
7289 if (instance->local_name_chg_but == NULL)
7298 dtb_options_ok_button_create(
7299 DtbOptionsDialogInfo instance,
7303 XmString label_xmstring = NULL;
7305 if (instance->ok_button == NULL) {
7306 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 86, "OK"));
7307 instance->ok_button =
7308 XtVaCreateWidget("dtb_options_ok_button",
7309 xmPushButtonWidgetClass,
7311 XmNbottomAttachment, XmATTACH_NONE,
7313 XmNrightPosition, 19,
7314 XmNrightAttachment, XmATTACH_POSITION,
7317 XmNleftAttachment, XmATTACH_POSITION,
7319 XmNtopAttachment, XmATTACH_FORM,
7320 XmNrecomputeSize, True,
7321 XmNalignment, XmALIGNMENT_CENTER,
7322 XmNlabelType, XmSTRING,
7323 XmNdefaultButtonShadowThickness, 1,
7324 XmNlabelString, label_xmstring,
7326 XmStringFree(label_xmstring);
7327 label_xmstring = NULL;
7329 if (instance->ok_button == NULL)
7338 dtb_options_reset_button_create(
7339 DtbOptionsDialogInfo instance,
7343 XmString label_xmstring = NULL;
7345 if (instance->reset_button == NULL) {
7346 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 87, "Reset"));
7347 instance->reset_button =
7348 XtVaCreateWidget("dtb_options_reset_button",
7349 xmPushButtonWidgetClass,
7351 XmNbottomAttachment, XmATTACH_NONE,
7353 XmNrightPosition, 59,
7354 XmNrightAttachment, XmATTACH_POSITION,
7356 XmNleftPosition, 41,
7357 XmNleftAttachment, XmATTACH_POSITION,
7359 XmNtopAttachment, XmATTACH_FORM,
7360 XmNrecomputeSize, True,
7361 XmNalignment, XmALIGNMENT_CENTER,
7362 XmNlabelType, XmSTRING,
7363 XmNdefaultButtonShadowThickness, 1,
7364 XmNlabelString, label_xmstring,
7366 XmStringFree(label_xmstring);
7367 label_xmstring = NULL;
7369 if (instance->reset_button == NULL)
7378 dtb_options_cancel_button_create(
7379 DtbOptionsDialogInfo instance,
7383 XmString label_xmstring = NULL;
7385 if (instance->cancel_button == NULL) {
7386 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 88, "Cancel"));
7387 instance->cancel_button =
7388 XtVaCreateWidget("dtb_options_cancel_button",
7389 xmPushButtonWidgetClass,
7391 XmNbottomAttachment, XmATTACH_NONE,
7393 XmNrightPosition, 79,
7394 XmNrightAttachment, XmATTACH_POSITION,
7396 XmNleftPosition, 61,
7397 XmNleftAttachment, XmATTACH_POSITION,
7399 XmNtopAttachment, XmATTACH_FORM,
7400 XmNrecomputeSize, True,
7401 XmNalignment, XmALIGNMENT_CENTER,
7402 XmNlabelType, XmSTRING,
7403 XmNdefaultButtonShadowThickness, 1,
7404 XmNlabelString, label_xmstring,
7406 XmStringFree(label_xmstring);
7407 label_xmstring = NULL;
7409 if (instance->cancel_button == NULL)
7418 dtb_options_separator_create(
7419 DtbOptionsDialogInfo instance,
7424 if (instance->separator == NULL) {
7425 instance->separator =
7426 XtVaCreateWidget("dtb_options_separator",
7427 xmSeparatorWidgetClass,
7429 XmNbottomAttachment, XmATTACH_NONE,
7431 XmNrightAttachment, XmATTACH_FORM,
7433 XmNleftAttachment, XmATTACH_FORM,
7435 XmNtopAttachment, XmATTACH_FORM,
7436 XmNseparatorType, XmSHADOW_ETCHED_IN,
7437 XmNorientation, XmHORIZONTAL,
7440 if (instance->separator == NULL)
7449 dtb_options_apply_button_create(
7450 DtbOptionsDialogInfo instance,
7454 XmString label_xmstring = NULL;
7456 if (instance->apply_button == NULL) {
7457 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 89, "Apply"));
7458 instance->apply_button =
7459 XtVaCreateWidget("dtb_options_apply_button",
7460 xmPushButtonWidgetClass,
7462 XmNbottomAttachment, XmATTACH_NONE,
7464 XmNrightPosition, 39,
7465 XmNrightAttachment, XmATTACH_POSITION,
7467 XmNleftPosition, 21,
7468 XmNleftAttachment, XmATTACH_POSITION,
7470 XmNtopAttachment, XmATTACH_FORM,
7471 XmNrecomputeSize, True,
7472 XmNalignment, XmALIGNMENT_CENTER,
7473 XmNlabelType, XmSTRING,
7474 XmNdefaultButtonShadowThickness, 1,
7475 XmNlabelString, label_xmstring,
7477 XmStringFree(label_xmstring);
7478 label_xmstring = NULL;
7480 if (instance->apply_button == NULL)
7489 dtb_options_help_button_create(
7490 DtbOptionsDialogInfo instance,
7494 XmString label_xmstring = NULL;
7496 if (instance->help_button == NULL) {
7497 label_xmstring = XmStringCreateLocalized(GETMSG(Dtb_project_catd, 2, 90, "Help"));
7498 instance->help_button =
7499 XtVaCreateWidget("dtb_options_help_button",
7500 xmPushButtonWidgetClass,
7502 XmNbottomAttachment, XmATTACH_NONE,
7504 XmNrightPosition, 98,
7505 XmNrightAttachment, XmATTACH_POSITION,
7507 XmNleftPosition, 81,
7508 XmNleftAttachment, XmATTACH_POSITION,
7510 XmNtopAttachment, XmATTACH_FORM,
7511 XmNrecomputeSize, True,
7512 XmNalignment, XmALIGNMENT_CENTER,
7513 XmNlabelType, XmSTRING,
7514 XmNdefaultButtonShadowThickness, 1,
7515 XmNlabelString, label_xmstring,
7517 XmStringFree(label_xmstring);
7518 label_xmstring = NULL;
7520 if (instance->help_button == NULL)