remove ultrix support
[oweals/cde.git] / cde / programs / dtfile / Desktop.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: Desktop.h /main/4 1996/10/03 17:04:47 mustafa $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  *
27  *   FILE:           Desktop.h
28  *
29  *   COMPONENT_NAME: Desktop File Manager
30  *
31  *   DESCRIPTION:    Public include file for the desktop.
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 _Desktop_h
42 #define _Desktop_h
43 #include "FileMgr.h"
44
45 #define MAX_CACHED_ICONS 20
46
47 #define INVALID_TYPE 999
48
49 typedef struct
50 {
51    Widget shell;
52    Widget frame;
53    Widget drawA;
54    Widget iconGadget;
55    Widget text;
56
57    Position root_x, root_y;
58    Pixel background;
59
60    char *workspace_name;
61    int workspace_num;
62
63    unsigned char view;
64    unsigned char order;
65    unsigned char direction;
66    unsigned char positionEnabled;
67
68    char * restricted_directory;
69    char * title;
70    char * helpVol;
71    Boolean toolbox;
72    Boolean registered;
73
74    char *host;
75    char *dir_linked_to;
76    char *file_name;
77    FileViewData *file_view_data;
78 } DesktopRec;
79
80 typedef struct
81 {
82    char *name;
83    int number;
84    int files_selected;
85    DesktopRec **selectedDTWindows;
86    DialogData * primaryHelpDialog;
87    int secondaryHelpDialogCount;
88    DialogData ** secondaryHelpDialogList;
89 } WorkspaceRec;
90
91 typedef struct
92 {
93    Widget popup;
94    Widget removeDT;
95    Widget openFolder;
96    Widget rename;
97    char * action_pane_file_type;
98 } PopupRec;
99
100 typedef struct
101 {
102    int numIconsUsed;
103    int numCachedIcons;
104    int popup_name_count;
105    PopupRec *popupMenu;
106    int numWorkspaces;
107    WorkspaceRec ** workspaceData;
108    DesktopRec ** desktopWindows;
109    XButtonEvent event;
110 } DesktopData, *DesktopDataPtr;
111
112 extern DesktopData *desktop_data;
113
114 #endif /* _Desktop_h */
115 /* DON'T ADD ANYTHING AFTER THIS #endif */