Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtfile / Find.h
1 /* $XConsortium: Find.h /main/3 1995/11/02 14:39:33 rswiston $ */
2 /************************************<+>*************************************
3  ****************************************************************************
4  *
5  *   FILE:           Find.h
6  *
7  *   COMPONENT_NAME: Desktop File Manager
8  *
9  *   DESCRIPTION:    Public include file for the find file dialog.
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 _Find_h
20 #define _Find_h
21
22
23 extern DialogClass * findClass;
24
25 #define MAX_DIR_PATH_LEN 1024
26
27 #define ON  0
28 #define OFF 1
29
30 typedef struct
31 {
32    Boolean       displayed;
33    Position      x;
34    Position      y;
35    Dimension     width;
36    Dimension     height;
37
38 #if defined(__hpux) || defined(sun)
39    Boolean       follow_links;
40 #endif
41    String        directories;
42    String        filter;
43    String        content;
44    String      * matches;
45    int           num_matches;
46    int           selected_item;
47    FileMgrData * file_mgr_data;
48 } FindData, * FindDataPtr;
49
50
51 typedef struct
52 {
53    XtCallbackProc callback;
54    XtPointer      client_data;
55    XtPointer      find_rec;
56 } FindApply;
57
58
59 typedef struct
60 {
61    Widget shell;
62    Widget form;
63    Widget searchDirectory;
64    Widget content;
65    Widget followLink;
66    Widget widgArry[2];
67    Widget listLabel;
68    Widget fileNameFilter;
69    Widget matchList;
70    Widget putOnDT;
71    Widget newFM;
72
73    Widget separator;
74    Widget start;
75    Widget stop;
76    Widget close;
77    Widget help;
78
79    FindApply  * apply_data;
80    int          selectedItem;
81    FILE       * popenId;
82    int          childpid;
83    XtInputId    alternateInputId;
84    Boolean      searchInProgress;
85    FileMgrRec * fileMgrRec;
86 } FindRec;
87
88
89 #endif /* _Find_h */
90 /* DON'T ADD ANYTHING AFTER THIS #endif */