Logo Search packages:      
Sourcecode: herrie version File versions  Download package

gui_browser.c File Reference


Detailed Description

File browser in textual user interface.

Definition in file gui_browser.c.

#include "stdinc.h"
#include "config.h"
#include "gui.h"
#include "gui_internal.h"
#include "gui_vfslist.h"
#include "playq.h"
#include "vfs.h"

Go to the source code of this file.

Functions

void gui_browser_chdir (void)
 Change to a specified directory.
static void gui_browser_cleanup_flist (void)
 Clean up our pseudo-directory data.
void gui_browser_cursor_down (void)
 Move the cursor of the filebrowser one position 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_pagedown (void)
 Move the cursor and the viewport of the filebrowser one page down.
void gui_browser_cursor_pageup (void)
 Move the cursor and the viewport of the filebrowser one page up.
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_cursor_up (void)
 Move the cursor of the filebrowser one position up.
void gui_browser_destroy (void)
 Destroy the filebrowser window.
void gui_browser_dir_enter (void)
 Change the current working directory of the filebrowser to the currently selected item.
void gui_browser_dir_parent (void)
 Change the current working directory of the filebrowser to the parent directory.
static void gui_browser_dirname_refresh (void)
 Refresh the bar above the filebrowser to contain the proper filename and percentage.
void gui_browser_fullpath (void)
 Write the full pathname of the selected item in the message bar.
void gui_browser_init (void)
 Initialize the filebrowser window.
int gui_browser_locate (const struct vfsmatch *vm)
 Apply a recursive search filter on the current directory.
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.
void gui_browser_playq_add_head (void)
 Add the current selection to the head of the playlist.
void gui_browser_playq_add_tail (void)
 Add the current selection to the tail of the playlist.
void gui_browser_resize (void)
 Redraw the filebrowser, because of a terminal resize.
int gui_browser_searchnext (const struct vfsmatch *vm)
 Search for the next item matching gui_input_cursearch in the file browser.
void gui_browser_setfocus (int focus)
 Focus or unfocus the filebrowser.
void gui_browser_write_playlist (void)
 Write the playlist to a file.

Variables

static char * locatestr = NULL
 The current filtering string that's being applied.
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 vfsrefvr_curdir = NULL
 Reference to VFS object that is currently shown.
static struct gui_vfslistwin_browser
 Reference to window used as the file browser.
static WINDOW * win_dirname
 Reference to window with pathname of current folder.


Generated by  Doxygen 1.6.0   Back to index