Add GNU LGPL headers to all .c .C and .h files
[oweals/cde.git] / cde / programs / dtcm / dtcm / group_editor.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*******************************************************************************
24 **
25 **  group_editor.h
26 **
27 **  static char sccsid[] = "@(#)group_editor.h 1.24 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
28 **
29 **  $XConsortium: group_editor.h /main/4 1996/05/23 11:18:16 rswiston $
30 **
31 **  RESTRICTED CONFIDENTIAL INFORMATION:
32 **
33 **  The information in this document is subject to special
34 **  restrictions in a confidential disclosure agreement between
35 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
36 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
37 **  Sun's specific written approval.  This document and all copies
38 **  and derivative works thereof must be returned or destroyed at
39 **  Sun's request.
40 **
41 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
42 **
43 *******************************************************************************/
44
45 /*                                                                      *
46  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
47  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
48  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
49  * (c) Copyright 1993, 1994 Novell, Inc.                                *
50  */
51
52 #ifndef _GEDITOR_H
53 #define _GEDITOR_H
54
55 #include <csa.h>
56 #include "ansi_c.h"
57 #include "util.h"
58 #include "calendar.h"
59 #include "misc.h"
60 #include "dssw.h"
61 #include "rfp.h"
62
63 /*******************************************************************************
64 **
65 **  Group Editor structures
66 **
67 *******************************************************************************/
68 typedef struct {
69         int                     appt_count;
70         CSA_entry_handle        *appt_head;
71         char                    *name;
72         CSA_session_handle      cal_handle;
73         int                     version;
74         unsigned int            entry_access;
75 } Access_data;
76
77 /*
78 **  An entry in this structure will point to the big list in the Access_data
79 **  structure
80 */
81 typedef struct {
82         int             entry_idx;
83         Tick            tick;
84         Access_data     *ad;
85 } List_data;
86
87 typedef struct {
88         CmDataList              *access_data;
89         Widget                  access_list;
90         Widget                  access_list_label;
91         Widget                  access_list_sw;
92         Widget                  appt_list;
93         Widget                  appt_list_label;
94         Widget                  appt_list_sw;
95         Widget                  base_form_mgr;
96         Widget                  button_rc_mgr;
97         Calendar                *cal;
98         Widget                  change_button;
99         Widget                  clear_button;
100         Widget                  close_button;
101         Widget                  delete_button;
102         DSSW                    dssw;
103         int                     dsswFlags;
104         Widget                  expand_ui_button;
105         Widget                  frame;
106         Boolean                 geditor_is_up;
107         Widget                  help_button;
108         Widget                  insert_button;
109         CmDataList              *list_data;
110         Widget                  mail_button;
111         Widget                  message_text;
112         RFP                     rfp;
113         int                     rfpFlags;
114         Widget                  separator1;
115         Widget                  separator2;
116         Pixmap                  drag_bitmap;
117         Pixmap                  drag_mask;
118         Widget                  drag_icon;
119         Widget                  drag_source;
120         int                     initialX;
121         int                     initialY;
122         Boolean                 doing_drag;
123 } GEditor;
124
125 /*******************************************************************************
126 **
127 **  Group Editor external function declarations
128 **
129 *******************************************************************************/
130 extern void             add_to_gaccess_list     P((char*, CSA_session_handle,
131                                                    unsigned int, int, GEditor*,
132                                                    Boolean));
133 extern void             add_all_gappt           P((GEditor*));
134 extern void             geditor_clean_up        P((GEditor*));
135 extern CSA_entry_handle geditor_nth_appt        P((GEditor*, int,
136                                                    Access_data**));
137 extern Boolean          geditor_showing         P((GEditor*));
138 extern void             get_geditor_vals        P((GEditor*));
139 extern void             remove_all_gaccess_data P((GEditor*));
140 extern void             remove_all_gaccess      P((GEditor*));
141 extern void             remove_from_gaccess_list P((char*, GEditor*));
142 extern void             set_geditor_defaults    P((GEditor*, Tick, Tick));
143 extern void             set_geditor_title       P((GEditor*, char*));
144 extern void             set_geditor_vals        P((GEditor*, Tick, Tick));
145 extern void             show_geditor            P((Calendar*, Tick, Tick));
146
147 #endif