mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-10 21:12:01 +03:00
[project @ 2004-07-03 17:30:27 by rjw]
Further development of the selection and display code. svn path=/import/netsurf/; revision=1042
This commit is contained in:
parent
7212736a62
commit
c499ad907d
@ -68,6 +68,12 @@ HelpAbout:About NetSurf
|
||||
|
||||
Themes:Themes
|
||||
|
||||
# Hotlist window
|
||||
HotlistURL:Address: %s
|
||||
HotlistAdd:Added: %s
|
||||
HotlistLast:Last visited: %s
|
||||
HotlistVisits:Visits: %i
|
||||
|
||||
# Download window
|
||||
Download:%s of %s <20> %s/s <20> %s remaining
|
||||
DownloadU:%s of unknown <20> %s/s <20> %s total
|
||||
|
@ -68,6 +68,12 @@ HelpAbout:
|
||||
|
||||
Themes:Thèmes
|
||||
|
||||
# Hotlist window
|
||||
HotlistURL:Address: %s
|
||||
HotlistAdd:Added: %s
|
||||
HotlistLast:Last visited: %s
|
||||
HotlistVisits:Visits: %i
|
||||
|
||||
# Download window
|
||||
Download:%s of %s <20> %s/s <20> %s remaining
|
||||
DownloadU:%s of unknown <20> %s/s <20> %s total
|
||||
|
@ -240,6 +240,7 @@ void browser_window_callback(content_msg msg, struct content *c,
|
||||
browser_window_set_status(bw, status);
|
||||
browser_window_stop_throbber(bw);
|
||||
history_update(bw->history, c);
|
||||
hotlist_visited(c);
|
||||
break;
|
||||
|
||||
case CONTENT_MSG_ERROR:
|
||||
|
@ -107,6 +107,9 @@ void gui_redraw_gadget(struct browser_window* bw, struct form_control* g);
|
||||
|
||||
bool browser_window_key_press(struct browser_window *bw, char key);
|
||||
|
||||
/* In platform specific hotlist.c. */
|
||||
void hotlist_visited(struct content *content);
|
||||
|
||||
/* In platform specific history.c. */
|
||||
struct history *history_create(void);
|
||||
void history_add(struct history *history, struct content *content);
|
||||
|
@ -751,7 +751,14 @@ void ro_gui_drag_end(wimp_dragged *drag)
|
||||
break;
|
||||
|
||||
case GUI_DRAG_STATUS_RESIZE:
|
||||
// ro_gui_save_drag_end(drag);
|
||||
break;
|
||||
|
||||
case GUI_DRAG_HOTLIST_SELECT:
|
||||
ro_gui_hotlist_selection_drag_end(drag);
|
||||
break;
|
||||
|
||||
case GUI_DRAG_HOTLIST_MOVE:
|
||||
ro_gui_hotlist_move_drag_end(drag);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,8 @@ typedef enum { GUI_SAVE_SOURCE, GUI_SAVE_DRAW, GUI_SAVE_TEXT,
|
||||
GUI_SAVE_LINK_TEXT } gui_save_type;
|
||||
extern gui_save_type gui_current_save_type;
|
||||
typedef enum { GUI_DRAG_SELECTION, GUI_DRAG_DOWNLOAD_SAVE,
|
||||
GUI_DRAG_SAVE, GUI_DRAG_STATUS_RESIZE } gui_drag_type;
|
||||
GUI_DRAG_SAVE, GUI_DRAG_STATUS_RESIZE,
|
||||
GUI_DRAG_HOTLIST_SELECT, GUI_DRAG_HOTLIST_MOVE } gui_drag_type;
|
||||
extern gui_drag_type gui_current_drag_type;
|
||||
|
||||
struct gui_window {
|
||||
@ -178,9 +179,10 @@ void ro_gui_history_mouse_at(wimp_pointer *pointer);
|
||||
void ro_gui_hotlist_init(void);
|
||||
void ro_gui_hotlist_show(void);
|
||||
void ro_gui_hotlist_add(char *title, struct content *content);
|
||||
void ro_gui_hotlist_visited(struct content *content);
|
||||
void ro_gui_hotlist_redraw(wimp_draw *redraw);
|
||||
void ro_gui_hotlist_click(wimp_pointer *pointer);
|
||||
void ro_gui_hotlist_selection_drag_end(wimp_dragged *drag);
|
||||
void ro_gui_hotlist_move_drag_end(wimp_dragged *drag);
|
||||
|
||||
/* in save.c */
|
||||
void ro_gui_save_click(wimp_pointer *pointer);
|
||||
|
652
riscos/hotlist.c
652
riscos/hotlist.c
File diff suppressed because it is too large
Load Diff
@ -891,7 +891,6 @@ void gui_window_start_throbber(struct gui_window* g) {
|
||||
|
||||
void gui_window_stop_throbber(gui_window* g) {
|
||||
ro_gui_prepare_navigate(g);
|
||||
ro_gui_hotlist_visited(g->data.browser.bw->current_content);
|
||||
g->throbber = 0;
|
||||
sprintf(g->throb_buf, "throbber%u", g->throbber);
|
||||
ro_gui_redraw_icon(g->data.browser.toolbar->toolbar_handle, ICON_TOOLBAR_THROBBER);
|
||||
|
Loading…
Reference in New Issue
Block a user