gui_browser.c File Reference

File browser in textual user interface. More...

#include "stdinc.h"
#include "config.h"
#include "gui.h"
#include "gui_internal.h"
#include "gui_vfslist.h"
#include "playq.h"
#include "vfs.h"
Include dependency graph for gui_browser.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void gui_browser_dirname_refresh (void)
 Refresh the bar above the filebrowser to contain the proper filename and percentage.
static void gui_browser_cleanup_flist (void)
 Clean up our pseudo-directory data.
void gui_browser_init (void)
 Initialize the filebrowser window.
void gui_browser_destroy (void)
 Destroy the filebrowser window.
void gui_browser_resize (void)
 Redraw the filebrowser, because of a terminal resize.
void gui_browser_cursor_up (void)
 Move the cursor of the filebrowser one position up.
void gui_browser_cursor_down (void)
 Move the cursor of the filebrowser one position down.
void gui_browser_cursor_pageup (void)
 Move the cursor and the viewport of the filebrowser one page up.
void gui_browser_cursor_pagedown (void)
 Move the cursor and the viewport of the filebrowser one page down.
void gui_browser_cursor_head (void)
 Move the cursor and the viewport of the filebrowser to the top of the current directory.
void gui_browser_cursor_tail (void)
 Move the cursor and the viewport of the filebrowser to the bottom of the current directory.
void gui_browser_gotofile (struct vfsref *vr)
 Go to the parent directory of the VFS reference and select the item which shares the same filename.
void gui_browser_dir_parent (void)
 Change the current working directory of the filebrowser to the parent directory.
void gui_browser_dir_enter (void)
 Change the current working directory of the filebrowser to the currently selected item.
void gui_browser_playq_add_tail (void)
 Add the current selection to the tail of the playlist.
void gui_browser_playq_add_head (void)
 Add the current selection to the head of the playlist.
void gui_browser_playq_add_after (void)
 Add the current selection after the selected item in the playlist.
void gui_browser_playq_add_before (void)
 Add the current selection before the selected item in the playlist.
int gui_browser_searchnext (const struct vfsmatch *vm)
 Search for the next item matching gui_input_cursearch in the file browser.
static void gui_browser_do_chdir (const char *path)
 Change to a specified directory.
void gui_browser_chdir (void)
 Change to a directory, filled in by the user.
void gui_browser_setfocus (int focus)
 Focus or unfocus the filebrowser.
void gui_browser_write_playlist (void)
 Write the playlist to a file.
void gui_browser_fullpath (void)
 Write the full pathname of the selected item in the message bar.
int gui_browser_locate (const struct vfsmatch *vm)
 Apply a recursive search filter on the current directory.
void gui_browser_gotofolder (void)
 Go to the directory containing the selected item.
void gui_browser_gotohome (void)
 Go to the current user's home directory.

Variables

static WINDOW * win_dirname
 Reference to window with pathname of current folder.
static struct vfsrefvr_curdir = NULL
 Reference to VFS object that is currently shown.
static struct vfslist vl_flist = VFSLIST_INITIALIZER
 List we use when displaying a file instead of a directory, containing only the file itself.
static struct gui_vfslistwin_browser
 Reference to window used as the file browser.
static char * locatestr = NULL
 The current filtering string that's being applied.

Detailed Description

File browser in textual user interface.

Definition in file gui_browser.c.

 All Data Structures Files Functions Variables Defines
Generated on Mon Mar 15 04:45:10 2010 for herrie by  doxygen 1.6.3