2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
23 /* $XConsortium: Prefs.h /main/4 1995/12/12 13:11:56 rswiston $ */
24 /************************************<+>*************************************
25 ****************************************************************************
29 * COMPONENT_NAME: Desktop File Manager
31 * DESCRIPTION: Public include file for the preferences dialog.
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.
38 ****************************************************************************
39 ************************************<+>*************************************/
41 #ifndef _Preferences_h
42 #define _Preferences_h
47 #define SELECTION_LIST "selectionList"
48 #define SHOW_TYPE "showType"
49 #define TREE_FILES "treeFiles"
52 #define DIRECTION_RESRC "direction"
53 #define RANDOM "random"
56 /* Defines used as values for the preferences */
58 #define UNSET_VALUE 99
60 #define SINGLE_DIRECTORY 0
61 #define MULTIPLE_DIRECTORY 1
63 #define TREE_FILES_NEVER 0
64 #define TREE_FILES_CHOOSE 1
65 #define TREE_FILES_ALWAYS 2
68 #define BY_NAME_AND_ICON 1
69 #define BY_NAME_AND_SMALL_ICON 2
70 #define BY_ATTRIBUTES 3
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
77 #define DIRECTION_ASCENDING 0
78 #define DIRECTION_DESCENDING 1
84 extern DialogClass * preferencesClass;
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;
103 unsigned char direction;
104 unsigned char positionEnabled;
106 } PreferencesData, * PreferencesDataPtr;
111 XtCallbackProc callback;
112 XtPointer client_data;
113 XtPointer preferences_rec;
120 Widget show_iconic_path;
121 Widget show_current_dir;
122 Widget show_status_line;
124 Widget show_multiple;
125 Widget tree_files_never;
126 Widget tree_files_choose;
127 Widget tree_files_always;
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;
138 Widget direction_ascending;
139 Widget direction_descending;
148 unsigned char view_single, view_tree;
150 PreferencesApply * apply_data;
153 #endif /* _Preferences_h */
154 /* DON'T ADD ANYTHING AFTER THIS #endif */