updated the .TP cleanup for coherency in the key description pages.
[midnight-commander.git] / src / tree.h
blob1a66f5b297e3c0a959f98b6b4972ab1817035af3
1 #ifndef __TREE_H
2 #define __TREE_H
4 #include "treestore.h"
6 #include "dlg.h"
7 typedef struct {
8 Widget widget;
9 TreeStore *store;
10 tree_entry *selected_ptr; /* The selected directory */
11 char search_buffer [256]; /* Current search string */
12 int done; /* Flag: exit tree */
13 tree_entry **tree_shown; /* Entries currently on screen */
14 int is_panel; /* panel or plain widget flag */
15 int active; /* if it's currently selected */
16 int searching; /* Are we on searching mode? */
17 int topdiff; /* The difference between the topmost shown and the selected */
18 } WTree;
20 #define tlines(t) (t->is_panel ? t->widget.lines-2 - (show_mini_info ? 2 : 0) : t->widget.lines)
22 int tree_init (char *current_dir, int lines);
23 void tree_chdir (WTree *tree, char *dir);
25 void sync_tree (char *pathname);
27 extern int xtree_mode;
29 WTree *tree_new (int is_panel, int y, int x, int lines, int cols);
30 extern WTree *the_tree;
32 #endif