dtcm: Resolve CID 87408
[oweals/cde.git] / cde / programs / dtcm / dtcm / browser.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 **  browser.h
26 **
27 **  static char sccsid[] = "@(#)browser.h 1.15 94/11/07 Copyr 1991 Sun Microsystems, Inc."; 
28 **
29 **  $XConsortium: browser.h /main/3 1995/11/03 10:18:46 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 _BROWSER_H
53 #define _BROWSER_H
54
55 #include "ansi_c.h"
56 #include "timeops.h"
57 #include "calendar.h"
58
59 typedef struct {
60         Widget          frame;
61         Widget          outer_pane;
62         Widget          inner_pane;
63         Widget          upper_form;
64         Widget          lower_form;
65         Widget          action;
66         Widget          cancel;
67         Widget          canvas;
68         Widget          edit_list;
69         Widget          helpbutton;
70         Widget          list_label;
71         Widget          browse_list;
72         Widget          browse_list_sw;
73         Widget          bgoto;
74         Widget          gotomenu;
75         Widget          schedule;
76         Widget          mail;
77         Widget          message_text;
78         caddr_t         current_selection;      
79         Widget          box;
80         Widget          datetext;
81         Widget          datefield;
82         Tick            date;
83         int             col_sel;
84         int             row_sel;
85         Tick            begin_week_tick;
86         int             canvas_w;
87         int             canvas_h;
88         int             chart_width;
89         int             chart_height;
90         int             boxh;
91         int             boxw;
92         int             chart_x;
93         int             chart_y;
94         Tick            begin_day_tick;
95         Tick            end_day_tick;
96         Tick            begin_hr_tick;
97         Tick            end_hr_tick;
98         new_XContext    *xcontext;
99         char            *multi_array;
100         int             segs_in_array;
101         Pixmap          busy_icon;
102         Boolean         add_to_array;
103 } Browser;
104
105 #define BOX_SEG 4 
106 #define MINS_IN_SEG (60/BOX_SEG)
107
108 #define MB_GOTO 0
109 #define MB_PREVWEEK 1
110 #define MB_THISWEEK 2
111 #define MB_NEXTWEEK 3
112 #define MB_PREVMONTH 4
113 #define MB_NEXTMONTH 5
114
115 extern void             br_display                      P((Calendar*));
116 extern Boolean          browser_exists                  P(());
117 extern void             browser_reset_list              P((Calendar*));
118 extern Boolean          browser_showing                 P(());
119 extern void             make_browser                    P(());
120 extern void             mb_draw_chartgrid               P(());
121 extern void             mb_draw_appts                   P(());
122 extern void             mb_update_segs                  P(());
123 extern void             mb_update_busyicon              P(());
124 extern void             mb_init_blist                   P(());
125 extern void             mb_init_canvas                  P(());
126 extern void             mb_deregister_names             P(());
127 extern void             mb_refresh_canvas               P(());
128 extern void             sched_proc                      P(());
129 extern void             set_default_reminders           P(());
130 extern void             set_default_scope_plus          P(());
131 extern void             set_default_what                P(());
132 extern void             mb_refigure_chart               P((Calendar *));
133
134 #endif