dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtfile / IconicPathP.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 libraries 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 /* $XConsortium: IconicPathP.h /main/4 1995/11/02 14:40:56 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  *
27  *   FILE:           IconicPathP.h
28  *
29  *   COMPONENT_NAME: Desktop File Manager
30  *
31  *   DESCRIPTION:    Private header file for IconicPath.c
32  *
33  *   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
34  *   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
35  *   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
36  *   (c) Copyright 1993, 1994, 1995 Novell, Inc.
37  *
38  ****************************************************************************
39  ************************************<+>*************************************/
40
41 #ifndef _DtIconicPathP_h
42 #define _DtIconicPathP_h
43
44 #include <Xm/ManagerP.h>
45 #include "IconicPath.h"
46
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50
51
52 /*  New fields for the IconicPath widget class record  */
53
54 typedef struct
55 {
56    int mumble;   /* No new procedures */
57 } DtIconicPathClassPart;
58
59
60 /* Full class record declaration */
61
62 typedef struct _DtIconicPathClassRec
63 {
64         CoreClassPart           core_class;
65         CompositeClassPart      composite_class;
66         ConstraintClassPart     constraint_class;
67         XmManagerClassPart      manager_class;
68         DtIconicPathClassPart   iconic_path_class;
69 } DtIconicPathClassRec;
70
71 externalref DtIconicPathClassRec dtIconicPathClassRec;
72
73
74 /* New fields for the IconicPath widget record */
75
76 typedef struct
77 {
78         Dimension               margin_width;
79         Dimension               margin_height;
80         Dimension               spacing;
81         Dimension               small_min_width;
82         Dimension               large_min_width;
83         Boolean                 force_small_icons;
84         Boolean                 buttons;
85         Boolean                 dropzone;
86         Boolean                 status_msg;
87         Boolean                 force_large_icons;
88         Boolean                 icons_changed;
89
90         char * file_mgr_rec;
91         char * current_directory;
92         Boolean large_icons;
93         char *msg_text;
94         
95         char * directory_shown;
96         Boolean large_shown;
97         Widget dotdot_button;
98         Widget dropzone_icon;
99         Widget status_label;
100         int num_components;
101         struct _IconicPathComponent {
102                 char *path;
103                 char *icon_name;
104                 Widget icon;
105                 Widget button;
106                 int width;
107         } *components;
108         int left_component;
109         GC gc;
110
111 } DtIconicPathPart;
112
113
114 /****************************************************************
115  *
116  * Full instance record declaration
117  *
118  ****************************************************************/
119
120 typedef struct _DtIconicPathRec
121 {
122         CorePart                core;
123         CompositePart           composite;
124         ConstraintPart          constraint;
125         XmManagerPart           manager;
126         DtIconicPathPart        iconic_path;
127 } DtIconicPathRec;
128
129
130
131 /********    Private Function Declarations    ********/
132
133 extern void _DtIconicPathInput(
134                         Widget wid,
135                         XEvent *event,
136                         String *params,
137                         Cardinal *num_params) ;
138
139 /********    End Private Function Declarations    ********/
140
141
142 #ifdef __cplusplus
143 }  /* Close scope of 'extern "C"' declaration which encloses file. */
144 #endif
145
146 #endif /* _DtIconicPathP_h */
147 /* DON'T ADD ANYTHING AFTER THIS #endif */