29#include "atari/gemtk/gemtk.h"
30#include "atari/res/netsurf.rsh"
41 NSLOG(netsurf, INFO,
"cw %p", cw);
47 NSLOG(netsurf, INFO,
"cw %p", cw);
60 NSLOG(netsurf, INFO,
"ucs4: %"PRIu32, ucs4);
69 NSLOG(netsurf, INFO,
"x: %d, y: %d\n", x, y);
80static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out,
short msg[8])
84 NSLOG(netsurf, INFO,
"win %p", win);
86 if (ev_out->emo_events & MU_MESAG) {
115 OBJECT * tree = gemtk_obj_get_tree(TOOLBAR_HISTORY);
121 gemtk_msg_box_show(GEMTK_MSG_BOX_ALERT,
122 "Failed to allocate History");
125 wind_set_str(handle, WF_NAME, (
char*)
messages_get(
"History"));
137 "Failed to allocate treeview");
184 NSLOG(netsurf, INFO,
"done");
struct atari_global_history_s atari_global_history
static void atari_global_history_draw(struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
void atari_global_history_open(void)
void atari_global_history_close(void)
static void atari_global_history_keypress(struct core_window *cw, uint32_t ucs4)
static nserror atari_global_history_init_phase2(struct core_window *cw)
static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
void atari_global_history_redraw(void)
static struct atari_treeview_callbacks atari_global_history_treeview_callbacks
void atari_global_history_init(void)
void atari_global_history_destroy(void)
static void atari_global_history_finish(struct core_window *cw)
static void atari_global_history_mouse_action(struct core_window *cw, browser_mouse_state mouse, int x, int y)
nserror global_history_init(void *core_window_handle)
Initialise the global history.
nserror global_history_fini(void)
Finalise the global history.
void global_history_redraw(int x, int y, struct rect *clip, const struct redraw_context *ctx)
Redraw the global history.
bool global_history_keypress(uint32_t key)
Key press handling.
void global_history_mouse_action(browser_mouse_state mouse, int x, int y)
Handles all kinds of mouse action.
nserror
Enumeration of error codes.
void atari_treeview_delete(struct core_window *cw)
Free the Treeview, but not the gemtk window used for the treeview.
bool atari_treeview_is_open(struct core_window *cw)
Returns the window "open" state.
void atari_treeview_redraw(struct core_window *cw)
Process all pending redraw requests for a single treeview.
void atari_treeview_close(struct core_window *cw)
Closes (hides) the treeview window.
struct core_window * atari_treeview_create(GUIWIN *win, struct atari_treeview_callbacks *callbacks, void *user_data, uint32_t flags)
Initalize an window to be an treeview window.
void atari_treeview_open(struct core_window *cw, GRECT *pos)
Open the treeview window.
#define ATARI_TREEVIEW_WIDGETS
Default AES Window widgets for a treeview window, can be passed to atari_treeview_create as the flags...
Core mouse and pointer states.
browser_mouse_state
Mouse state: 1 is primary mouse button.
Netsurf additional integer type formatting macros.
#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).
atari_treeview_init2_callback init_phase2
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.