remove ultrix support
[oweals/cde.git] / cde / programs / dtfile / Prefs.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: Prefs.h /main/4 1995/12/12 13:11:56 rswiston $ */
24 /************************************<+>*************************************
25  ****************************************************************************
26  *
27  *   FILE:           Prefs.h
28  *
29  *   COMPONENT_NAME: Desktop File Manager
30  *
31  *   DESCRIPTION:    Public include file for the preferences 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 _Preferences_h
42 #define _Preferences_h
43
44
45 /*  Resource names  */
46
47 #define SELECTION_LIST          "selectionList"
48 #define SHOW_TYPE               "showType"
49 #define TREE_FILES              "treeFiles"
50 #define VIEW                    "view"
51 #define ORDER                   "order"
52 #define DIRECTION_RESRC         "direction"
53 #define RANDOM                  "random"
54
55
56 /*  Defines used as values for the preferences  */
57
58 #define UNSET_VALUE             99
59
60 #define SINGLE_DIRECTORY        0
61 #define MULTIPLE_DIRECTORY      1
62
63 #define TREE_FILES_NEVER        0
64 #define TREE_FILES_CHOOSE       1
65 #define TREE_FILES_ALWAYS       2
66
67 #define BY_NAME                 0
68 #define BY_NAME_AND_ICON        1
69 #define BY_NAME_AND_SMALL_ICON  2
70 #define BY_ATTRIBUTES           3
71
72 #define ORDER_BY_FILE_TYPE      0
73 #define ORDER_BY_ALPHABETICAL   1
74 #define ORDER_BY_DATE           2
75 #define ORDER_BY_SIZE           3
76
77 #define DIRECTION_ASCENDING     0
78 #define DIRECTION_DESCENDING    1
79
80 #define RANDOM_ON               0
81 #define RANDOM_OFF              1
82
83
84 extern DialogClass * preferencesClass;
85
86
87 typedef struct
88 {
89    Boolean       displayed;
90    Position      x;
91    Position      y;
92    Dimension     width;
93    Dimension     height;
94
95    Boolean show_iconic_path;
96    Boolean show_current_dir;
97    Boolean show_status_line;
98    unsigned char show_type;
99    unsigned char tree_files;
100    unsigned char view_single;
101    unsigned char view_tree;
102    unsigned char order;
103    unsigned char direction;
104    unsigned char positionEnabled;
105
106 } PreferencesData, * PreferencesDataPtr;
107
108
109 typedef struct
110 {
111    XtCallbackProc   callback;
112    XtPointer        client_data;
113    XtPointer        preferences_rec;
114 } PreferencesApply;
115
116
117 typedef struct
118 {
119    Widget shell;
120    Widget show_iconic_path;
121    Widget show_current_dir;
122    Widget show_status_line;
123    Widget show_single;
124    Widget show_multiple;
125    Widget tree_files_never;
126    Widget tree_files_choose;
127    Widget tree_files_always;
128    Widget random_on;
129    Widget random_off;
130    Widget by_name;
131    Widget by_name_and_icon;
132    Widget by_name_and_small_icon;
133    Widget by_attributes;
134    Widget order_file_type;
135    Widget order_alphabetical;
136    Widget order_date;
137    Widget order_size;
138    Widget direction_ascending;
139    Widget direction_descending;
140    Widget position;
141
142    Widget ok;
143    Widget apply;
144    Widget reset;
145    Widget close;
146    Widget help;
147
148    unsigned char view_single, view_tree;
149
150    PreferencesApply * apply_data;
151 } PreferencesRec;
152
153 #endif /* _Preferences_h */
154 /* DON'T ADD ANYTHING AFTER THIS #endif */