NetSurf
|
#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"
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 |
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().
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().
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().
|
static |
Definition at line 83 of file hotlist.c.
References clip(), and hotlist_redraw().
|
static |
Definition at line 77 of file hotlist.c.
References hotlist_fini(), and NSLOG.
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().
|
static |
Definition at line 71 of file hotlist.c.
References hotlist_manager_init(), and NSLOG.
|
static |
Definition at line 90 of file hotlist.c.
References hotlist_keypress(), and NSLOG.
|
static |
Definition at line 101 of file hotlist.c.
References hotlist_mouse_action(), and NSLOG.
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().
void atari_hotlist_redraw | ( | void | ) |
Definition at line 281 of file hotlist.c.
References atari_treeview_redraw(), hl, and atari_hotlist::tv.
|
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.
|
static |
Definition at line 62 of file hotlist.c.
Referenced by atari_hotlist_init().
|
extern |
Definition at line 79 of file gui.c.
Referenced by atari_hotlist_init(), and atari_hotlist_open().
struct atari_hotlist hl |
Definition at line 47 of file hotlist.c.
Referenced by atari_hotlist_add_page(), atari_hotlist_close(), atari_hotlist_destroy(), atari_hotlist_init(), atari_hotlist_open(), atari_hotlist_redraw(), and html_set_file_gadget_filename().
const char* tree_hotlist_path |
Definition at line 45 of file hotlist.c.
Referenced by atari_hotlist_init().