Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtfile / Desktop.h
1 /* $XConsortium: Desktop.h /main/4 1996/10/03 17:04:47 mustafa $ */
2 /************************************<+>*************************************
3  ****************************************************************************
4  *
5  *   FILE:           Desktop.h
6  *
7  *   COMPONENT_NAME: Desktop File Manager
8  *
9  *   DESCRIPTION:    Public include file for the desktop.
10  *
11  *   (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company
12  *   (c) Copyright 1993, 1994, 1995 International Business Machines Corp.
13  *   (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.
14  *   (c) Copyright 1993, 1994, 1995 Novell, Inc.
15  *
16  ****************************************************************************
17  ************************************<+>*************************************/
18
19 #ifndef _Desktop_h
20 #define _Desktop_h
21 #include "FileMgr.h"
22
23 #define MAX_CACHED_ICONS 20
24
25 #define INVALID_TYPE 999
26
27 typedef struct
28 {
29    Widget shell;
30    Widget frame;
31    Widget drawA;
32    Widget iconGadget;
33    Widget text;
34
35    Position root_x, root_y;
36    Pixel background;
37
38    char *workspace_name;
39    int workspace_num;
40
41    unsigned char view;
42    unsigned char order;
43    unsigned char direction;
44    unsigned char positionEnabled;
45
46    char * restricted_directory;
47    char * title;
48    char * helpVol;
49    Boolean toolbox;
50    Boolean registered;
51
52    char *host;
53    char *dir_linked_to;
54    char *file_name;
55    FileViewData *file_view_data;
56 } DesktopRec;
57
58 typedef struct
59 {
60    char *name;
61    int number;
62    int files_selected;
63    DesktopRec **selectedDTWindows;
64    DialogData * primaryHelpDialog;
65    int secondaryHelpDialogCount;
66    DialogData ** secondaryHelpDialogList;
67 } WorkspaceRec;
68
69 typedef struct
70 {
71    Widget popup;
72    Widget removeDT;
73    Widget openFolder;
74    Widget rename;
75    char * action_pane_file_type;
76 } PopupRec;
77
78 typedef struct
79 {
80    int numIconsUsed;
81    int numCachedIcons;
82    int popup_name_count;
83    PopupRec *popupMenu;
84    int numWorkspaces;
85    WorkspaceRec ** workspaceData;
86    DesktopRec ** desktopWindows;
87    XButtonEvent event;
88 } DesktopData, *DesktopDataPtr;
89
90 extern DesktopData *desktop_data;
91
92 #endif /* _Desktop_h */
93 /* DON'T ADD ANYTHING AFTER THIS #endif */