Generic directory/playlist display for textual user interface. More...
#include "stdinc.h"#include "config.h"#include "gui.h"#include "gui_internal.h"#include "gui_vfslist.h"#include "vfs.h"
Go to the source code of this file.
Functions | |
| static void | gui_vfslist_cursor_adjust (struct gui_vfslist *gv) |
| Make sure the cursor resides inside the viewport. Move the viewport if not. | |
| static unsigned int | gui_vfslist_idxcol_width (struct gui_vfslist *gv) |
| Calculate what width the column with the index numbers should have, based on the amount of songs in the playlist. | |
| static void | gui_vfslist_percent (struct gui_vfslist *gv) |
| Recalculate the percentage string. | |
| static void | gui_vfslist_refresh (struct gui_vfslist *gv) |
| Redraw the contents of the dialog. | |
| struct gui_vfslist * | gui_vfslist_new (int shownumbers) |
| Allocate and initialize a new gui_vfslist. | |
| void | gui_vfslist_destroy (struct gui_vfslist *gv) |
| Deallocate a gui_vfslist. | |
| void | gui_vfslist_setlist (struct gui_vfslist *gv, const struct vfslist *vl) |
| Set the list that should be shown in the dialog. | |
| int | gui_vfslist_warn_isempty (struct gui_vfslist *gv) |
| Warn the user when the list is empty. | |
| void | gui_vfslist_move (struct gui_vfslist *gv, int x, int y, int width, int height) |
| Move the dialog to a specified position in the terminal. | |
| void | gui_vfslist_setfocus (struct gui_vfslist *gv, int focus) |
| Focus or unfocus the dialog. This causes the selected item to change its color. | |
| void | gui_vfslist_setselected (struct gui_vfslist *gv, struct vfsref *vr, unsigned int index) |
| Change which item is currently selected. | |
| void | gui_vfslist_cursor_up (struct gui_vfslist *gv) |
| Move the cursor one item up. | |
| void | gui_vfslist_cursor_down (struct gui_vfslist *gv, int silent) |
| Move the cursor one item down. | |
| void | gui_vfslist_cursor_head (struct gui_vfslist *gv) |
| Move the cursor to the top of the list. | |
| void | gui_vfslist_cursor_tail (struct gui_vfslist *gv) |
| Move the cursor to the bottom of the list. | |
| void | gui_vfslist_cursor_pageup (struct gui_vfslist *gv) |
| Move the cursor one page up. | |
| void | gui_vfslist_cursor_pagedown (struct gui_vfslist *gv) |
| Move the cursor one page down. | |
| static void | gui_vfslist_adjust_pre_removal (struct vfsref **vr, unsigned int *curidx, unsigned int newidx, int follow) |
| Adjust our pointer to a VFS reference so it doesn't point to an object that is about to get removed. | |
| void | gui_vfslist_notify_pre_removal (struct gui_vfslist *gv, unsigned int index) |
| Notify the gui_vfslist that an item is about to be removed from the list. | |
| static void | gui_vfslist_adjust_post_insertion (struct gui_vfslist *gv, struct vfsref **vr, unsigned int *curidx, unsigned int newidx, int follow) |
| Adjust a reference with index to an entry in the playlist, right after a new entry in the playlist gets inserted. | |
| void | gui_vfslist_notify_post_insertion (struct gui_vfslist *gv, unsigned int index) |
| Notify the gui_vfslist that an item has been inserted to the list. | |
| void | gui_vfslist_notify_post_randomization (struct gui_vfslist *gv) |
| Notify the gui_vfslist that the list has been randomized. | |
| void | gui_vfslist_notify_done (struct gui_vfslist *gv) |
| Notify the gui_vfslist that all changes to the list itself are finished. This causes the list to be redrawn. | |
| int | gui_vfslist_searchnext (struct gui_vfslist *gv, const struct vfsmatch *vm) |
| Change the selection to the first item that matches the globally defined search string gui_input_cursearch. | |
| void | gui_vfslist_fullpath (struct gui_vfslist *gv) |
| Show the full pathname of the selected entry in the message bar. | |
Variables | |
| static int | scrollpages |
| Whether or not we want to scroll entire pages instead of single lines when the selection gets out of sight. | |
Generic directory/playlist display for textual user interface.
Definition in file gui_vfslist.c.
1.6.3