NetSurf
Functions | Variables
gui_menu.c File Reference
#include "amiga/os3support.h"
#include <string.h>
#include <stdlib.h>
#include <proto/dos.h>
#include <proto/asl.h>
#include <proto/exec.h>
#include <proto/gadtools.h>
#include <proto/intuition.h>
#include <proto/utility.h>
#include <libraries/gadtools.h>
#include <classes/window.h>
#include <proto/label.h>
#include <images/label.h>
#include <proto/bitmap.h>
#include <images/bitmap.h>
#include <reaction/reaction_macros.h>
#include "utils/nsoption.h"
#include "utils/messages.h"
#include "utils/log.h"
#include "utils/utils.h"
#include "utils/nsurl.h"
#include "netsurf/browser_window.h"
#include "netsurf/mouse.h"
#include "netsurf/window.h"
#include "netsurf/content.h"
#include "netsurf/keypress.h"
#include "desktop/hotlist.h"
#include "desktop/version.h"
#include "amiga/arexx.h"
#include "amiga/bitmap.h"
#include "amiga/clipboard.h"
#include "amiga/cookies.h"
#include "amiga/file.h"
#include "amiga/filetype.h"
#include "amiga/gui.h"
#include "amiga/gui_menu.h"
#include "amiga/gui_options.h"
#include "amiga/history.h"
#include "amiga/history_local.h"
#include "amiga/hotlist.h"
#include "amiga/libs.h"
#include "amiga/menu.h"
#include "amiga/misc.h"
#include "amiga/nsoption.h"
#include "amiga/print.h"
#include "amiga/search.h"
#include "amiga/theme.h"
#include "amiga/utf8.h"
#include "amiga/schedule.h"
Include dependency graph for gui_menu.c:

Go to the source code of this file.

Functions

static nserror ami_menu_scan (struct ami_menu_data **md)
 
void ami_menu_arexx_scan (struct ami_menu_data **md)
 
 HOOKF (void, ami_menu_item_project_newwin, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_newtab, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_open, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_save, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_closetab, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_closewin, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_print, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_about, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_project_quit, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_edit_cut, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_edit_copy, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_edit_paste, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_edit_selectall, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_edit_clearsel, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_edit_undo, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_edit_redo, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_find, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_localhistory, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_globalhistory, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_cookies, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_foreimg, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_backimg, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_enablejs, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_enablecss, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_scale_decrease, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_scale_normal, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_scale_increase, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_browser_redraw, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_hotlist_add, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_hotlist_show, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_hotlist_entries, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_settings_edit, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_settings_snapshot, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_settings_save, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_arexx_execute, APTR, window, struct IntuiMessage *)
 
 HOOKF (void, ami_menu_item_arexx_entries, APTR, window, struct IntuiMessage *)
 
ULONG ami_gui_menu_number (int item)
 
static void ami_gui_menu_set_checked_gt (struct Menu *menu, int item, bool check)
 
void ami_gui_menu_set_checked (struct Menu *menu, int item, bool check)
 Set checked state of a menu item almost generic, but not quite. More...
 
static void ami_gui_menu_set_disabled_gt (struct Window *win, struct Menu *menu, int item, bool disable)
 
void ami_gui_menu_set_disabled (struct Window *win, struct Menu *menu, int item, bool disable)
 Set disabled state of a menu item almost generic, but not quite. More...
 
void ami_gui_menu_update_checked (struct gui_window_2 *gwin)
 
void ami_gui_menu_update_disabled (struct gui_window *g, struct hlcache_handle *c)
 
void ami_gui_menu_set_check_toggled (void)
 Sets that an item linked to a toggle menu item has been changed. More...
 
bool ami_gui_menu_get_check_toggled (void)
 Gets if the menu needs updating because an item linked to a toggle menu item has been changed. More...
 
static bool ami_menu_hotlist_add (void *userdata, int level, int item, const char *title, nsurl *url, bool is_folder)
 
static void ami_init_menulabs (struct ami_menu_data **md)
 
struct Menu * ami_gui_menu_create (struct gui_window_2 *gwin)
 
static void ami_free_menulabs (struct ami_menu_data **md)
 
void ami_gui_menu_freemenus (struct Menu *menu, struct ami_menu_data **md)
 Frees a menu. More...
 
void ami_gui_menu_free (struct gui_window_2 *gwin)
 
bool ami_gui_menu_quit_selected (void)
 Gets if NetSurf has been quit from the menu. More...
 
void ami_gui_menu_refresh_hotlist (void)
 Refresh the Hotlist menu. More...
 

Variables

static bool ami_menu_check_toggled = false
 
static bool menu_quit = false
 
const char *const netsurf_version
 User friendly version string. More...
 
const char *const verdate
 

Function Documentation

◆ ami_free_menulabs()

static void ami_free_menulabs ( struct ami_menu_data **  md)
static

Definition at line 1095 of file gui_menu.c.

References AMI_MENU_AREXX, AMI_MENU_AREXX_MAX, ami_utf8_free(), ami_menu_data::menu_hook, ami_menu_data::menukey, ami_menu_data::menulab, ami_menu_data::menuobj, ami_menu_data::menutype, and ML_SEPARATOR.

Referenced by ami_gui_menu_free(), and ami_gui_menu_freemenus().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_create()

struct Menu * ami_gui_menu_create ( struct gui_window_2 gwin)

Definition at line 1062 of file gui_menu.c.

References ami_gui2_get_menu_data(), ami_gui2_set_menu(), ami_init_menulabs(), AMI_MENU_AREXX_MAX, ami_menu_arexx_scan(), ami_menu_layout(), ami_menu_scan(), and LIB_IS_AT_LEAST.

Referenced by gui_window_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_free()

void ami_gui_menu_free ( struct gui_window_2 gwin)

Definition at line 1138 of file gui_menu.c.

References ami_free_menulabs(), ami_gui2_get_object(), ami_gui2_set_menu(), AMI_WIN_MAIN, and LIB_IS_AT_LEAST.

Referenced by gui_window_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_freemenus()

void ami_gui_menu_freemenus ( struct Menu *  menu,
struct ami_menu_data **  md 
)

Frees a menu.

Only used on OS3 and old OS4.

Definition at line 1127 of file gui_menu.c.

References ami_free_menulabs().

Referenced by ami_gui2_set_menu().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_get_check_toggled()

bool ami_gui_menu_get_check_toggled ( void  )

Gets if the menu needs updating because an item linked to a toggle menu item has been changed.

NB: This also clears the state

Returns
true if the menus need refreshing

Definition at line 818 of file gui_menu.c.

References ami_menu_check_toggled, and LIB_IS_AT_LEAST.

Referenced by ami_handle_msg().

Here is the caller graph for this function:

◆ ami_gui_menu_number()

ULONG ami_gui_menu_number ( int  item)

Definition at line 528 of file gui_menu.c.

References M_CLEAR, M_CLOSETAB, M_COPY, M_CSS, M_CUT, M_FIND, M_IMGBACK, M_IMGFORE, M_JS, M_PASTE, M_REDO, M_SAVECOMP, M_SAVEIFF, M_SAVETXT, M_SELALL, M_UNDO, and NSLOG.

Referenced by ami_gui_menu_set_checked_gt(), ami_gui_menu_set_disabled_gt(), and ami_gui_menu_update_checked().

Here is the caller graph for this function:

◆ ami_gui_menu_quit_selected()

bool ami_gui_menu_quit_selected ( void  )

Gets if NetSurf has been quit from the menu.

Returns
true if NetSurf has been quit

Definition at line 1158 of file gui_menu.c.

References menu_quit.

Referenced by ami_handle_msg().

Here is the caller graph for this function:

◆ ami_gui_menu_refresh_hotlist()

void ami_gui_menu_refresh_hotlist ( void  )

Refresh the Hotlist menu.

Definition at line 1163 of file gui_menu.c.

References AMI_MENU_HOTLIST_MAX, ami_menu_refresh(), ami_menu_scan(), and M_HOTLIST.

Referenced by ami_gui_hotlist_update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_set_check_toggled()

void ami_gui_menu_set_check_toggled ( void  )

Sets that an item linked to a toggle menu item has been changed.

Definition at line 808 of file gui_menu.c.

References ami_menu_check_toggled, and LIB_IS_AT_LEAST.

Referenced by ami_gui_opts_use(), and HOOKF().

Here is the caller graph for this function:

◆ ami_gui_menu_set_checked()

void ami_gui_menu_set_checked ( struct Menu *  menu,
int  item,
bool  check 
)

Set checked state of a menu item almost generic, but not quite.

Definition at line 644 of file gui_menu.c.

References ami_gui_menu_set_checked_gt(), and LIB_IS_AT_LEAST.

Referenced by ami_gui_opts_use().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_set_checked_gt()

static void ami_gui_menu_set_checked_gt ( struct Menu *  menu,
int  item,
bool  check 
)
static

Definition at line 629 of file gui_menu.c.

References ami_gui_menu_number().

Referenced by ami_gui_menu_set_checked().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_set_disabled()

void ami_gui_menu_set_disabled ( struct Window *  win,
struct Menu *  menu,
int  item,
bool  disable 
)

Set disabled state of a menu item almost generic, but not quite.

Definition at line 679 of file gui_menu.c.

References ami_gui_menu_set_disabled_gt(), LIB_IS_AT_LEAST, and gui_window_2::win.

Referenced by ami_gui_menu_update_disabled(), ami_update_buttons(), gui_start_selection(), gui_window_place_caret(), and gui_window_remove_caret().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_set_disabled_gt()

static void ami_gui_menu_set_disabled_gt ( struct Window *  win,
struct Menu *  menu,
int  item,
bool  disable 
)
static

Definition at line 668 of file gui_menu.c.

References ami_gui_menu_number(), and gui_window_2::win.

Referenced by ami_gui_menu_set_disabled().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_update_checked()

void ami_gui_menu_update_checked ( struct gui_window_2 gwin)

Definition at line 691 of file gui_menu.c.

References ami_gui2_get_object(), ami_gui2_get_window(), ami_gui_menu_number(), AMI_WIN_MAIN, LIB_IS_AT_LEAST, M_CSS, M_IMGBACK, M_IMGFORE, M_JS, and nsoption_bool.

Referenced by ami_gui_menu_update_all().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_menu_update_disabled()

void ami_gui_menu_update_disabled ( struct gui_window g,
struct hlcache_handle c 
)

Definition at line 735 of file gui_menu.c.

References ami_gui_get_browser_window(), ami_gui_get_menu(), ami_gui_get_window(), ami_gui_menu_set_disabled(), ami_mime_compare(), browser_window_get_editor_flags(), BW_EDITOR_CAN_COPY, BW_EDITOR_CAN_CUT, BW_EDITOR_CAN_PASTE, CONTENT_CSS, content_get_bitmap(), content_get_type(), M_CLEAR, M_COPY, M_CUT, M_FIND, M_PASTE, M_SAVECOMP, M_SAVEIFF, M_SAVETXT, M_SELALL, and nsoption_bool.

Referenced by ami_switch_tab(), and gui_window_new_content().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_init_menulabs()

static void ami_init_menulabs ( struct ami_menu_data **  md)
static

Definition at line 939 of file gui_menu.c.

References ami_menu_alloc_item(), AMI_MENU_AREXX_MAX, AMINS_SAVE_COMPLETE, AMINS_SAVE_IFF, AMINS_SAVE_PDF, AMINS_SAVE_SOURCE, AMINS_SAVE_TEXT, M_ABOUT, M_AREXX, M_AREXXEX, M_BAR_A1, M_BAR_B1, M_BAR_B2, M_BAR_B3, M_BAR_B4, M_BAR_E1, M_BAR_E2, M_BAR_P1, M_BAR_P2, M_BAR_P3, M_BAR_P4, M_BAR_P5, M_BAR_S1, M_BROWSER, M_CLEAR, M_CLOSETAB, M_CLOSEWIN, M_COOKIES, M_COPY, M_CSS, M_CUT, M_EDIT, M_FIND, M_HISTGLBL, M_HISTLOCL, M_HOTLIST, M_IMAGES, M_IMGBACK, M_IMGFORE, M_JS, M_NEWTAB, M_NEWWIN, M_OPEN, M_PASTE, M_PREDIT, M_PREFS, M_PRINT, M_PROJECT, M_PRSAVE, M_QUIT, M_REDO, M_REDRAW, M_SAVEAS, M_SAVECOMP, M_SAVEIFF, M_SAVESRC, M_SAVETXT, M_SCALE, M_SCALEDEC, M_SCALEINC, M_SCALENRM, M_SELALL, M_SNAPSHOT, M_UNDO, NSA_SPACE, and nsoption_bool.

Referenced by ami_gui_menu_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_menu_arexx_scan()

void ami_menu_arexx_scan ( struct ami_menu_data **  md)
Todo:
Rewrite this to not use ExAll()

Definition at line 830 of file gui_menu.c.

References ami_menu_alloc_item(), AMI_MENU_AREXX, AMI_MENU_AREXX_MAX, buffer, EAD_IS_FILE, NSA_SPACE, and nsoption_charp.

Referenced by ami_gui_menu_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_menu_hotlist_add()

static bool ami_menu_hotlist_add ( void *  userdata,
int  level,
int  item,
const char *  title,
nsurl url,
bool  is_folder 
)
static

Definition at line 881 of file gui_menu.c.

References ami_gui_get_cache_favicon_name(), ami_menu_alloc_item(), AMI_MENU_HOTLIST_MAX, ASPrintf(), ami_menu_data::flags, LIB_IS_AT_LEAST, and type.

Referenced by ami_menu_scan().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_menu_scan()

static nserror ami_menu_scan ( struct ami_menu_data **  md)
static

Definition at line 928 of file gui_menu.c.

References ami_hotlist_scan(), ami_menu_alloc_item(), AMI_MENU_HOTLIST, ami_menu_hotlist_add(), M_BAR_H1, M_HLADD, M_HLSHOW, and messages_get().

Referenced by ami_gui_menu_create(), and ami_gui_menu_refresh_hotlist().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HOOKF() [1/36]

HOOKF ( void  ,
ami_menu_item_arexx_entries  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 505 of file gui_menu.c.

References ami_arexx_execute(), DevNameFromLock, DN_FULLPATH, nsoption_charp, and gui_window_2::temp.

Here is the call graph for this function:

◆ HOOKF() [2/36]

HOOKF ( void  ,
ami_menu_item_arexx_execute  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 481 of file gui_menu.c.

References ami_arexx_execute(), ami_gui2_get_window(), ami_gui_get_screen(), filereq, messages_get(), nsoption_charp, and gui_window_2::temp.

Here is the call graph for this function:

◆ HOOKF() [3/36]

HOOKF ( void  ,
ami_menu_item_browser_backimg  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 354 of file gui_menu.c.

References ami_gui_menu_set_check_toggled(), ami_menu_get_selected(), and nsoption_set_bool.

Here is the call graph for this function:

◆ HOOKF() [4/36]

HOOKF ( void  ,
ami_menu_item_browser_cookies  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 337 of file gui_menu.c.

References ami_cookies_present().

Here is the call graph for this function:

◆ HOOKF() [5/36]

HOOKF ( void  ,
ami_menu_item_browser_enablecss  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 378 of file gui_menu.c.

References ami_gui_menu_set_check_toggled(), ami_menu_get_selected(), and nsoption_set_bool.

Here is the call graph for this function:

◆ HOOKF() [6/36]

HOOKF ( void  ,
ami_menu_item_browser_enablejs  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 366 of file gui_menu.c.

References ami_gui_menu_set_check_toggled(), ami_menu_get_selected(), and nsoption_set_bool.

Here is the call graph for this function:

◆ HOOKF() [7/36]

HOOKF ( void  ,
ami_menu_item_browser_find  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 316 of file gui_menu.c.

References ami_gui2_get_gui_window(), and ami_search_open().

Here is the call graph for this function:

◆ HOOKF() [8/36]

HOOKF ( void  ,
ami_menu_item_browser_foreimg  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 342 of file gui_menu.c.

References ami_gui_menu_set_check_toggled(), ami_menu_get_selected(), and nsoption_set_bool.

Here is the call graph for this function:

◆ HOOKF() [9/36]

HOOKF ( void  ,
ami_menu_item_browser_globalhistory  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 332 of file gui_menu.c.

References ami_history_global_present().

Here is the call graph for this function:

◆ HOOKF() [10/36]

HOOKF ( void  ,
ami_menu_item_browser_localhistory  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 324 of file gui_menu.c.

References ami_gui2_get_gui_window(), and ami_history_local_present().

Here is the call graph for this function:

◆ HOOKF() [11/36]

HOOKF ( void  ,
ami_menu_item_browser_redraw  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 414 of file gui_menu.c.

References ami_gui2_set_new_content(), and ami_schedule_redraw().

Here is the call graph for this function:

◆ HOOKF() [12/36]

HOOKF ( void  ,
ami_menu_item_browser_scale_decrease  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 390 of file gui_menu.c.

References ami_gui2_get_gui_window(), and ami_gui_adjust_scale().

Here is the call graph for this function:

◆ HOOKF() [13/36]

HOOKF ( void  ,
ami_menu_item_browser_scale_increase  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 406 of file gui_menu.c.

References ami_gui2_get_gui_window(), and ami_gui_adjust_scale().

Here is the call graph for this function:

◆ HOOKF() [14/36]

HOOKF ( void  ,
ami_menu_item_browser_scale_normal  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 398 of file gui_menu.c.

References ami_gui2_get_gui_window(), and ami_gui_set_scale().

Here is the call graph for this function:

◆ HOOKF() [15/36]

HOOKF ( void  ,
ami_menu_item_edit_clearsel  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 292 of file gui_menu.c.

References ami_gui2_get_browser_window(), browser_window_key_press(), and NS_KEY_CLEAR_SELECTION.

Here is the call graph for this function:

◆ HOOKF() [16/36]

HOOKF ( void  ,
ami_menu_item_edit_copy  ,
APTR  ,
window  ,
struct IntuiMessage *   
)
Todo:
It should be checked that the lifetime of the objects containing the values returned (and the constness cast away) is safe.

Definition at line 249 of file gui_menu.c.

References ami_bitmap_set_title(), ami_bitmap_set_url(), ami_easy_clipboard_bitmap(), ami_gui2_get_browser_window(), ami_mime_compare(), browser_window_access_url(), browser_window_can_select(), browser_window_get_content(), browser_window_get_title(), browser_window_key_press(), content_get_bitmap(), NS_KEY_CLEAR_SELECTION, and NS_KEY_COPY_SELECTION.

Here is the call graph for this function:

◆ HOOKF() [17/36]

HOOKF ( void  ,
ami_menu_item_edit_cut  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 241 of file gui_menu.c.

References ami_gui2_get_browser_window(), browser_window_key_press(), and NS_KEY_CUT_SELECTION.

Here is the call graph for this function:

◆ HOOKF() [18/36]

HOOKF ( void  ,
ami_menu_item_edit_paste  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 275 of file gui_menu.c.

References ami_gui2_get_browser_window(), browser_window_key_press(), and NS_KEY_PASTE.

Here is the call graph for this function:

◆ HOOKF() [19/36]

HOOKF ( void  ,
ami_menu_item_edit_redo  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 308 of file gui_menu.c.

References ami_gui2_get_browser_window(), browser_window_key_press(), and NS_KEY_REDO.

Here is the call graph for this function:

◆ HOOKF() [20/36]

HOOKF ( void  ,
ami_menu_item_edit_selectall  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 283 of file gui_menu.c.

References ami_gui2_get_browser_window(), ami_gui2_get_gui_window(), browser_window_key_press(), gui_start_selection(), and NS_KEY_SELECT_ALL.

Here is the call graph for this function:

◆ HOOKF() [21/36]

HOOKF ( void  ,
ami_menu_item_edit_undo  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 300 of file gui_menu.c.

References ami_gui2_get_browser_window(), browser_window_key_press(), and NS_KEY_UNDO.

Here is the call graph for this function:

◆ HOOKF() [22/36]

HOOKF ( void  ,
ami_menu_item_hotlist_add  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 423 of file gui_menu.c.

References ami_gui2_get_browser_window(), ami_gui_update_hotlist_button(), browser_window_access_url(), browser_window_has_content(), browser_window::bw, and hotlist_add_url().

Here is the call graph for this function:

◆ HOOKF() [23/36]

HOOKF ( void  ,
ami_menu_item_hotlist_entries  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 443 of file gui_menu.c.

References ami_gui2_get_browser_window(), browser_window_navigate(), and BW_NAVIGATE_HISTORY.

Here is the call graph for this function:

◆ HOOKF() [24/36]

HOOKF ( void  ,
ami_menu_item_hotlist_show  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 438 of file gui_menu.c.

References ami_hotlist_present().

Here is the call graph for this function:

◆ HOOKF() [25/36]

HOOKF ( void  ,
ami_menu_item_project_about  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 173 of file gui_menu.c.

References ami_gui2_get_window(), ami_reset_pointer(), ami_set_pointer(), ami_utf8_easy(), amiga_warn_user(), ASPrintf(), browser_window_create(), BW_CREATE_HISTORY, GUI_POINTER_WAIT, messages_get(), messages_get_errorcode(), netsurf_version, NSERROR_OK, nsurl_create(), nsurl_unref(), gui_window_2::temp, and verdate.

Here is the call graph for this function:

◆ HOOKF() [26/36]

HOOKF ( void  ,
ami_menu_item_project_closetab  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 147 of file gui_menu.c.

References ami_gui2_get_browser_window(), and browser_window_destroy().

Here is the call graph for this function:

◆ HOOKF() [27/36]

HOOKF ( void  ,
ami_menu_item_project_closewin  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 155 of file gui_menu.c.

References ami_gui2_set_closed().

Here is the call graph for this function:

◆ HOOKF() [28/36]

HOOKF ( void  ,
ami_menu_item_project_newtab  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 121 of file gui_menu.c.

References ami_gui_new_blank_tab().

Here is the call graph for this function:

◆ HOOKF() [29/36]

HOOKF ( void  ,
ami_menu_item_project_newwin  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 102 of file gui_menu.c.

References amiga_warn_user(), browser_window_create(), BW_CREATE_HISTORY, messages_get_errorcode(), NSERROR_OK, nsoption_charp, nsurl_create(), and nsurl_unref().

Here is the call graph for this function:

◆ HOOKF() [30/36]

HOOKF ( void  ,
ami_menu_item_project_open  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 129 of file gui_menu.c.

References ami_file_open().

Here is the call graph for this function:

◆ HOOKF() [31/36]

HOOKF ( void  ,
ami_menu_item_project_print  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 163 of file gui_menu.c.

References ami_gui2_get_browser_window(), ami_print_ui(), ami_reset_pointer(), ami_set_pointer(), browser_window_get_content(), and GUI_POINTER_WAIT.

Here is the call graph for this function:

◆ HOOKF() [32/36]

HOOKF ( void  ,
ami_menu_item_project_quit  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 236 of file gui_menu.c.

References menu_quit.

◆ HOOKF() [33/36]

HOOKF ( void  ,
ami_menu_item_project_save  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 137 of file gui_menu.c.

References ami_file_save_req(), ami_gui2_get_browser_window(), browser_window_get_content(), and type.

Here is the call graph for this function:

◆ HOOKF() [34/36]

HOOKF ( void  ,
ami_menu_item_settings_edit  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 460 of file gui_menu.c.

References ami_gui_opts_open().

Here is the call graph for this function:

◆ HOOKF() [35/36]

HOOKF ( void  ,
ami_menu_item_settings_save  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 476 of file gui_menu.c.

References ami_nsoption_write().

Here is the call graph for this function:

◆ HOOKF() [36/36]

HOOKF ( void  ,
ami_menu_item_settings_snapshot  ,
APTR  ,
window  ,
struct IntuiMessage *   
)

Definition at line 465 of file gui_menu.c.

References ami_gui2_get_window(), and nsoption_set_int.

Here is the call graph for this function:

Variable Documentation

◆ ami_menu_check_toggled

bool ami_menu_check_toggled = false
static

Definition at line 89 of file gui_menu.c.

Referenced by ami_gui_menu_get_check_toggled(), and ami_gui_menu_set_check_toggled().

◆ menu_quit

bool menu_quit = false
static

Definition at line 90 of file gui_menu.c.

Referenced by ami_gui_menu_quit_selected(), and HOOKF().

◆ netsurf_version

const char* const netsurf_version

◆ verdate

const char* const verdate

Definition at line 93 of file gui_menu.c.

Referenced by HOOKF().