NetSurf
Functions | Variables
hotlist.c File Reference
#include <ctype.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "utils/log.h"
#include "utils/messages.h"
#include "utils/nsoption.h"
#include "utils/nsurl.h"
#include "netsurf/inttypes.h"
#include "netsurf/keypress.h"
#include "content/content.h"
#include "desktop/hotlist.h"
#include "atari/gui.h"
#include "atari/misc.h"
#include "atari/treeview.h"
#include "atari/hotlist.h"
#include "atari/findfile.h"
#include "atari/gemtk/gemtk.h"
#include "atari/res/netsurf.rsh"
Include dependency graph for hotlist.c:

Go to the source code of this file.

Functions

static nserror atari_hotlist_init_phase2 (struct core_window *cw)
 
static void atari_hotlist_finish (struct core_window *cw)
 
static void atari_hotlist_keypress (struct core_window *cw, uint32_t ucs4)
 
static void atari_hotlist_mouse_action (struct core_window *cw, browser_mouse_state mouse, int x, int y)
 
static void atari_hotlist_draw (struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
 
static short handle_event (GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
 
void atari_hotlist_init (void)
 
void atari_hotlist_open (void)
 
void atari_hotlist_close (void)
 
void atari_hotlist_destroy (void)
 
void atari_hotlist_redraw (void)
 
void atari_hotlist_add_page (const char *url, const char *title)
 

Variables

GRECT desk_area
 
const char * tree_hotlist_path
 
struct atari_hotlist hl
 
static struct atari_treeview_callbacks atari_hotlist_treeview_callbacks
 

Function Documentation

◆ atari_hotlist_add_page()

void atari_hotlist_add_page ( const char *  url,
const char *  title 
)

Definition at line 288 of file hotlist.c.

References atari_hotlist_open(), hl, hotlist_add_entry(), hotlist_has_url(), NSERROR_OK, NSLOG, nsurl_create(), nsurl_unref(), and atari_hotlist::tv.

Referenced by handle_event(), and menu_add_bookmark().

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

◆ atari_hotlist_close()

void atari_hotlist_close ( void  )

Definition at line 258 of file hotlist.c.

References atari_treeview_close(), hl, and atari_hotlist::tv.

Referenced by atari_hotlist_destroy(), and handle_event().

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

◆ atari_hotlist_destroy()

void atari_hotlist_destroy ( void  )

Definition at line 263 of file hotlist.c.

References atari_hotlist_close(), atari_treeview_delete(), atari_treeview_is_open(), hl, atari_hotlist::init, NSLOG, atari_hotlist::tv, and atari_hotlist::window.

Referenced by gui_quit().

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

◆ atari_hotlist_draw()

static void atari_hotlist_draw ( struct core_window *  cw,
int  x,
int  y,
struct rect clip,
const struct redraw_context ctx 
)
static

Definition at line 83 of file hotlist.c.

References clip(), and hotlist_redraw().

Here is the call graph for this function:

◆ atari_hotlist_finish()

static void atari_hotlist_finish ( struct core_window *  cw)
static

Definition at line 77 of file hotlist.c.

References hotlist_fini(), and NSLOG.

Here is the call graph for this function:

◆ atari_hotlist_init()

void atari_hotlist_init ( void  )

Definition at line 190 of file hotlist.c.

References atari_find_resource(), atari_hotlist_treeview_callbacks, atari_treeview_create(), ATARI_TREEVIEW_WIDGETS, desk_area, hl, hotlist_init(), atari_hotlist::init, messages_get(), NSLOG, nsoption_charp, atari_hotlist::path, PATH_MAX, tree_hotlist_path, atari_hotlist::tv, and atari_hotlist::window.

Referenced by gui_init().

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

◆ atari_hotlist_init_phase2()

static nserror atari_hotlist_init_phase2 ( struct core_window *  cw)
static

Definition at line 71 of file hotlist.c.

References hotlist_manager_init(), and NSLOG.

Here is the call graph for this function:

◆ atari_hotlist_keypress()

static void atari_hotlist_keypress ( struct core_window *  cw,
uint32_t  ucs4 
)
static

Definition at line 90 of file hotlist.c.

References hotlist_keypress(), and NSLOG.

Here is the call graph for this function:

◆ atari_hotlist_mouse_action()

static void atari_hotlist_mouse_action ( struct core_window *  cw,
browser_mouse_state  mouse,
int  x,
int  y 
)
static

Definition at line 101 of file hotlist.c.

References hotlist_mouse_action(), and NSLOG.

Here is the call graph for this function:

◆ atari_hotlist_open()

void atari_hotlist_open ( void  )

Definition at line 237 of file hotlist.c.

References atari_treeview_is_open(), atari_treeview_open(), desk_area, hl, atari_hotlist::init, atari_hotlist::tv, and atari_hotlist::window.

Referenced by atari_hotlist_add_page(), and menu_bookmarks().

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

◆ atari_hotlist_redraw()

void atari_hotlist_redraw ( void  )

Definition at line 281 of file hotlist.c.

References atari_treeview_redraw(), hl, and atari_hotlist::tv.

Here is the call graph for this function:

◆ handle_event()

static short handle_event ( GUIWIN *  win,
EVMULT_OUT *  ev_out,
short  msg[8] 
)
static

Definition at line 112 of file hotlist.c.

References atari_hotlist_add_page(), atari_hotlist_close(), atari_treeview_get_gemtk_window(), atari_treeview_get_grect(), gui_window::browser, gui_get_input_window(), gui_window_get_title(), gui_window_get_url(), hotlist_add_folder(), hotlist_edit_selection(), hotlist_keypress(), NS_KEY_DELETE_LEFT, NSLOG, gui_window::toolbar, and TREEVIEW_AREA_TOOLBAR.

Here is the call graph for this function:

Variable Documentation

◆ atari_hotlist_treeview_callbacks

struct atari_treeview_callbacks atari_hotlist_treeview_callbacks
static
Initial value:
= {
.init_phase2 = atari_hotlist_init_phase2,
.mouse_action = atari_hotlist_mouse_action,
.gemtk_user_func = handle_event
}
static void atari_hotlist_finish(struct core_window *cw)
Definition: hotlist.c:77
static nserror atari_hotlist_init_phase2(struct core_window *cw)
Definition: hotlist.c:71
static short handle_event(GUIWIN *win, EVMULT_OUT *ev_out, short msg[8])
Definition: hotlist.c:112
static void atari_hotlist_mouse_action(struct core_window *cw, browser_mouse_state mouse, int x, int y)
Definition: hotlist.c:101
static void atari_hotlist_keypress(struct core_window *cw, uint32_t ucs4)
Definition: hotlist.c:90
static void atari_hotlist_draw(struct core_window *cw, int x, int y, struct rect *clip, const struct redraw_context *ctx)
Definition: hotlist.c:83

Definition at line 62 of file hotlist.c.

Referenced by atari_hotlist_init().

◆ desk_area

GRECT desk_area
extern

Definition at line 79 of file gui.c.

Referenced by atari_hotlist_init(), and atari_hotlist_open().

◆ hl

struct atari_hotlist hl

◆ tree_hotlist_path

const char* tree_hotlist_path

Definition at line 45 of file hotlist.c.

Referenced by atari_hotlist_init().