From 59d45715cded1f4fbb49f9d70d53c24ef3b6bca2 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 23 Aug 2008 16:17:51 +0000 Subject: Basic download window svn path=/trunk/netsurf/; revision=5185 --- amiga/gui.h | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'amiga/gui.h') diff --git a/amiga/gui.h b/amiga/gui.h index 8f1329999..a138cda6d 100755 --- a/amiga/gui.h +++ b/amiga/gui.h @@ -22,6 +22,7 @@ #include "amiga/object.h" #include #include "desktop/browser.h" +#include void ami_get_msg(void); @@ -40,12 +41,6 @@ enum GID_LAST }; -enum -{ - WID_MAIN=0, - WID_LAST -}; - enum { OID_MAIN=0, @@ -55,23 +50,39 @@ enum OID_LAST }; +struct gui_download_window { + struct Window *win; + Object *objects[OID_LAST]; + struct Gadget *gadgets[GID_LAST]; + struct nsObject *node; + bool pad; + BPTR fh; + uint32 size; + uint32 downloaded; +}; + struct gui_window { struct Window *win; - struct browser_window *bw; - struct BitMap *bm; - struct RastPort rp; Object *objects[OID_LAST]; struct Gadget *gadgets[GID_LAST]; struct nsObject *node; + bool redraw_required; + struct browser_window *bw; + struct BitMap *bm; + struct RastPort rp; struct Hook scrollerhook; struct Hook popuphook; struct form_control *control; - bool redraw_required; union content_msg_data *redraw_data; browser_mouse_state mouse_state; + int c_x; + int c_y; + int c_h; }; //struct gui_window *curwin; struct RastPort *currp; struct TextFont *origrpfont; +struct Layer *layer; +struct Layer_Info *layerinfo; #endif -- cgit v1.2.3