Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / group_editor.h
1 /*******************************************************************************
2 **
3 **  group_editor.h
4 **
5 **  static char sccsid[] = "@(#)group_editor.h 1.24 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: group_editor.h /main/4 1996/05/23 11:18:16 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 _GEDITOR_H
31 #define _GEDITOR_H
32
33 #include <csa.h>
34 #include "ansi_c.h"
35 #include "util.h"
36 #include "calendar.h"
37 #include "misc.h"
38 #include "dssw.h"
39 #include "rfp.h"
40
41 /*******************************************************************************
42 **
43 **  Group Editor structures
44 **
45 *******************************************************************************/
46 typedef struct {
47         int                     appt_count;
48         CSA_entry_handle        *appt_head;
49         char                    *name;
50         CSA_session_handle      cal_handle;
51         int                     version;
52         unsigned int            entry_access;
53 } Access_data;
54
55 /*
56 **  An entry in this structure will point to the big list in the Access_data
57 **  structure
58 */
59 typedef struct {
60         int             entry_idx;
61         Tick            tick;
62         Access_data     *ad;
63 } List_data;
64
65 typedef struct {
66         CmDataList              *access_data;
67         Widget                  access_list;
68         Widget                  access_list_label;
69         Widget                  access_list_sw;
70         Widget                  appt_list;
71         Widget                  appt_list_label;
72         Widget                  appt_list_sw;
73         Widget                  base_form_mgr;
74         Widget                  button_rc_mgr;
75         Calendar                *cal;
76         Widget                  change_button;
77         Widget                  clear_button;
78         Widget                  close_button;
79         Widget                  delete_button;
80         DSSW                    dssw;
81         int                     dsswFlags;
82         Widget                  expand_ui_button;
83         Widget                  frame;
84         Boolean                 geditor_is_up;
85         Widget                  help_button;
86         Widget                  insert_button;
87         CmDataList              *list_data;
88         Widget                  mail_button;
89         Widget                  message_text;
90         RFP                     rfp;
91         int                     rfpFlags;
92         Widget                  separator1;
93         Widget                  separator2;
94         Pixmap                  drag_bitmap;
95         Pixmap                  drag_mask;
96         Widget                  drag_icon;
97         Widget                  drag_source;
98         int                     initialX;
99         int                     initialY;
100         Boolean                 doing_drag;
101 } GEditor;
102
103 /*******************************************************************************
104 **
105 **  Group Editor external function declarations
106 **
107 *******************************************************************************/
108 extern void             add_to_gaccess_list     P((char*, CSA_session_handle,
109                                                    unsigned int, int, GEditor*,
110                                                    Boolean));
111 extern void             add_all_gappt           P((GEditor*));
112 extern void             geditor_clean_up        P((GEditor*));
113 extern CSA_entry_handle geditor_nth_appt        P((GEditor*, int,
114                                                    Access_data**));
115 extern Boolean          geditor_showing         P((GEditor*));
116 extern void             get_geditor_vals        P((GEditor*));
117 extern void             remove_all_gaccess_data P((GEditor*));
118 extern void             remove_all_gaccess      P((GEditor*));
119 extern void             remove_from_gaccess_list P((char*, GEditor*));
120 extern void             set_geditor_defaults    P((GEditor*, Tick, Tick));
121 extern void             set_geditor_title       P((GEditor*, char*));
122 extern void             set_geditor_vals        P((GEditor*, Tick, Tick));
123 extern void             show_geditor            P((Calendar*, Tick, Tick));
124
125 #endif