Commit 06f8cb1
committed
svnbrowse: Add a 'status bar' in the bottom.
Now there is little confusion between the info bar and the status bar. The info
bar is the thing on top and status bar is behind the list. I find a better name
for them in a following commit.
The status bar will display the action that is currently running. For example,
when we are fetching stuff from server, the text will be updated from 'Ready'
to something else. Which is not yet implemented and it always displays fixed
title.
On the right hand side, there is information about the scroller. Its design is
almost fully stolen from vim; it shows percentage of current page's scrolling
offset with custom title when displaying the whole directory on a single page
and the most top & bottom positioning.
The 'branding' title is now moved to the status bar so it doesn't take space
from URL.
* subversion/svnbrowse/svnbrowse.c
(COLOR_PAIR_STATUS_BAR): New constant.
(svn_browse__view_t): Add statusbar to the struct.
(view_layout): Setup layout for the new statusbar; it takes one more line
from the list.
(view_draw_info_bar): Remove branding.
(format_percentage_scroll): New function to handle thaf scroller title logic.
(view_draw_status_bar): New function for rendering the status bar.
(view_draw): Call view_draw_status_bar().
(sub_main): Initialize the COLOR_PAIR_STATUS_BAR color pair.
git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1933121 13f79535-47bb-0310-9956-ffa450edef681 parent 96b44ae commit 06f8cb1
1 file changed
Lines changed: 58 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
143 | 145 | | |
144 | 146 | | |
145 | 147 | | |
146 | | - | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
| 155 | + | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
154 | | - | |
155 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
369 | 375 | | |
370 | 376 | | |
371 | 377 | | |
372 | | - | |
| 378 | + | |
373 | 379 | | |
374 | 380 | | |
375 | 381 | | |
| |||
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
383 | 435 | | |
384 | 436 | | |
385 | 437 | | |
386 | 438 | | |
387 | 439 | | |
388 | 440 | | |
| 441 | + | |
389 | 442 | | |
390 | 443 | | |
391 | 444 | | |
| |||
629 | 682 | | |
630 | 683 | | |
631 | 684 | | |
| 685 | + | |
632 | 686 | | |
633 | 687 | | |
634 | 688 | | |
| |||
0 commit comments