menubar           121 lib/widget/menu.c menubar_paint_idx (const WMenuBar * menubar, unsigned int idx, int color)
menubar           123 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           124 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           137 lib/widget/menu.c         widget_gotoyx (menubar, y, x - 1);
menubar           140 lib/widget/menu.c         widget_gotoyx (menubar, y, x + menu->max_entry_len + 3);
menubar           149 lib/widget/menu.c         widget_gotoyx (menubar, y, x);
menubar           167 lib/widget/menu.c             widget_gotoyx (menubar, y, x + menu->max_hotkey_len + 3);
menubar           172 lib/widget/menu.c         widget_gotoyx (menubar, y, x + 1);
menubar           179 lib/widget/menu.c menubar_draw_drop (const WMenuBar * menubar)
menubar           181 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           182 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           198 lib/widget/menu.c         menubar_paint_idx (menubar, i,
menubar           205 lib/widget/menu.c menubar_set_color (const WMenuBar * menubar, gboolean current, gboolean hotkey)
menubar           207 lib/widget/menu.c     if (!widget_get_state (CONST_WIDGET (menubar), WST_FOCUSED))
menubar           218 lib/widget/menu.c menubar_draw (const WMenuBar * menubar)
menubar           220 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           224 lib/widget/menu.c     tty_setcolor (widget_get_state (WIDGET (menubar), WST_FOCUSED) ? MENU_ENTRY_COLOR :
menubar           229 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           232 lib/widget/menu.c         gboolean is_selected = (menubar->selected == (gsize) g_list_position (menubar->menu, i));
menubar           234 lib/widget/menu.c         menubar_set_color (menubar, is_selected, FALSE);
menubar           235 lib/widget/menu.c         widget_gotoyx (menubar, 0, menu->start_x);
menubar           242 lib/widget/menu.c             menubar_set_color (menubar, is_selected, TRUE);
menubar           244 lib/widget/menu.c             menubar_set_color (menubar, is_selected, FALSE);
menubar           253 lib/widget/menu.c     if (menubar->is_dropped)
menubar           254 lib/widget/menu.c         menubar_draw_drop (menubar);
menubar           256 lib/widget/menu.c         widget_gotoyx (menubar, 0,
menubar           257 lib/widget/menu.c                        MENU (g_list_nth_data (menubar->menu, menubar->selected))->start_x);
menubar           263 lib/widget/menu.c menubar_remove (WMenuBar * menubar)
menubar           267 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           274 lib/widget/menu.c     g = WIDGET (WIDGET (menubar)->owner);
menubar           275 lib/widget/menu.c     GROUP (g)->current = widget_find (g, widget_find_by_id (g, menubar->previous_widget));
menubar           277 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           279 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           282 lib/widget/menu.c     GROUP (g)->current = widget_find (g, WIDGET (menubar));
menubar           288 lib/widget/menu.c menubar_left (WMenuBar * menubar)
menubar           290 lib/widget/menu.c     menubar_remove (menubar);
menubar           291 lib/widget/menu.c     if (menubar->selected == 0)
menubar           292 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           294 lib/widget/menu.c         menubar->selected--;
menubar           295 lib/widget/menu.c     menubar_draw (menubar);
menubar           301 lib/widget/menu.c menubar_right (WMenuBar * menubar)
menubar           303 lib/widget/menu.c     menubar_remove (menubar);
menubar           304 lib/widget/menu.c     menubar->selected = (menubar->selected + 1) % g_list_length (menubar->menu);
menubar           305 lib/widget/menu.c     menubar_draw (menubar);
menubar           311 lib/widget/menu.c menubar_finish (WMenuBar * menubar)
menubar           313 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           315 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           333 lib/widget/menu.c     group_select_widget_by_id (w->owner, menubar->previous_widget);
menubar           340 lib/widget/menu.c menubar_drop (WMenuBar * menubar, unsigned int selected)
menubar           342 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           343 lib/widget/menu.c     menubar->selected = selected;
menubar           344 lib/widget/menu.c     menubar_draw (menubar);
menubar           350 lib/widget/menu.c menubar_execute (WMenuBar * menubar)
menubar           352 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           357 lib/widget/menu.c         Widget *w = WIDGET (menubar);
menubar           359 lib/widget/menu.c         mc_global.widget.is_right = (menubar->selected != 0);
menubar           360 lib/widget/menu.c         menubar_finish (menubar);
menubar           369 lib/widget/menu.c menubar_down (WMenuBar * menubar)
menubar           371 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           375 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           384 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           390 lib/widget/menu.c menubar_up (WMenuBar * menubar)
menubar           392 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           396 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           408 lib/widget/menu.c     menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           414 lib/widget/menu.c menubar_first (WMenuBar * menubar)
menubar           416 lib/widget/menu.c     if (menubar->is_dropped)
menubar           418 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           423 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           439 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           443 lib/widget/menu.c         menubar->selected = 0;
menubar           444 lib/widget/menu.c         menubar_draw (menubar);
menubar           451 lib/widget/menu.c menubar_last (WMenuBar * menubar)
menubar           453 lib/widget/menu.c     if (menubar->is_dropped)
menubar           455 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           462 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           473 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           477 lib/widget/menu.c         menubar->selected = g_list_length (menubar->menu) - 1;
menubar           478 lib/widget/menu.c         menubar_draw (menubar);
menubar           485 lib/widget/menu.c menubar_try_drop_menu (WMenuBar * menubar, int hotkey)
menubar           489 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           495 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menubar           506 lib/widget/menu.c menubar_try_exec_menu (WMenuBar * menubar, int hotkey)
menubar           511 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->selected);
menubar           521 lib/widget/menu.c             menubar_execute (menubar);
menubar           532 lib/widget/menu.c menubar_execute_cmd (WMenuBar * menubar, long command)
menubar           542 lib/widget/menu.c             if (menubar->is_dropped)
menubar           544 lib/widget/menu.c                     MENU (g_list_nth_data (menubar->menu, menubar->selected))->help_node;
menubar           549 lib/widget/menu.c             menubar_draw (menubar);
menubar           554 lib/widget/menu.c         menubar_left (menubar);
menubar           557 lib/widget/menu.c         menubar_right (menubar);
menubar           560 lib/widget/menu.c         if (menubar->is_dropped)
menubar           561 lib/widget/menu.c             menubar_up (menubar);
menubar           564 lib/widget/menu.c         if (menubar->is_dropped)
menubar           565 lib/widget/menu.c             menubar_down (menubar);
menubar           567 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           570 lib/widget/menu.c         menubar_first (menubar);
menubar           573 lib/widget/menu.c         menubar_last (menubar);
menubar           577 lib/widget/menu.c         if (menubar->is_dropped)
menubar           578 lib/widget/menu.c             menubar_execute (menubar);
menubar           580 lib/widget/menu.c             menubar_drop (menubar, menubar->selected);
menubar           583 lib/widget/menu.c         menubar_finish (menubar);
menubar           597 lib/widget/menu.c menubar_handle_key (WMenuBar * menubar, int key)
menubar           602 lib/widget/menu.c     cmd = widget_lookup_key (WIDGET (menubar), key);
menubar           605 lib/widget/menu.c         ret = menubar_execute_cmd (menubar, cmd);
menubar           609 lib/widget/menu.c         if (menubar->is_dropped)
menubar           610 lib/widget/menu.c             ret = menubar_try_exec_menu (menubar, key);
menubar           612 lib/widget/menu.c             ret = menubar_try_drop_menu (menubar, key);
menubar           621 lib/widget/menu.c menubar_refresh (WMenuBar * menubar)
menubar           623 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           639 lib/widget/menu.c menubar_free_menu (WMenuBar * menubar)
menubar           641 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) destroy_menu);
menubar           649 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           655 lib/widget/menu.c         if (menubar_refresh (menubar))
menubar           657 lib/widget/menu.c             menubar_draw (menubar);
menubar           670 lib/widget/menu.c             menubar_handle_key (menubar, parm);
menubar           680 lib/widget/menu.c         if (widget_get_state (w, WST_VISIBLE) || menubar_refresh (menubar))
menubar           681 lib/widget/menu.c             menubar_draw (menubar);
menubar           687 lib/widget/menu.c         menubar_refresh (menubar);
menubar           691 lib/widget/menu.c         menubar_free_menu (menubar);
menubar           702 lib/widget/menu.c menubar_get_menu_by_x_coord (const WMenuBar * menubar, int x)
menubar           707 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menubar           721 lib/widget/menu.c menubar_mouse_on_menu (const WMenuBar * menubar, int y, int x)
menubar           723 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           727 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           730 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           747 lib/widget/menu.c menubar_change_selected_item (WMenuBar * menubar, int y)
menubar           753 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->selected));
menubar           758 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_ENTRY_COLOR);
menubar           760 lib/widget/menu.c         menubar_paint_idx (menubar, menu->selected, MENU_SELECTED_COLOR);
menubar           771 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           774 lib/widget/menu.c     mouse_on_drop = menubar_mouse_on_menu (menubar, event->y, event->x);
menubar           786 lib/widget/menu.c             selected = menubar_get_menu_by_x_coord (menubar, event->x);
menubar           787 lib/widget/menu.c             menubar_activate (menubar, TRUE, selected);
menubar           788 lib/widget/menu.c             menubar_remove (menubar);   /* if already shown */
menubar           789 lib/widget/menu.c             menubar_drop (menubar, selected);
menubar           792 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           796 lib/widget/menu.c             menubar_finish (menubar);
menubar           816 lib/widget/menu.c             menubar_execute (menubar);
menubar           823 lib/widget/menu.c         if ((event->buttons & GPM_B_MIDDLE) != 0 && event->y > 0 && menubar->is_dropped)
menubar           826 lib/widget/menu.c             menubar_execute (menubar);
menubar           829 lib/widget/menu.c             menubar_execute (menubar);
menubar           832 lib/widget/menu.c             menubar_finish (menubar);
menubar           838 lib/widget/menu.c             menubar_remove (menubar);
menubar           839 lib/widget/menu.c             menubar_drop (menubar, menubar_get_menu_by_x_coord (menubar, event->x));
menubar           842 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           857 lib/widget/menu.c                     menubar_left (menubar);
menubar           859 lib/widget/menu.c                     menubar_right (menubar);
menubar           865 lib/widget/menu.c                     menubar_up (menubar);
menubar           867 lib/widget/menu.c                     menubar_down (menubar);
menubar           954 lib/widget/menu.c     WMenuBar *menubar;
menubar           957 lib/widget/menu.c     menubar = g_new0 (WMenuBar, 1);
menubar           958 lib/widget/menu.c     w = WIDGET (menubar);
menubar           965 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menubar           967 lib/widget/menu.c     return menubar;
menubar           973 lib/widget/menu.c menubar_set_menu (WMenuBar * menubar, GList * menu)
menubar           976 lib/widget/menu.c     menubar_free_menu (menubar);
menubar           978 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           979 lib/widget/menu.c     menubar->menu = menu;
menubar           980 lib/widget/menu.c     menubar->selected = 0;
menubar           981 lib/widget/menu.c     menubar_arrange (menubar);
menubar           982 lib/widget/menu.c     widget_set_state (WIDGET (menubar), WST_FOCUSED, FALSE);
menubar           988 lib/widget/menu.c menubar_add_menu (WMenuBar * menubar, menu_t * menu)
menubar           992 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menubar           993 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menubar           996 lib/widget/menu.c     menubar_arrange (menubar);
menubar          1006 lib/widget/menu.c menubar_arrange (WMenuBar * menubar)
menubar          1012 lib/widget/menu.c     if (menubar->menu == NULL)
menubar          1015 lib/widget/menu.c     gap = WIDGET (menubar)->rect.cols - 2;
menubar          1018 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1027 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menubar          1030 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menubar          1041 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1070 lib/widget/menu.c menubar_activate (WMenuBar * menubar, gboolean dropped, int which)
menubar          1072 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar          1080 lib/widget/menu.c         menubar->is_dropped = dropped;
menubar          1082 lib/widget/menu.c             menubar->selected = (guint) which;
menubar          1084 lib/widget/menu.c         menubar->previous_widget = group_get_current_widget_id (w->owner);
menubar            53 lib/widget/menu.h void menubar_set_menu (WMenuBar * menubar, GList * menu);
menubar            54 lib/widget/menu.h void menubar_add_menu (WMenuBar * menubar, menu_t * menu);
menubar            55 lib/widget/menu.h void menubar_arrange (WMenuBar * menubar);
menubar            59 lib/widget/menu.h void menubar_activate (WMenuBar * menubar, gboolean dropped, int which);
menubar           145 src/editor/edit-impl.h void edit_init_menu (WMenuBar * menubar);
menubar           269 src/editor/editmenu.c     WMenuBar *menubar;
menubar           271 src/editor/editmenu.c     menubar = find_menubar (h);
menubar           272 src/editor/editmenu.c     menubar_activate (menubar, drop_menus, which);
menubar           280 src/editor/editmenu.c edit_init_menu (WMenuBar * menubar)
menubar           282 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           284 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           286 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           289 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           292 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           294 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           296 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar          1219 src/editor/editwidget.c     WMenuBar *menubar;
menubar          1261 src/editor/editwidget.c     menubar = menubar_new (NULL);
menubar          1262 src/editor/editwidget.c     w = WIDGET (menubar);
menubar          1264 src/editor/editwidget.c     edit_init_menu (menubar);