summaryrefslogtreecommitdiff
path: root/riscos/gui.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/gui.h')
-rw-r--r--riscos/gui.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/riscos/gui.h b/riscos/gui.h
index 2758272da..9f1f60e39 100644
--- a/riscos/gui.h
+++ b/riscos/gui.h
@@ -23,9 +23,10 @@ extern wimp_menu *current_menu, *iconbar_menu, *browser_menu,
extern int current_menu_x, current_menu_y, iconbar_menu_height;
extern struct gui_gadget *current_gadget;
extern const char *HOME_URL;
+extern gui_window *window_list;
-struct ro_gui_window
+struct gui_window
{
gui_window_type type;
@@ -36,6 +37,13 @@ struct ro_gui_window
int toolbar_width;
struct browser_window* bw;
} browser;
+ struct {
+ wimp_w window;
+ struct content *content;
+ bits file_type;
+ char sprite_name[20];
+ char path[256];
+ } download;
} data;
char status[256];
@@ -51,6 +59,7 @@ struct ro_gui_window
int old_width;
};
+
/* in gui.c */
void ro_gui_copy_selection(gui_window* g);
@@ -67,6 +76,9 @@ void ro_gui_dialog_close(wimp_w close);
void ro_gui_redraw_config_th(wimp_draw* redraw);
void ro_gui_theme_menu_selection(char *theme);
+/* in download.c */
+void ro_gui_download_init(void);
+
/* icon numbers */
#define ICON_CONFIG_SAVE 0
#define ICON_CONFIG_CANCEL 1
@@ -100,4 +112,10 @@ void ro_gui_theme_menu_selection(char *theme);
#define ICON_CONFIG_TH_GET 8
#define ICON_CONFIG_TH_MANAGE 9
+#define ICON_DOWNLOAD_URL 0
+#define ICON_DOWNLOAD_STATUS 1
+#define ICON_DOWNLOAD_ICON 2
+#define ICON_DOWNLOAD_PATH 3
+#define ICON_DOWNLOAD_ABORT 4
+
#endif