Lines Matching defs:all

456     ALL_DATA all;
457 MY_DATA *data = all.list;
481 memset(&all, 0, sizeof(all));
482 all.items = items;
483 all.item_no = item_no;
488 if ((cur_item = first_item(&all, 0)) < 0)
489 cur_item = first_item(&all, 1);
502 all.use_height = list_height;
503 all.use_width = (2 * (dlg_calc_list_width(item_no, items)
507 all.use_width = MAX(26, all.use_width);
508 if (all.use_height == 0) {
510 dlg_auto_size(title, prompt, &height, &width, MIN_HIGH, all.use_width);
511 dlg_calc_listh(&height, &all.use_height, item_no);
515 MIN_HIGH + all.use_height, all.use_width);
533 dlg_mouse_setbase(all.base_x = x, all.base_y = y);
553 if (all.use_height + MIN_HIGH > height - cur_y)
554 all.use_height = height - MIN_HIGH - cur_y;
555 if (all.use_height <= 0)
556 all.use_height = 1;
560 data[k].win = dlg_sub_window(dialog, all.use_height, list_width,
566 all.use_height + 2 * MARGIN,
583 all.use_width = (list_width - 6 * MARGIN);
585 full_width = MIN(all.use_width, text_width);
587 full_width = MIN(all.use_width, name_width);
591 && all.use_width > 0
592 && text_width + name_width > all.use_width) {
593 int need = (int) (0.25 * all.use_width);
595 int want = (int) (all.use_width * ((double) name_width) /
599 text_width = all.use_width - name_width;
604 all.check_x = (all.use_width - full_width) / 2;
605 all.item_x = ((dialog_vars.no_tags
610 + all.check_x);
613 j = MIN(all.use_height, item_no);
620 set_top_item(&all, top_item, i);
622 set_top_item(&all, 0, i);
630 all.use_height,
632 2 * KEY_MAX + (i * (1 + all.use_height)),
641 int at_top = index2row(&all, moi->top_index, which);
642 int at_end = index2row(&all, -1, which);
643 int at_bot = skip_rows(&all, at_top, all.use_height, which);
652 print_both(&all, cur_item);
658 int cur_row = index2row(&all, cur_item, which);
665 + all.check_x + 1);
681 i = (key - 2 * KEY_MAX) % (1 + all.use_height);
682 j = (key - 2 * KEY_MAX) / (1 + all.use_height);
683 k = row2index(&all, i + at_top, j);
691 fix_top_item(&all, k, j);
694 at_top = index2row(&all, moi->top_index, which);
695 at_bot = skip_rows(&all, at_top, all.use_height, which);
697 print_both(&all, cur_item);
730 if ((new_choice = next_item(&all, cur_item, which)) == cur_item) {
731 new_choice = prev_item(&all, cur_item, which);
739 set_top_item(&all, new_choice, which);
743 fix_top_item(&all, cur_item, !which);
746 print_both(&all, cur_item);
836 i = closest_item(&all, cur_item, 0);
837 fix_top_item(&all, i, 0);
840 i = closest_item(&all, cur_item, 1);
841 fix_top_item(&all, i, 1);
848 if ((temp -= all.use_height) < 0)
850 i = row2index(&all, temp, which);
854 if ((at_end - at_bot) < all.use_height) {
855 i = next_item(&all,
856 row2index(&all, at_end, which),
859 i = next_item(&all,
860 row2index(&all, at_bot, which),
863 set_top_item(&all,
864 next_item(&all,
865 row2index(&all, at_top, which),
868 at_bot = skip_rows(&all, at_top, all.use_height, which);
873 i = first_item(&all, which);
876 i = last_item(&all, which);
879 i = prev_item(&all, cur_item, which);
880 if (stop_prev(&all, cur_item, which))
884 i = next_item(&all, cur_item, which);
894 int now_at = index2row(&all, i, which);
906 if ((at_bot - at_top) >= all.use_height) {
907 set_top_item(&all,
908 next_item(&all, moi->top_index, which),
911 at_top = index2row(&all, moi->top_index, which);
912 at_bot = skip_rows(&all, at_top, all.use_height, which);
926 if ((at_bot - at_top) > all.use_height) {
927 set_top_item(&all,
928 next_item(&all, moi->top_index, which),
931 (at_bot - at_top) >= all.use_height) {
932 set_top_item(&all,
933 next_item(&all, moi->top_index, which),
946 set_top_item(&all,
947 prev_item(&all, moi->top_index, which),
949 at_top = index2row(&all, moi->top_index, which);
966 print_both(&all, cur_item);