Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 614) sorted by relevance

12345678910>>...25

/external/u-boot/scripts/kconfig/
Dmenu.c15 struct menu rootmenu;
16 static struct menu **last_entry_ptr;
21 void menu_warn(struct menu *menu, const char *fmt, ...) in menu_warn() argument
25 fprintf(stderr, "%s:%d:warning: ", menu->file->name, menu->lineno); in menu_warn()
49 struct menu *menu; in menu_add_entry() local
51 menu = xmalloc(sizeof(*menu)); in menu_add_entry()
52 memset(menu, 0, sizeof(*menu)); in menu_add_entry()
53 menu->sym = sym; in menu_add_entry()
54 menu->parent = current_menu; in menu_add_entry()
55 menu->file = current_file; in menu_add_entry()
[all …]
Dmconf.c277 static struct menu *current_menu;
284 static void conf(struct menu *menu, struct menu *active_menu);
285 static void conf_choice(struct menu *menu);
286 static void conf_string(struct menu *menu);
294 static void show_help(struct menu *menu);
360 struct menu **targets;
435 struct menu *targets[JUMP_NB]; in search_conf()
466 static void build_conf(struct menu *menu) in build_conf() argument
470 struct menu *child; in build_conf()
480 visible = menu_is_visible(menu); in build_conf()
[all …]
Dnconf.c259 static struct menu *current_menu;
279 static void conf(struct menu *menu);
280 static void conf_choice(struct menu *menu);
281 static void conf_string(struct menu *menu);
284 static void show_help(struct menu *menu);
289 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
290 static void handle_f1(int *key, struct menu *current_item);
291 static void handle_f2(int *key, struct menu *current_item);
292 static void handle_f3(int *key, struct menu *current_item);
293 static void handle_f4(int *key, struct menu *current_item);
[all …]
Dlkc_proto.h16 extern struct menu rootmenu;
18 bool menu_is_empty(struct menu *menu);
19 bool menu_is_visible(struct menu *menu);
20 bool menu_has_prompt(struct menu *menu);
21 const char * menu_get_prompt(struct menu *menu);
22 struct menu * menu_get_root_menu(struct menu *menu);
23 struct menu * menu_get_parent_menu(struct menu *menu);
24 bool menu_has_help(struct menu *menu);
25 const char * menu_get_help(struct menu *menu);
27 void menu_get_ext_help(struct menu *menu, struct gstr *help);
Dconf.c21 static void conf(struct menu *menu);
22 static void check_conf(struct menu *menu);
45 static struct menu *rootEntry;
47 static void print_help(struct menu *menu) in print_help() argument
51 menu_get_ext_help(menu, &help); in print_help()
130 static int conf_string(struct menu *menu) in conf_string() argument
132 struct symbol *sym = menu->sym; in conf_string()
136 printf("%*s%s ", indent - 1, "", _(menu->prompt->text)); in conf_string()
149 print_help(menu); in conf_string()
163 static int conf_sym(struct menu *menu) in conf_sym() argument
[all …]
Dqconf.cc128 sym = menu->sym; in updateMenu()
129 prop = menu->prompt; in updateMenu()
130 prompt = _(menu_get_prompt(menu)); in updateMenu()
138 if (sym && list->rootEntry == menu) in updateMenu()
229 if (!menu) in testUpdateMenu()
232 sym_calc_value(menu->sym); in testUpdateMenu()
233 if (menu->flags & MENU_CHANGED) { in testUpdateMenu()
235 menu->flags &= ~MENU_CHANGED; in testUpdateMenu()
236 for (i = (ConfigItem*)menu->data; i; i = i->nextItem) in testUpdateMenu()
248 if (menu) { in init()
[all …]
Dgconf.c62 static struct menu *current; // current node for SINGLE view
63 static struct menu *browsed; // browsed node for SPLIT view
73 static void display_tree(struct menu *menu);
75 static void update_tree(struct menu *src, GtkTreeIter * dst);
76 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row);
77 static gchar **fill_row(struct menu *menu);
367 static void text_insert_help(struct menu *menu) in text_insert_help() argument
371 const char *prompt = _(menu_get_prompt(menu)); in text_insert_help()
374 menu_get_ext_help(menu, &help); in text_insert_help()
786 struct menu *menu; in renderer_edited() local
[all …]
Dqconf.h52 ConfigItem* findConfigItem(struct menu *);
64 void setRootMenu(struct menu *menu);
72 void menuChanged(struct menu *menu);
73 void menuSelected(struct menu *menu);
75 void gotFocus(struct menu *);
103 bool menuSkip(struct menu *);
105 void updateMenuList(ConfigItem *parent, struct menu*);
106 void updateMenuList(ConfigList *parent, struct menu*);
117 struct menu *rootEntry;
126 ConfigItem(ConfigList *parent, ConfigItem *after, struct menu *m, bool v) in ConfigItem()
[all …]
Dzconf.y31 static struct menu *current_menu, *current_entry;
42 struct menu *menu; member
94 %type <menu> if_entry menu_entry choice_entry
376 menu: T_MENU prompt T_EOL
383 menu_entry: menu visibility_list depends_list
643 static void print_symbol(FILE *out, struct menu *menu) in print_symbol() argument
645 struct symbol *sym = menu->sym; in print_symbol()
673 if (prop->menu != menu) in print_symbol()
722 if (menu->help) { in print_symbol()
723 int len = strlen(menu->help); in print_symbol()
[all …]
Dkxgettext.c171 static void menu_build_message_list(struct menu *menu) in menu_build_message_list() argument
173 struct menu *child; in menu_build_message_list()
175 message__add(menu_get_prompt(menu), NULL, in menu_build_message_list()
176 menu->file == NULL ? "Root Menu" : menu->file->name, in menu_build_message_list()
177 menu->lineno); in menu_build_message_list()
179 if (menu->sym != NULL && menu_has_help(menu)) in menu_build_message_list()
180 message__add(menu_get_help(menu), menu->sym->name, in menu_build_message_list()
181 menu->file == NULL ? "Root Menu" : menu->file->name, in menu_build_message_list()
182 menu->lineno); in menu_build_message_list()
184 for (child = menu->list; child != NULL; child = child->next) in menu_build_message_list()
/external/toybox/kconfig/
Dmenu.c12 struct menu rootmenu;
13 static struct menu **last_entry_ptr;
18 static void menu_warn(struct menu *menu, const char *fmt, ...) in menu_warn() argument
22 fprintf(stderr, "%s:%d:warning: ", menu->file->name, menu->lineno); in menu_warn()
46 struct menu *menu; in menu_add_entry() local
48 menu = malloc(sizeof(*menu)); in menu_add_entry()
49 memset(menu, 0, sizeof(*menu)); in menu_add_entry()
50 menu->sym = sym; in menu_add_entry()
51 menu->parent = current_menu; in menu_add_entry()
52 menu->file = current_file; in menu_add_entry()
[all …]
Dmconf.c278 static struct menu *current_menu;
282 static void conf(struct menu *menu);
283 static void conf_choice(struct menu *menu);
284 static void conf_string(struct menu *menu);
289 static void show_help(struct menu *menu);
329 struct menu *submenu[8], *menu; in get_prompt_str() local
332 str_printf(r, " Defined at %s:%d\n", prop->menu->file->name, in get_prompt_str()
333 prop->menu->lineno); in get_prompt_str()
339 menu = prop->menu->parent; in get_prompt_str()
340 for (i = 0; menu != &rootmenu && i < 8; menu = menu->parent) in get_prompt_str()
[all …]
Dconf.c17 static void conf(struct menu *menu);
18 static void check_conf(struct menu *menu);
36 static struct menu *rootEntry;
171 int conf_string(struct menu *menu) in conf_string() argument
173 struct symbol *sym = menu->sym; in conf_string()
177 printf("%*s%s ", indent - 1, "", menu->prompt->text); in conf_string()
190 if (menu->sym->help) in conf_string()
191 help = menu->sym->help; in conf_string()
192 printf("\n%s\n", menu->sym->help); in conf_string()
205 static int conf_sym(struct menu *menu) in conf_sym() argument
[all …]
Dconfdata.c382 struct menu *next_menu(struct menu *menu) in next_menu() argument
384 if (menu->list) return menu->list; in next_menu()
386 if (menu->next) { in next_menu()
387 menu = menu->next; in next_menu()
390 } while ((menu = menu->parent)); in next_menu()
392 return menu; in next_menu()
401 struct menu *menu; in conf_write() local
465 for (menu = rootmenu.list; menu; menu = next_menu(menu)) in conf_write()
466 if (menu->sym) menu->sym->flags |= SYMBOL_FORCEWRITE; in conf_write()
474 menu = rootmenu.list; in conf_write()
[all …]
Dlkc_proto.h10 P(rootmenu,struct menu,);
12 P(menu_is_visible,bool,(struct menu *menu));
13 P(menu_get_prompt,const char *,(struct menu *menu));
14 P(menu_get_root_menu,struct menu *,(struct menu *menu));
15 P(menu_get_parent_menu,struct menu *,(struct menu *menu));
/external/python/cpython2/Demo/tkinter/matt/
Dmenu-all-types-of-entries.py64 Command_button.menu = Menu(Command_button)
67 Command_button.menu.add_command(label="Undo")
69 Command_button.menu.entryconfig(0, state=DISABLED)
71 Command_button.menu.add_command(label='New...', underline=0,
73 Command_button.menu.add_command(label='Open...', underline=0,
75 Command_button.menu.add_command(label='Different Font', underline=0,
81 Command_button.menu.add_command(
86 Command_button.menu.add('separator')
89 Command_button.menu.add_command(label='Quit', underline=0,
95 Command_button['menu'] = Command_button.menu
[all …]
Dmenu-simple.py48 File_button.menu = Menu(File_button)
53 File_button.menu.add_command(label='New...', underline=0,
57 File_button.menu.add_command(label='Open...', underline=0,
60 File_button.menu.add_command(label='Quit', underline=0,
64 File_button['menu'] = File_button.menu
73 Edit_button.menu = Menu(Edit_button)
76 Edit_button.menu.add('command', label="Undo")
79 Edit_button.menu.entryconfig(1, state=DISABLED)
82 Edit_button.menu.add_command(label="Cut")
83 Edit_button.menu.add_command(label="Copy")
[all …]
/external/u-boot/cmd/
Dbootmenu.c29 struct bootmenu_data *menu; /* this bootmenu */ member
61 int reverse = (entry->menu->active == entry->num); in bootmenu_print_entry()
80 static void bootmenu_autoboot_loop(struct bootmenu_data *menu, in bootmenu_autoboot_loop() argument
85 if (menu->delay > 0) { in bootmenu_autoboot_loop()
86 printf(ANSI_CURSOR_POSITION, menu->count + 5, 1); in bootmenu_autoboot_loop()
87 printf(" Hit any key to stop autoboot: %2d ", menu->delay); in bootmenu_autoboot_loop()
90 while (menu->delay > 0) { in bootmenu_autoboot_loop()
98 menu->delay = -1; in bootmenu_autoboot_loop()
117 if (menu->delay < 0) in bootmenu_autoboot_loop()
120 --menu->delay; in bootmenu_autoboot_loop()
[all …]
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/
Dtest_VIDIOC_QUERYMENU.c34 struct v4l2_querymenu *menu) in do_check_menu() argument
43 menu->id, menu->index, menu->name, menu->reserved); in do_check_menu()
45 CU_ASSERT_EQUAL(menu->id, id); in do_check_menu()
46 CU_ASSERT_EQUAL(menu->index, index); in do_check_menu()
48 CU_ASSERT(0 < strlen((char *)menu->name)); in do_check_menu()
49 CU_ASSERT(valid_string((char *)menu->name, sizeof(menu->name))); in do_check_menu()
51 CU_ASSERT_EQUAL(menu->reserved, 0); in do_check_menu()
61 strncpy((char *)menu2.name, (char *)menu->name, in do_check_menu()
63 CU_ASSERT_EQUAL(memcmp(menu, &menu2, sizeof(*menu)), 0); in do_check_menu()
72 CU_ASSERT(memcmp(&menu, &menu2, sizeof(menu))); in do_check_menu()
[all …]
/external/u-boot/doc/
DREADME.menu10 To use the menu code, enable CONFIG_MENU, and include "menu.h" where
14 the menu, and an opaque pointer to data controlled by the consumer.
16 If you want to show a menu, instead starting the shell, define
18 function, which handle your menu. This function returns the remaining
23 #include "menu.h"
26 * Consumers of the menu interfaces will use a struct menu * as the
27 * handle for a menu. struct menu is only fully defined in menu.c,
28 * preventing consumers of the menu interfaces from accessing its
31 struct menu;
34 * NOTE: See comments in common/menu.c for more detailed documentation on
[all …]
DREADME.bootmenu8 The "bootmenu" command uses U-Boot menu interfaces and provides
11 the items. Current active menu item is highlighted and can be
13 menu entry invokes an U-Boot command (or a list of commands)
14 associated with this menu entry.
17 an ANSI terminal is required for proper menu rendering and item
20 The assembling of the menu is done via a set of environment variables
27 menu entry will be selected automatically
29 <num> is the boot menu entry number, starting from zero
31 <title> is the text of the menu entry shown on the console
34 <commands> are commands which will be executed when a menu
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboMenuTest.java23 RoboMenu menu = new RoboMenu(ApplicationProvider.getApplicationContext()); in addAndRemoveMenuItems() local
24 menu.add(9, 10, 0, org.robolectric.R.string.ok); in addAndRemoveMenuItems()
26 RoboMenuItem item = (RoboMenuItem) menu.findItem(10); in addAndRemoveMenuItems()
31 menu.removeItem(10); in addAndRemoveMenuItems()
33 item = (RoboMenuItem) menu.findItem(10); in addAndRemoveMenuItems()
39 RoboMenu menu = new RoboMenu(ApplicationProvider.getApplicationContext()); in addSubMenu() local
40 menu.addSubMenu(9, 10, 0, org.robolectric.R.string.ok); in addSubMenu()
42 RoboMenuItem item = (RoboMenuItem) menu.findItem(10); in addSubMenu()
51 RoboMenu menu = new RoboMenu(a); in clickWithIntent() local
52 menu.add(0, 10, 0, org.robolectric.R.string.ok); in clickWithIntent()
[all …]
/external/u-boot/common/
Dmenu.c33 struct menu { struct
52 static inline void *menu_items_iter(struct menu *m, in menu_items_iter()
53 void *(*callback)(struct menu *, struct menu_item *, void *), in menu_items_iter() argument
77 static inline void *menu_item_print(struct menu *m, in menu_item_print()
95 static inline void *menu_item_destroy(struct menu *m, in menu_item_destroy()
107 __weak void menu_display_statusline(struct menu *m) in menu_display_statusline()
115 static inline void menu_display(struct menu *m) in menu_display()
134 static inline void *menu_item_key_match(struct menu *m, in menu_item_key_match()
155 static inline struct menu_item *menu_item_by_key(struct menu *m, in menu_item_by_key()
165 int menu_default_choice(struct menu *m, void **choice) in menu_default_choice()
[all …]
/external/python/cpython2/Lib/plat-mac/
DFrameWork.py511 menu = self.menus[m]
512 if menu.__class__ == FrameWork.AppleMenu:
514 for i in range(len(menu.items)):
515 label, shortcut, callback, kind = menu.items[i]
521 menu.menu.EnableMenuItem(i + 1)
523 menu.menu.EnableMenuItem(i + 1)
525 menu.menu.DisableMenuItem(i + 1)
527 menu.menu.EnableMenuItem(i + 1)
529 menu.menu.DisableMenuItem(i + 1)
548 self.id, self.menu = self.bar.addmenu(title, after, id)
[all …]
/external/u-boot/include/
Dmenu.h9 struct menu;
11 struct menu *menu_create(char *title, int timeout, int prompt,
15 int menu_default_set(struct menu *m, char *item_key);
16 int menu_get_choice(struct menu *m, void **choice);
17 int menu_item_add(struct menu *m, char *item_key, void *item_data);
18 int menu_destroy(struct menu *m);
19 void menu_display_statusline(struct menu *m);
20 int menu_default_choice(struct menu *m, void **choice);

12345678910>>...25