summaryrefslogtreecommitdiff
path: root/riscos/gui.h
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2004-12-09 10:30:44 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2004-12-09 10:30:44 +0000
commit32db7e04d0c3bd255b2e8aa7dbd7c2b884b35614 (patch)
tree312984b2b972916fd10e1efc338d08e437d55b70 /riscos/gui.h
parent77a96712244ad4a8b4bde235aa051372a64a8789 (diff)
downloadnetsurf-32db7e04d0c3bd255b2e8aa7dbd7c2b884b35614.tar.gz
netsurf-32db7e04d0c3bd255b2e8aa7dbd7c2b884b35614.tar.bz2
[project @ 2004-12-09 10:30:43 by rjw]
Re-implementation of hotlist via general tree code. Animations can be stopped once more. Purged a few xcalloc() calls. svn path=/import/netsurf/; revision=1394
Diffstat (limited to 'riscos/gui.h')
-rw-r--r--riscos/gui.h24
1 files changed, 7 insertions, 17 deletions
diff --git a/riscos/gui.h b/riscos/gui.h
index c4d55f29a..bf5db9b85 100644
--- a/riscos/gui.h
+++ b/riscos/gui.h
@@ -19,6 +19,7 @@
#include "netsurf/desktop/netsurf.h"
#include "netsurf/desktop/gui.h"
#include "netsurf/desktop/options.h"
+#include "netsurf/desktop/tree.h"
#define THEMES_DIR "<NetSurf$Dir>.Themes"
@@ -31,7 +32,6 @@ extern wimp_w dialog_info, dialog_saveas, dialog_config, dialog_config_br,
dialog_config_th_pane, dialog_debug, dialog_folder, dialog_entry,
dialog_search, dialog_print, dialog_config_font;
extern wimp_w history_window;
-extern wimp_w hotlist_window;
extern wimp_menu *iconbar_menu, *browser_menu, *combo_menu, *hotlist_menu,
*proxyauth_menu, *languages_menu, *toolbar_menu,
*image_quality_menu;
@@ -44,6 +44,7 @@ extern osspriteop_area *gui_sprites;
extern struct toolbar *hotlist_toolbar;
extern bool dialog_folder_add, dialog_entry_add, hotlist_insert;
extern bool print_active, print_text_black;
+extern struct tree *hotlist_tree;
typedef enum {
GUI_SAVE_SOURCE,
@@ -60,7 +61,7 @@ typedef enum {
typedef enum { GUI_DRAG_SELECTION, GUI_DRAG_DOWNLOAD_SAVE,
GUI_DRAG_SAVE, GUI_DRAG_STATUS_RESIZE,
- GUI_DRAG_HOTLIST_SELECT, GUI_DRAG_HOTLIST_MOVE } gui_drag_type;
+ GUI_DRAG_TREE_SELECT, GUI_DRAG_TREE_MOVE } gui_drag_type;
extern gui_drag_type gui_current_drag_type;
@@ -86,7 +87,6 @@ struct gui_window {
/** Options. */
struct {
float scale; /**< Scale, 1.0 = 100%. */
- bool animate_images; /**< Animations should run. */
bool background_images; /**< Display background images. */
bool background_blending; /**< Perform background blending on text. */
bool buffer_animations; /**< Use screen buffering for animations. */
@@ -203,26 +203,16 @@ void ro_gui_history_click(wimp_pointer *pointer);
void ro_gui_history_mouse_at(wimp_pointer *pointer);
/* in hotlist.c */
-void ro_gui_hotlist_init(void);
+void ro_gui_hotlist_initialise(void);
void ro_gui_hotlist_save(void);
void ro_gui_hotlist_show(void);
-void ro_gui_hotlist_add(char *title, 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);
bool ro_gui_hotlist_keypress(int key);
-void ro_gui_hotlist_menu_closed(void);
void ro_gui_hotlist_toolbar_click(wimp_pointer* pointer);
-int ro_gui_hotlist_get_selected(bool folders);
-void ro_gui_hotlist_reset_statistics(void);
-void ro_gui_hotlist_set_selected(bool selected);
-void ro_gui_hotlist_set_expanded(bool expand, bool folders, bool links);
-void ro_gui_hotlist_delete_selected(void);
-void ro_gui_hotlist_save_as(const char *file);
-void ro_gui_hotlist_prepare_folder_dialog(bool selected);
-void ro_gui_hotlist_prepare_entry_dialog(bool selected);
+void ro_gui_hotlist_prepare_folder_dialog(struct node *node);
+void ro_gui_hotlist_prepare_entry_dialog(struct node *node);
void ro_gui_hotlist_dialog_click(wimp_pointer *pointer);
+void ro_gui_hotlist_menu_closed(void);
int ro_gui_hotlist_help(int x, int y);
/* in save.c */