menubar           124 lib/widget/menu.c menubar_paint_idx (const WMenuBar *menubar, unsigned int idx, int color)
menubar           126 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           127 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           140 lib/widget/menu.c         widget_gotoyx (menubar, y, x - 1);
menubar           143 lib/widget/menu.c         widget_gotoyx (menubar, y, x + menu->max_entry_len + 3);
menubar           152 lib/widget/menu.c         widget_gotoyx (menubar, y, x);
menubar           170 lib/widget/menu.c             widget_gotoyx (menubar, y, x + menu->max_hotkey_len + 3);
menubar           175 lib/widget/menu.c         widget_gotoyx (menubar, y, x + 1);
menubar           182 lib/widget/menu.c menubar_draw_drop (const WMenuBar *menubar)
menubar           184 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           185 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           201 lib/widget/menu.c         menubar_paint_idx (menubar, i, i == menu->current ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR);
menubar           207 lib/widget/menu.c menubar_set_color (const WMenuBar *menubar, gboolean current, gboolean hotkey)
menubar           209 lib/widget/menu.c     if (!widget_get_state (CONST_WIDGET (menubar), WST_FOCUSED))
menubar           220 lib/widget/menu.c menubar_draw (const WMenuBar *menubar)
menubar           222 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           226 lib/widget/menu.c     tty_setcolor (widget_get_state (WIDGET (menubar), WST_FOCUSED) ? MENU_ENTRY_COLOR :
menubar           231 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           234 lib/widget/menu.c         gboolean is_selected = (menubar->current == (gsize) g_list_position (menubar->menu, i));
menubar           236 lib/widget/menu.c         menubar_set_color (menubar, is_selected, FALSE);
menubar           237 lib/widget/menu.c         widget_gotoyx (menubar, 0, menu->start_x);
menubar           244 lib/widget/menu.c             menubar_set_color (menubar, is_selected, TRUE);
menubar           246 lib/widget/menu.c             menubar_set_color (menubar, is_selected, FALSE);
menubar           255 lib/widget/menu.c     if (menubar->is_dropped)
menubar           256 lib/widget/menu.c         menubar_draw_drop (menubar);
menubar           258 lib/widget/menu.c         widget_gotoyx (menubar, 0,
menubar           259 lib/widget/menu.c                        MENU (g_list_nth_data (menubar->menu, menubar->current))->start_x);
menubar           265 lib/widget/menu.c menubar_remove (WMenuBar *menubar)
menubar           269 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           276 lib/widget/menu.c     g = WIDGET (WIDGET (menubar)->owner);
menubar           277 lib/widget/menu.c     GROUP (g)->current = widget_find (g, widget_find_by_id (g, menubar->previous_widget));
menubar           279 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           281 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           284 lib/widget/menu.c     GROUP (g)->current = widget_find (g, WIDGET (menubar));
menubar           290 lib/widget/menu.c menubar_left (WMenuBar *menubar)
menubar           292 lib/widget/menu.c     menubar_remove (menubar);
menubar           293 lib/widget/menu.c     if (menubar->current == 0)
menubar           294 lib/widget/menu.c         menubar->current = g_list_length (menubar->menu) - 1;
menubar           296 lib/widget/menu.c         menubar->current--;
menubar           297 lib/widget/menu.c     menubar_draw (menubar);
menubar           303 lib/widget/menu.c menubar_right (WMenuBar *menubar)
menubar           305 lib/widget/menu.c     menubar_remove (menubar);
menubar           306 lib/widget/menu.c     menubar->current = (menubar->current + 1) % g_list_length (menubar->menu);
menubar           307 lib/widget/menu.c     menubar_draw (menubar);
menubar           313 lib/widget/menu.c menubar_finish (WMenuBar *menubar)
menubar           315 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           317 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           335 lib/widget/menu.c     group_select_widget_by_id (w->owner, menubar->previous_widget);
menubar           342 lib/widget/menu.c menubar_drop (WMenuBar *menubar, unsigned int selected)
menubar           344 lib/widget/menu.c     menubar->is_dropped = TRUE;
menubar           345 lib/widget/menu.c     menubar->current = selected;
menubar           346 lib/widget/menu.c     menubar_draw (menubar);
menubar           352 lib/widget/menu.c menubar_execute (WMenuBar *menubar)
menubar           354 lib/widget/menu.c     const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           359 lib/widget/menu.c         Widget *w = WIDGET (menubar);
menubar           361 lib/widget/menu.c         mc_global.widget.is_right = (menubar->current != 0);
menubar           362 lib/widget/menu.c         menubar_finish (menubar);
menubar           371 lib/widget/menu.c menubar_down (WMenuBar *menubar)
menubar           373 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           377 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menubar           386 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menubar           392 lib/widget/menu.c menubar_up (WMenuBar *menubar)
menubar           394 lib/widget/menu.c     menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           398 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menubar           410 lib/widget/menu.c     menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menubar           416 lib/widget/menu.c menubar_first (WMenuBar *menubar)
menubar           418 lib/widget/menu.c     if (menubar->is_dropped)
menubar           420 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           425 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menubar           441 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menubar           445 lib/widget/menu.c         menubar->current = 0;
menubar           446 lib/widget/menu.c         menubar_draw (menubar);
menubar           453 lib/widget/menu.c menubar_last (WMenuBar *menubar)
menubar           455 lib/widget/menu.c     if (menubar->is_dropped)
menubar           457 lib/widget/menu.c         menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           464 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menubar           475 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menubar           479 lib/widget/menu.c         menubar->current = g_list_length (menubar->menu) - 1;
menubar           480 lib/widget/menu.c         menubar_draw (menubar);
menubar           487 lib/widget/menu.c menubar_try_drop_menu (WMenuBar *menubar, int hotkey)
menubar           491 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar           497 lib/widget/menu.c             menubar_drop (menubar, g_list_position (menubar->menu, i));
menubar           508 lib/widget/menu.c menubar_try_exec_menu (WMenuBar *menubar, int hotkey)
menubar           513 lib/widget/menu.c     menu = g_list_nth_data (menubar->menu, menubar->current);
menubar           523 lib/widget/menu.c             menubar_execute (menubar);
menubar           534 lib/widget/menu.c menubar_help (const WMenuBar *menubar)
menubar           540 lib/widget/menu.c     if (menubar->is_dropped)
menubar           541 lib/widget/menu.c         event_data.node = MENU (g_list_nth_data (menubar->menu, menubar->current))->help_node;
menubar           546 lib/widget/menu.c     menubar_draw (menubar);
menubar           552 lib/widget/menu.c menubar_execute_cmd (WMenuBar *menubar, long command)
menubar           559 lib/widget/menu.c         menubar_help (menubar);
menubar           563 lib/widget/menu.c         menubar_left (menubar);
menubar           566 lib/widget/menu.c         menubar_right (menubar);
menubar           569 lib/widget/menu.c         if (menubar->is_dropped)
menubar           570 lib/widget/menu.c             menubar_up (menubar);
menubar           573 lib/widget/menu.c         if (menubar->is_dropped)
menubar           574 lib/widget/menu.c             menubar_down (menubar);
menubar           576 lib/widget/menu.c             menubar_drop (menubar, menubar->current);
menubar           579 lib/widget/menu.c         menubar_first (menubar);
menubar           582 lib/widget/menu.c         menubar_last (menubar);
menubar           586 lib/widget/menu.c         if (menubar->is_dropped)
menubar           587 lib/widget/menu.c             menubar_execute (menubar);
menubar           589 lib/widget/menu.c             menubar_drop (menubar, menubar->current);
menubar           592 lib/widget/menu.c         menubar_finish (menubar);
menubar           606 lib/widget/menu.c menubar_handle_key (WMenuBar *menubar, int key)
menubar           611 lib/widget/menu.c     cmd = widget_lookup_key (WIDGET (menubar), key);
menubar           614 lib/widget/menu.c         ret = menubar_execute_cmd (menubar, cmd);
menubar           618 lib/widget/menu.c         if (menubar->is_dropped)
menubar           619 lib/widget/menu.c             ret = menubar_try_exec_menu (menubar, key);
menubar           621 lib/widget/menu.c             ret = menubar_try_drop_menu (menubar, key);
menubar           630 lib/widget/menu.c menubar_refresh (WMenuBar *menubar)
menubar           632 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar           648 lib/widget/menu.c menubar_free_menu (WMenuBar *menubar)
menubar           650 lib/widget/menu.c     g_clear_list (&menubar->menu, (GDestroyNotify) menu_free);
menubar           658 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           664 lib/widget/menu.c         if (menubar_refresh (menubar))
menubar           666 lib/widget/menu.c             menubar_draw (menubar);
menubar           679 lib/widget/menu.c             menubar_handle_key (menubar, parm);
menubar           689 lib/widget/menu.c         if (widget_get_state (w, WST_VISIBLE) || menubar_refresh (menubar))
menubar           690 lib/widget/menu.c             menubar_draw (menubar);
menubar           696 lib/widget/menu.c         menubar_refresh (menubar);
menubar           700 lib/widget/menu.c         menubar_free_menu (menubar);
menubar           711 lib/widget/menu.c menubar_get_menu_by_x_coord (const WMenuBar *menubar, int x)
menubar           716 lib/widget/menu.c     for (i = 0, menu = menubar->menu;
menubar           730 lib/widget/menu.c menubar_mouse_on_menu (const WMenuBar *menubar, int y, int x)
menubar           732 lib/widget/menu.c     const WRect *w = &CONST_WIDGET (menubar)->rect;
menubar           736 lib/widget/menu.c     if (!menubar->is_dropped)
menubar           739 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           756 lib/widget/menu.c menubar_change_selected_item (WMenuBar *menubar, int y)
menubar           762 lib/widget/menu.c     menu = MENU (g_list_nth_data (menubar->menu, menubar->current));
menubar           767 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR);
menubar           769 lib/widget/menu.c         menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR);
menubar           780 lib/widget/menu.c     WMenuBar *menubar = MENUBAR (w);
menubar           783 lib/widget/menu.c     mouse_on_drop = menubar_mouse_on_menu (menubar, event->y, event->x);
menubar           795 lib/widget/menu.c             selected = menubar_get_menu_by_x_coord (menubar, event->x);
menubar           796 lib/widget/menu.c             menubar_activate (menubar, TRUE, selected);
menubar           797 lib/widget/menu.c             menubar_remove (menubar);   /* if already shown */
menubar           798 lib/widget/menu.c             menubar_drop (menubar, selected);
menubar           801 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           805 lib/widget/menu.c             menubar_finish (menubar);
menubar           825 lib/widget/menu.c             menubar_execute (menubar);
menubar           832 lib/widget/menu.c         if ((event->buttons & GPM_B_MIDDLE) != 0 && event->y > 0 && menubar->is_dropped)
menubar           835 lib/widget/menu.c             menubar_execute (menubar);
menubar           838 lib/widget/menu.c             menubar_execute (menubar);
menubar           841 lib/widget/menu.c             menubar_finish (menubar);
menubar           847 lib/widget/menu.c             menubar_remove (menubar);
menubar           848 lib/widget/menu.c             menubar_drop (menubar, menubar_get_menu_by_x_coord (menubar, event->x));
menubar           851 lib/widget/menu.c             menubar_change_selected_item (menubar, event->y);
menubar           866 lib/widget/menu.c                     menubar_left (menubar);
menubar           868 lib/widget/menu.c                     menubar_right (menubar);
menubar           874 lib/widget/menu.c                     menubar_up (menubar);
menubar           876 lib/widget/menu.c                     menubar_down (menubar);
menubar           963 lib/widget/menu.c     WMenuBar *menubar;
menubar           966 lib/widget/menu.c     menubar = g_new0 (WMenuBar, 1);
menubar           967 lib/widget/menu.c     w = WIDGET (menubar);
menubar           972 lib/widget/menu.c     menubar_set_menu (menubar, menu);
menubar           974 lib/widget/menu.c     return menubar;
menubar           980 lib/widget/menu.c menubar_set_menu (WMenuBar *menubar, GList *menu)
menubar           983 lib/widget/menu.c     menubar_free_menu (menubar);
menubar           985 lib/widget/menu.c     menubar->is_dropped = FALSE;
menubar           986 lib/widget/menu.c     menubar->menu = menu;
menubar           987 lib/widget/menu.c     menubar->current = 0;
menubar           988 lib/widget/menu.c     menubar_arrange (menubar);
menubar           989 lib/widget/menu.c     widget_set_state (WIDGET (menubar), WST_FOCUSED, FALSE);
menubar           995 lib/widget/menu.c menubar_add_menu (WMenuBar *menubar, menu_t *menu)
menubar           999 lib/widget/menu.c         menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut);
menubar          1000 lib/widget/menu.c         menubar->menu = g_list_append (menubar->menu, menu);
menubar          1003 lib/widget/menu.c     menubar_arrange (menubar);
menubar          1013 lib/widget/menu.c menubar_arrange (WMenuBar *menubar)
menubar          1019 lib/widget/menu.c     if (menubar->menu == NULL)
menubar          1022 lib/widget/menu.c     gap = WIDGET (menubar)->rect.cols - 2;
menubar          1025 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1034 lib/widget/menu.c     if (g_list_next (menubar->menu) == NULL)
menubar          1037 lib/widget/menu.c         gap /= (g_list_length (menubar->menu) - 1);
menubar          1048 lib/widget/menu.c     for (i = menubar->menu; i != NULL; i = g_list_next (i))
menubar          1077 lib/widget/menu.c menubar_activate (WMenuBar *menubar, gboolean dropped, int which)
menubar          1079 lib/widget/menu.c     Widget *w = WIDGET (menubar);
menubar          1087 lib/widget/menu.c         menubar->is_dropped = dropped;
menubar          1089 lib/widget/menu.c             menubar->current = (guint) which;
menubar          1091 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           139 src/editor/edit-impl.h void edit_init_menu (WMenuBar * menubar);
menubar           261 src/editor/editmenu.c     WMenuBar *menubar;
menubar           263 src/editor/editmenu.c     menubar = menubar_find (h);
menubar           264 src/editor/editmenu.c     menubar_activate (menubar, drop_menus, which);
menubar           272 src/editor/editmenu.c edit_init_menu (WMenuBar *menubar)
menubar           274 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           276 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           278 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           281 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           283 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           285 src/editor/editmenu.c     menubar_add_menu (menubar,
menubar           287 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);