From 63d3b43f089b4fdd13579dc6c41422a7e48d84b2 Mon Sep 17 00:00:00 2001 From: Thierry Pasqualier Date: Wed, 8 Aug 2007 20:13:16 +0000 Subject: [PATCH] begun the work on the selector bar --- webcit/messages.c | 102 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 94 insertions(+), 8 deletions(-) diff --git a/webcit/messages.c b/webcit/messages.c index 53bee0fcf..c51bf0920 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -2452,6 +2452,100 @@ void readloop(char *oper) ); } + + /** + * Set the "is_bbview" variable if it appears that we are looking at + * a classic bulletin board view. + */ + if ((!is_tasks) && (!is_calendar) && (!is_addressbook) + && (!is_notes) && (!is_singlecard) && (!is_summary)) { + is_bbview = 1; + } + + /** + * If we're not currently looking at ALL requested + * messages, then display the selector bar + */ + if (is_bbview) { + /** begin bbview scroller */ + wprintf("
"); + wprintf(_("Reading #"), lowest_displayed, highest_displayed); + + wprintf(" "); + wprintf(_("of %d messages."), nummsgs); + + /** forward/reverse */ + wprintf(" 
\n"); + /** end bbview scroller */ + } + + + for (a = 0; a < nummsgs; ++a) { if ((WC->msgarr[a] >= startmsg) && (num_displayed < maxmsgs)) { @@ -2492,14 +2586,6 @@ void readloop(char *oper) } } - /** - * Set the "is_bbview" variable if it appears that we are looking at - * a classic bulletin board view. - */ - if ((!is_tasks) && (!is_calendar) && (!is_addressbook) - && (!is_notes) && (!is_singlecard) && (!is_summary)) { - is_bbview = 1; - } /** Output loop */ if (displayed_msgs != NULL) { -- 2.30.2