/* * Navigation.h -- MCDE: the navigation parts of the file manager window (Navigation.c) * * License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. */ #ifndef _Navigation_h #define _Navigation_h /* the form that holds toolbar, sidebar and (after _McdeNavAttachWork) the * work area; it becomes the main window's work window */ extern Widget _McdeNavCreate(FileMgrRec *rec, Widget parent); extern void _McdeNavAttachWork(FileMgrRec *rec, Widget work); /* called by ShowNewDirectory for every directory the window shows */ extern void _McdeNavVisit(FileMgrRec *rec, const char *dir); /* appends ", 12.3 GB available" to the status text in buf */ /* go to PATH as the "Go To" dialog does (Columns.c) */ extern void _McdeNavGoTo(FileMgrRec *rec, const char *path); /* a Command-key command of the window (FileMgr.c's McdeKey action): * "back", "forward", "icons", "small", "list", "columns", "strip", * "computer", * "desktop", "applications", "network"; False if it is none of them */ extern Boolean _McdeNavKey(FileMgrRec *rec, const char *what); /* the column view (Columns.c) */ extern void _McdeColumnsCreate(FileMgrRec *rec, Widget parent, Widget work); extern void _McdeColumnsShow(FileMgrRec *rec, Widget work, const char *dir, Boolean on); extern void _McdeColumnsFollow(FileMgrRec *rec, const char *dir); /* the entry the column view has chosen, or NULL; the caller frees it */ extern char *_McdeColumnsChosen(FileMgrRec *rec); /* the network view (NetView.c) */ extern void _McdeNetCreate(FileMgrRec *rec, Widget parent, Widget work); extern void _McdeNetShow(FileMgrRec *rec, Boolean on); /* connect URL to the folder MP as mcde_sys_net_mount does (McdeSys), with the * window drawing meanwhile: a modal "Connecting ..." dialog with Cancel over * PARENT, ended by Cancel or Dtfile*connectTimeout; MCDE_SYS_OK or a failure * with mcde_sys_error() (NetView.c) */ extern int _McdeNetMount(Widget parent, const char *url, const char *mp, const char *password); /* "Connect to Server": shows the network view with the address field, as * Command+K asks for it */ extern void _McdeNetConnect(FileMgrRec *rec); extern void _McdeNavFreeSpace(const char *dir, char *buf, size_t len); /* MCDE: the search field of the window of DATA: is NAME hidden by it * (FilterFiles in File.c asks for every file) */ extern Boolean _McdeNavHidden(FileMgrData *data, const char *name); #endif /* _Navigation_h */