2003-07-30 17:06:22 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
|
|
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_GUI_H_
|
|
|
|
#define _NETSURF_RISCOS_GUI_H_
|
|
|
|
|
2003-08-22 01:39:07 +04:00
|
|
|
#include "oslib/wimp.h"
|
2003-07-30 17:06:22 +04:00
|
|
|
#include "netsurf/desktop/browser.h"
|
2003-08-22 01:39:07 +04:00
|
|
|
#include "netsurf/desktop/netsurf.h"
|
2003-07-30 17:06:22 +04:00
|
|
|
#include "netsurf/desktop/gui.h"
|
2003-08-27 02:37:32 +04:00
|
|
|
#include "netsurf/desktop/options.h"
|
2003-08-22 01:39:07 +04:00
|
|
|
|
2003-08-27 02:37:32 +04:00
|
|
|
#define THEMES_DIR "<NetSurf$Dir>.Themes"
|
|
|
|
|
|
|
|
extern wimp_w dialog_info, dialog_saveas, dialog_config, dialog_config_br,
|
|
|
|
dialog_config_prox, dialog_config_th;
|
2003-08-22 01:39:07 +04:00
|
|
|
extern wimp_menu *current_menu, *iconbar_menu, *browser_menu,
|
|
|
|
*combo_menu, *theme_menu;
|
|
|
|
extern int current_menu_x, current_menu_y, iconbar_menu_height;
|
|
|
|
extern struct gui_gadget *current_gadget;
|
|
|
|
extern const char *HOME_URL;
|
2003-07-30 17:06:22 +04:00
|
|
|
|
2003-08-27 02:37:32 +04:00
|
|
|
|
2003-07-30 17:06:22 +04:00
|
|
|
struct ro_gui_window
|
|
|
|
{
|
|
|
|
gui_window_type type;
|
|
|
|
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
wimp_w window;
|
|
|
|
wimp_w toolbar;
|
|
|
|
int toolbar_width;
|
|
|
|
struct browser_window* bw;
|
|
|
|
} browser;
|
|
|
|
} data;
|
|
|
|
|
|
|
|
char status[256];
|
|
|
|
char title[256];
|
|
|
|
char url[256];
|
|
|
|
gui_window* next;
|
|
|
|
|
|
|
|
int throbber;
|
|
|
|
float throbtime;
|
|
|
|
|
|
|
|
gui_safety redraw_safety;
|
|
|
|
enum { drag_NONE, drag_UNKNOWN, drag_BROWSER_TEXT_SELECTION } drag_status;
|
|
|
|
int old_width;
|
|
|
|
};
|
|
|
|
|
2003-08-22 01:39:07 +04:00
|
|
|
/* in gui.c */
|
|
|
|
void ro_gui_copy_selection(gui_window* g);
|
|
|
|
|
|
|
|
/* in menus.c */
|
|
|
|
void ro_gui_menus_init(void);
|
|
|
|
void ro_gui_create_menu(wimp_menu* menu, int x, int y, gui_window* g);
|
|
|
|
void ro_gui_menu_selection(wimp_selection* selection);
|
|
|
|
|
2003-08-27 02:37:32 +04:00
|
|
|
/* in dialog.c */
|
|
|
|
void ro_gui_dialog_init(void);
|
2003-08-28 00:09:57 +04:00
|
|
|
void ro_gui_dialog_open(wimp_w w);
|
2003-08-27 02:37:32 +04:00
|
|
|
void ro_gui_dialog_click(wimp_pointer *pointer);
|
|
|
|
void ro_gui_dialog_close(wimp_w close);
|
2003-08-28 00:09:57 +04:00
|
|
|
void ro_gui_redraw_config_th(wimp_draw* redraw);
|
|
|
|
void ro_gui_theme_menu_selection(char *theme);
|
2003-08-27 02:37:32 +04:00
|
|
|
|
|
|
|
/* icon numbers */
|
|
|
|
#define ICON_CONFIG_SAVE 0
|
|
|
|
#define ICON_CONFIG_CANCEL 1
|
|
|
|
#define ICON_CONFIG_BROWSER 2
|
|
|
|
#define ICON_CONFIG_PROXY 3
|
|
|
|
#define ICON_CONFIG_THEME 4
|
|
|
|
|
|
|
|
#define ICON_CONFIG_BR_OK 0
|
|
|
|
#define ICON_CONFIG_BR_CANCEL 1
|
|
|
|
#define ICON_CONFIG_BR_EXPLAIN 2
|
|
|
|
#define ICON_CONFIG_BR_DEFAULT 3
|
|
|
|
#define ICON_CONFIG_BR_FORM 4
|
|
|
|
#define ICON_CONFIG_BR_GESTURES 5
|
|
|
|
#define ICON_CONFIG_BR_TEXT 6
|
|
|
|
#define ICON_CONFIG_BR_TOOLBAR 7
|
|
|
|
#define ICON_CONFIG_BR_PREVIEW 8
|
|
|
|
|
|
|
|
#define ICON_CONFIG_PROX_OK 0
|
|
|
|
#define ICON_CONFIG_PROX_CANCEL 1
|
|
|
|
#define ICON_CONFIG_PROX_DEFAULT 2
|
|
|
|
#define ICON_CONFIG_PROX_HTTP 3
|
|
|
|
#define ICON_CONFIG_PROX_HTTPHOST 4
|
|
|
|
#define ICON_CONFIG_PROX_HTTPPORT 5
|
|
|
|
|
|
|
|
#define ICON_CONFIG_TH_OK 0
|
|
|
|
#define ICON_CONFIG_TH_CANCEL 1
|
|
|
|
#define ICON_CONFIG_TH_DEFAULT 2
|
|
|
|
#define ICON_CONFIG_TH_NAME 4
|
|
|
|
#define ICON_CONFIG_TH_PICK 5
|
|
|
|
#define ICON_CONFIG_TH_PREVIEW 7
|
|
|
|
#define ICON_CONFIG_TH_GET 8
|
|
|
|
#define ICON_CONFIG_TH_MANAGE 9
|
|
|
|
|
2003-07-30 17:06:22 +04:00
|
|
|
#endif
|