Merge branch 'master' into update-with-master
[oweals/cde.git] / cde / programs / dtfile / ModAttr.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: ModAttr.h /main/3 1995/11/02 14:42:29 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  *
27  *   FILE:           ModAttr.h
28  *
29  *   COMPONENT_NAME: Desktop File Manager
30  *
31  *   DESCRIPTION:    Public include file for the modify file attributes dialog.
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 _ModAttr_h
42 #define _ModAttr_h
43
44 #include <stdio.h> /* for FILENAME_MAX */
45 #include "Common.h"
46
47 extern DialogClass * modAttrClass;
48
49
50 #define MAXLINELENGTH 1024   /* for lines in dtfs configuration file            */
51                              /* used in fsDialog.c in fgets call & as dimension */
52                              /* of some arrays ... made large enough to hold    */
53                              /* MAX_PATH for most machines                      */
54
55
56 typedef struct {                                /* File system attributes */
57    char    buttonLabel[MAXLINELENGTH];
58    char    fsDialogProgram[MAXLINELENGTH];
59    char    path[MAXLINELENGTH];
60    char    warningMessage[MAXLINELENGTH];
61    Boolean dismissStdPermissionDialog;
62 } dtFSData;
63
64 typedef struct
65 {
66    Boolean       displayed;
67    Position      x;
68    Position      y;
69    Dimension     width;
70    Dimension     height;
71
72    String        host;
73    String        directory;
74    String        name;
75    String        link_name;
76    String        filetype;
77    String        owner;
78    String        group;
79    int           accessBits;
80    int           setuidBits;
81    int           size;
82    time_t        modTime;
83    Widget        main_widget;
84    
85    PixmapData  * pixmapData;
86 } ModAttrData, * ModAttrDataPtr;
87
88
89 typedef struct
90 {
91    XtCallbackProc   callback;
92    XtPointer        client_data;
93    XtPointer        modAttr_rec;
94 } ModAttrApply;
95
96
97 typedef struct
98 {
99    Widget shell;
100    Widget bboard;
101    Widget name;
102    Widget link_name;
103    Widget link_label;
104    Widget fileType;
105    Widget owner;
106    Widget ownerL;
107    Widget owner_label;
108    Widget group;
109    Widget groupL;
110    Widget ownerRead;
111    Widget ownerWrite;
112    Widget ownerExecute;
113    Widget groupRead;
114    Widget groupWrite;
115    Widget groupExecute;
116    Widget otherRead;
117    Widget otherWrite;
118    Widget otherExecute;
119    Widget otherPLabel;
120    Widget fsWarning;
121    Widget fsPushButton;
122    Widget size;
123    Widget modTime;
124    Widget ok;
125    Widget cancel;
126    Widget help;
127    dtFSData fileSystem;
128
129    ModAttrApply * apply_data;
130 } ModAttrRec;
131
132 #endif /* _ModAttr_h */
133 /* DON'T ADD ANYTHING AFTER THIS #endif */
134