/freebsd/contrib/dialog/ |
H A D | checklist.c | 47 int item_no; member 120 (long) (data->item_no), in print_list() 157 int item_no, in dlg_checklist() argument 214 DLG_TRACE2N("llength", item_no); in dlg_checklist() 224 all.item_no = item_no; in dlg_checklist() 236 for (i = 0; i < item_no; i++) { in dlg_checklist() 257 use_width = dlg_calc_list_width(item_no, items) + 10; in dlg_checklist() 262 dlg_calc_listh(&height, &all.use_height, item_no); in dlg_checklist() 310 max_choice = MIN(all.use_height, item_no); in dlg_checklist() 326 for (i = 0; i < item_no; i++) { in dlg_checklist() [all …]
|
H A D | treeview.c | 43 int item_no; member 124 (long) (data->item_no), in print_list() 160 int item_no, in dlg_treeview() argument 222 all.item_no = item_no; in dlg_treeview() 237 for (i = 0; i < item_no; i++) { in dlg_treeview() 255 use_width = dlg_calc_list_width(item_no, items) + 10; in dlg_treeview() 260 dlg_calc_listh(&height, &use_height, item_no); in dlg_treeview() 297 max_choice = MIN(use_height, item_no); in dlg_treeview() 313 for (i = 0; i < item_no; i++) { in dlg_treeview() 404 for (i = 0; i < item_no; i++) { in dlg_treeview() [all …]
|
H A D | buildlist.c | 54 #define okIndex(all,index) ((index) >= 0 && (index) < (all)->item_no) 65 int item_no; member 84 for (row = 0; row < all->item_no; ++row) { in index2row() 107 for (n = 0; n < all->item_no; ++n) { in row2index() 278 for (n = 0; n < all->item_no; ++n) { in first_item() 318 for (n = row + 1; (n < all->item_no) && (n <= row + skip); ++n) { in skip_rows() 350 for (n = choice; n < all->item_no; ++n) { in closest_item() 447 for (j = 0; j < all->item_no; ++j) { in append_right_side() 460 for (j = 0; j < all->item_no; ++j) { in amend_right_side() 462 for (k = j; k < all->item_no; ++k) { in amend_right_side() [all …]
|
H A D | menubox.c | 48 int item_no; member 277 data->item_no, in print_menu() 311 int item_no, in dlg_menu() argument 373 DLG_TRACE2N("llength", item_no); in dlg_menu() 380 all.item_no = item_no; in dlg_menu() 392 use_width = dlg_calc_list_width(item_no, items) + 10; in dlg_menu() 397 dlg_calc_listh(&height, &all.menu_height, item_no); in dlg_menu() 440 RowHeight(item_no)); in dlg_menu() 465 for (i = 0; i < item_no; i++) { in dlg_menu() 568 for (j = scrollamt + choice + 1; j < item_no; j++) { in dlg_menu() [all …]
|
H A D | formbox.c | 151 set_choice(DIALOG_FORMITEM item[], int choice, int item_no, bool * noneditable) in set_choice() argument 161 for (i = 0; i < item_no; i++) { in set_choice() 207 is_last_field(DIALOG_FORMITEM item[], int choice, int item_no) in is_last_field() argument 210 while (choice < item_no) { in is_last_field() 226 int item_no, in tab_next() argument 239 *choice = item_no - 1; in tab_next() 241 } else if (*choice >= item_no) { in tab_next() 358 int item_no, in make_FORM_ELTs() argument 366 for (i = 0; i < item_no; ++i) { in make_FORM_ELTs() 468 int item_no, in dlg_form() argument [all …]
|
H A D | mixedform.c | 48 int item_no, in dialog_mixedform() argument 62 listitems = dlg_calloc(DIALOG_FORMITEM, (size_t) item_no + 1); in dialog_mixedform() 65 for (i = 0; i < item_no; ++i) { in dialog_mixedform() 87 item_no, in dialog_mixedform() 105 for (i = 0; i < item_no; i++) { in dialog_mixedform()
|
H A D | mixedgauge.c | 45 int item_no; member 124 for (item = 0; item < dlg->item_no; ++item) { in myprint_status() 282 dlg->item_no = aItemNo; in dlg_begin_mixedgauge() 340 && wmove(dlg->dialog, dlg->item_no, 0) != ERR) { in dlg_begin_mixedgauge() 342 dlg->height - dlg->item_no - (2 * MARGIN), in dlg_begin_mixedgauge() 344 y + dlg->item_no + (2 * MARGIN), in dlg_begin_mixedgauge() 387 int item_no, in dialog_mixedgauge() argument 399 DLG_TRACE2N("llength", item_no); in dialog_mixedgauge() 403 width, item_no, items); in dialog_mixedgauge()
|
H A D | util.c | 2082 dlg_calc_listh(int *height, int *list_height, int item_no) in dlg_calc_listh() argument 2087 if (rows - (*height) > item_no) in dlg_calc_listh() 2088 *list_height = item_no; in dlg_calc_listh() 2097 dlg_calc_listw(int item_no, char **items, int group) in dlg_calc_listw() argument 2101 for (i = 0; i < (item_no * group); i += group) { in dlg_calc_listw() 2113 dlg_calc_list_width(int item_no, DIALOG_LISTITEM * items) in dlg_calc_list_width() argument 2119 for (i = 0; i < item_no; ++i) { in dlg_calc_list_width()
|
/freebsd/usr.sbin/tzsetup/ |
H A D | tzsetup.c | 106 xdialog_menu(char *title, char *cprompt, int item_no, dialogMenuItem *ditems) in xdialog_menu() argument 112 listitems = calloc(item_no + 1, sizeof(struct bsddialog_menuitem)); in xdialog_menu() 115 for (i = 0; i < item_no; i++) { in xdialog_menu() 126 menurows = item_no < 16 ? item_no : 16; in xdialog_menu() 128 BSDDIALOG_AUTOSIZE, menurows, item_no, listitems, &choice); in xdialog_menu()
|