tag | line | file | source code |
max_choice | 121 | scripts/lxdialog/checklist.c | int key = 0, button = 0, choice = 0, scroll = 0, max_choice, *status; |
max_choice | 141 | scripts/lxdialog/checklist.c | max_choice = MIN (list_height, item_no); |
max_choice | 192 | scripts/lxdialog/checklist.c | for (i = 0; i < max_choice; i++) |
max_choice | 205 | scripts/lxdialog/checklist.c | for (i = 0; i < max_choice; i++) |
max_choice | 210 | scripts/lxdialog/checklist.c | if ( i < max_choice || key == KEY_UP || key == KEY_DOWN || |
max_choice | 239 | scripts/lxdialog/checklist.c | if (choice == max_choice - 1) { |
max_choice | 245 | scripts/lxdialog/checklist.c | print_item (list, items[(scroll + max_choice - 1) * 3 + 1], |
max_choice | 246 | scripts/lxdialog/checklist.c | status[scroll + max_choice - 1], |
max_choice | 247 | scripts/lxdialog/checklist.c | max_choice - 1, FALSE); |
max_choice | 253 | scripts/lxdialog/checklist.c | print_item (list, items[(scroll + max_choice - 1) * 3 + 1], |
max_choice | 254 | scripts/lxdialog/checklist.c | status[scroll + max_choice - 1], |
max_choice | 255 | scripts/lxdialog/checklist.c | max_choice - 1, TRUE); |
max_choice | 311 | scripts/lxdialog/checklist.c | for (i = 0; i < max_choice; i++) |
max_choice | 124 | scripts/lxdialog/menubox.c | int key = 0, button = 0, scroll = 0, choice = 0, first_item = 0, max_choice; |
max_choice | 127 | scripts/lxdialog/menubox.c | max_choice = MIN (menu_height, item_no); |
max_choice | 181 | scripts/lxdialog/menubox.c | if (choice >= max_choice){ |
max_choice | 182 | scripts/lxdialog/menubox.c | scroll = first_item = choice - max_choice + 1; |
max_choice | 183 | scripts/lxdialog/menubox.c | choice = max_choice-1; |
max_choice | 187 | scripts/lxdialog/menubox.c | for (i=0; i < max_choice; i++) { |
max_choice | 205 | scripts/lxdialog/menubox.c | i = max_choice; |
max_choice | 207 | scripts/lxdialog/menubox.c | for (i = choice+1; i < max_choice; i++) { |
max_choice | 212 | scripts/lxdialog/menubox.c | if (i == max_choice) |
max_choice | 213 | scripts/lxdialog/menubox.c | for (i = 0; i < max_choice; i++) { |
max_choice | 220 | scripts/lxdialog/menubox.c | if (i < max_choice || |
max_choice | 247 | scripts/lxdialog/menubox.c | if ((choice > max_choice-3) && |
max_choice | 248 | scripts/lxdialog/menubox.c | (scroll + max_choice < item_no) |
max_choice | 257 | scripts/lxdialog/menubox.c | print_item (menu, items[(scroll+max_choice-1)*2+1], |
max_choice | 258 | scripts/lxdialog/menubox.c | max_choice-1, FALSE, |
max_choice | 259 | scripts/lxdialog/menubox.c | (items[(scroll+max_choice-1)*2][0] != ':')); |
max_choice | 261 | scripts/lxdialog/menubox.c | choice = MIN(choice+1, max_choice-1); |
max_choice | 265 | scripts/lxdialog/menubox.c | for (i=0; (i < max_choice) && (scroll > 0); i++) { |
max_choice | 276 | scripts/lxdialog/menubox.c | for (i=0; (i < max_choice) && (scroll+max_choice < item_no); i++) { |
max_choice | 279 | scripts/lxdialog/menubox.c | print_item (menu, items[(scroll+max_choice-1)*2+1], |
max_choice | 280 | scripts/lxdialog/menubox.c | max_choice-1, FALSE, |
max_choice | 281 | scripts/lxdialog/menubox.c | (items[(scroll+max_choice-1)*2][0] != ':')); |