dtcm: Resolve CID 87408
[oweals/cde.git] / cde / programs / dtcm / dtcm / 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 **  editor.h
26 **
27 **  static char sccsid[] = "@(#)editor.h 1.12 94/03/03 Copyr 1991 Sun Microsystems, Inc.";
28 **
29 **  $XConsortium: editor.h /main/4 1996/05/23 11:18:40 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 _EDITOR_H
53 #define _EDITOR_H
54
55 #include <csa.h>
56 #include "ansi_c.h"
57 #include "calendar.h"
58 #include "misc.h"
59 #include "dssw.h"
60 #include "rfp.h"
61 #include "reminders.h"
62
63 /*******************************************************************************
64 **
65 **  Editor structures
66 **
67 *******************************************************************************/
68 typedef struct {
69         int                     appt_count;
70         CSA_entry_handle        *appt_head;
71         Widget                  appt_list;
72         Widget                  appt_list_sw;
73         Widget                  base_form_mgr;
74         Calendar                *cal;
75         Widget                  change_button;
76         Widget                  clear_button;
77         Widget                  close_button;
78         Widget                  delete_button;
79         Boolean                 doing_drag;
80         Pixmap                  drag_bitmap;
81         Widget                  drag_icon;
82         Widget                  drag_source;
83         Pixmap                  drag_mask;
84         DSSW                    dssw;
85         int                     dsswFlags;
86         Boolean                 editor_is_up;
87         Boolean                 editor_view_is_up;
88         Widget                  expand_ui_button;
89         Widget                  frame;
90         Widget                  help_button;
91         int                     initialX;
92         int                     initialY;
93         Widget                  insert_button;
94         Widget                  list_label;
95         Widget                  message_text;
96         Reminders               reminders;
97         RFP                     rfp;
98         int                     rfpFlags;
99         Widget                  separator1;
100         Widget                  separator2;
101         Widget                  view_form_mgr;
102         Widget                  view_frame;
103         Widget                  view_form;
104         Widget                  view_list_label;
105         Widget                  view_list;
106         Widget                  view_sw_mgr;
107         Widget                  view_cancel_button;
108         Widget                  view_help_button;
109         Glance                  view_list_glance;
110         Tick                    view_list_date;
111 } Editor;
112
113 /*******************************************************************************
114 **
115 **  Editor external function declarations
116 **
117 *******************************************************************************/
118 extern void     add_to_appt_list        P((CSA_entry_handle, Editor*));
119 extern void     add_all_appt            P((Editor*));
120 extern void     build_editor_list       P((Editor*, Tick, Glance, CSA_entry_handle**,
121                                            CSA_uint32*));
122 extern int      build_editor_view       P((Editor*, Glance, Boolean));
123 extern Boolean  editor_change           P((Dtcm_appointment*, CSA_entry_handle,
124                                            CSA_entry_handle*, Calendar*));
125 extern void     editor_clean_up         P((Editor*));
126 extern Boolean  editor_created          P((Editor*));
127 extern Boolean  editor_delete           P((CSA_entry_handle, Calendar*));
128 extern Boolean  editor_insert           P((Dtcm_appointment*, CSA_entry_handle*,
129                                            Calendar*));
130 extern CSA_entry_handle editor_nth_appt P((Editor*, int));
131 extern Boolean  editor_showing          P((Editor*));
132 extern Boolean  editor_view_showing     P((Editor*));
133 extern void     get_editor_vals         P((Editor*));
134 extern void     set_editor_defaults     P((Editor*, Tick, Tick, Boolean));
135 extern void     set_editor_title        P((Editor*, char *));
136 extern void     set_editor_vals         P((Editor*, Tick, Tick));
137 extern void     show_editor             P((Calendar*, Tick, Tick, Boolean));
138 extern void     show_editor_view        P((Calendar*, Glance));
139 extern void     e_make_editor           P((Calendar*));
140
141 #endif