Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / weekglance.h
1 /*******************************************************************************
2 **
3 **  weekglance.h
4 **
5 **  static char sccsid[] = "@(#)weekglance.h 1.14 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: weekglance.h /main/4 1996/04/12 14:58:56 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 _WEEKGLANCE_H
31 #define _WEEKGLANCE_H
32
33 #include <csa.h>
34 #include "ansi_c.h"
35
36 typedef struct week {
37         int     start_date;
38         Dimension     canvas_w;
39         Dimension     canvas_h;
40         int     width;
41         int     height;
42         int     label_height;
43         int     day_height;
44         int     day_width;
45         int     x;
46         int     y;
47         int     begin_hour;
48         int     end_hour;
49         int     chart_width;
50         int     chart_height;
51         int     chart_hour_height;
52         int     chart_day_width;
53         int     chart_x;
54         int     chart_y;
55         Cal_Font *font;
56         Cal_Font *small_font;
57         Cal_Font *small_bold_font;
58         char    *time_array;
59         int     segs_in_array;
60         caddr_t current_selection;
61         int     add_pixels;
62         Widget  *hot_button;
63 } Week;
64
65 typedef enum {okay, lower, upper} Boundary;
66
67 extern void     paint_weekview  P((Calendar*, XRectangle*));
68 extern void     print_week_range        P((Calendar*, Tick, Tick));
69 extern int      count_multi_appts       P((CSA_entry_handle*, int, Calendar*));
70 extern void     week_button             P((Widget, XtPointer, XtPointer));
71 extern void     week_event              P((XEvent*));
72 extern void     cleanup_after_weekview  P((Calendar*));
73 extern void     resize_weekview P((Calendar *, Boundary *));
74
75 #endif