| /netbsd-src/lib/libmenu/ |
| H A D | internals.c | 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); 51 _menui_stitch_items(MENU *menu) in _menui_stitch_items() argument 55 row_major = ((menu->opts & O_ROWMAJOR) == O_ROWMAJOR); in _menui_stitch_items() 57 if (menu->posted == 1) in _menui_stitch_items() 59 if (menu->items == NULL) in _menui_stitch_items() 62 menu->item_rows = menu->item_count / menu->cols; in _menui_stitch_items() 63 menu->item_cols = menu->cols; in _menui_stitch_items() 64 if (menu->item_count > (menu->item_rows * menu->item_cols)) in _menui_stitch_items() 65 menu->item_rows += 1; in _menui_stitch_items() [all …]
|
| H A D | menu.c | 81 MENU *menu = m; in set_menu_mark() local 83 if (m == NULL) menu = &_menui_default_menu; in set_menu_mark() 86 if (menu->mark.string != NULL) free(menu->mark.string); in set_menu_mark() 88 if ((menu->mark.string = (char *) malloc(strlen(mark) + 1)) == NULL) in set_menu_mark() 91 strcpy(menu->mark.string, mark); in set_menu_mark() 92 menu->mark.length = strlen(mark); in set_menu_mark() 95 _menui_max_item_size(menu); in set_menu_mark() 103 menu_mark(MENU *menu) in menu_mark() argument 105 if (menu == NULL) in menu_mark() 108 return menu->mark.string; in menu_mark() [all …]
|
| H A D | driver.c | 46 menu_driver(MENU *menu, int c) in menu_driver() argument 53 if (menu == NULL) in menu_driver() 55 if (menu->posted == 0) in menu_driver() 57 if (menu->items == NULL) in menu_driver() 59 if (*menu->items == NULL) in menu_driver() 61 if (menu->in_init == 1) in menu_driver() 65 if (menu->items[menu->cur_item] == NULL) in menu_driver() 68 drv_new_item = menu->items[menu->cur_item]; in menu_driver() 69 it = menu->cur_item; in menu_driver() 70 drv_top_row = menu->top_row; in menu_driver() [all …]
|
| H A D | post.c | 41 post_menu(MENU *menu) in post_menu() argument 45 if (menu == NULL) in post_menu() 47 if (menu->posted == 1) in post_menu() 49 if (menu->in_init == 1) in post_menu() 51 if (menu->items == NULL) in post_menu() 53 if (*menu->items == NULL) in post_menu() 56 menu->in_init = 1; in post_menu() 58 if (menu->menu_init != NULL) in post_menu() 59 menu->menu_init(menu); in post_menu() 60 if (menu->item_init != NULL) in post_menu() [all …]
|
| H A D | attributes.c | 41 set_menu_fore(MENU *menu, attr_t attr) in set_menu_fore() argument 43 if (menu == NULL) in set_menu_fore() 46 menu->fore = attr; in set_menu_fore() 54 menu_fore(MENU *menu) in menu_fore() argument 56 if (menu == NULL) in menu_fore() 59 return menu->fore; in menu_fore() 66 set_menu_back(MENU *menu, attr_t attr) in set_menu_back() argument 68 if (menu == NULL) in set_menu_back() 71 menu->back = attr; in set_menu_back() 79 menu_back(MENU *menu) in menu_back() argument [all …]
|
| H A D | item.c | 101 set_item_init(MENU *menu, Menu_Hook func) in set_item_init() argument 103 if (menu == NULL) in set_item_init() 106 menu->item_init = func; in set_item_init() 115 item_init(MENU *menu) in item_init() argument 117 if (menu == NULL) in item_init() 120 return menu->item_init; in item_init() 128 set_item_term(MENU *menu, Menu_Hook func) in set_item_term() argument 130 if (menu == NULL) in set_item_term() 133 menu->item_term = func; in set_item_term() 141 item_term(MENU *menu) in item_term() argument [all …]
|
| H A D | internals.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 | 71 menu_userptr(MENU *menu) in menu_userptr() argument 73 if (menu == NULL) in menu_userptr() 76 return menu->userptr; in menu_userptr() 85 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; in set_menu_userptr() local 87 menu->userptr = userptr; in set_menu_userptr()
|
| /netbsd-src/usr.sbin/sysinst/ |
| H A D | menus.mi | 36 * menu system. 54 expand_option_text(menudesc *menu, void *arg, int sel) 57 struct menu_ent *opt = &menu->opts[sel]; 59 if (menu->opts[sel].opt_exp_name) 67 expand_all_option_texts(menudesc *menu, void *arg) 73 if (menu->title != NULL && menu->exp_title == NULL) { 74 title = MSG_XLAT(menu->title); 76 menu->exp_title = str_arg_subst(title, 80 for (i = 0; i < menu->numopts; i++) { 81 const char *t = MSG_XLAT(menu->opts[i].opt_name); [all …]
|
| H A D | configmenu.c | 169 set_config(menudesc *menu, int opt, void *arg) in set_config() argument 178 wprintw(menu->mw, "%-50s %-10s", msg_string(optname), setting); in set_config() 208 set_timezone_menu(struct menudesc *menu, void *arg) in set_timezone_menu() argument 213 confp[menu->cursel]->setting = tz_default; in set_timezone_menu() 218 set_root_shell(struct menudesc *menu, void *arg) in set_root_shell() argument 222 process_menu(MENU_rootsh, &confp[menu->cursel]->setting); in set_root_shell() 224 "chpass -s %s root", confp[menu->cursel]->setting) != 0) in set_root_shell() 225 confp[menu->cursel]->setting = MSG_failed; in set_root_shell() 230 set_network(struct menudesc *menu, void *arg) in set_network() argument 264 add_entropy(struct menudesc *menu, void *arg) in add_entropy() argument [all …]
|
| H A D | menus.entropy | 34 /* arg is an int*, returning a magic value for the selected menu option */ 35 menu not_enough_entropy, title MSG_not_enough_entropy, y=-1, no box, clear, 47 /* arg is an int*, returning a magic value for the selected menu option */ 48 menu entropy_select_file, title MSG_entropy_select_file, y=-5, box, 60 /* arg is an int*, set to SET_RETRY when the menu is aborted */ 61 menu entropy_nfssource, y=-5, x=0, w=70, no box, no clear, 63 option {src_legend(menu, MSG_Host, nfs_host);}, 65 option {src_legend(menu, MSG_Base_dir, nfs_dir);}, 67 option {src_legend(menu, MSG_entropy_file, entropy_file);}, 74 menu entropy_ftpsource, y=-4, x=0, w=70, no box, no clear, [all …]
|
| H A D | menus.pm | 36 menu pmdiskentry, x=50, y=5, exit, default exit; 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; 148 menu cgd_enctype; 156 menu cgd_ivtype; 161 menu cgd_keygentype; 176 menu cgd_verifytype;
|
| H A D | label.c | 325 int menu; in edit_fs_ffs_opt() local 335 menu = new_menu(head, opts, i, 40, 6, 0, 0, MC_NOEXITOPT, in edit_fs_ffs_opt() 337 if (menu < 0) in edit_fs_ffs_opt() 339 process_menu(menu, arg); in edit_fs_ffs_opt() 340 free_menu(menu); in edit_fs_ffs_opt() 548 init_fs_type_ext(menudesc *menu, void *arg) in init_fs_type_ext() argument 552 size_t i, ndx, max = menu->numopts; in init_fs_type_ext() 556 menu->cursel = 0; in init_fs_type_ext() 558 menu->cursel = 1; in init_fs_type_ext() 560 menu->cursel = 2; in init_fs_type_ext() [all …]
|
| /netbsd-src/usr.bin/menuc/testm/ |
| H A D | menus.mc | 56 menu root, title " Main Menu of Test System", x=10; 68 option "Try a sub menu", 69 sub menu submenu 71 option "A scrollable menu", 72 sub menu scrollit 74 option "Another scrollable menu", 75 sub menu scrollit2 77 option "Big non-scrollable menu, bombs on small screens", 78 sub menu bigscroll 80 option "A menu with no shortcuts", [all …]
|
| /netbsd-src/external/gpl2/gettext/dist/gettext-tools/examples/hello-objc-gnustep/ |
| H A D | main.m | 12 /* Create the application's menu. */ 16 NSMenu *menu; 24 menu = [[NSMenu alloc] initWithTitle: APP_NAME]; 25 [menu addItemWithTitle: @"Info" 28 [menu addItemWithTitle: @"Edit" 31 [menu addItemWithTitle: @"Hello..." 34 [menu addItemWithTitle: @"Windows" 37 [menu addItemWithTitle: @"Services" 40 [menu addItemWithTitle: @"Hide" 43 [menu addItemWithTitle: @"Quit" [all …]
|
| /netbsd-src/sys/arch/hpc/stand/hpcboot/ |
| H A D | hpcboot.cpp | 101 HpcMenuInterface &menu = HPC_MENU; in hpcboot() local 107 menu.progress("0"); in hpcboot() 113 menu.progress("1"); in hpcboot() 129 menu.progress("2"); in hpcboot() 137 menu.progress("3"); in hpcboot() 157 menu.progress("4"); in hpcboot() 163 menu.progress("5"); in hpcboot() 175 menu.progress("6"); in hpcboot() 184 menu.progress("7"); in hpcboot() 191 menu.progress("8"); in hpcboot() [all …]
|
| H A D | hpcboot.config | 27 menu\menu.cpp 28 menu\window.cpp 29 menu\tabwindow.cpp 30 menu\rootwindow.cpp 31 menu\platform.cpp 32 menu\platid.c 33 menu\platid_mask.c 34 menu\platid_name.c
|
| /netbsd-src/external/gpl2/groff/dist/src/devices/xditview/ |
| H A D | GXditview.ad | 13 <Btn1Down>: XawPositionSimpleMenu(menu) MenuPopup(menu)\n\ 27 <Btn1Down>: XawPositionSimpleMenu(menu) MenuPopup(menu)\n\ 40 GXditview.menu.nextPage.label: Next Page 41 GXditview.menu.previousPage.label: Previous Page 42 GXditview.menu.selectPage.label: Select Page 43 GXditview.menu.print.label: Print 44 GXditview.menu.openFile.label: Open 45 GXditview.menu.quit.label: Quit
|
| /netbsd-src/external/mit/ctwm/etc/ |
| H A D | system.ctwmrc | 167 LeftTitleButton ":xpm:dot" = f.menu "titleops" 265 menu "appmenu" 268 " Accessories" f.menu "Accessories" 269 " Games" f.menu "Games" 270 " Graphics" f.menu "Graphics" 271 " Internet" f.menu "Internet" 272 " Multimedia" f.menu "Multimedia" 273 " Office" f.menu "Office" 274 " Programming" f.menu "Programming" 275 " System" f.menu "System" [all …]
|
| /netbsd-src/sys/arch/hpc/stand/hpcboot/menu/ |
| H A D | menu.cpp | 53 HpcMenuInterface &menu = HPC_MENU; in boot() local 59 menu._main = new MainTabWindow(*this, IDC_BASE_MAIN); in boot() 60 w = menu._main; in boot() 63 menu._option = new OptionTabWindow(*this, IDC_BASE_OPTION); in boot() 64 w = menu._option; in boot() 67 menu._console = new ConsoleTabWindow(*this, IDC_BASE_CONSOLE); in boot() 68 w = menu._console; in boot() 94 HpcMenuInterface &menu = HPC_MENU; in init() local 105 for (i = 0; entry = menu.dir(i); i++) in init() 107 SendDlgItemMessage(w, IDC_MAIN_DIR, CB_SETCURSEL, menu.dir_default(), in init() [all …]
|
| H A D | rootwindow.cpp | 88 HpcMenuInterface &menu = HpcMenuInterface::Instance(); in create() local 89 if (menu._pref.auto_boot > 0) in create() 90 SetTimer(_window, IDD_TIMER, menu._pref.auto_boot * 1000, 0); in create() 102 HpcMenuInterface &menu = HpcMenuInterface::Instance(); in proc() local 160 menu.get_options(); in proc() 161 if (menu._pref.safety_message) { in proc() 162 UINT mb_icon = menu._pref.pause_before_boot ? in proc() 173 menu.print(TEXT("BOOT START\n")); in proc() 175 menu.get_options(); in proc() 177 menu.save(); in proc() [all …]
|
| /netbsd-src/usr.sbin/sysinst/arch/i386/ |
| H A D | menus.md | 37 menu getboottype, title MSG_Bootblocks_selection, y=10, exit, no clear, 46 if (menu->cursel == 0) 47 menu->cursel = ((struct x86_boot_params *)arg)->bp_consdev; 66 option MSG_serial_baud_rate, sub menu consolebaud; 70 menu consolebaud, title MSG_serial_baud_rate, x=40, y=13; 74 case 9600: menu->cursel = 0; break; 75 case 19200: menu->cursel = 1; break; 76 case 38400: menu->cursel = 2; break; 77 case 57600: menu->cursel = 3; break; 78 case 115200: menu->cursel = 4; break; [all …]
|
| /netbsd-src/external/gpl2/texinfo/dist/makeinfo/tests/ |
| H A D | menu-whitespace | 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
|
| H A D | menu-whitespace.txi | 6 @menu 8 @end menu 13 @menu @c 15 @end menu
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Docs/Examples/ |
| H A D | js_objgc_example.txt | 65 <null> 1 chrome://global/content/bindings/menu.xml#menu-iconic 84ff45a 66 <null> 1 chrome://global/content/bindings/menu.xml#menu-iconic 8befbba 98 <null> 1 chrome://global/content/bindings/menu.xml#menu-iconic 84ff45a 99 <null> 1 chrome://global/content/bindings/menu.xml#menu-iconic 8befbba 190 <null> 1 chrome://global/content/bindings/menu.xml#menu-iconic 84ff45a 191 <null> 1 chrome://global/content/bindings/menu.xml#menu-iconic 8befbba
|