Lines Matching refs:choice

61  * Print list item.  The 'selected' parameter is true if 'choice' is the
68 int choice,
82 (void) wmove(win, choice, 0);
86 (void) wmove(win, choice, data->check_x);
95 (void) wmove(win, choice, data->item_x);
110 int choice,
127 j, ii == choice);
138 * further movement is possible, return the same choice as given.
141 prev_item(ALL_DATA * data, int choice, int selected)
143 int result = choice;
146 for (n = choice - 1; n >= 0; --n) {
156 * Return true if the given choice is on the first page in the current column.
159 stop_prev(ALL_DATA * data, int choice, int selected)
161 return (prev_item(data, choice, selected) == choice);
165 check_hotkey(DIALOG_LISTITEM * items, int choice, int selected)
169 if ((items[choice].state != 0) == selected) {
172 ? items[choice].text
173 : items[choice].name))) {
182 * further movement is possible, return the same choice as given.
185 next_item(ALL_DATA * data, int choice, int selected)
187 int result = choice;
190 for (n = choice + 1; n < data->item_no; ++n) {
196 dlg_trace_msg("next_item(%d) ->%d\n", choice, result);
201 * Translate a choice from items[] to a row-number in an unbounded column,
205 index2row(ALL_DATA * data, int choice, int selected)
213 if (n == choice)
220 * Return the first choice from items[] for the given column.
238 * Return the last choice from items[] for the given column.
277 int choice = row2index(data, row, selected);
281 for (n = choice + 1; n < data->item_no; ++n) {
289 for (n = choice - 1; n >= 0; --n) {
301 * Find the closest item in the given column starting with the given choice.
304 closest_item(ALL_DATA * data, int choice, int selected)
306 int prev = choice;
307 int next = choice;
308 int result = choice;
311 for (n = choice; n >= 0; --n) {
317 for (n = choice; n < data->item_no; ++n) {
323 if (prev != choice) {
325 if (next != choice) {
326 if ((choice - prev) > (next - choice)) {
330 } else if (next != choice) {
338 int choice)
352 print_1_list(data, choice, selected);
612 /* ensure we are scrolled to show the current choice */