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 */
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
;