dtcm: Resolve CID 87408
[oweals/cde.git] / cde / programs / dtcm / dtcm / MonthPanelP.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 **  MonthPanelP.h
25 **
26 **  $XConsortium: MonthPanelP.h /main/4 1995/11/03 10:16:54 rswiston $
27 **
28 **  RESTRICTED CONFIDENTIAL INFORMATION:
29 **
30 **  The information in this document is subject to special
31 **  restrictions in a confidential disclosure agreement between
32 **  HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
33 **  document outside HP, IBM, Sun, USL, SCO, or Univel without
34 **  Sun's specific written approval.  This document and all copies
35 **  and derivative works thereof must be returned or destroyed at
36 **  Sun's request.
37 **
38 **  Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
39 **
40 *******************************************************************************/
41
42 /*                                                                      *
43  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
44  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
45  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
46  * (c) Copyright 1993, 1994 Novell, Inc.                                *
47  */
48
49 /*
50  * Month Panel widget private header file
51  */
52 #ifndef _XmMonthPanelP_h
53 #define _XmMonthPanelP_h
54
55 #include "MonthPanel.h"
56
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60
61 /* New fields for the MonthPanel widget class record */
62 typedef struct {
63      int mumble;   /* No new procedures */
64 } XmMonthPanelClassPart;
65
66 /******************************
67  *
68  * Class record declaration
69  *
70  ******************************/
71 typedef struct _XmMonthPanelClassRec {
72     CoreClassPart               core_class;
73     CompositeClassPart          composite_class;
74     ConstraintClassPart         constraint_class;
75     XmManagerClassPart          manager_class;
76     XmMonthPanelClassPart       month_panel_class;
77 } XmMonthPanelClassRec;
78
79 externalref XmMonthPanelClassRec xmMonthPanelClassRec;
80
81 /************************************
82  *
83  * Month Panel instance structure.
84  *
85  ************************************/
86 typedef struct {
87 /* resource fields */
88    int year;
89    int month;
90    XtCallbackList callback;
91    String title_format;
92    Boolean active_header;
93    Boolean active_days;
94    Boolean show_panel_header;
95    Boolean show_column_headers;
96    Boolean show_separator;
97 /* private fields */
98    Widget header;
99    Widget separator;
100    Widget *day_labels;   
101    Widget *days;   
102    int    display_rows;
103 } XmMonthPanelPart;
104
105
106 /************************************************************************
107  *                                                                      *
108  * Full instance record declaration                                     *
109  *                                                                      *
110  ************************************************************************/
111
112 typedef struct _XmMonthPanelRec {
113     CorePart        core;
114     CompositePart   composite;
115     ConstraintPart constraint;
116     XmManagerPart   manager;
117     XmMonthPanelPart   month_panel;
118 } XmMonthPanelRec;
119
120
121 /********    Private Function Declarations    ********/
122
123
124 /********    End Private Function Declarations    ********/
125
126
127 #ifdef __cplusplus
128 }  /* Close scope of 'extern "C"' declaration which encloses file. */
129 #endif
130
131 #endif /* _XmMonthPanelP_h */
132 /* DON'T ADD STUFF AFTER THIS #endif */