Lines Matching refs:menu

5  * Introduced single menu mode (show all sub-menus in one large tree).
60 "o To exit a menu use the cursor keys to highlight the <Exit> button\n"
149 "If you prefer to have all of the options listed in a single menu,\n"
176 "Arrow keys navigate the menu. "
250 "o The line 'Prompt:' shows the text used in the menu structure for\n"
255 " this symbol to be visible in the menu (selectable)\n"
256 "o The 'Location:' lines tells where in the menu structure this symbol\n"
259 " selectable menu item - and the current value is displayed inside\n"
263 " after exiting this new menu.\n"
277 static struct menu *current_menu;
284 static void conf(struct menu *menu, struct menu *active_menu);
285 static void conf_choice(struct menu *menu);
286 static void conf_string(struct menu *menu);
294 static void show_help(struct menu *menu);
360 struct menu **targets;
435 struct menu *targets[JUMP_NB];
466 static void build_conf(struct menu *menu)
470 struct menu *child;
480 visible = menu_is_visible(menu);
481 if (show_all_options && !menu_has_prompt(menu))
486 sym = menu->sym;
487 prop = menu->prompt;
489 if (prop && menu != current_menu) {
490 const char *prompt = menu_get_prompt(menu);
496 menu->data ? "-->" : "++>",
501 menu_is_empty(menu) ? "----" : "--->");
503 item_set_data(menu);
504 if (single_menu_mode && menu->data)
512 item_set_data(menu);
520 item_set_data(menu);
531 struct menu *def_menu = NULL;
534 for (child = menu->list; child; child = child->next) {
555 item_set_data(menu);
559 item_set_data(menu);
562 item_add_str("%*c%s", indent + 1, ' ', menu_get_prompt(menu));
576 if (menu == current_menu) {
577 item_make("---%*c%s", indent + 1, ' ', menu_get_prompt(menu));
579 item_set_data(menu);
587 item_set_data(menu);
596 item_set_data(menu);
612 item_set_data(menu);
620 item_add_str("%*c%s%s", tmp, ' ', menu_get_prompt(menu),
624 item_set_data(menu);
628 item_add_str("%*c%s%s", indent + 1, ' ', menu_get_prompt(menu),
631 if (menu->prompt->type == P_MENU) {
632 item_add_str(" %s", menu_is_empty(menu) ? "----" : "--->");
639 for (child = menu->list; child; child = child->next)
644 static void conf(struct menu *menu, struct menu *active_menu)
646 struct menu *submenu;
647 const char *prompt = menu_get_prompt(menu);
653 if (menu != &rootmenu)
654 stpart.text = menu_get_prompt(menu);
661 current_menu = menu;
662 build_conf(menu);
785 static void show_help(struct menu *menu)
790 menu_get_ext_help(menu, &help);
792 show_helptext(menu_get_prompt(menu), str_get(&help));
796 static void conf_choice(struct menu *menu)
798 const char *prompt = menu_get_prompt(menu);
799 struct menu *child;
802 active = sym_get_choice_value(menu->sym);
808 current_menu = menu;
809 for (child = menu->list; child; child = child->next) {
821 if (child->sym == sym_get_choice_value(menu->sym))
847 show_help(menu);
857 static void conf_string(struct menu *menu)
859 const char *prompt = menu_get_prompt(menu);
865 switch (sym_get_type(menu->sym)) {
881 sym_get_string_value(menu->sym));
884 if (sym_set_string_value(menu->sym, dialog_input_result))
889 show_help(menu);