• Home
  • Raw
  • Download

Lines Matching refs:menu

264 static struct menu *current_menu;
284 static void conf(struct menu *menu);
285 static void conf_choice(struct menu *menu);
286 static void conf_string(struct menu *menu);
289 static void show_help(struct menu *menu);
294 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
295 static void handle_f1(int *key, struct menu *current_item);
296 static void handle_f2(int *key, struct menu *current_item);
297 static void handle_f3(int *key, struct menu *current_item);
298 static void handle_f4(int *key, struct menu *current_item);
299 static void handle_f5(int *key, struct menu *current_item);
300 static void handle_f6(int *key, struct menu *current_item);
301 static void handle_f7(int *key, struct menu *current_item);
302 static void handle_f8(int *key, struct menu *current_item);
303 static void handle_f9(int *key, struct menu *current_item);
392 static void handle_f1(int *key, struct menu *current_item) in handle_f1()
400 static void handle_f2(int *key, struct menu *current_item) in handle_f2()
407 static void handle_f3(int *key, struct menu *current_item) in handle_f3()
416 static void handle_f4(int *key, struct menu *current_item) in handle_f4()
432 static void handle_f5(int *key, struct menu *current_item) in handle_f5()
439 static void handle_f6(int *key, struct menu *current_item) in handle_f6()
446 static void handle_f7(int *key, struct menu *current_item) in handle_f7()
453 static void handle_f8(int *key, struct menu *current_item) in handle_f8()
460 static void handle_f9(int *key, struct menu *current_item) in handle_f9()
467 static int process_special_keys(int *key, struct menu *menu) in process_special_keys() argument
479 function_keys[i].handler(key, menu); in process_special_keys()
529 static void item_make(struct menu *menu, char tag, const char *fmt, ...) in item_make() argument
538 k_menu_items[items_num].usrptr = menu; in item_make()
539 if (menu != NULL) in item_make()
541 menu_is_visible(menu); in item_make()
732 static void build_conf(struct menu *menu) in build_conf() argument
736 struct menu *child; in build_conf()
741 if (!menu || (!show_all_items && !menu_is_visible(menu))) in build_conf()
744 sym = menu->sym; in build_conf()
745 prop = menu->prompt; in build_conf()
747 if (prop && menu != current_menu) { in build_conf()
748 const char *prompt = menu_get_prompt(menu); in build_conf()
750 ptype = menu->prompt ? menu->prompt->type : P_UNKNOWN; in build_conf()
756 item_make(menu, 'm', in build_conf()
758 menu->data ? "-->" : "++>", in build_conf()
761 item_make(menu, 'm', in build_conf()
766 if (single_menu_mode && menu->data) in build_conf()
772 item_make(menu, ':', in build_conf()
781 item_make(menu, ':', "---%*c%s", in build_conf()
794 struct menu *def_menu = NULL; in build_conf()
797 for (child = menu->list; child; child = child->next) { in build_conf()
806 item_make(menu, 't', "[%c]", in build_conf()
821 item_make(menu, 't', "<%c>", ch); in build_conf()
825 item_make(menu, def_menu ? 't' : ':', " "); in build_conf()
829 ' ', _(menu_get_prompt(menu))); in build_conf()
844 if (menu == current_menu) { in build_conf()
845 item_make(menu, ':', in build_conf()
847 ' ', _(menu_get_prompt(menu))); in build_conf()
853 item_make(menu, ':', " "); in build_conf()
858 item_make(menu, 't', "[%c]", in build_conf()
861 item_make(menu, 't', "-%c-", in build_conf()
878 item_make(menu, in build_conf()
881 item_make(menu, in build_conf()
884 item_make(menu, 't', "-%c-", ch); in build_conf()
888 item_make(menu, 's', " (%s)", in build_conf()
894 _(menu_get_prompt(menu)), in build_conf()
902 _(menu_get_prompt(menu)), in build_conf()
905 if (menu->prompt && menu->prompt->type == P_MENU) { in build_conf()
913 for (child = menu->list; child; child = child->next) in build_conf()
1065 static void conf(struct menu *menu) in conf() argument
1067 struct menu *submenu = 0; in conf()
1068 const char *prompt = menu_get_prompt(menu); in conf()
1081 current_menu = menu; in conf()
1082 build_conf(menu); in conf()
1107 (struct menu *) item_data())) in conf()
1130 show_help((struct menu *) item_data()); in conf()
1143 if (res == 27 || (menu != &rootmenu && res == KEY_LEFT)) in conf()
1153 submenu = (struct menu *) item_data(); in conf()
1218 static void show_help(struct menu *menu) in show_help() argument
1222 if (!menu) in show_help()
1226 menu_get_ext_help(menu, &help); in show_help()
1227 show_scroll_win(main_window, _(menu_get_prompt(menu)), str_get(&help)); in show_help()
1231 static void conf_choice(struct menu *menu) in conf_choice() argument
1233 const char *prompt = _(menu_get_prompt(menu)); in conf_choice()
1234 struct menu *child = 0; in conf_choice()
1245 active = sym_get_choice_value(menu->sym); in conf_choice()
1250 for (i = 0, child = menu->list; child; child = child->next) { in conf_choice()
1254 if (child->sym == sym_get_choice_value(menu->sym)) in conf_choice()
1292 (struct menu *) item_data())) in conf_choice()
1315 show_help((struct menu *) item_data()); in conf_choice()
1348 static void conf_string(struct menu *menu) in conf_string() argument
1350 const char *prompt = menu_get_prompt(menu); in conf_string()
1356 switch (sym_get_type(menu->sym)) { in conf_string()
1372 sym_get_string_value(menu->sym), in conf_string()
1377 if (sym_set_string_value(menu->sym, in conf_string()
1384 show_help(menu); in conf_string()