Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / dayglance.h
1 /*******************************************************************************
2 **
3 **  dayglance.h
4 **
5 **  static char sccsid[] = "@(#)dayglance.h 1.11 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: dayglance.h /main/5 1996/04/12 14:58:09 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 _DAYGLANCE_H
31 #define _DAYGLANCE_H
32
33 #include <csa.h>
34 #include "ansi_c.h"
35 #include "props.h"
36
37 #define MOBOX_AREA_WIDTH        (int)(c->view->winw*.4)
38 #define APPT_AREA_WIDTH         (c->view->winw-MOBOX_AREA_WIDTH-2)
39 #define HRBOX_MARGIN            30
40
41 typedef struct dayglance {
42         int mobox_height1;
43         int mobox_height2;
44         int mobox_height3;
45         int month1;             /* tick in 1st mo */ 
46         int month1_y;
47         int month2;             /* tick in 2nd mo */
48         int month2_y;
49         int month3;             /* tick in 3rd mo */
50         int month3_y;
51         int col_w;              /* width of month box col */
52         int row_h;              /* height of month box row */
53         int mobox_width;        /* width of month box row */
54         int day_selected;
55         int day_selected_x;
56         int day_selected_y;
57         int day_selected_x2;
58         int day_selected_y2;
59         Widget panel_form;
60         Widget *month_panels;
61 } Day;
62
63 extern void     init_dayview            P((Calendar*));
64 extern void     day_button              P((Widget, XtPointer, XtPointer));
65 extern void     init_mo                 P((Calendar*));
66 extern void     monthbox_datetoxy       P((Calendar*));
67 extern void     monthbox_xytodate       P((Calendar*, int x, int y));
68 extern void     paint_dayview           P((Calendar*, Boolean,
69                                            XRectangle*, Boolean));
70 extern void     paint_day               P((Calendar*));
71 extern void     print_day_range         P((Calendar*, Tick, Tick));
72 extern void     day_event               P((XEvent*));
73 extern int      morning                 P((int));
74 extern void     paint_day_header        P((Calendar *, Tick, void *));
75 extern void     cleanup_after_dayview   P((Calendar *));
76 #endif