Lines Matching refs:choices
59 struct choice choices[30]; // choices the user can make variable
810 choices[choice_count].installfunc = NULL; in add_dummy_choice()
811 choices[choice_count].active = 0; in add_dummy_choice()
812 choices[choice_count].changefunc = NULL; in add_dummy_choice()
813 choices[choice_count].text = NULL; in add_dummy_choice()
814 choices[choice_count].arg = 0; in add_dummy_choice()
827 char *batpath = targets[choices[idx].arg].batpath; in install_bat_choice()
828 char *oldname = targets[choices[idx].arg].oldbat; in install_bat_choice()
829 char *exename = targets[choices[idx].arg].exenamearg; in install_bat_choice()
830 char *vimarg = targets[choices[idx].arg].exearg; in install_bat_choice()
923 if (choices[idx].text != NULL) in alloc_text()
924 free(choices[idx].text); in alloc_text()
926 choices[idx].text = alloc(strlen(fmt) + strlen(arg) - 1); in alloc_text()
927 sprintf(choices[idx].text, fmt, arg); in alloc_text()
936 char *batname = targets[choices[idx].arg].batpath; in toggle_bat_choice()
937 char *oldname = targets[choices[idx].arg].oldbat; in toggle_bat_choice()
978 int target = choices[idx].arg; in change_bat_choice()
1020 if (choices[idx].arg == 0) in change_bat_choice()
1030 if (choices[idx].arg != 0) in change_bat_choice()
1039 if (choices[idx].arg != 0) in change_bat_choice()
1060 choices[idx].text = bat_text_yes; in change_main_bat_choice()
1062 choices[idx].text = bat_text_no; in change_main_bat_choice()
1070 && choices[idx + i].changefunc != NULL) in change_main_bat_choice()
1072 choices[idx + i].active = 1; in change_main_bat_choice()
1073 if (choices[idx + i].changefunc == change_bat_choice in change_main_bat_choice()
1081 choices[idx + i].active = 0; in change_main_bat_choice()
1096 choices[choice_count].arg = target; in init_bat_choice()
1097 choices[choice_count].installfunc = install_bat_choice; in init_bat_choice()
1098 choices[choice_count].active = 1; in init_bat_choice()
1099 choices[choice_count].text = NULL; // will be set below in init_bat_choice()
1103 choices[choice_count].changefunc = toggle_bat_choice; in init_bat_choice()
1136 choices[choice_count].changefunc = change_bat_choice; in init_bat_choice()
1152 choices[choice_count].text = bat_text_yes; in init_bat_choices()
1153 choices[choice_count].changefunc = change_main_bat_choice; in init_bat_choices()
1154 choices[choice_count].installfunc = NULL; in init_bat_choices()
1155 choices[choice_count].active = 1; in init_bat_choices()
1156 choices[choice_count].arg = 0; in init_bat_choices()
1298 if (choices[idx].installfunc != NULL) in change_vimrc_choice()
1305 choices[idx].installfunc = NULL; in change_vimrc_choice()
1306 choices[idx + 1].active = 0; in change_vimrc_choice()
1307 choices[idx + 2].active = 0; in change_vimrc_choice()
1308 choices[idx + 3].active = 0; in change_vimrc_choice()
1317 choices[idx].installfunc = install_vimrc; in change_vimrc_choice()
1318 choices[idx + 1].active = 1; in change_vimrc_choice()
1319 choices[idx + 2].active = 1; in change_vimrc_choice()
1320 choices[idx + 3].active = 1; in change_vimrc_choice()
1363 choices[choice_count].installfunc = NULL; in init_vimrc_choices()
1365 choices[choice_count].installfunc = install_vimrc; in init_vimrc_choices()
1366 choices[choice_count].text = NULL; in init_vimrc_choices()
1368 choices[choice_count].changefunc = change_vimrc_choice; in init_vimrc_choices()
1369 choices[choice_count].active = 1; in init_vimrc_choices()
1374 choices[choice_count].changefunc = change_run_choice; in init_vimrc_choices()
1375 choices[choice_count].installfunc = NULL; in init_vimrc_choices()
1376 choices[choice_count].active = (*oldvimrc == NUL); in init_vimrc_choices()
1381 choices[choice_count].changefunc = change_remap_choice; in init_vimrc_choices()
1382 choices[choice_count].installfunc = NULL; in init_vimrc_choices()
1383 choices[choice_count].active = (*oldvimrc == NUL); in init_vimrc_choices()
1388 choices[choice_count].changefunc = change_mouse_choice; in init_vimrc_choices()
1389 choices[choice_count].installfunc = NULL; in init_vimrc_choices()
1390 choices[choice_count].active = (*oldvimrc == NUL); in init_vimrc_choices()
1677 …choices[idx].text = "Install an entry for Vim in the popup menu for the right\n mouse button so… in change_popup_choice()
1682 …choices[idx].text = "Do NOT install an entry for Vim in the popup menu for the\n right mouse bu… in change_popup_choice()
1700 choices[choice_count].changefunc = change_popup_choice; in init_popup_choice()
1701 choices[choice_count].installfunc = NULL; in init_popup_choice()
1702 choices[choice_count].active = 1; in init_popup_choice()
1715 …choices[idx].text = "Add Vim to the \"Open With...\" list in the popup menu for the right\n mou… in change_openwith_choice()
1720 …choices[idx].text = "Do NOT add Vim to the \"Open With...\" list in the popup menu for the\n ri… in change_openwith_choice()
1734 choices[choice_count].changefunc = change_openwith_choice; in init_openwith_choice()
1735 choices[choice_count].installfunc = NULL; in init_openwith_choice()
1736 choices[choice_count].active = 1; in init_openwith_choice()
1960 if (choices[idx].installfunc == NULL) in toggle_startmenu_choice()
1962 choices[idx].installfunc = install_start_menu; in toggle_startmenu_choice()
1963 choices[idx].text = "Add Vim to the Start menu"; in toggle_startmenu_choice()
1967 choices[idx].installfunc = NULL; in toggle_startmenu_choice()
1968 choices[idx].text = "Do NOT add Vim to the Start menu"; in toggle_startmenu_choice()
1985 if (choices[idx].arg) in install_shortcut_gvim()
1996 if (choices[idx].arg) in install_shortcut_evim()
2007 if (choices[idx].arg) in install_shortcut_gview()
2020 if (choices[idx].installfunc == install_shortcut_gvim) in toggle_shortcut_choice()
2022 else if (choices[idx].installfunc == install_shortcut_evim) in toggle_shortcut_choice()
2026 if (choices[idx].arg) in toggle_shortcut_choice()
2028 choices[idx].arg = 0; in toggle_shortcut_choice()
2033 choices[idx].arg = 1; in toggle_shortcut_choice()
2042 choices[choice_count].changefunc = toggle_startmenu_choice; in init_startmenu_choice()
2043 choices[choice_count].installfunc = NULL; in init_startmenu_choice()
2044 choices[choice_count].active = 1; in init_startmenu_choice()
2056 choices[choice_count].text = NULL; in init_shortcut_choices()
2057 choices[choice_count].arg = 0; in init_shortcut_choices()
2058 choices[choice_count].active = has_gvim; in init_shortcut_choices()
2059 choices[choice_count].changefunc = toggle_shortcut_choice; in init_shortcut_choices()
2060 choices[choice_count].installfunc = install_shortcut_gvim; in init_shortcut_choices()
2065 choices[choice_count].text = NULL; in init_shortcut_choices()
2066 choices[choice_count].arg = 0; in init_shortcut_choices()
2067 choices[choice_count].active = has_gvim; in init_shortcut_choices()
2068 choices[choice_count].changefunc = toggle_shortcut_choice; in init_shortcut_choices()
2069 choices[choice_count].installfunc = install_shortcut_evim; in init_shortcut_choices()
2074 choices[choice_count].text = NULL; in init_shortcut_choices()
2075 choices[choice_count].arg = 0; in init_shortcut_choices()
2076 choices[choice_count].active = has_gvim; in init_shortcut_choices()
2077 choices[choice_count].changefunc = toggle_shortcut_choice; in init_shortcut_choices()
2078 choices[choice_count].installfunc = install_shortcut_gview; in init_shortcut_choices()
2126 int vimfiles_dir_choice = choices[idx].arg; in set_directories_text()
2231 choices[idx].arg = get_choice(vimfiles_dir_choices, choice_count); in change_directories_choice()
2243 int vimfiles_dir_choice = choices[idx].arg; in install_vimfilesdir()
2311 choices[choice_count].text = alloc(150); in init_directories_choice()
2312 choices[choice_count].changefunc = change_directories_choice; in init_directories_choice()
2313 choices[choice_count].installfunc = install_vimfilesdir; in init_directories_choice()
2314 choices[choice_count].active = 1; in init_directories_choice()
2339 choices[choice_count].arg = vimfiles_dir_choice; in init_directories_choice()
2519 choices[choice_count - 1].arg = vimfiles_dir_choice; in command_line_setup_choices()
2672 if (choices[i].installfunc != NULL && choices[i].active) in install()
2673 (choices[i].installfunc)(i); in install()
2697 if (choices[i].active) in request_choice()
2698 printf("%2d %s\n", i + 1, choices[i].text); in request_choice()
2766 if (i > 0 && i <= choice_count && choices[i - 1].active) in main()
2767 (choices[i - 1].changefunc)(i - 1); in main()