tree 1768 src/filemanager/file.c WTree *tree; tree 1771 src/filemanager/file.c tree = (WTree *) get_panel_widget (get_current_index ()); tree 1772 src/filemanager/file.c selected_name = tree_selected_name (tree); tree 772 src/filemanager/filemanager.c WTree *tree; tree 775 src/filemanager/filemanager.c tree = (WTree *) get_panel_widget (get_current_index ()); tree 776 src/filemanager/filemanager.c selected_name = tree_selected_name (tree); tree 148 src/filemanager/tree.c WTree *tree = data; tree 150 src/filemanager/tree.c if (tree->selected_ptr == entry) tree 152 src/filemanager/tree.c if (tree->selected_ptr->next != NULL) tree 153 src/filemanager/tree.c tree->selected_ptr = tree->selected_ptr->next; tree 155 src/filemanager/tree.c tree->selected_ptr = tree->selected_ptr->prev; tree 163 src/filemanager/tree.c save_tree (WTree *tree) tree 167 src/filemanager/tree.c (void) tree; tree 184 src/filemanager/tree.c tree_remove_entry (WTree *tree, const vfs_path_t *name_vpath) tree 186 src/filemanager/tree.c (void) tree; tree 193 src/filemanager/tree.c tree_destroy (WTree *tree) tree 196 src/filemanager/tree.c save_tree (tree); tree 198 src/filemanager/tree.c MC_PTR_FREE (tree->tree_shown); tree 199 src/filemanager/tree.c g_string_free (tree->search_buffer, TRUE); tree 200 src/filemanager/tree.c tree->selected_ptr = NULL; tree 207 src/filemanager/tree.c load_tree (WTree *tree) tree 213 src/filemanager/tree.c tree->selected_ptr = tree->store->tree_first; tree 215 src/filemanager/tree.c tree_chdir (tree, vpath); tree 222 src/filemanager/tree.c tree_show_mini_info (WTree *tree, int tree_lines, int tree_cols) tree 224 src/filemanager/tree.c Widget *w = WIDGET (tree); tree 228 src/filemanager/tree.c if (tree->is_panel) tree 237 src/filemanager/tree.c if (tree->searching) tree 244 src/filemanager/tree.c tty_print_string (str_fit_to_term (tree->search_buffer->str, tree_cols - 2, J_LEFT_FIT)); tree 254 src/filemanager/tree.c tty_setcolor (tree->is_panel ? NORMAL_COLOR : colors[DLG_COLOR_NORMAL]); tree 258 src/filemanager/tree.c (vfs_path_as_str (tree->selected_ptr->name), tree_cols, J_LEFT_FIT)); tree 265 src/filemanager/tree.c show_tree (WTree *tree) tree 267 src/filemanager/tree.c Widget *w = WIDGET (tree); tree 275 src/filemanager/tree.c tree_lines = tlines (tree); tree 279 src/filemanager/tree.c if (tree->is_panel) tree 285 src/filemanager/tree.c g_free (tree->tree_shown); tree 286 src/filemanager/tree.c tree->tree_shown = g_new0 (tree_entry *, tree_lines); tree 288 src/filemanager/tree.c if (tree->store->tree_first != NULL) tree 289 src/filemanager/tree.c topsublevel = tree->store->tree_first->sublevel; tree 291 src/filemanager/tree.c if (tree->selected_ptr == NULL) tree 293 src/filemanager/tree.c tree->selected_ptr = tree->store->tree_first; tree 294 src/filemanager/tree.c tree->topdiff = 0; tree 296 src/filemanager/tree.c current = tree->selected_ptr; tree 300 src/filemanager/tree.c current = back_ptr (current, &tree->topdiff); tree 305 src/filemanager/tree.c while (current->prev != NULL && i < tree->topdiff) tree 309 src/filemanager/tree.c if (current->sublevel < tree->selected_ptr->sublevel) tree 311 src/filemanager/tree.c if (vfs_path_equal (current->name, tree->selected_ptr->name)) tree 314 src/filemanager/tree.c else if (current->sublevel == tree->selected_ptr->sublevel) tree 321 src/filemanager/tree.c if (vfs_path_equal_len (current->name, tree->selected_ptr->name, j)) tree 324 src/filemanager/tree.c else if (current->sublevel == tree->selected_ptr->sublevel + 1) tree 326 src/filemanager/tree.c j = vfs_path_len (tree->selected_ptr->name); tree 327 src/filemanager/tree.c if (j > 1 && vfs_path_equal_len (current->name, tree->selected_ptr->name, j)) tree 331 src/filemanager/tree.c tree->topdiff = i; tree 340 src/filemanager/tree.c tty_setcolor (tree->is_panel ? NORMAL_COLOR : colors[DLG_COLOR_NORMAL]); tree 348 src/filemanager/tree.c if (tree->is_panel) tree 352 src/filemanager/tree.c selected = widget_get_state (w, WST_FOCUSED) && current == tree->selected_ptr; tree 357 src/filemanager/tree.c int idx = current == tree->selected_ptr ? DLG_COLOR_FOCUS : DLG_COLOR_NORMAL; tree 362 src/filemanager/tree.c tree->tree_shown[i] = current; tree 367 src/filemanager/tree.c tree_cols + (tree->is_panel ? 0 : 1), J_LEFT_FIT)); tree 405 src/filemanager/tree.c if (current->sublevel < tree->selected_ptr->sublevel) tree 407 src/filemanager/tree.c if (vfs_path_equal_len (current->name, tree->selected_ptr->name, tree 411 src/filemanager/tree.c else if (current->sublevel == tree->selected_ptr->sublevel) tree 418 src/filemanager/tree.c if (vfs_path_equal_len (current->name, tree->selected_ptr->name, j)) tree 421 src/filemanager/tree.c else if (current->sublevel == tree->selected_ptr->sublevel + 1 tree 422 src/filemanager/tree.c && vfs_path_len (tree->selected_ptr->name) > 1) tree 424 src/filemanager/tree.c if (vfs_path_equal_len (current->name, tree->selected_ptr->name, tree 425 src/filemanager/tree.c vfs_path_len (tree->selected_ptr->name))) tree 431 src/filemanager/tree.c tree_show_mini_info (tree, tree_lines, tree_cols); tree 437 src/filemanager/tree.c tree_check_focus (WTree *tree) tree 439 src/filemanager/tree.c if (tree->topdiff < 3) tree 440 src/filemanager/tree.c tree->topdiff = 3; tree 441 src/filemanager/tree.c else if (tree->topdiff >= tlines (tree) - 3) tree 442 src/filemanager/tree.c tree->topdiff = tlines (tree) - 3 - 1; tree 448 src/filemanager/tree.c tree_move_backward (WTree *tree, int i) tree 451 src/filemanager/tree.c tree->selected_ptr = back_ptr (tree->selected_ptr, &i); tree 457 src/filemanager/tree.c current = tree->selected_ptr; tree 459 src/filemanager/tree.c && current->prev->sublevel >= tree->selected_ptr->sublevel) tree 462 src/filemanager/tree.c if (current->sublevel == tree->selected_ptr->sublevel) tree 464 src/filemanager/tree.c tree->selected_ptr = current; tree 471 src/filemanager/tree.c tree->topdiff -= i; tree 472 src/filemanager/tree.c tree_check_focus (tree); tree 478 src/filemanager/tree.c tree_move_forward (WTree *tree, int i) tree 481 src/filemanager/tree.c tree->selected_ptr = forw_ptr (tree->selected_ptr, &i); tree 487 src/filemanager/tree.c current = tree->selected_ptr; tree 489 src/filemanager/tree.c && current->next->sublevel >= tree->selected_ptr->sublevel) tree 492 src/filemanager/tree.c if (current->sublevel == tree->selected_ptr->sublevel) tree 494 src/filemanager/tree.c tree->selected_ptr = current; tree 501 src/filemanager/tree.c tree->topdiff += i; tree 502 src/filemanager/tree.c tree_check_focus (tree); tree 508 src/filemanager/tree.c tree_move_to_child (WTree *tree) tree 513 src/filemanager/tree.c if (tree->selected_ptr == NULL) tree 517 src/filemanager/tree.c current = tree->selected_ptr->next; tree 519 src/filemanager/tree.c if (current != NULL && current->sublevel > tree->selected_ptr->sublevel) tree 522 src/filemanager/tree.c tree->selected_ptr = current; tree 523 src/filemanager/tree.c tree->topdiff++; tree 524 src/filemanager/tree.c tree_check_focus (tree); tree 529 src/filemanager/tree.c tree_rescan (tree); tree 530 src/filemanager/tree.c current = tree->selected_ptr->next; tree 531 src/filemanager/tree.c if (current != NULL && current->sublevel > tree->selected_ptr->sublevel) tree 533 src/filemanager/tree.c tree->selected_ptr = current; tree 534 src/filemanager/tree.c tree->topdiff++; tree 535 src/filemanager/tree.c tree_check_focus (tree); tree 543 src/filemanager/tree.c tree_move_to_parent (WTree *tree) tree 548 src/filemanager/tree.c if (tree->selected_ptr == NULL) tree 551 src/filemanager/tree.c old = tree->selected_ptr; tree 553 src/filemanager/tree.c for (current = tree->selected_ptr->prev; tree 554 src/filemanager/tree.c current != NULL && current->sublevel >= tree->selected_ptr->sublevel; tree 556 src/filemanager/tree.c tree->topdiff--; tree 559 src/filemanager/tree.c current = tree->store->tree_first; tree 560 src/filemanager/tree.c tree->selected_ptr = current; tree 561 src/filemanager/tree.c tree_check_focus (tree); tree 562 src/filemanager/tree.c return tree->selected_ptr != old; tree 568 src/filemanager/tree.c tree_move_to_top (WTree *tree) tree 570 src/filemanager/tree.c tree->selected_ptr = tree->store->tree_first; tree 571 src/filemanager/tree.c tree->topdiff = 0; tree 577 src/filemanager/tree.c tree_move_to_bottom (WTree *tree) tree 579 src/filemanager/tree.c tree->selected_ptr = tree->store->tree_last; tree 580 src/filemanager/tree.c tree->topdiff = tlines (tree) - 3 - 1; tree 586 src/filemanager/tree.c tree_chdir_sel (WTree *tree) tree 588 src/filemanager/tree.c if (tree->is_panel) tree 594 src/filemanager/tree.c if (panel_cd (p, tree->selected_ptr->name, cd_exact)) tree 597 src/filemanager/tree.c cd_error_message (vfs_path_as_str (tree->selected_ptr->name)); tree 601 src/filemanager/tree.c show_tree (tree); tree 605 src/filemanager/tree.c WDialog *h = DIALOG (WIDGET (tree)->owner); tree 615 src/filemanager/tree.c maybe_chdir (WTree *tree) tree 617 src/filemanager/tree.c if (xtree_mode && tree->is_panel && is_idle ()) tree 618 src/filemanager/tree.c tree_chdir_sel (tree); tree 625 src/filemanager/tree.c search_tree (WTree *tree, const GString *text) tree 627 src/filemanager/tree.c tree_entry *current = tree->selected_ptr; tree 631 src/filemanager/tree.c while (!found && (!wrapped || current != tree->selected_ptr)) tree 634 src/filemanager/tree.c tree->selected_ptr = current; tree 642 src/filemanager/tree.c current = tree->store->tree_first; tree 646 src/filemanager/tree.c tree->topdiff++; tree 649 src/filemanager/tree.c tree_check_focus (tree); tree 656 src/filemanager/tree.c tree_do_search (WTree *tree, int key) tree 660 src/filemanager/tree.c if (tree->search_buffer->len != 0 && key == KEY_BACKSPACE) tree 661 src/filemanager/tree.c g_string_set_size (tree->search_buffer, tree->search_buffer->len - 1); tree 663 src/filemanager/tree.c g_string_append_c (tree->search_buffer, (gchar) key); tree 665 src/filemanager/tree.c if (!search_tree (tree, tree->search_buffer)) tree 666 src/filemanager/tree.c g_string_set_size (tree->search_buffer, tree->search_buffer->len - 1); tree 668 src/filemanager/tree.c show_tree (tree); tree 669 src/filemanager/tree.c maybe_chdir (tree); tree 677 src/filemanager/tree.c WTree *tree = data; tree 684 src/filemanager/tree.c if (tree->selected_ptr != NULL && mc_chdir (tree->selected_ptr->name) == 0) tree 688 src/filemanager/tree.c tree_store_rescan (tree->selected_ptr->name); tree 700 src/filemanager/tree.c WTree *tree = data; tree 702 src/filemanager/tree.c if (tree->selected_ptr != NULL) tree 703 src/filemanager/tree.c tree_remove_entry (tree, tree->selected_ptr->name); tree 709 src/filemanager/tree.c tree_copy (WTree *tree, const char *default_dest) tree 714 src/filemanager/tree.c if (tree->selected_ptr == NULL) tree 718 src/filemanager/tree.c str_trunc (vfs_path_as_str (tree->selected_ptr->name), 50)); tree 730 src/filemanager/tree.c copy_dir_dir (ctx, vfs_path_as_str (tree->selected_ptr->name), dest, TRUE, FALSE, FALSE, tree 741 src/filemanager/tree.c tree_move (WTree *tree, const char *default_dest) tree 746 src/filemanager/tree.c if (tree->selected_ptr == NULL) tree 750 src/filemanager/tree.c str_trunc (vfs_path_as_str (tree->selected_ptr->name), 50)); tree 773 src/filemanager/tree.c move_dir_dir (ctx, vfs_path_as_str (tree->selected_ptr->name), dest); tree 787 src/filemanager/tree.c tree_mkdir (WTree *tree) tree 791 src/filemanager/tree.c if (tree->selected_ptr == NULL || chdir (tree->selected_ptr->name) != 0) tree 796 src/filemanager/tree.c tree_rescan (tree); tree 806 src/filemanager/tree.c WTree *tree = data; tree 809 src/filemanager/tree.c if (tree->selected_ptr == NULL) tree 817 src/filemanager/tree.c buf = g_strdup_printf (_("Delete %s?"), vfs_path_as_str (tree->selected_ptr->name)); tree 827 src/filemanager/tree.c if (erase_dir (ctx, tree->selected_ptr->name) == FILE_CONT) tree 828 src/filemanager/tree.c tree_forget (tree); tree 835 src/filemanager/tree.c tree_move_up (WTree *tree) tree 837 src/filemanager/tree.c tree_move_backward (tree, 1); tree 838 src/filemanager/tree.c show_tree (tree); tree 839 src/filemanager/tree.c maybe_chdir (tree); tree 845 src/filemanager/tree.c tree_move_down (WTree *tree) tree 847 src/filemanager/tree.c tree_move_forward (tree, 1); tree 848 src/filemanager/tree.c show_tree (tree); tree 849 src/filemanager/tree.c maybe_chdir (tree); tree 855 src/filemanager/tree.c tree_move_home (WTree *tree) tree 857 src/filemanager/tree.c tree_move_to_top (tree); tree 858 src/filemanager/tree.c show_tree (tree); tree 859 src/filemanager/tree.c maybe_chdir (tree); tree 865 src/filemanager/tree.c tree_move_end (WTree *tree) tree 867 src/filemanager/tree.c tree_move_to_bottom (tree); tree 868 src/filemanager/tree.c show_tree (tree); tree 869 src/filemanager/tree.c maybe_chdir (tree); tree 875 src/filemanager/tree.c tree_move_pgup (WTree *tree) tree 877 src/filemanager/tree.c tree_move_backward (tree, tlines (tree) - 1); tree 878 src/filemanager/tree.c show_tree (tree); tree 879 src/filemanager/tree.c maybe_chdir (tree); tree 885 src/filemanager/tree.c tree_move_pgdn (WTree *tree) tree 887 src/filemanager/tree.c tree_move_forward (tree, tlines (tree) - 1); tree 888 src/filemanager/tree.c show_tree (tree); tree 889 src/filemanager/tree.c maybe_chdir (tree); tree 895 src/filemanager/tree.c tree_move_left (WTree *tree) tree 901 src/filemanager/tree.c v = tree_move_to_parent (tree); tree 902 src/filemanager/tree.c show_tree (tree); tree 903 src/filemanager/tree.c maybe_chdir (tree); tree 912 src/filemanager/tree.c tree_move_right (WTree *tree) tree 918 src/filemanager/tree.c tree_move_to_child (tree); tree 919 src/filemanager/tree.c show_tree (tree); tree 920 src/filemanager/tree.c maybe_chdir (tree); tree 930 src/filemanager/tree.c tree_start_search (WTree *tree) tree 932 src/filemanager/tree.c if (tree->searching) tree 934 src/filemanager/tree.c if (tree->selected_ptr == tree->store->tree_last) tree 935 src/filemanager/tree.c tree_move_to_top (tree); tree 947 src/filemanager/tree.c tree_move_forward (tree, 1); tree 950 src/filemanager/tree.c tree_do_search (tree, 0); tree 954 src/filemanager/tree.c tree->searching = TRUE; tree 955 src/filemanager/tree.c g_string_set_size (tree->search_buffer, 0); tree 962 src/filemanager/tree.c tree_toggle_navig (WTree *tree) tree 964 src/filemanager/tree.c Widget *w = WIDGET (tree); tree 989 src/filemanager/tree.c tree_execute_cmd (WTree *tree, long command) tree 994 src/filemanager/tree.c tree->searching = FALSE; tree 1002 src/filemanager/tree.c tree_forget (tree); tree 1005 src/filemanager/tree.c tree_toggle_navig (tree); tree 1008 src/filemanager/tree.c tree_copy (tree, ""); tree 1011 src/filemanager/tree.c tree_move (tree, ""); tree 1014 src/filemanager/tree.c tree_move_up (tree); tree 1017 src/filemanager/tree.c tree_move_down (tree); tree 1020 src/filemanager/tree.c tree_move_home (tree); tree 1023 src/filemanager/tree.c tree_move_end (tree); tree 1026 src/filemanager/tree.c tree_move_pgup (tree); tree 1029 src/filemanager/tree.c tree_move_pgdn (tree); tree 1032 src/filemanager/tree.c tree_chdir_sel (tree); tree 1035 src/filemanager/tree.c tree_rescan (tree); tree 1038 src/filemanager/tree.c tree_start_search (tree); tree 1041 src/filemanager/tree.c tree_rmdir (tree); tree 1044 src/filemanager/tree.c if (!tree->is_panel) tree 1045 src/filemanager/tree.c dlg_close (DIALOG (WIDGET (tree)->owner)); tree 1051 src/filemanager/tree.c show_tree (tree); tree 1059 src/filemanager/tree.c tree_key (WTree *tree, int key) tree 1065 src/filemanager/tree.c if (tree->is_panel) tree 1067 src/filemanager/tree.c tree->searching = FALSE; tree 1068 src/filemanager/tree.c show_tree (tree); tree 1076 src/filemanager/tree.c if (tree->searching && ((key >= ' ' && key <= 255) || key == KEY_BACKSPACE)) tree 1078 src/filemanager/tree.c tree_do_search (tree, key); tree 1079 src/filemanager/tree.c show_tree (tree); tree 1083 src/filemanager/tree.c command = widget_lookup_key (WIDGET (tree), key); tree 1089 src/filemanager/tree.c return tree_move_left (tree) ? MSG_HANDLED : MSG_NOT_HANDLED; tree 1091 src/filemanager/tree.c return tree_move_right (tree) ? MSG_HANDLED : MSG_NOT_HANDLED; tree 1093 src/filemanager/tree.c tree_execute_cmd (tree, command); tree 1100 src/filemanager/tree.c tree_start_search (tree); tree 1101 src/filemanager/tree.c tree_do_search (tree, key); tree 1111 src/filemanager/tree.c tree_frame (WDialog *h, WTree *tree) tree 1113 src/filemanager/tree.c Widget *w = WIDGET (tree); tree 1119 src/filemanager/tree.c if (tree->is_panel) tree 1148 src/filemanager/tree.c WTree *tree = (WTree *) w; tree 1155 src/filemanager/tree.c tree_frame (h, tree); tree 1156 src/filemanager/tree.c show_tree (tree); tree 1184 src/filemanager/tree.c tree->searching = FALSE; tree 1188 src/filemanager/tree.c return tree_key (tree, parm); tree 1192 src/filemanager/tree.c return tree_execute_cmd (tree, parm); tree 1195 src/filemanager/tree.c tree_destroy (tree); tree 1211 src/filemanager/tree.c WTree *tree = (WTree *) w; tree 1215 src/filemanager/tree.c if (tree->is_panel) tree 1222 src/filemanager/tree.c if (tree->is_panel && event->y == WIDGET (w->owner)->rect.y) tree 1235 src/filemanager/tree.c lines = tlines (tree); tree 1239 src/filemanager/tree.c tree_move_backward (tree, lines - 1); tree 1240 src/filemanager/tree.c show_tree (tree); tree 1244 src/filemanager/tree.c tree_move_forward (tree, lines - 1); tree 1245 src/filemanager/tree.c show_tree (tree); tree 1249 src/filemanager/tree.c if (tree->tree_shown[y] != NULL) tree 1251 src/filemanager/tree.c tree->selected_ptr = tree->tree_shown[y]; tree 1252 src/filemanager/tree.c tree->topdiff = y; tree 1255 src/filemanager/tree.c tree_chdir_sel (tree); tree 1277 src/filemanager/tree.c WTree *tree; tree 1280 src/filemanager/tree.c tree = g_new (WTree, 1); tree 1282 src/filemanager/tree.c w = WIDGET (tree); tree 1287 src/filemanager/tree.c tree->is_panel = is_panel; tree 1288 src/filemanager/tree.c tree->selected_ptr = NULL; tree 1290 src/filemanager/tree.c tree->store = tree_store_get (); tree 1291 src/filemanager/tree.c tree_store_add_entry_remove_hook (remove_callback, tree); tree 1292 src/filemanager/tree.c tree->tree_shown = NULL; tree 1293 src/filemanager/tree.c tree->search_buffer = g_string_sized_new (MC_MAXPATHLEN); tree 1294 src/filemanager/tree.c tree->topdiff = w->rect.lines / 2; tree 1295 src/filemanager/tree.c tree->searching = FALSE; tree 1297 src/filemanager/tree.c load_tree (tree); tree 1298 src/filemanager/tree.c return tree; tree 1304 src/filemanager/tree.c tree_chdir (WTree *tree, const vfs_path_t *dir) tree 1311 src/filemanager/tree.c tree->selected_ptr = current; tree 1312 src/filemanager/tree.c tree_check_focus (tree); tree 1320 src/filemanager/tree.c tree_selected_name (const WTree *tree) tree 1322 src/filemanager/tree.c return tree->selected_ptr->name; tree 27 src/filemanager/tree.h void tree_chdir (WTree * tree, const vfs_path_t * dir); tree 28 src/filemanager/tree.h const vfs_path_t *tree_selected_name (const WTree * tree); tree 16 src/filemanager/treestore.h typedef void (*tree_store_remove_fn) (struct tree_entry * tree, void *data); tree 902 src/keymap.c LOAD_KEYMAP (TREE, tree); tree 932 src/keymap.c SET_MAP (tree); tree 967 src/keymap.c FREE_KEYMAP (tree);