Merge branch '3243_usmenu_view_man'
[midnight-commander.git] / src / filemanager / tree.h
blobea41910191cbd86b29ce266680f561ecbc1ca1ce
1 /** \file tree.h
2 * \brief Header: directory tree browser
3 */
5 #ifndef MC__TREE_H
6 #define MC__TREE_H
8 #include "lib/global.h"
10 /*** typedefs(not structures) and defined constants **********************************************/
12 /*** enums ***************************************************************************************/
14 /*** structures declarations (and typedefs of structures)*****************************************/
16 typedef struct WTree WTree;
18 /*** global variables defined in .c file *********************************************************/
20 extern WTree *the_tree;
21 extern int xtree_mode;
23 struct WDialog;
25 /*** declarations of public functions ************************************************************/
27 WTree *tree_new (int y, int x, int lines, int cols, gboolean is_panel);
29 void tree_chdir (WTree * tree, const char *dir);
30 vfs_path_t *tree_selected_name (const WTree * tree);
32 void sync_tree (const char *pathname);
34 WTree *find_tree (struct WDialog *h);
36 /*** inline functions ****************************************************************************/
37 #endif /* MC__TREE_H */