Home | History | Annotate | Download | only in sysinst

Lines Matching defs:menu

325 	int menu;
335 menu = new_menu(head, opts, i, 40, 6, 0, 0, MC_NOEXITOPT,
337 if (menu < 0)
339 process_menu(menu, arg);
340 free_menu(menu);
537 * Most often used file system types, we offer them in a first level menu.
548 init_fs_type_ext(menudesc *menu, void *arg)
552 size_t i, ndx, max = menu->numopts;
556 menu->cursel = 0;
558 menu->cursel = 1;
560 menu->cursel = 2;
563 menu->cursel = FSMAXTYPES+2;
576 menu->cursel = ndx;
582 menu->cursel = ndx;
591 set_fstype_ext(menudesc *menu, void *arg)
594 size_t i, ndx, max = menu->numopts;
597 if (menu->cursel >= 0 && menu->cursel <= 2) {
599 edit->info.fs_sub_type = 3-menu->cursel;
601 } else if (menu->cursel == FSMAXTYPES+2) {
615 if (ndx == (size_t)menu->cursel) {
622 if (ndx == (size_t)menu->cursel) {
646 * Offer a menu with "exotic" file system types, start with FFSv2 and FFSv1,
650 edit_fs_type_ext(menudesc *menu, void *arg)
705 init_fs_type(menudesc *menu, void *arg)
710 /* init menu->cursel from fs type in arg */
713 menu->cursel = 0;
715 menu->cursel = 1;
717 menu->cursel = 2;
721 menu->cursel = i+2;
728 set_fstype(menudesc *menu, void *arg)
735 if (menu->cursel < 3) {
737 edit->info.fs_sub_type = 3-menu->cursel;
748 ndx = menu->cursel-2;
768 * Offer a menu selecting the common file system types
771 edit_fs_type(menudesc *menu, void *arg)
779 * Shortcut to full menu if we have an exotic value
782 edit_fs_type_ext(menu, arg);
789 edit_fs_type_ext(menu, arg);
794 * Starting with a common type, show short menu first
811 /* add secondary sub-menu */
858 edit_ptn(menudesc *menu, void *arg)
904 edit.index = menu->cursel;
907 if (menu->cursel < 0 || (size_t)menu->cursel > pset->parts->num_part)
909 is_new_part = (size_t)menu->cursel == pset->parts->num_part;
1031 show_partition_adder(menu, pset);
1037 memmove(menu->opts+edit.index,
1038 menu->opts+edit.index+1,
1039 sizeof(*menu->opts)*(menu->numopts-edit.index));
1040 menu->numopts--;
1041 menu->cursel = 0;
1058 memmove(menu->opts+edit.index,
1059 menu->opts+edit.index+1,
1060 sizeof(*menu->opts)*(menu->numopts-edit.index));
1061 menu->numopts--;
1062 menu->cursel = 0;
1064 menu->cursel = 1; /* skip sentinel line */
1071 show_partition_adder(menu, pset);
1132 /* Avoid starting at a (now) disabled menu item */
1347 * Format the header of the main partition editor menu.
1350 fmt_fspart_header(menudesc *menu, void *arg)
1591 data.usage.menu = new_menu(MSG_clone_target_hdr,
1594 process_menu(data.usage.menu, &data);
1595 free_menu(data.usage.menu);
1739 /* now update edit menu to fit */
1814 /* now update edit menu to fit */
1902 pset->menu = new_menu(fspart_title, pset->menu_opts, cnt,
1909 if (pset->menu < 0) {
1920 process_menu(pset->menu, pset);
1934 free_menu(pset->menu);
1935 pset->menu = -1;