27#include <proto/intuition.h>
29#include <classes/window.h>
30#include <gadgets/button.h>
31#include <gadgets/layout.h>
32#include <gadgets/scroller.h>
33#include <gadgets/space.h>
34#include <images/label.h>
36#include <intuition/icclass.h>
37#include <reaction/reaction_macros.h>
78 if (history_local_win == NULL) {
195 ULONG refresh_mode = WA_SmartRefresh;
198 refresh_mode = WA_SimpleRefresh;
205 WA_DepthGadget, TRUE,
207 WA_CloseGadget, TRUE,
213 WA_ReportMouse, TRUE,
215 WA_IDCMP, IDCMP_MOUSEMOVE | IDCMP_MOUSEBUTTONS | IDCMP_NEWSIZE |
216 IDCMP_RAWKEY | IDCMP_GADGETUP | IDCMP_IDCMPUPDATE |
220 IDCMP_SIZEVERIFY | IDCMP_REFRESHWINDOW,
224 WINDOW_UserData, history_local_win,
226 WINDOW_MenuUserData, WGUD_HOOK,
227 WINDOW_IconifyGadget, FALSE,
228 WINDOW_Position, WPOS_CENTERSCREEN,
232 SPACE_Transparent, TRUE,
273 NSLOG(netsurf, INFO,
"SSL UI builder init failed");
nserror ami_corewindow_fini(struct ami_corewindow *ami_cw)
finalise elements of Amiga core window.
nserror ami_corewindow_init(struct ami_corewindow *ami_cw)
initialise elements of Amiga core window.
struct ami_history_local_window * ami_gui_get_history_window(struct gui_window *gw)
Get local history window from gui_window.
struct Screen * ami_gui_get_screen(void)
Get a pointer to the screen NetSurf is running on.
STRPTR ami_gui_get_screen_title(void)
Get the string for NetSurf's screen titlebar.
void ami_gui_set_history_window(struct gui_window *gw, struct ami_history_local_window *hw)
Set local history window in gui_window.
struct browser_window * ami_gui_get_browser_window(struct gui_window *gw)
Get browser window from gui_window.
struct MsgPort * ami_gui_get_shared_msgport(void)
Get shared message port.
nserror local_history_redraw(struct local_history_session *session, int x, int y, struct rect *clip, const struct redraw_context *ctx)
Redraw the local history.
nserror local_history_scroll_to_cursor(struct local_history_session *session)
Scroll the local history window to ensure the current cursor is shown.
nserror local_history_get_size(struct local_history_session *session, int *width, int *height)
get size of local history content area.
nserror local_history_set(struct local_history_session *session, struct browser_window *bw)
Change the browser window to draw local history for.
nserror local_history_fini(struct local_history_session *session)
Finalise the local history.
bool local_history_keypress(struct local_history_session *session, uint32_t key)
Key press handling.
nserror local_history_init(void *core_window_handle, struct browser_window *bw, struct local_history_session **session)
Initialise the local history.
nserror local_history_get_url(struct local_history_session *session, int x, int y, nsurl **url_out)
get url of entry at position in local history content area.
nserror local_history_mouse_action(struct local_history_session *session, enum browser_mouse_state mouse, int x, int y)
Handles all kinds of mouse action.
nserror
Enumeration of error codes.
@ NSERROR_NOT_IMPLEMENTED
Functionality is not implemented.
@ NSERROR_NOMEM
Memory exhaustion.
void ami_utf8_free(char *ptr)
char * ami_utf8_easy(const char *string)
nserror ami_history_local_destroy(struct ami_history_local_window *history_local_win)
destroy a previously created local history view
static nserror ami_history_local_mouse(struct ami_corewindow *ami_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse action for local history on core window
static void ami_history_local_destroy_cw(struct ami_corewindow *ami_cw)
static nserror ami_history_local_draw(struct ami_corewindow *ami_cw, int x, int y, struct rect *r, struct redraw_context *ctx)
callback on draw event for certificate verify on core window
static nserror ami_history_local_key(struct ami_corewindow *ami_cw, uint32_t nskey)
callback for keypress for local history on core window
nserror ami_history_local_present(struct gui_window *gw)
Open the global history viewer.
static struct ami_history_local_window * history_local_window
static nserror ami_history_local_create_window(struct ami_history_local_window *history_local_win)
browser_mouse_state
Mouse state.
Target independent plotting interface.
Interface to key press operations.
#define NSLOG(catname, level, logmsg, args...)
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
NetSurf URL handling (interface).
void nsurl_unref(nsurl *url)
Drop a reference to a NetSurf URL object.
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
struct nsurl nsurl
NetSurf URL object.
#define IDCMP_EXTENDEDMOUSE
void(* close)(struct ami_corewindow *ami_cw)
callback to close an Amiga core window
Object * objects[GID_CW_LAST]
nserror(* icon_drop)(struct ami_corewindow *ami_cw, struct nsurl *url, const char *title, int x, int y)
callback for icon drop on Amiga core window ie.
nserror(* mouse)(struct ami_corewindow *ami_cw, browser_mouse_state mouse_state, int x, int y)
callback for mouse event on Amiga core window
nserror(* draw)(struct ami_corewindow *ami_cw, int x, int y, struct rect *r, struct redraw_context *ctx)
callback to draw on drawable area of Amiga core window
nserror(* key)(struct ami_corewindow *ami_cw, uint32_t nskey)
callback for keypress on Amiga core window
BOOL(* event)(struct ami_corewindow *ami_cw, ULONG result)
callback for unknown events on Amiga core window eg.
nserror(* drag_end)(struct ami_corewindow *ami_cw, int x, int y)
callback for drag end on Amiga core window ie.
char * wintitle
window title, must be allocated wth ami_utf8 function
Amiga local history viewing window context.
struct gui_window * gw
Amiga GUI stuff.
struct ami_corewindow core
Amiga core window context.
struct local_history_session * session
local history viewer context data
first entry in window list
local history viewer context
Option reading and saving interface.
#define nsoption_bool(OPTION)
Get the value of a boolean option.