Ticket #2344: Fix line jump when started as editor
[midnight-commander.git] / src / tree.h
blob58a20a3d204dcf79503f6bd7d2fd9c5cb690ae66
2 /** \file tree.h
3 * \brief Header: directory tree browser
4 */
6 #ifndef MC_TREE_H
7 #define MC_TREE_H
9 #include "lib/global.h"
11 typedef struct WTree WTree;
13 extern WTree *the_tree;
14 extern int xtree_mode;
16 WTree *tree_new (int y, int x, int lines, int cols, gboolean is_panel);
18 void tree_chdir (WTree *tree, const char *dir);
19 char *tree_selected_name (const WTree *tree);
21 void sync_tree (const char *pathname);
23 struct Dlg_head;
25 WTree *find_tree (struct Dlg_head *h);
27 #endif /* MC_TREE_H */