1 /* $XConsortium: Prefs.h /main/4 1995/12/12 13:11:56 rswiston $ */
2 /************************************<+>*************************************
3 ****************************************************************************
7 * COMPONENT_NAME: Desktop File Manager
9 * DESCRIPTION: Public include file for the preferences dialog.
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.
16 ****************************************************************************
17 ************************************<+>*************************************/
19 #ifndef _Preferences_h
20 #define _Preferences_h
25 #define SELECTION_LIST "selectionList"
26 #define SHOW_TYPE "showType"
27 #define TREE_FILES "treeFiles"
30 #define DIRECTION_RESRC "direction"
31 #define RANDOM "random"
34 /* Defines used as values for the preferences */
36 #define UNSET_VALUE 99
38 #define SINGLE_DIRECTORY 0
39 #define MULTIPLE_DIRECTORY 1
41 #define TREE_FILES_NEVER 0
42 #define TREE_FILES_CHOOSE 1
43 #define TREE_FILES_ALWAYS 2
46 #define BY_NAME_AND_ICON 1
47 #define BY_NAME_AND_SMALL_ICON 2
48 #define BY_ATTRIBUTES 3
50 #define ORDER_BY_FILE_TYPE 0
51 #define ORDER_BY_ALPHABETICAL 1
52 #define ORDER_BY_DATE 2
53 #define ORDER_BY_SIZE 3
55 #define DIRECTION_ASCENDING 0
56 #define DIRECTION_DESCENDING 1
62 extern DialogClass * preferencesClass;
73 Boolean show_iconic_path;
74 Boolean show_current_dir;
75 Boolean show_status_line;
76 unsigned char show_type;
77 unsigned char tree_files;
78 unsigned char view_single;
79 unsigned char view_tree;
81 unsigned char direction;
82 unsigned char positionEnabled;
84 } PreferencesData, * PreferencesDataPtr;
89 XtCallbackProc callback;
90 XtPointer client_data;
91 XtPointer preferences_rec;
98 Widget show_iconic_path;
99 Widget show_current_dir;
100 Widget show_status_line;
102 Widget show_multiple;
103 Widget tree_files_never;
104 Widget tree_files_choose;
105 Widget tree_files_always;
109 Widget by_name_and_icon;
110 Widget by_name_and_small_icon;
111 Widget by_attributes;
112 Widget order_file_type;
113 Widget order_alphabetical;
116 Widget direction_ascending;
117 Widget direction_descending;
126 unsigned char view_single, view_tree;
128 PreferencesApply * apply_data;
131 #endif /* _Preferences_h */
132 /* DON'T ADD ANYTHING AFTER THIS #endif */