wmaker: removed unused constant SCROLL_STEPS in the switchpanel code
[wmaker-crm.git] / src / wconfig.h.in
blob2930bcb0494bd857d12092aa07ffaefb0d4ea217
1 /*
2 * wconfig.h- default configuration and definitions + compile time options
4 * WindowMaker window manager
6 * Copyright (c) 1997-2003 Alfredo K. Kojima
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
21 * MA 02110-1301, USA.
24 #ifndef WMCONFIG_H_
25 #define WMCONFIG_H_
27 #include "config.h"
29 /*** Change this file (wconfig.h) *after* you ran configure ***/
32 * Comment out the following #defines if you want to disable a feature.
33 * Also check the features you can enable through configure.
36 /* If you want animations for iconification, shading, icon arrangement etc. */
37 #define ANIMATIONS
39 /* support for Motif window manager (mwm) window hints */
40 #define MWM_HINTS
43 * Undefine BALLOON_TEXT if you don't want balloons for showing extra
44 * information, like window titles that are not fully visible.
46 #define BALLOON_TEXT
49 * If balloons should be shaped or be simple rectangles.
50 * The X server must support the shape extensions and it's support
51 * must be enabled (default).
53 #define SHAPED_BALLOON
56 * Turn on a hack to make mouse and keyboard actions work even if
57 * the NumLock or ScrollLock modifiers are turned on. They might
58 * inflict a performance/memory penalty.
60 * If you're an X expert (knows the implementation of XGrabKey() in X)
61 * and knows that the penalty is small (or not), please tell me.
63 #define NUMLOCK_HACK
66 * define OPTIMIZE_SHAPE if you want the shape setting code to be optimized
67 * for applications that change their shape frequently (like xdaliclock
68 * -shape), removing flickering. If wmaker and your display are on
69 * different machines and the network connection is slow, it is not
70 * recommended.
72 #undef OPTIMIZE_SHAPE
74 /* define CONFIGURE_WINDOW_WHILE_MOVING if you want WindowMaker to send
75 * the synthetic ConfigureNotify event to windows while moving at every
76 * single movement. Default is to send a synthetic ConfigureNotify event
77 * only at the end of window moving, which improves performance.
79 #undef CONFIGURE_WINDOW_WHILE_MOVING
81 /* disable/enable workspace indicator in the dock */
82 #undef WS_INDICATOR
85 * define HIDDENDOT if you want a dot to be shown in the application icon
86 * of applications that are hidden.
88 #define HIDDENDOT
91 * Ignores the PPosition hint from clients. This is needed for some
92 * programs that have buggy implementations of such hint and place
93 * themselves in strange locations.
95 #undef IGNORE_PPOSITION
98 * The following options WILL NOT BE MADE RUN-TIME. Please do not request.
99 * They will only add unneeded bloat.
103 * define SHADOW_RESIZEBAR if you want a resizebar with shadows like in
104 * AfterStep, instead of the default Openstep look.
105 * NEXTSTEP 3.3 also does not have these shadows.
107 #undef SHADOW_RESIZEBAR
109 #define NORMAL_ICON_KABOOM
112 * #define if you want the window creation animation when superfluous
113 * is enabled.
115 #undef WINDOW_BIRTH_ZOOM
118 * Some of the following options can be configured in the preference files,
119 * but if for some reason they can't, these are their defaults.
121 * There are also some options that can only be configured here, at compile time.
124 /* list of paths to look for the config files, searched in order of appearance */
125 #define DEF_CONFIG_PATHS "~/GNUstep/Library/WindowMaker:"PKGDATADIR
126 #define DEF_MENU_FILE "menu"
128 /* name of the script to execute at startup */
129 #define DEF_INIT_SCRIPT "autostart"
130 #define DEF_EXIT_SCRIPT "exitscript"
131 #define DEFAULTS_DIR "Defaults"
133 #ifdef USE_TIFF
134 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.tiff"
135 #else
136 #define DEF_BUTTON_IMAGES PKGDATADIR"/buttons.xpm"
137 #endif
139 /* the file of the system wide submenu to be forced into the main menu */
140 #define GLOBAL_PREAMBLE_MENU_FILE "GlobalMenu.pre"
141 #define GLOBAL_EPILOGUE_MENU_FILE "GlobalMenu.post"
143 /* pixmap path */
144 #define DEF_PIXMAP_PATHS \
145 "(\"~/pixmaps\",\"~/GNUstep/Library/WindowMaker/Pixmaps\",\""PIXMAPDIR"\")"
147 #ifdef USER_MENU
148 #define GLOBAL_USER_MENU_PATH PKGDATADIR"/UserMenus"
149 #define DEF_USER_MENU_PATHS \
150 "~/GNUstep/Library/WindowMaker/UserMenus:"GLOBAL_USER_MENU_PATH
151 #endif
153 /* icon path */
154 #define DEF_ICON_PATHS \
155 "(\"~/pixmaps\",\"~/GNUstep/Library/Icons\",\"/usr/include/X11/pixmaps/\",\""PIXMAPDIR"\")"
157 /* window title to use for untitled windows */
158 #define DEF_WINDOW_TITLE "Untitled"
160 /* default style */
161 #define DEF_FRAME_COLOR "white"
163 /* default fonts */
164 #define DEF_TITLE_FONT "\"sans-serif:bold:pixelsize=12\""
165 #define DEF_MENU_TITLE_FONT "\"sans-serif:bold:pixelsize=12\""
166 #define DEF_MENU_ENTRY_FONT "\"sans-serif:pixelsize=12\""
167 #define DEF_ICON_TITLE_FONT "\"sans-serif:pixelsize=9\""
168 #define DEF_CLIP_TITLE_FONT "\"sans-serif:bold:pixelsize=10\""
169 #define DEF_INFO_TEXT_FONT "\"sans-serif:pixelsize=12\""
170 #define DEF_WORKSPACE_NAME_FONT "\"sans-serif:pixelsize=24\""
172 /* line width of the move/resize frame */
173 #define DEF_FRAME_THICKNESS 1
175 #define DEF_WINDOW_TITLE_EXTEND_SPACE "0"
176 #define DEF_MENU_TITLE_EXTEND_SPACE "0"
177 #define DEF_MENU_TEXT_EXTEND_SPACE "0"
178 #define TITLEBAR_EXTEND_SPACE 4
180 #define DEF_XPM_CLOSENESS 40000
182 /* default position of application menus */
183 #define DEF_APPMENU_X 10
184 #define DEF_APPMENU_Y 10
186 /* calculate window edge resistance from edge resistance */
187 #define WIN_RESISTANCE(x) (((x)*20)/30)
189 /* Window level where icons reside */
190 #define NORMAL_ICON_LEVEL WMNormalLevel
192 /* do not divide main menu and submenu in different tiers,
193 * opposed to OpenStep */
194 #define SINGLE_MENULEVEL
196 /* max. time to spend doing animations in seconds. If the animation
197 * time exceeds this value, it is immediately finished. Usefull for
198 * moments of high-load. DO NOT set *_DELAY_{Z,T,F} to zero!
200 #define MAX_ANIMATION_TIME 1
201 /* Zoom animation */
202 #define MINIATURIZE_ANIMATION_FRAMES_Z 7
203 #define MINIATURIZE_ANIMATION_STEPS_Z 16
204 #define MINIATURIZE_ANIMATION_DELAY_Z 10000
205 /* Twist animation */
206 #define MINIATURIZE_ANIMATION_FRAMES_T 12
207 #define MINIATURIZE_ANIMATION_STEPS_T 16
208 #define MINIATURIZE_ANIMATION_DELAY_T 20000
209 #define MINIATURIZE_ANIMATION_TWIST_T 0.5
210 /* Flip animation */
211 #define MINIATURIZE_ANIMATION_FRAMES_F 12
212 #define MINIATURIZE_ANIMATION_STEPS_F 16
213 #define MINIATURIZE_ANIMATION_DELAY_F 20000
214 #define MINIATURIZE_ANIMATION_TWIST_F 0.5
216 /* delays in ms...*/
217 #define BALLOON_DELAY 1000 /* ...before balloon is shown */
218 #define MENU_SELECT_DELAY 200 /* ...for menu item selection hysteresis */
219 #define MENU_JUMP_BACK_DELAY 400 /* ...for jumpback of scrolled menus */
221 /* animation speed constants */
222 #define ICON_SLIDE_SLOWDOWN_UF 1
223 #define ICON_SLIDE_DELAY_UF 0
224 #define ICON_SLIDE_STEPS_UF 50
226 #define ICON_SLIDE_SLOWDOWN_F 3
227 #define ICON_SLIDE_DELAY_F 0
228 #define ICON_SLIDE_STEPS_F 50
230 #define ICON_SLIDE_SLOWDOWN_M 5
231 #define ICON_SLIDE_DELAY_M 0
232 #define ICON_SLIDE_STEPS_M 30
234 #define ICON_SLIDE_SLOWDOWN_S 10
235 #define ICON_SLIDE_DELAY_S 0
236 #define ICON_SLIDE_STEPS_S 20
238 #define ICON_SLIDE_SLOWDOWN_US 20
239 #define ICON_SLIDE_DELAY_US 1
240 #define ICON_SLIDE_STEPS_US 10
242 /* menu scrolling */
243 #define MENU_SCROLL_STEPS_UF 14
244 #define MENU_SCROLL_DELAY_UF 1
246 #define MENU_SCROLL_STEPS_F 10
247 #define MENU_SCROLL_DELAY_F 5
249 #define MENU_SCROLL_STEPS_M 6
250 #define MENU_SCROLL_DELAY_M 5
252 #define MENU_SCROLL_STEPS_S 4
253 #define MENU_SCROLL_DELAY_S 6
255 #define MENU_SCROLL_STEPS_US 1
256 #define MENU_SCROLL_DELAY_US 8
258 /* shade animation */
259 #define SHADE_STEPS_UF 5
260 #define SHADE_DELAY_UF 0
262 #define SHADE_STEPS_F 10
263 #define SHADE_DELAY_F 0
265 #define SHADE_STEPS_M 15
266 #define SHADE_DELAY_M 0
268 #define SHADE_STEPS_S 30
269 #define SHADE_DELAY_S 0
271 #define SHADE_STEPS_US 40
272 #define SHADE_DELAY_US 10
274 /* workspace name on switch display */
275 #define WORKSPACE_NAME_FADE_DELAY 30
276 #define WORKSPACE_NAME_DELAY 400
278 /* Delay when cycling colors of selected icons. */
279 #define COLOR_CYCLE_DELAY 200
281 /* size of the pieces in the undocked icon explosion */
282 #define ICON_KABOOM_PIECE_SIZE 4
285 * Position increment for smart placement: >= 1
286 * Raise these values if it's too slow for you
288 #define PLACETEST_HSTEP 8
289 #define PLACETEST_VSTEP 8
291 #define DOCK_EXTRA_SPACE 0
293 /* Vicinity in which an icon can be attached to the clip */
294 #define CLIP_ATTACH_VICINITY 1
295 #define CLIP_BUTTON_SIZE 23
297 /* The amount of space (in multiples of the icon size)
298 * a docked icon must be dragged out to detach it */
299 #define DOCK_DETTACH_THRESHOLD 3
301 /* Max. number of icons the dock and clip can have */
302 #define DOCK_MAX_ICONS 32
304 /* blink interval when invoking a menu item */
305 #define MENU_BLINK_DELAY 60000
306 #define MENU_BLINK_COUNT 2
307 #define CURSOR_BLINK_RATE 300
309 /* how many pixels to move before dragging windows and other objects */
310 #define MOVE_THRESHOLD 5
311 #define HRESIZE_THRESHOLD 3
313 #define MAX_WORKSPACENAME_WIDTH 64
314 /* max width of window title in window list */
315 #define MAX_WINDOWLIST_WIDTH 400
317 #ifndef HAVE_INOTIFY
318 /* Check defaults database for changes every this many milliseconds */
319 #define DEFAULTS_CHECK_INTERVAL 2000
320 #endif
322 #define KEY_CONTROL_WINDOW_WEIGHT 1
324 /* don't put titles in miniwindows */
325 #undef NO_MINIWINDOW_TITLES
327 /* for boxes with high mouse sampling rates (SGI) */
328 #define DELAY_BETWEEN_MOUSE_SAMPLING 10
331 * You should not modify the following values, unless you know
332 * what you're doing.
335 /* number of window shortcuts */
336 #define MAX_WINDOW_SHORTCUTS 10
337 #define MIN_TITLEFONT_HEIGHT(h) ((h)>14 ? (h) : 14)
338 #define TITLEBAR_HEIGHT 18 /* window's titlebar height */
339 #define RESIZEBAR_HEIGHT 8 /* height of the resizebar */
340 #define RESIZEBAR_MIN_WIDTH 20 /* min width of handles-corner_width */
341 #define RESIZEBAR_CORNER_WIDTH 28 /* width of the corner of resizebars */
342 #define MENU_INDICATOR_SPACE 12
343 #define MIN_WINDOW_SIZE 5 /* minimum size for windows */
344 #define ICON_WIDTH 64 /* size of the icon window */
345 #define ICON_HEIGHT 64
346 #define ICON_BORDER_WIDTH 2
347 #define MAX_ICON_WIDTH 60 /* size of the icon pixmap */
348 #define MAX_ICON_HEIGHT 48
349 #define MAX_WORKSPACES 100
350 #define MAX_MENU_TEXT_LENGTH 512
351 #define MAX_RESTART_ARGS 16
352 #define MAX_DEAD_PROCESSES 128
353 #define MAXLINE 1024
355 #ifdef _MAX_PATH
356 # define DEFAULT_PATH_MAX _MAX_PATH
357 #else
358 # define DEFAULT_PATH_MAX 512
359 #endif
361 /* some rules */
362 #ifndef USE_XSHAPE
363 #undef SHAPED_BALLOON
364 #endif
366 #ifdef XKB_MODELOCK
367 #define KEEP_XKB_LOCK_STATUS
368 /* This is a hidden feature.
369 * Choose just one of LANGUAGE_* hints.
370 * Icon can be changed in def_pixmaps.h.
371 * More icons are welcome.
373 #define XKB_BUTTON_HINT
374 #undef LANGUAGE_TH
375 #undef LANGUAGE_SK
376 #endif
378 #if defined(HAVE_LIBINTL_H) && defined(I18N)
379 #include <libintl.h>
380 #define _(text) gettext(text)
381 /* Use N_() in initializers, it will make xgettext pick
382 * the string up for translation
384 #define N_(text) (text)
385 #if defined(MENU_TEXTDOMAIN)
386 #define M_(text) dgettext(MENU_TEXTDOMAIN, text)
387 #else
388 #define M_(text) (text)
389 #endif
390 #else
391 #define _(text) (text)
392 #define N_(text) (text)
393 #define M_(text) (text)
394 #endif
396 #endif /* WMCONFIG_H_ */