Safer handling of Booleans.
[AROS.git] / workbench / libs / muimaster / prefs.h
blob0143cb6f7c2205699acf02fb811ba6cc2e4a6a75
1 /*
2 Copyright 1999, David Le Corfec.
3 Copyright 2002, The AROS Development Team.
4 All rights reserved.
6 $Id$
7 */
8 #ifndef __ZUNE_PREFS_H__
9 #define __ZUNE_PREFS_H__
11 #ifndef LIBRARIES_COMMODITIES_H
12 #include <libraries/commodities.h>
13 #endif
15 #ifndef LIBRARIES_MUI_H
16 #include "mui.h"
17 #endif
19 #ifndef _MUI_FRAME_H
20 #include "frame.h"
21 #endif
23 typedef enum CycleMenuPosition {
24 CYCLE_MENU_POSITION_BELOW,
25 CYCLE_MENU_POSITION_ONACTIVE,
26 } CycleMenuPosition;
28 typedef enum GroupTitlePosition {
29 GROUP_TITLE_POSITION_ABOVE,
30 GROUP_TITLE_POSITION_CENTERED,
31 } GroupTitlePosition;
33 typedef enum GroupTitleColor {
34 GROUP_TITLE_COLOR_STANDARD,
35 GROUP_TITLE_COLOR_HILITE,
36 GROUP_TITLE_COLOR_3D,
37 GROUP_TITLE_COLOR_OUTLINE,
38 } GroupTitleColor;
40 typedef enum WindowPosition {
41 WINDOW_POSITION_FORGET_ON_EXIT,
42 WINDOW_POSITION_REMEMBER_ON_EXIT,
43 WINDOW_POSITION_SAVE_ON_EXIT,
44 } WindowPosition;
46 typedef enum WindowRedraw {
47 WINDOW_REDRAW_WITHOUT_CLEAR,
48 WINDOW_REDRAW_WITH_CLEAR
49 } WindowRedraw;
51 typedef enum WindowRefresh {
52 WINDOW_REFRESH_SMART,
53 WINDOW_REFRESH_SIMPLE
54 } WindowRefresh;
56 typedef enum DNDLook {
57 DND_LOOK_ALWAYS_SOLID,
58 DND_LOOK_GHOSTED_ON_BOX,
59 DND_LOOK_GHOSTED_OUTSIDE_BOX,
60 DND_LOOK_ALWAYS_GHOSTED,
61 } DNDLook;
63 typedef enum ScrollbarType {
64 SCROLLBAR_TYPE_STANDARD,
65 SCROLLBAR_TYPE_NEWLOOK,
66 SCROLLBAR_TYPE_CUSTOM,
67 } ScrollbarType;
69 typedef enum ScrollbarArrangement {
70 SCROLLBAR_ARRANGEMENT_TOP,
71 SCROLLBAR_ARRANGEMENT_MIDDLE,
72 SCROLLBAR_ARRANGEMENT_BOTTOM,
73 } ScrollbarArrangement;
75 typedef enum BalancingLook {
76 BALANCING_SHOW_FRAMES,
77 BALANCING_SHOW_OBJECTS,
78 } BalancingLook;
80 typedef enum ActiveObjectLook {
81 ACTIVE_OBJECT_LOOK_FRAME,
82 ACTIVE_OBJECT_LOOK_CORNER,
83 } ActiveObjectLook;
85 typedef struct _ZuneKeySpec {
86 CONST_STRPTR readable_hotkey;
87 LONG ix_well;
88 IX ix;
89 } ZuneKeySpec;
91 typedef enum RegisterLook {
92 REGISTER_LOOK_TRADITIONAL,
93 REGISTER_LOOK_GADTOOLS,
94 } RegisterLook;
96 typedef enum ListviewRefresh {
97 LISTVIEW_REFRESH_LINEAR,
98 LISTVIEW_REFRESH_MIXED,
99 } ListviewRefresh;
101 typedef enum ListviewMulti {
102 LISTVIEW_MULTI_SHIFTED,
103 LISTVIEW_MULTI_ALWAYS,
104 } ListviewMulti;
107 * User Prefs for interface drawing
110 struct ZunePrefsNew
112 CONST_STRPTR fonts[-MUIV_Font_NegCount];
113 CONST_STRPTR imagespecs[MUII_Count];
114 struct MUI_FrameSpec_intern frames[MUIV_Frame_Count];
116 /* System */
117 CONST_STRPTR publicscreen_name;
118 BOOL publicscreen_pop_to_front;
119 CONST_STRPTR iconification_hotkey;
120 BOOL iconification_show_icon;
121 BOOL iconification_show_menu;
122 BOOL iconification_on_startup;
123 BOOL interfaces_enable_arexx;
124 WORD bubblehelp_first_delay;
125 WORD bubblehelp_next_delay;
127 /* Groups */
128 GroupTitlePosition group_title_position;
129 GroupTitleColor group_title_color;
130 WORD group_hspacing;
131 WORD group_vspacing;
133 /* Windows */
134 WindowPosition window_position;
135 WindowRedraw window_redraw;
136 WindowRefresh window_refresh;
137 WORD window_inner_left;
138 WORD window_inner_right;
139 WORD window_inner_top;
140 WORD window_inner_bottom;
141 ULONG window_buttons;
142 /* MUI Keys */
143 ZuneKeySpec muikeys[MUIKEY_COUNT];
145 /* Zune registers */
146 RegisterLook register_look; /* yet unused, remove this comment when handled */
147 BOOL register_truncate_titles; /* ok, waiting for prefs editor */
149 /* Buttons */
150 WORD radiobutton_hspacing;
151 WORD radiobutton_vspacing;
153 /* Cycles */
154 CycleMenuPosition cycle_menu_position;
155 WORD cycle_menu_min_entries;
156 WORD cycle_menu_speed; /* yet unused, remove this comment when handled */
157 BOOL cycle_menu_recessed_entries;
159 /* Strings */
160 CONST_STRPTR string_bg_active;
161 CONST_STRPTR string_text_active;
162 CONST_STRPTR string_bg_inactive;
163 CONST_STRPTR string_text_inactive;
164 CONST_STRPTR string_bg_marked;
165 CONST_STRPTR string_text_marked;
166 CONST_STRPTR string_cursor;
168 /* Lists */
169 ListviewMulti list_multi; /* yet unused, remove this comment when handled */
170 ListviewRefresh list_refresh; /* yet unused, remove this comment when handled */
171 UWORD list_linespacing; /* yet unused, remove this comment when handled */
172 BOOL list_smoothed; /* yet unused, remove this comment when handled */
173 UWORD list_smoothval; /* yet unused, remove this comment when handled */
175 /* Navigation */
176 BOOL drag_left_button; /* yet unused, remove this comment when handled */
177 ZuneKeySpec drag_left_modifier; /* yet unused, remove this comment when handled */
178 BOOL drag_middle_button; /* yet unused, remove this comment when handled */
179 ZuneKeySpec drag_middle_modifier; /* yet unused, remove this comment when handled */
180 BOOL drag_autostart;
181 UWORD drag_autostart_length;
182 DNDLook drag_look; /* yet unused, remove this comment when handled */
183 BalancingLook balancing_look; /* yet unused, remove this comment when handled */
184 ActiveObjectLook active_object_look; /* yet unused, remove this comment when handled */
185 CONST_STRPTR active_object_color; /* yet unused, remove this comment when handled */
187 /* Scrollbars */
188 ScrollbarType scrollbar_type;
189 ScrollbarArrangement scrollbar_arrangement;
191 ULONG screenmode;
192 ULONG screenmodeid;
193 UWORD screen_width;
194 UWORD screen_height;
196 CONST_STRPTR customframe_config_1;
197 CONST_STRPTR customframe_config_2;
198 CONST_STRPTR customframe_config_3;
199 CONST_STRPTR customframe_config_4;
200 CONST_STRPTR customframe_config_5;
201 CONST_STRPTR customframe_config_6;
202 CONST_STRPTR customframe_config_7;
203 CONST_STRPTR customframe_config_8;
204 CONST_STRPTR customframe_config_9;
205 CONST_STRPTR customframe_config_10;
206 CONST_STRPTR customframe_config_11;
207 CONST_STRPTR customframe_config_12;
208 CONST_STRPTR customframe_config_13;
209 CONST_STRPTR customframe_config_14;
210 CONST_STRPTR customframe_config_15;
211 CONST_STRPTR customframe_config_16;
216 #endif