Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / select.h
1 /*******************************************************************************
2 **
3 **  select.h
4 **
5 **  static char sccsid[] = "@(#)select.h 1.6 94/11/07 Copyr 1991 Sun Microsystems, Inc.";
6 **
7 **  $XConsortium: select.h /main/3 1995/11/03 10:33:23 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 _SELECT_H
31 #define _SELECT_H
32
33 #include "ansi_c.h"
34 #include "browser.h"
35 #include "calendar.h"
36
37 typedef enum {
38         daySelect,
39         weekSelect,
40         monthSelect,
41         hourSelect,
42         weekdaySelect,
43         weekhotboxSelect 
44 } Selection_unit;
45
46 typedef struct {
47         int row;
48         int col;
49         int nunits;
50         int active;
51         int boxw;
52         int boxh;
53 } Selection;
54
55 typedef struct {
56         int     x;
57         int     y;
58 } pr_pos;
59
60 extern void     activate_selection      P((Selection*));
61 extern void     browser_deselect        P((Calendar *, Browser*));      
62 extern void     browser_select          P((Calendar *, Browser*, pr_pos*));     
63 extern void     calendar_deselect       P((Calendar*));
64 extern void     calendar_select         P((Calendar*, Selection_unit, caddr_t));
65 extern void     deactivate_selection    P((Selection *));
66 extern void     monthbox_deselect       P((Calendar*)); 
67 extern void     monthbox_select         P((Calendar*));
68 extern void     paint_selection         P((Calendar*));
69 extern int      selection_active        P((Selection*));
70 extern void     weekchart_select        P((Calendar*)); 
71
72 #endif