/netbsd-current/lib/libmenu/ |
H A D | post.c | 32 #include <menu.h> 37 * Post the menu to the screen. Call any defined init routines and then 38 * draw the menu on the screen. 41 post_menu(MENU *menu) argument 45 if (menu == NULL) 47 if (menu->posted == 1) 49 if (menu->in_init == 1) 51 if (menu->items == NULL) 53 if (*menu->items == NULL) 56 menu 87 unpost_menu(MENU *menu) argument [all...] |
H A D | internals.c | 32 #include <menu.h> 40 _menui_calc_neighbours(MENU *menu, int item_no); 41 static void _menui_redraw_menu(MENU *menu, int old_top_row, int old_cur_item); 44 * Link all the menu items together to speed up navigation. We need 51 _menui_stitch_items(MENU *menu) argument 55 row_major = ((menu->opts & O_ROWMAJOR) == O_ROWMAJOR); 57 if (menu->posted == 1) 59 if (menu->items == NULL) 62 menu->item_rows = menu 89 _menui_calc_neighbours(MENU *menu, int item_no) argument 280 _menui_goto_item(MENU *menu, ITEM *item, int new_top_row) argument 326 _menui_match_items(MENU *menu, int direction, int *item_matched) argument 382 _menui_match_pattern(MENU *menu, int c, int direction, int *item_matched) argument 429 _menui_draw_item(MENU *menu, int item) argument 518 _menui_draw_menu(MENU *menu) argument 594 _menui_max_item_size(MENU *menu) argument 616 _menui_redraw_menu(MENU *menu, int old_top_row, int old_cur_item) argument [all...] |
H A D | attributes.c | 32 #include <menu.h> 34 /* defined in menu.c - the default menu struct */ 38 * Set the menu foreground attribute 41 set_menu_fore(MENU *menu, attr_t attr) argument 43 if (menu == NULL) 46 menu->fore = attr; 51 * Return the menu foreground attribute 54 menu_fore(MENU *menu) argument 56 if (menu 66 set_menu_back(MENU *menu, attr_t attr) argument 79 menu_back(MENU *menu) argument 91 set_menu_grey(MENU *menu, attr_t attr) argument 104 menu_grey(MENU *menu) argument 116 set_menu_pad(MENU *menu, int pad) argument 129 menu_pad(MENU *menu) argument [all...] |
H A D | driver.c | 32 #include <menu.h> 38 * The guts of the menu library. This function processes the character 46 menu_driver(MENU *menu, int c) argument 53 if (menu == NULL) 55 if (menu->posted == 0) 57 if (menu->items == NULL) 59 if (*menu->items == NULL) 61 if (menu->in_init == 1) 65 if (menu->items[menu [all...] |
H A D | menu.c | 1 /* $NetBSD: menu.c,v 1.17 2012/03/21 05:33:27 matt Exp $ */ 30 __RCSID("$NetBSD: menu.c,v 1.17 2012/03/21 05:33:27 matt Exp $"); 33 #include <menu.h> 47 O_ONEVALUE, /* menu options */ 51 0, /* is the menu posted? */ 52 A_REVERSE, /* menu foreground */ 53 A_NORMAL, /* menu background */ 54 A_UNDERLINE, /* unselectable menu item */ 57 0, /* top row of menu */ 58 0, /* widest item in the menu */ 81 MENU *menu = m; local 103 menu_mark(MENU *menu) argument 117 MENU *menu = m; local 138 menu_unmark(MENU *menu) argument 150 set_menu_win(MENU *menu, WINDOW *win) argument 171 menu_win(MENU *menu) argument 183 set_menu_sub(MENU *menu, WINDOW *sub) argument 203 menu_sub(MENU *menu) argument 217 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 235 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 245 set_menu_init(MENU *menu, Menu_Hook func) argument 258 menu_init(MENU *menu) argument 270 set_menu_term(MENU *menu, Menu_Hook func) argument 283 menu_term(MENU *menu) argument 295 menu_opts(MENU *menu) argument 310 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 351 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 391 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 408 menu_pattern(MENU *menu) argument 423 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 512 free_menu(MENU *menu) argument 545 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 570 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 637 menu_items(MENU *menu) argument 649 item_count(MENU *menu) argument 664 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 719 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 732 pos_menu_cursor(MENU *menu) argument [all...] |
H A D | internals.h | 29 #include <menu.h> 44 void _menui_draw_item(MENU *menu, int item); 45 int _menui_draw_menu(MENU *menu); 46 int _menui_goto_item(MENU *menu, ITEM *item, int new_top_row); 47 int _menui_match_pattern(MENU *menu, int c, int direction , 49 int _menui_match_items(MENU *menu, int direction, int *item_matched); 50 void _menui_max_item_size(MENU *menu); 51 int _menui_stitch_items(MENU *menu);
|
H A D | userptr.c | 32 #include <menu.h> 36 /* the following is defined in menu.c */ 68 * Return the user pointer for the given menu 71 menu_userptr(MENU *menu) argument 73 if (menu == NULL) 76 return menu->userptr; 80 * Set the user pointer for the given menu 85 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 87 menu->userptr = userptr;
|
H A D | item.c | 32 #include <menu.h> 37 /* the following is defined in menu.c - it is the default menu struct */ 50 NULL, /* parent menu item is bound to */ 51 -1, /* index number if item attached to a menu */ 97 * Set the application defined function called when the menu is posted or 101 set_item_init(MENU *menu, Menu_Hook func) argument 103 if (menu == NULL) 106 menu->item_init = func; 115 item_init(MENU *menu) argument 128 set_item_term(MENU *menu, Menu_Hook func) argument 141 item_term(MENU *menu) argument 155 item_selected(MENU *menu, int **sel) argument 360 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local 383 current_item(MENU *menu) argument [all...] |
H A D | Makefile | 10 LIB= menu 14 SRCS= menu.c item.c userptr.c internals.c driver.c post.c attributes.c 73 INCS= menu.h eti.h
|
/netbsd-current/external/bsd/tmux/dist/ |
H A D | menu.c | 36 struct menu *menu; member in struct:menu_data 44 menu_add_items(struct menu *menu, const struct menu_item *items, argument 50 menu_add_item(menu, loop, qitem, c, fs); 54 menu_add_item(struct menu *menu, const struct menu_item *item, argument 65 if (line && menu->count == 0) 68 menu->items = xreallocarray(menu 138 struct menu *menu; local 148 menu_free(struct menu *menu) argument 177 struct menu *menu = md->menu; local 190 struct menu *menu = md->menu; local 228 struct menu *menu = md->menu; local 388 menu_prepare(struct menu *menu, int flags, struct cmdq_item *item, u_int px, u_int py, struct client *c, struct cmd_find_state *fs, menu_choice_cb cb, void *data) argument 437 menu_display(struct menu *menu, int flags, struct cmdq_item *item, u_int px, u_int py, struct client *c, struct cmd_find_state *fs, menu_choice_cb cb, void *data) argument [all...] |
H A D | cmd-display-menu.c | 27 * Display a menu on a client. 38 .name = "display-menu", 39 .alias = "menu", 287 struct menu *menu = NULL; local 301 menu = menu_create(title); 306 menu_add_item(menu, NULL, item, tc, target); 313 menu_free(menu); 322 menu_add_item(menu, &menu_item, item, tc, target); 325 if (menu [all...] |
/netbsd-current/external/gpl2/texinfo/dist/makeinfo/tests/ |
H A D | menu-whitespace | 2 # Bug where whitespace after @menu caused confusion. 24 @menu 26 @end menu 31 @menu @c 33 @end menu 43 Makeinfo is being confused by the whitespace after @menu, or rather by its 49 * makeinfo/node.c (cm_node): When searching for @menu don't 58 - search_forward ("\n@menu ", orig_offset); 59 + search_forward ("\n@menu", orig_offset);
|
H A D | Makefile.am | 19 macro-at menu-whitespace \ 34 macro-at.txi menu-whitespace.txi \
|
/netbsd-current/sys/arch/hpc/stand/hpcboot/ |
H A D | hpcboot.cpp | 35 #include <menu/window.h> 36 #include <menu/rootwindow.h> 101 HpcMenuInterface &menu = HPC_MENU; local 107 menu.progress("0"); 113 menu.progress("1"); 129 menu.progress("2"); 137 menu.progress("3"); 157 menu.progress("4"); 163 menu.progress("5"); 175 menu [all...] |
H A D | arch.cpp | 35 #include <menu/window.h> 36 #include <menu/rootwindow.h> // MessageBox 74 HpcMenuInterface &menu = HpcMenuInterface::Instance(); local 81 _boot_arg->argc = menu.setup_kernel_args(v + sizeof(struct BootArgs), 85 menu.setup_bootinfo(_boot_arg->bi);
|
/netbsd-current/usr.sbin/sysinst/ |
H A D | configmenu.c | 32 /* configmenu.c -- post-installation system configuration menu. */ 169 set_config(menudesc *menu, int opt, void *arg) argument 178 wprintw(menu->mw, "%-50s %-10s", msg_string(optname), setting); 208 set_timezone_menu(struct menudesc *menu, void *arg) argument 213 confp[menu->cursel]->setting = tz_default; 218 set_root_shell(struct menudesc *menu, void *arg) argument 222 process_menu(MENU_rootsh, &confp[menu->cursel]->setting); 224 "chpass -s %s root", confp[menu->cursel]->setting) != 0) 225 confp[menu->cursel]->setting = MSG_failed; 230 set_network(struct menudesc *menu, voi argument 264 add_entropy(struct menudesc *menu, void *arg) argument 272 add_new_user(struct menudesc *menu, void *arg) argument 304 change_root_password(struct menudesc *menu, void *arg) argument 320 set_binpkg(struct menudesc *menu, void *arg) argument 372 set_pkgsrc(struct menudesc *menu, void *arg) argument 405 toggle_rcvar(struct menudesc *menu, void *arg) argument 471 toggle_mdnsd(struct menudesc *menu, void *arg) argument 502 configmenu_hdr(struct menudesc *menu, void *arg) argument [all...] |
H A D | menus.pm | 36 menu pmdiskentry, x=50, y=5, exit, default exit; 37 display action { pmdiskentry_enable(menu, arg); }; 67 option MSG_erase, next menu shred_modes; 78 menu pmpartentry, x=50, y=5, exit, default exit; 118 option MSG_erase, next menu shred_modes; 134 menu shred_modes, x=50, y=5, exit, default exit; 141 menu raidlevel; 148 menu cgd_enctype; 156 menu cgd_ivtype; 161 menu cgd_keygentyp [all...] |
H A D | label.c | 325 int menu; local 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) argument 552 size_t i, ndx, max = menu->numopts; 556 menu->cursel = 0; 558 menu 591 set_fstype_ext(menudesc *menu, void *arg) argument 650 edit_fs_type_ext(menudesc *menu, void *arg) argument 705 init_fs_type(menudesc *menu, void *arg) argument 728 set_fstype(menudesc *menu, void *arg) argument 771 edit_fs_type(menudesc *menu, void *arg) argument 858 edit_ptn(menudesc *menu, void *arg) argument 1350 fmt_fspart_header(menudesc *menu, void *arg) argument [all...] |
/netbsd-current/sys/arch/hpc/stand/hpcboot/menu/ |
H A D | menu.cpp | 1 /* -*-C++-*- $NetBSD: menu.cpp,v 1.12 2010/04/06 16:20:28 nonaka Exp $ */ 35 #include <menu/window.h> 36 #include <menu/tabwindow.h> 37 #include <menu/rootwindow.h> 42 #include <menu/menu.h> 53 HpcMenuInterface &menu = HPC_MENU; local 59 menu._main = new MainTabWindow(*this, IDC_BASE_MAIN); 60 w = menu._main; 63 menu 94 HpcMenuInterface &menu = HPC_MENU; local 161 HpcMenuInterface &menu = HPC_MENU; local 254 HpcMenuInterface &menu = HPC_MENU; local 479 HpcMenuInterface &menu = HPC_MENU; local [all...] |
H A D | rootwindow.cpp | 33 #include <menu/window.h> 34 #include <menu/tabwindow.h> 35 #include <menu/rootwindow.h> 88 HpcMenuInterface &menu = HpcMenuInterface::Instance(); 89 if (menu._pref.auto_boot > 0) 90 SetTimer(_window, IDD_TIMER, menu._pref.auto_boot * 1000, 0); 102 HpcMenuInterface &menu = HpcMenuInterface::Instance(); local 160 menu.get_options(); 161 if (menu._pref.safety_message) { 162 UINT mb_icon = menu [all...] |
/netbsd-current/usr.bin/menuc/ |
H A D | mdb.h | 35 /* mdb.h - definitions for the menu database. */ 57 /* menu definitions records. */ 67 int menu; member in struct:optn_info
|
/netbsd-current/external/gpl2/texinfo/dist/info/ |
H A D | nodemenu.c | 3 /* nodemenu.c -- produce a menu of all visited nodes. 204 ((char *) _("Here is the menu of nodes you have recently visited.\n\ 205 Select one from this menu, or use `\\[history-node]' in another window.\n"), 0), 226 _("Make a window containing a menu of all of the currently visited nodes")) 280 appear in the node menu. --Andreas Schwab 285 /* If this window is already showing a node menu, reuse the existing node 310 REFERENCE **menu; local 314 menu = info_menu_of_node (node); 319 (char *) _("Select visited node: "), menu); 327 info_free_references (menu); [all...] |
/netbsd-current/external/gpl2/texinfo/dist/util/ |
H A D | prepinfo.awk | 49 # Length of menu item 158 # For master menu 176 /^@menu/ && Pass == 1, /^@end[ \t]+menu/ && Pass == 1 \ 178 if (/^@menu/ || /^@end[ \t]+menu/) 181 # if (Debug == "menu") 197 # pull apart menu item 203 printf("badly formed menu item") > "/dev/stderr" 210 printf("badly formed menu ite [all...] |
/netbsd-current/external/bsd/ntp/dist/scripts/calc_tickadj/ |
H A D | Makefile.am | 46 invoke-calc_tickadj.menu \ 59 invoke-calc_tickadj.menu \ 96 $(srcdir)/invoke-calc_tickadj.menu: $(srcdir)/invoke-calc_tickadj.texi 97 @: do-nothing action to avoid default SCCS get, .menu built with .texi 105 $(srcdir)/calc_tickadj.html: $(srcdir)/invoke-calc_tickadj.menu $(srcdir)/invoke-calc_tickadj.texi $(srcdir)/calc_tickadj.texi
|
/netbsd-current/usr.sbin/sysinst/arch/mac68k/ |
H A D | menus.md.pl | 39 menu fullpart, title "Wybierz"; 43 menu nodiskmap, title "Wybierz opcje", y=16; 67 menu editparttable, title "Wybierz swoje partycje", exit, y=14; 79 option "Zmien wybrana partycje", sub menu chooseid; 80 option "Ustaw punkt montazu dla partycji", sub menu mount_point; 153 menu ok2, title "Przerwac?", y=17; 156 menu okabort, title "Co chcesz zrobic?"; 160 menu chooseid, title "Rodzaj partycji?"; 271 menu mount_point, title "Punkt montazu?"; 323 menu sanit [all...] |