/src/lib/libmenu/ |
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) 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 [all...] |
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) 55 row_major = ((menu->opts & O_ROWMAJOR) == O_ROWMAJOR); 57 if (menu->posted == 1 [all...] |
attributes.c | 32 #include <menu.h> 34 /* defined in menu.c - the default menu struct */ 35 extern MENU _menui_default_menu; 38 * Set the menu foreground attribute 41 set_menu_fore(MENU *menu, attr_t attr) 43 if (menu == NULL) 46 menu->fore = attr; 51 * Return the menu foreground attribut [all...] |
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) 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->cur_item] == NULL [all...] |
menu.c | 1 /* $NetBSD: menu.c,v 1.18 2012/12/30 12:27:09 blymn Exp $ */ 30 __RCSID("$NetBSD: menu.c,v 1.18 2012/12/30 12:27:09 blymn Exp $"); 33 #include <menu.h> 38 MENU _menui_default_menu = { 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 */ 81 MENU *menu = m; local in function:set_menu_mark 117 MENU *menu = m; local in function:set_menu_unmark 217 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_format 235 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:menu_format 310 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_opts 351 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:menu_opts_on 391 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:menu_opts_off 423 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_pattern 545 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:scale_menu 570 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_items 664 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_top_row 719 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:top_row [all...] |
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) [all...] |
userptr.c | 32 #include <menu.h> 36 /* the following is defined in menu.c */ 37 extern MENU _menui_default_menu; 68 * Return the user pointer for the given menu 71 menu_userptr(MENU *menu) 73 if (menu == NULL) 76 return menu->userptr; 80 * Set the user pointer for the given menu 83 set_menu_userptr(MENU *param_menu, char *userptr 85 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_userptr [all...] |
item.c | 32 #include <menu.h> 37 /* the following is defined in menu.c - it is the default menu struct */ 38 extern MENU _menui_default_menu; 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) 103 if (menu == NULL 360 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_current_item [all...] |
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
|
/src/usr.sbin/sysinst/arch/prep/ |
menus.md.en | 35 /* Menu definitions for sysinst. prep version, machine dependent. */ 37 menu prepconsole, title "Select console device", y=-10;
|
menus.md.es | 35 /* Menu definitions for sysinst. prep version, machine dependent. */ 37 menu prepconsole, title "Select console device", y=-10;
|
/src/usr.bin/menuc/testm/ |
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 bigscrol [all...] |
/src/usr.sbin/sysinst/arch/i386/ |
menus.md | 35 /* Menu definitions for sysinst. i386 version, machine dependent. */ 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 [all...] |
/src/usr.sbin/sysinst/ |
menus.mi | 33 * Menu system definitions -- machine and language independent 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 [all...] |
menus.entropy | 32 /* Menu system definitions -- entropy setup */ 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);} [all...] |
configmenu.c | 32 /* configmenu.c -- post-installation system configuration menu. */ 172 set_config(menudesc *menu, int opt, void *arg) 181 wprintw(menu->mw, "%-50s %-10s", msg_string(optname), setting); 211 set_timezone_menu(struct menudesc *menu, void *arg) 216 confp[menu->cursel]->setting = tz_default; 221 set_root_shell(struct menudesc *menu, void *arg) 225 process_menu(MENU_rootsh, &confp[menu->cursel]->setting); 227 "chpass -s %s root", confp[menu->cursel]->setting) != 0) 228 confp[menu->cursel]->setting = MSG_failed; 233 set_network(struct menudesc *menu, void *arg [all...] |
menus.pm | 33 /* Menu system definitions -- extended partitioning */ 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 [all...] |
label.c | 325 int menu; local in function:edit_fs_ffs_opt 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) 552 size_t i, ndx, max = menu->numopts; 556 menu->cursel = 0; 558 menu->cursel = 1 [all...] |
/src/sys/arch/hpc/stand/hpcboot/ |
hpcboot.cpp | 35 #include <menu/window.h> 36 #include <menu/rootwindow.h> 58 HpcMenuInterface::Instance(); // Menu System 101 HpcMenuInterface &menu = HPC_MENU; local in function:hpcboot 107 menu.progress("0"); 113 menu.progress("1"); 129 menu.progress("2"); 137 menu.progress("3"); 157 menu.progress("4"); 163 menu.progress("5") [all...] |
arch.cpp | 35 #include <menu/window.h> 36 #include <menu/rootwindow.h> // MessageBox 74 HpcMenuInterface &menu = HpcMenuInterface::Instance(); local in function:Architecture::setupBootInfo 81 _boot_arg->argc = menu.setup_kernel_args(v + sizeof(struct BootArgs), 85 menu.setup_bootinfo(_boot_arg->bi);
|
/src/sys/arch/hpc/stand/hpcboot/menu/ |
menu.cpp | 1 /* -*-C++-*- $NetBSD: menu.cpp,v 1.13 2011/11/23 15:49:58 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 in function:TabWindowBase::boot 59 menu._main = new MainTabWindow(*this, IDC_BASE_MAIN); 60 w = menu._main; 63 menu._option = new OptionTabWindow(*this, IDC_BASE_OPTION) 94 HpcMenuInterface &menu = HPC_MENU; local in function:MainTabWindow::init 161 HpcMenuInterface &menu = HPC_MENU; local in function:MainTabWindow::_sort_platids 254 HpcMenuInterface &menu = HPC_MENU; local in function:MainTabWindow::get 479 HpcMenuInterface &menu = HPC_MENU; local in function:ConsoleTabWindow::command [all...] |
rootwindow.cpp | 33 #include <menu/window.h> 34 #include <menu/tabwindow.h> 35 #include <menu/rootwindow.h> 88 HpcMenuInterface &menu = HpcMenuInterface::Instance(); local in function:RootWindow::create 89 if (menu._pref.auto_boot > 0) 90 SetTimer(_window, IDD_TIMER, menu._pref.auto_boot * 1000, 0); 102 HpcMenuInterface &menu = HpcMenuInterface::Instance(); local in function:RootWindow::proc 160 menu.get_options(); 161 if (menu._pref.safety_message) { 162 UINT mb_icon = menu._pref.pause_before_boot [all...] |
/src/usr.bin/menuc/ |
mdb.h | 35 /* mdb.h - definitions for the menu database. */ 57 /* menu definitions records. */ 67 int menu; member in struct:optn_info
|
/src/usr.sbin/sysinst/arch/mac68k/ |
menus.md.pl | 37 /* Menu definitions for sysinst. mac68k version, machine dependent. */ 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?" [all...] |
menus.md.de | 35 /* Menu definitions for sysinst. mac68k version, machine dependent. */ 37 menu fullpart, title "Bitte w�hlen Sie"; 41 menu nodiskmap, title "Bitte w�hlen Sie", y=16; 65 menu editparttable, title "W�hlen Sie eine Partition", exit, y=14; 77 option "Ausgew�hlte Partition bearbeiten", sub menu chooseid; 78 option "Mount Point festlegen", sub menu mount_point; 151 menu ok2, title "Abbrechen?", y=17; 154 menu okabort, title "Was m�chten Sie?", y=17; 158 menu chooseid, title "Partitionstyp?"; 269 menu mount_point, title "Mount Point?" [all...] |