diff options
Diffstat (limited to '')
-rw-r--r-- | rc.c | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.60 2002/11/09 21:55:24 ukai Exp $ */ +/* $Id: rc.c,v 1.61 2002/11/11 15:33:39 ukai Exp $ */ /* * Initialization file etc. */ @@ -164,6 +164,9 @@ static char *config_file = NULL; #ifdef USE_MOUSE #define CMT_MOUSE "マウスを使う" #define CMT_REVERSE_MOUSE "マウスのドラッグ動作を逆にする" +#define CMT_RELATIVE_WHEEL_SCROLL "ホイールでのスクロール速度の扱い" +#define CMT_RELATIVE_WHEEL_SCROLL_RATIO "(Aのみ)画面の何%スクロールするか" +#define CMT_FIXED_WHEEL_SCROLL_COUNT "(Bのみ)スクロールする行数" #endif /* USE_MOUSE */ #define CMT_CLEAR_BUF "表示されていないバッファのメモリを開放する" #define CMT_NOSENDREFERER "Referer: を送らないようにする" @@ -310,6 +313,9 @@ static char *config_file = NULL; #ifdef USE_MOUSE #define CMT_MOUSE "Enable mouse" #define CMT_REVERSE_MOUSE "Scroll in reverse direction of mouse drag" +#define CMT_RELATIVE_WHEEL_SCROLL "Behavior of wheel scroll speed" +#define CMT_RELATIVE_WHEEL_SCROLL_RATIO "(A only)Scroll by # % of screen" +#define CMT_FIXED_WHEEL_SCROLL_COUNT "(B only)Scroll by # lines" #endif /* USE_MOUSE */ #define CMT_CLEAR_BUF "Free memory of undisplayed buffers" #define CMT_NOSENDREFERER "Suppress `Referer:' header" @@ -433,6 +439,21 @@ static struct sel_c defaulturls[] = { #endif {0, NULL, NULL} }; +#ifdef USE_MOUSE +static struct sel_c wheelmode[] = +{ +#if LANG == JA + {TRUE, "1", "A:画面サイズに比例"}, + {FALSE, "0", "B:一定の行数"}, + {0, NULL, NULL} +#else /* LANG != JA */ + {TRUE, "1", "A:relative to screen height"}, + {FALSE, "0", "B:fixed speed"}, + {0, NULL, NULL} +#endif /* LANG != JA */ +}; +#endif /* MOUSE */ + #ifdef INET6 static struct sel_c dnsorders[] = { {N_S(DNS_ORDER_UNSPEC), "unspecified"}, @@ -589,6 +610,12 @@ struct param_ptr params3[] = { {"use_mouse", P_INT, PI_ONOFF, (void *)&use_mouse, CMT_MOUSE, NULL}, {"reverse_mouse", P_INT, PI_ONOFF, (void *)&reverse_mouse, CMT_REVERSE_MOUSE, NULL}, + {"relative_wheel_scroll", P_INT, PI_SEL_C, (void *) &relative_wheel_scroll, + CMT_RELATIVE_WHEEL_SCROLL, wheelmode}, + {"relative_wheel_scroll_ratio", P_INT, PI_TEXT, (void *) &relative_wheel_scroll_ratio, + CMT_RELATIVE_WHEEL_SCROLL_RATIO, NULL}, + {"fixed_wheel_scroll_count", P_INT, PI_TEXT, (void *) &fixed_wheel_scroll_count, + CMT_FIXED_WHEEL_SCROLL_COUNT, NULL}, #endif /* USE_MOUSE */ {"clear_buffer", P_INT, PI_ONOFF, (void *)&clear_buffer, CMT_CLEAR_BUF, NULL}, |