dtwm: basic multihead(xinerama only) support
[oweals/cde.git] / cde / programs / dtfile / Find.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 librararies 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: Find.h /main/3 1995/11/02 14:39:33 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  *
27  *   FILE:           Find.h
28  *
29  *   COMPONENT_NAME: Desktop File Manager
30  *
31  *   DESCRIPTION:    Public include file for the find file 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 _Find_h
42 #define _Find_h
43
44
45 extern DialogClass * findClass;
46
47 #define MAX_DIR_PATH_LEN 1024
48
49 #define ON  0
50 #define OFF 1
51
52 typedef struct
53 {
54    Boolean       displayed;
55    Position      x;
56    Position      y;
57    Dimension     width;
58    Dimension     height;
59
60 #if defined(__hpux) || defined(sun)
61    Boolean       follow_links;
62 #endif
63    String        directories;
64    String        filter;
65    String        content;
66    String      * matches;
67    int           num_matches;
68    int           selected_item;
69    FileMgrData * file_mgr_data;
70 } FindData, * FindDataPtr;
71
72
73 typedef struct
74 {
75    XtCallbackProc callback;
76    XtPointer      client_data;
77    XtPointer      find_rec;
78 } FindApply;
79
80
81 typedef struct
82 {
83    Widget shell;
84    Widget form;
85    Widget searchDirectory;
86    Widget content;
87    Widget followLink;
88    Widget widgArry[2];
89    Widget listLabel;
90    Widget fileNameFilter;
91    Widget matchList;
92    Widget putOnDT;
93    Widget newFM;
94
95    Widget separator;
96    Widget start;
97    Widget stop;
98    Widget close;
99    Widget help;
100
101    FindApply  * apply_data;
102    int          selectedItem;
103    FILE       * popenId;
104    int          childpid;
105    XtInputId    alternateInputId;
106    Boolean      searchInProgress;
107    FileMgrRec * fileMgrRec;
108 } FindRec;
109
110
111 #endif /* _Find_h */
112 /* DON'T ADD ANYTHING AFTER THIS #endif */