Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / editor.h
1 /*******************************************************************************
2 **
3 **  editor.h
4 **
5 **  static char sccsid[] = "@(#)editor.h 1.12 94/03/03 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: editor.h /main/4 1996/05/23 11:18:40 rswiston $
8 **
9 **  RESTRICTED CONFIDENTIAL INFORMATION:
10 **
11 **  The information in this document is subject to special
12 **  restrictions in a confidential disclosure agreement between
13 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
14 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
15 **  Sun's specific written approval.  This document and all copies
16 **  and derivative works thereof must be returned or destroyed at
17 **  Sun's request.
18 **
19 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
20 **
21 *******************************************************************************/
22
23 /*                                                                      *
24  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
25  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
26  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
27  * (c) Copyright 1993, 1994 Novell, Inc.                                *
28  */
29
30 #ifndef _EDITOR_H
31 #define _EDITOR_H
32
33 #include <csa.h>
34 #include "ansi_c.h"
35 #include "calendar.h"
36 #include "misc.h"
37 #include "dssw.h"
38 #include "rfp.h"
39 #include "reminders.h"
40
41 /*******************************************************************************
42 **
43 **  Editor structures
44 **
45 *******************************************************************************/
46 typedef struct {
47         int                     appt_count;
48         CSA_entry_handle        *appt_head;
49         Widget                  appt_list;
50         Widget                  appt_list_sw;
51         Widget                  base_form_mgr;
52         Calendar                *cal;
53         Widget                  change_button;
54         Widget                  clear_button;
55         Widget                  close_button;
56         Widget                  delete_button;
57         Boolean                 doing_drag;
58         Pixmap                  drag_bitmap;
59         Widget                  drag_icon;
60         Widget                  drag_source;
61         Pixmap                  drag_mask;
62         DSSW                    dssw;
63         int                     dsswFlags;
64         Boolean                 editor_is_up;
65         Boolean                 editor_view_is_up;
66         Widget                  expand_ui_button;
67         Widget                  frame;
68         Widget                  help_button;
69         int                     initialX;
70         int                     initialY;
71         Widget                  insert_button;
72         Widget                  list_label;
73         Widget                  message_text;
74         Reminders               reminders;
75         RFP                     rfp;
76         int                     rfpFlags;
77         Widget                  separator1;
78         Widget                  separator2;
79         Widget                  view_form_mgr;
80         Widget                  view_frame;
81         Widget                  view_form;
82         Widget                  view_list_label;
83         Widget                  view_list;
84         Widget                  view_sw_mgr;
85         Widget                  view_cancel_button;
86         Widget                  view_help_button;
87         Glance                  view_list_glance;
88         Tick                    view_list_date;
89 } Editor;
90
91 /*******************************************************************************
92 **
93 **  Editor external function declarations
94 **
95 *******************************************************************************/
96 extern void     add_to_appt_list        P((CSA_entry_handle, Editor*));
97 extern void     add_all_appt            P((Editor*));
98 extern void     build_editor_list       P((Editor*, Tick, Glance, CSA_entry_handle**,
99                                            CSA_uint32*));
100 extern int      build_editor_view       P((Editor*, Glance, Boolean));
101 extern Boolean  editor_change           P((Dtcm_appointment*, CSA_entry_handle,
102                                            CSA_entry_handle*, Calendar*));
103 extern void     editor_clean_up         P((Editor*));
104 extern Boolean  editor_created          P((Editor*));
105 extern Boolean  editor_delete           P((CSA_entry_handle, Calendar*));
106 extern Boolean  editor_insert           P((Dtcm_appointment*, CSA_entry_handle*,
107                                            Calendar*));
108 extern CSA_entry_handle editor_nth_appt P((Editor*, int));
109 extern Boolean  editor_showing          P((Editor*));
110 extern Boolean  editor_view_showing     P((Editor*));
111 extern void     get_editor_vals         P((Editor*));
112 extern void     set_editor_defaults     P((Editor*, Tick, Tick, Boolean));
113 extern void     set_editor_title        P((Editor*, char *));
114 extern void     set_editor_vals         P((Editor*, Tick, Tick));
115 extern void     show_editor             P((Calendar*, Tick, Tick, Boolean));
116 extern void     show_editor_view        P((Calendar*, Glance));
117 extern void     e_make_editor           P((Calendar*));
118
119 #endif