summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2005-10-01 13:41:10 +0000
committerSebastien Helleu <flashcode@flashtux.org>2005-10-01 13:41:10 +0000
commit75c58c423cce5bf1fbcc85f9e7353b03ee687366 (patch)
treee14893dd371a7f4a973d9b4ae18c2b4b4b542ca3 /src/common
parent63e73b30adb829ffb2a562c25be6a5e21349d07f (diff)
downloadweechat-75c58c423cce5bf1fbcc85f9e7353b03ee687366.zip
Added "smart" hotlist
Diffstat (limited to 'src/common')
-rw-r--r--src/common/weeconfig.c22
-rw-r--r--src/common/weeconfig.h3
2 files changed, 22 insertions, 3 deletions
diff --git a/src/common/weeconfig.c b/src/common/weeconfig.c
index d2357f05a..e7333a8b4 100644
--- a/src/common/weeconfig.c
+++ b/src/common/weeconfig.c
@@ -87,6 +87,9 @@ int cfg_look_infobar;
char *cfg_look_infobar_timestamp;
int cfg_look_infobar_seconds;
int cfg_look_infobar_delay_highlight;
+int cfg_look_hotlist_names_count;
+int cfg_look_hotlist_names_level;
+int cfg_look_hotlist_names_length;
t_config_option weechat_options_look[] =
{ { "look_set_title", N_("set title for window (terminal for Curses GUI) with name & version"),
@@ -147,12 +150,12 @@ t_config_option weechat_options_look[] =
"right", cfg_look_nicklist_position_values, &cfg_look_nicklist_position, NULL, config_change_buffers },
{ "look_nicklist_min_size", N_("min size for nicklist"),
N_("min size for nicklist (width or height, depending on look_nicklist_position "
- "(0 = no min size))"),
+ "(0 = no min size))"),
OPTION_TYPE_INT, 0, 100, 0,
NULL, NULL, &cfg_look_nicklist_min_size, NULL, config_change_buffers },
{ "look_nicklist_max_size", N_("max size for nicklist"),
N_("max size for nicklist (width or height, depending on look_nicklist_position "
- "(0 = no max size; if min == max and > 0, then size is fixed))"),
+ "(0 = no max size; if min == max and > 0, then size is fixed))"),
OPTION_TYPE_INT, 0, 100, 0,
NULL, NULL, &cfg_look_nicklist_max_size, NULL, config_change_buffers },
{ "look_no_nickname", N_("text to display instead of nick when not connected"),
@@ -185,9 +188,22 @@ t_config_option weechat_options_look[] =
NULL, NULL, &cfg_look_infobar_seconds, NULL, config_change_buffer_content },
{ "look_infobar_delay_highlight", N_("delay (in seconds) for highlight messages in infobar"),
N_("delay (in seconds) for highlight messages in infobar "
- "(0 = disable highlight notifications in infobar)"),
+ "(0 = disable highlight notifications in infobar)"),
OPTION_TYPE_INT, 0, INT_MAX, 7,
NULL, NULL, &cfg_look_infobar_delay_highlight, NULL, config_change_noop },
+ { "look_hotlist_names_count", N_("max number of names in hotlist"),
+ N_("max number of names in hotlist (0 = no name displayed, only buffer numbers)"),
+ OPTION_TYPE_INT, 0, 32, 3,
+ NULL, NULL, &cfg_look_hotlist_names_count, NULL, config_change_buffer_content },
+ { "look_hotlist_names_level", N_("level for displaying names in hotlist"),
+ N_("level for displaying names in hotlist (combination of: 1=join/part, 2=message, "
+ "4=private, 8=highlight, for example: 12=private+highlight)"),
+ OPTION_TYPE_INT, 1, 15, 12,
+ NULL, NULL, &cfg_look_hotlist_names_level, NULL, config_change_buffer_content },
+ { "look_hotlist_names_length", N_("max length of names in hotlist"),
+ N_("max length of names in hotlist (0 = no limit)"),
+ OPTION_TYPE_INT, 0, 32, 0,
+ NULL, NULL, &cfg_look_hotlist_names_length, NULL, config_change_buffer_content },
{ NULL, NULL, NULL, 0, 0, 0, 0, NULL, NULL, NULL, NULL, NULL }
};
diff --git a/src/common/weeconfig.h b/src/common/weeconfig.h
index c611d7730..c07e43681 100644
--- a/src/common/weeconfig.h
+++ b/src/common/weeconfig.h
@@ -102,6 +102,9 @@ extern int cfg_look_infobar;
extern char *cfg_look_infobar_timestamp;
extern int cfg_look_infobar_seconds;
extern int cfg_look_infobar_delay_highlight;
+extern int cfg_look_hotlist_names_count;
+extern int cfg_look_hotlist_names_level;
+extern int cfg_look_hotlist_names_length;
extern int cfg_col_title;
extern int cfg_col_title_bg;