Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtcm / dtcm / MonthPanel.h
1 /*********************************************************************************
2 **  MonthPanel.h
3 **
4 **  $XConsortium: MonthPanel.h /main/4 1995/11/03 10:16:43 rswiston $
5 **
6 **  RESTRICTED CONFIDENTIAL INFORMATION:
7 **
8 **  The information in this document is subject to special
9 **  restrictions in a confidential disclosure agreement between
10 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
11 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
12 **  Sun's specific written approval.  This document and all copies
13 **  and derivative works thereof must be returned or destroyed at
14 **  Sun's request.
15 **
16 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
17 **
18 *******************************************************************************/
19
20 /*                                                                      *
21  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
22  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
23  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
24  * (c) Copyright 1993, 1994 Novell, Inc.                                *
25  */
26
27 /*
28  * Month Panel widget public header file
29  */
30 #ifndef _XmMonthPanel_h
31 #define _XmMonthPanel_h
32
33 #include <Xm/Xm.h>
34
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38
39 #ifndef XmIsMonthPanel
40 #define XmIsMonthPanel(w)       XtIsSubclass(w, xmMonthPanelWidgetClass)
41 #endif /* XmIsMonthPanel */
42
43 externalref WidgetClass xmMonthPanelWidgetClass;
44
45 typedef struct _XmMonthPanelClassRec * XmMonthPanelWidgetClass;
46 typedef struct _XmMonthPanelRec      * XmMonthPanelWidget;
47
48 typedef enum { MONTH_SELECTION, DAY_SELECTION } XmMonthPanelSelectionType;
49
50 typedef struct {
51    XmMonthPanelSelectionType    type;
52    int day;
53 } XmMonthPanelCallbackStruct;
54
55 /********    Public Function Declarations    ********/
56
57 extern Widget XmCreateMonthPanel( 
58                         Widget parent,
59                         char *name,
60                         ArgList args,
61                         Cardinal argCount) ;
62
63 /********    End Public Function Declarations    ********/
64
65 /********    Resource Strings    ********/
66 #define XmNmonth                "month"
67 #define XmCMonth                "Month"
68 #define XmNyear                 "year"
69 #define XmCYear                 "Year"
70 #define XmNtitleFormat          "titleFormat"
71 #define XmCTitleFormat          "TitleFormat"
72 #define XmNactiveDays           "activeDays"
73 #define XmCActiveDays           "ActiveDays"
74 #define XmNactiveHeader         "activeHeader"
75 #define XmCActiveHeader         "ActiveHeader"
76 #define XmNshowPanelHeader      "showPanelHeader"
77 #define XmCShowPanelHeader      "ShowPanelHeader"
78 #define XmNshowColumnHeaders    "showColumnHeaders"
79 #define XmCShowColumnHeaders    "ShowColumnHeaders"
80 /*
81 #define XmNshowSeparator        "showSeparator"
82 #define XmCShowSeparator        "ShowSeparator"
83 */
84 /********    End Resource Strings    ********/
85
86
87 #ifdef __cplusplus
88 }  /* Close scope of 'extern "C"' declaration which encloses file. */
89 #endif
90
91 #endif /* _XmMonthPanel_h */
92 /* DON'T ADD ANYTHING AFTER THIS #endif */