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>
|
2004-02-13 19:09:12 +03:00
|
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
2004-07-25 23:25:26 +04:00
|
|
|
* Copyright 2004 Andrew Timmins <atimmins@blueyonder.co.uk>
|
2003-07-30 17:06:22 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_GUI_H_
|
|
|
|
#define _NETSURF_RISCOS_GUI_H_
|
|
|
|
|
2003-09-11 01:44:11 +04:00
|
|
|
#include <stdbool.h>
|
2004-08-14 16:57:02 +04:00
|
|
|
#include <stdlib.h>
|
2004-05-08 22:12:36 +04:00
|
|
|
#include "oslib/osspriteop.h"
|
2003-08-22 01:39:07 +04:00
|
|
|
#include "oslib/wimp.h"
|
2004-01-05 05:10:59 +03:00
|
|
|
#include "netsurf/utils/config.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"
|
2004-12-09 13:30:44 +03:00
|
|
|
#include "netsurf/desktop/tree.h"
|
2003-08-22 01:39:07 +04:00
|
|
|
|
2005-01-23 19:09:05 +03:00
|
|
|
extern const char * NETSURF_DIR;
|
2003-08-27 02:37:32 +04:00
|
|
|
|
2004-07-17 17:00:38 +04:00
|
|
|
struct toolbar;
|
2004-10-18 01:16:00 +04:00
|
|
|
struct plotter_table;
|
2004-07-17 17:00:38 +04:00
|
|
|
|
2003-08-27 02:37:32 +04:00
|
|
|
extern wimp_w dialog_info, dialog_saveas, dialog_config, dialog_config_br,
|
2004-04-13 01:46:08 +04:00
|
|
|
dialog_config_prox, dialog_config_th, dialog_zoom, dialog_pageinfo,
|
2004-09-14 03:56:18 +04:00
|
|
|
dialog_objinfo, dialog_tooltip, dialog_warning,
|
|
|
|
dialog_config_th_pane, dialog_debug, dialog_folder, dialog_entry,
|
2005-02-03 16:18:22 +03:00
|
|
|
dialog_search, dialog_print, dialog_config_font, dialog_theme_install,
|
|
|
|
dialog_url_complete;
|
2003-11-15 03:26:42 +03:00
|
|
|
extern wimp_w history_window;
|
2004-07-27 19:49:28 +04:00
|
|
|
extern wimp_menu *iconbar_menu, *browser_menu, *combo_menu, *hotlist_menu,
|
2004-11-03 02:23:07 +03:00
|
|
|
*proxyauth_menu, *languages_menu, *toolbar_menu,
|
2005-02-25 01:00:41 +03:00
|
|
|
*image_quality_menu, *global_history_menu, *url_suggest_menu,
|
|
|
|
*font_menu;
|
2004-02-25 18:12:58 +03:00
|
|
|
extern int iconbar_menu_height;
|
2003-10-25 04:35:49 +04:00
|
|
|
extern struct form_control *current_gadget;
|
2003-11-08 02:51:13 +03:00
|
|
|
extern bool gui_reformat_pending;
|
2004-02-02 03:22:59 +03:00
|
|
|
extern bool gui_redraw_debug;
|
2004-05-12 03:40:07 +04:00
|
|
|
extern wimp_menu *current_menu;
|
2004-06-30 03:13:40 +04:00
|
|
|
extern osspriteop_area *gui_sprites;
|
2004-07-09 02:05:35 +04:00
|
|
|
extern bool dialog_folder_add, dialog_entry_add, hotlist_insert;
|
2004-08-19 05:01:31 +04:00
|
|
|
extern bool print_active, print_text_black;
|
2005-02-07 17:28:43 +03:00
|
|
|
extern struct tree *hotlist_tree, *global_history_tree;
|
2004-02-25 18:12:58 +03:00
|
|
|
|
2004-07-11 17:05:38 +04:00
|
|
|
typedef enum {
|
|
|
|
GUI_SAVE_SOURCE,
|
|
|
|
GUI_SAVE_DRAW,
|
|
|
|
GUI_SAVE_TEXT,
|
|
|
|
GUI_SAVE_COMPLETE,
|
|
|
|
GUI_SAVE_OBJECT_ORIG,
|
|
|
|
GUI_SAVE_OBJECT_NATIVE,
|
|
|
|
GUI_SAVE_LINK_URI,
|
|
|
|
GUI_SAVE_LINK_URL,
|
|
|
|
GUI_SAVE_LINK_TEXT,
|
|
|
|
GUI_SAVE_HOTLIST_EXPORT_HTML,
|
2005-02-07 17:28:43 +03:00
|
|
|
GUI_SAVE_HISTORY_EXPORT_HTML,
|
2004-07-11 17:05:38 +04:00
|
|
|
} gui_save_type;
|
|
|
|
|
2004-02-26 03:44:42 +03:00
|
|
|
typedef enum { GUI_DRAG_SELECTION, GUI_DRAG_DOWNLOAD_SAVE,
|
2004-07-03 21:30:28 +04:00
|
|
|
GUI_DRAG_SAVE, GUI_DRAG_STATUS_RESIZE,
|
2005-03-20 22:28:50 +03:00
|
|
|
GUI_DRAG_TREE_SELECT, GUI_DRAG_TREE_MOVE,
|
|
|
|
GUI_DRAG_TOOLBAR_CONFIG } gui_drag_type;
|
2004-02-26 03:44:42 +03:00
|
|
|
extern gui_drag_type gui_current_drag_type;
|
2003-07-30 17:06:22 +04:00
|
|
|
|
2004-07-17 17:00:38 +04:00
|
|
|
|
|
|
|
/** RISC OS data for a browser window. */
|
2004-06-28 03:24:11 +04:00
|
|
|
struct gui_window {
|
2004-07-17 17:00:38 +04:00
|
|
|
/** Associated platform-independent browser window data. */
|
|
|
|
struct browser_window *bw;
|
|
|
|
|
|
|
|
struct toolbar *toolbar; /**< Toolbar, or 0 if not present. */
|
|
|
|
|
|
|
|
wimp_w window; /**< RISC OS window handle. */
|
|
|
|
|
|
|
|
/** Window has been resized, and content needs reformatting. */
|
|
|
|
bool reformat_pending;
|
|
|
|
int old_width; /**< Width when last opened / os units. */
|
|
|
|
int old_height; /**< Height when last opened / os units. */
|
|
|
|
|
|
|
|
char title[256]; /**< Buffer for window title. */
|
|
|
|
|
|
|
|
int throbber; /**< Current frame of throbber animation. */
|
|
|
|
int throbtime; /**< Time of last throbber frame. */
|
|
|
|
|
|
|
|
/** Options. */
|
|
|
|
struct {
|
|
|
|
float scale; /**< Scale, 1.0 = 100%. */
|
|
|
|
bool background_images; /**< Display background images. */
|
2004-07-21 00:02:59 +04:00
|
|
|
bool background_blending; /**< Perform background blending on text. */
|
|
|
|
bool buffer_animations; /**< Use screen buffering for animations. */
|
|
|
|
bool buffer_everything; /**< Use screen buffering for everything. */
|
2004-07-17 17:00:38 +04:00
|
|
|
} option;
|
|
|
|
|
|
|
|
struct gui_window *prev; /**< Previous in linked list. */
|
|
|
|
struct gui_window *next; /**< Next in linked list. */
|
2003-07-30 17:06:22 +04:00
|
|
|
};
|
|
|
|
|
2003-10-01 04:26:42 +04:00
|
|
|
|
2004-10-05 03:54:42 +04:00
|
|
|
extern struct toolbar *current_toolbar;
|
2004-07-17 17:00:38 +04:00
|
|
|
extern struct gui_window *current_gui;
|
|
|
|
extern struct gui_window *ro_gui_current_redraw_gui;
|
2004-08-07 03:45:21 +04:00
|
|
|
extern struct gui_window *ro_gui_current_zoom_gui;
|
2004-07-17 17:00:38 +04:00
|
|
|
|
|
|
|
|
2003-08-22 01:39:07 +04:00
|
|
|
/* in gui.c */
|
2005-03-20 17:57:51 +03:00
|
|
|
void ro_gui_open_window_request(wimp_open *open);
|
2004-05-25 14:42:28 +04:00
|
|
|
void ro_gui_open_help_page(const char *page);
|
2003-11-08 02:51:13 +03:00
|
|
|
void ro_gui_screen_size(int *width, int *height);
|
2003-12-11 04:23:57 +03:00
|
|
|
void ro_gui_view_source(struct content *content);
|
2003-12-27 03:11:57 +03:00
|
|
|
void ro_gui_drag_box_start(wimp_pointer *pointer);
|
2003-08-22 01:39:07 +04:00
|
|
|
|
|
|
|
/* in menus.c */
|
|
|
|
void ro_gui_menus_init(void);
|
2005-02-07 17:28:43 +03:00
|
|
|
bool ro_gui_menu_prepare_url_suggest(void);
|
2004-07-17 17:00:38 +04:00
|
|
|
void ro_gui_create_menu(wimp_menu* menu, int x, int y, struct gui_window *g);
|
2003-12-19 03:40:28 +03:00
|
|
|
void ro_gui_popup_menu(wimp_menu *menu, wimp_w w, wimp_i i);
|
2003-08-22 01:39:07 +04:00
|
|
|
void ro_gui_menu_selection(wimp_selection* selection);
|
2004-02-26 03:44:42 +03:00
|
|
|
void ro_gui_menu_warning(wimp_message_menu_warning *warning);
|
2004-07-17 17:00:38 +04:00
|
|
|
void ro_gui_prepare_navigate(struct gui_window *gui);
|
2004-11-03 02:23:07 +03:00
|
|
|
void ro_gui_menu_prepare_image_quality(unsigned int tinct_options);
|
2004-05-05 02:23:44 +04:00
|
|
|
void ro_gui_menu_prepare_scale(void);
|
2004-07-08 21:28:56 +04:00
|
|
|
void ro_gui_menu_prepare_pageinfo(void);
|
2005-02-07 17:28:43 +03:00
|
|
|
void ro_gui_menu_prepare_hotlist(void);
|
|
|
|
void ro_gui_menu_prepare_global_history(void);
|
2004-09-14 03:56:18 +04:00
|
|
|
void ro_gui_display_font_menu(const char *tick, wimp_w w, wimp_i i);
|
2003-08-22 01:39:07 +04:00
|
|
|
|
2003-08-27 02:37:32 +04:00
|
|
|
/* in dialog.c */
|
|
|
|
void ro_gui_dialog_init(void);
|
2003-11-15 03:26:42 +03:00
|
|
|
wimp_w ro_gui_dialog_create(const char *template_name);
|
2004-05-09 00:44:00 +04:00
|
|
|
wimp_window * ro_gui_dialog_load_template(const char *template_name);
|
2003-08-28 00:09:57 +04:00
|
|
|
void ro_gui_dialog_open(wimp_w w);
|
2004-07-16 20:33:45 +04:00
|
|
|
void ro_gui_dialog_open_persistant(wimp_w parent, wimp_w w, bool pointer);
|
2004-07-08 21:28:56 +04:00
|
|
|
void ro_gui_dialog_close_persistant(wimp_w parent);
|
2003-08-27 02:37:32 +04:00
|
|
|
void ro_gui_dialog_click(wimp_pointer *pointer);
|
2004-06-27 18:41:14 +04:00
|
|
|
void ro_gui_save_options(void);
|
2003-12-26 21:18:17 +03:00
|
|
|
bool ro_gui_dialog_keypress(wimp_key *key);
|
2003-08-27 02:37:32 +04:00
|
|
|
void ro_gui_dialog_close(wimp_w close);
|
2004-07-27 02:23:40 +04:00
|
|
|
void ro_gui_dialog_open_config(void);
|
2004-07-27 19:49:28 +04:00
|
|
|
void ro_gui_dialog_proxyauth_menu_selection(int item);
|
2004-11-03 02:23:07 +03:00
|
|
|
void ro_gui_dialog_image_menu_selection(int item);
|
2004-07-28 00:44:46 +04:00
|
|
|
void ro_gui_dialog_languages_menu_selection(char *lang);
|
2005-02-25 01:00:41 +03:00
|
|
|
void ro_gui_dialog_font_menu_selection(int item);
|
2004-11-04 04:19:46 +03:00
|
|
|
void ro_gui_dialog_redraw(wimp_draw *redraw);
|
2003-08-27 02:37:32 +04:00
|
|
|
|
2003-08-28 23:21:27 +04:00
|
|
|
/* in download.c */
|
|
|
|
void ro_gui_download_init(void);
|
2004-06-28 03:24:11 +04:00
|
|
|
struct gui_download_window * ro_gui_download_window_lookup(wimp_w w);
|
|
|
|
void ro_gui_download_window_click(struct gui_download_window *dw,
|
|
|
|
wimp_pointer *pointer);
|
|
|
|
void ro_gui_download_drag_end(wimp_dragged *drag);
|
|
|
|
void ro_gui_download_datasave_ack(wimp_message *message);
|
|
|
|
void ro_gui_download_window_destroy(struct gui_download_window *dw);
|
2003-08-28 23:21:27 +04:00
|
|
|
|
2003-10-01 03:30:36 +04:00
|
|
|
/* in mouseactions.c */
|
2004-07-17 17:00:38 +04:00
|
|
|
void ro_gui_mouse_action(struct gui_window *g);
|
2003-10-01 03:30:36 +04:00
|
|
|
|
2003-10-01 04:26:42 +04:00
|
|
|
/* in textselection.c */
|
|
|
|
void ro_gui_start_selection(wimp_pointer *pointer, wimp_window_state *state,
|
2004-07-17 17:00:38 +04:00
|
|
|
struct gui_window *g);
|
2004-02-26 03:44:42 +03:00
|
|
|
void ro_gui_selection_drag_end(wimp_dragged *drag);
|
2004-07-17 17:00:38 +04:00
|
|
|
void ro_gui_copy_selection(struct gui_window *g);
|
2003-10-01 04:26:42 +04:00
|
|
|
|
2003-10-23 04:09:17 +04:00
|
|
|
/* in 401login.c */
|
2004-01-05 05:10:59 +03:00
|
|
|
#ifdef WITH_AUTH
|
2003-10-23 04:09:17 +04:00
|
|
|
void ro_gui_401login_init(void);
|
2004-07-16 20:33:45 +04:00
|
|
|
void ro_gui_401login_open(wimp_w parent, char* host, char * realm, char* fetchurl);
|
2003-10-23 04:09:17 +04:00
|
|
|
void ro_gui_401login_click(wimp_pointer *pointer);
|
2003-12-26 21:18:17 +03:00
|
|
|
bool ro_gui_401login_keypress(wimp_key *key);
|
2004-01-05 05:10:59 +03:00
|
|
|
#endif
|
2003-10-23 04:09:17 +04:00
|
|
|
|
2003-11-08 02:51:13 +03:00
|
|
|
/* in window.c */
|
2004-07-30 20:16:07 +04:00
|
|
|
void ro_gui_window_quit(void);
|
2004-07-17 17:00:38 +04:00
|
|
|
void ro_gui_window_click(struct gui_window *g, wimp_pointer *mouse);
|
2004-08-31 01:03:48 +04:00
|
|
|
void ro_gui_window_update_theme(void);
|
|
|
|
void ro_gui_window_update_dimensions(struct gui_window *g, int yscroll);
|
2004-07-17 17:00:38 +04:00
|
|
|
void ro_gui_window_open(struct gui_window *g, wimp_open *open);
|
|
|
|
void ro_gui_window_redraw(struct gui_window *g, wimp_draw *redraw);
|
|
|
|
void ro_gui_window_mouse_at(struct gui_window *g, wimp_pointer *pointer);
|
|
|
|
void ro_gui_toolbar_click(struct gui_window *g, wimp_pointer *pointer);
|
|
|
|
void ro_gui_status_click(struct gui_window *g, wimp_pointer *pointer);
|
2003-11-08 02:51:13 +03:00
|
|
|
void ro_gui_throb(void);
|
2004-07-17 17:00:38 +04:00
|
|
|
struct gui_window *ro_gui_window_lookup(wimp_w window);
|
|
|
|
struct gui_window *ro_gui_toolbar_lookup(wimp_w window);
|
|
|
|
struct gui_window *ro_gui_status_lookup(wimp_w window);
|
|
|
|
bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar);
|
2003-12-21 05:27:22 +03:00
|
|
|
void ro_gui_scroll_request(wimp_scroll *scroll);
|
2004-05-05 02:23:44 +04:00
|
|
|
//#define window_x_units(x, state) (x - (state->visible.x0 - state->xscroll))
|
|
|
|
//#define window_y_units(y, state) (y - (state->visible.y1 - state->yscroll))
|
2004-02-25 18:12:58 +03:00
|
|
|
int window_x_units(int x, wimp_window_state *state);
|
|
|
|
int window_y_units(int y, wimp_window_state *state);
|
2004-07-17 17:00:38 +04:00
|
|
|
bool ro_gui_window_dataload(struct gui_window *g, wimp_message *message);
|
|
|
|
void ro_gui_window_process_reformats(void);
|
|
|
|
void ro_gui_window_default_options(struct browser_window *bw);
|
2004-11-03 02:23:07 +03:00
|
|
|
void ro_gui_window_redraw_all(void);
|
2005-02-07 17:28:43 +03:00
|
|
|
void ro_gui_window_prepare_navigate_all(void);
|
2003-11-08 02:51:13 +03:00
|
|
|
|
2003-11-15 03:26:42 +03:00
|
|
|
/* in history.c */
|
|
|
|
void ro_gui_history_init(void);
|
|
|
|
void ro_gui_history_quit(void);
|
2004-11-03 05:29:01 +03:00
|
|
|
void ro_gui_history_mode_change(void);
|
2005-02-07 17:28:43 +03:00
|
|
|
void ro_gui_history_open(struct browser_window *bw, struct history *history, bool pointer);
|
2003-11-15 03:26:42 +03:00
|
|
|
void ro_gui_history_redraw(wimp_draw *redraw);
|
|
|
|
void ro_gui_history_click(wimp_pointer *pointer);
|
2004-04-13 01:46:08 +04:00
|
|
|
void ro_gui_history_mouse_at(wimp_pointer *pointer);
|
2004-06-30 03:13:40 +04:00
|
|
|
|
|
|
|
/* in hotlist.c */
|
2004-12-09 13:30:44 +03:00
|
|
|
void ro_gui_hotlist_initialise(void);
|
2004-07-04 22:44:51 +04:00
|
|
|
void ro_gui_hotlist_save(void);
|
2004-06-30 03:13:40 +04:00
|
|
|
void ro_gui_hotlist_show(void);
|
|
|
|
void ro_gui_hotlist_click(wimp_pointer *pointer);
|
2004-07-04 18:59:29 +04:00
|
|
|
bool ro_gui_hotlist_keypress(int key);
|
2004-07-08 02:09:26 +04:00
|
|
|
void ro_gui_hotlist_toolbar_click(wimp_pointer* pointer);
|
2004-12-09 13:30:44 +03:00
|
|
|
void ro_gui_hotlist_prepare_folder_dialog(struct node *node);
|
|
|
|
void ro_gui_hotlist_prepare_entry_dialog(struct node *node);
|
2004-07-12 03:14:24 +04:00
|
|
|
void ro_gui_hotlist_dialog_click(wimp_pointer *pointer);
|
2004-12-09 13:30:44 +03:00
|
|
|
void ro_gui_hotlist_menu_closed(void);
|
2004-07-16 20:33:45 +04:00
|
|
|
int ro_gui_hotlist_help(int x, int y);
|
2004-07-06 02:17:59 +04:00
|
|
|
|
2004-02-26 03:44:42 +03:00
|
|
|
/* in save.c */
|
2004-07-11 17:05:38 +04:00
|
|
|
void ro_gui_save_open(gui_save_type save_type, struct content *c,
|
2004-07-16 20:33:45 +04:00
|
|
|
bool sub_menu, int x, int y, wimp_w parent, bool keypress);
|
2004-02-26 03:44:42 +03:00
|
|
|
void ro_gui_save_click(wimp_pointer *pointer);
|
|
|
|
void ro_gui_drag_icon(wimp_pointer *pointer);
|
|
|
|
void ro_gui_save_drag_end(wimp_dragged *drag);
|
|
|
|
void ro_gui_save_datasave_ack(wimp_message *message);
|
|
|
|
|
2004-03-11 05:19:14 +03:00
|
|
|
/* in filetype.c */
|
|
|
|
int ro_content_filetype(struct content *content);
|
|
|
|
|
2004-03-21 15:46:56 +03:00
|
|
|
/* in schedule.c */
|
|
|
|
extern bool sched_active;
|
|
|
|
extern os_t sched_time;
|
|
|
|
|
2004-06-11 00:41:26 +04:00
|
|
|
/* in debugwin.c */
|
|
|
|
void ro_gui_debugwin_open(void);
|
|
|
|
void ro_gui_debugwin_close(void);
|
|
|
|
void ro_gui_debugwin_redraw(wimp_draw *redraw);
|
|
|
|
|
2004-08-06 00:32:00 +04:00
|
|
|
/* in search.c */
|
2004-08-06 02:03:56 +04:00
|
|
|
void ro_gui_search_open(struct gui_window *g, int x, int y, bool sub_menu, bool keypress);
|
|
|
|
void ro_gui_search_click(wimp_pointer *pointer);
|
|
|
|
bool ro_gui_search_keypress(wimp_key *key);
|
2004-08-06 00:32:00 +04:00
|
|
|
|
2004-08-09 10:28:57 +04:00
|
|
|
/* in print.c */
|
|
|
|
void ro_gui_print_open(struct gui_window *g, int x, int y, bool sub_menu, bool keypress);
|
|
|
|
void ro_gui_print_click(wimp_pointer *pointer);
|
|
|
|
bool ro_gui_print_keypress(wimp_key *key);
|
|
|
|
|
2005-02-20 16:19:19 +03:00
|
|
|
/* in font.c */
|
2005-02-23 02:36:14 +03:00
|
|
|
void nsfont_init(void);
|
2005-02-20 16:19:19 +03:00
|
|
|
bool nsfont_paint(struct css_style *style, const char *string,
|
|
|
|
size_t length, int x, int y, float scale);
|
|
|
|
|
2004-10-18 01:16:00 +04:00
|
|
|
/* in plotters.c */
|
|
|
|
extern const struct plotter_table ro_plotters;
|
|
|
|
extern int ro_plot_origin_x;
|
|
|
|
extern int ro_plot_origin_y;
|
|
|
|
void ro_plot_set_scale(float scale);
|
|
|
|
|
2005-01-14 01:42:39 +03:00
|
|
|
/* in theme_install.c */
|
2005-01-23 19:09:05 +03:00
|
|
|
void ro_gui_theme_install_click(wimp_pointer *pointer);
|
2005-01-14 01:42:39 +03:00
|
|
|
|
2004-07-08 02:09:26 +04:00
|
|
|
/* icon numbers for browser toolbars */
|
2004-05-05 02:23:44 +04:00
|
|
|
#define ICON_TOOLBAR_BACK 0
|
|
|
|
#define ICON_TOOLBAR_FORWARD 1
|
|
|
|
#define ICON_TOOLBAR_STOP 2
|
|
|
|
#define ICON_TOOLBAR_RELOAD 3
|
|
|
|
#define ICON_TOOLBAR_HOME 4
|
|
|
|
#define ICON_TOOLBAR_HISTORY 5
|
|
|
|
#define ICON_TOOLBAR_SAVE 6
|
|
|
|
#define ICON_TOOLBAR_PRINT 7
|
|
|
|
#define ICON_TOOLBAR_BOOKMARK 8
|
|
|
|
#define ICON_TOOLBAR_SCALE 9
|
|
|
|
#define ICON_TOOLBAR_SEARCH 10
|
2004-10-05 03:54:42 +04:00
|
|
|
#define ICON_TOOLBAR_URL 11 // Must be after highest toolbar icon
|
|
|
|
#define ICON_TOOLBAR_THROBBER 12
|
2005-02-04 06:02:15 +03:00
|
|
|
#define ICON_TOOLBAR_SUGGEST 13
|
2004-05-05 02:23:44 +04:00
|
|
|
|
2005-02-07 17:28:43 +03:00
|
|
|
/* icon numbers for hotlist/history toolbars */
|
|
|
|
#define ICON_TOOLBAR_DELETE 0
|
|
|
|
#define ICON_TOOLBAR_EXPAND 1
|
|
|
|
#define ICON_TOOLBAR_OPEN 2
|
|
|
|
#define ICON_TOOLBAR_LAUNCH 3
|
|
|
|
#define ICON_TOOLBAR_HISTORY_LAST 4
|
|
|
|
#define ICON_TOOLBAR_CREATE 4 // must be after last history icon
|
2004-10-05 03:54:42 +04:00
|
|
|
#define ICON_TOOLBAR_HOTLIST_LAST 5
|
2004-07-08 02:09:26 +04:00
|
|
|
|
2005-03-20 17:57:51 +03:00
|
|
|
/* editing toolbar separator number */
|
|
|
|
#define ICON_TOOLBAR_SEPARATOR_BROWSER 11
|
|
|
|
#define ICON_TOOLBAR_SEPARATOR_HOTLIST 5
|
|
|
|
#define ICON_TOOLBAR_SEPARATOR_HISTORY 4
|
|
|
|
|
2004-07-08 02:09:26 +04:00
|
|
|
/* icon numbers for toolbar status window */
|
2004-08-31 01:03:48 +04:00
|
|
|
#define ICON_STATUS_RESIZE 0
|
|
|
|
#define ICON_STATUS_TEXT 1
|
2003-11-20 03:16:31 +03:00
|
|
|
|
2003-08-27 02:37:32 +04:00
|
|
|
#define ICON_CONFIG_SAVE 0
|
|
|
|
#define ICON_CONFIG_CANCEL 1
|
2004-07-27 19:49:28 +04:00
|
|
|
#define ICON_CONFIG_BROWSER 3
|
|
|
|
#define ICON_CONFIG_PROXY 4
|
|
|
|
#define ICON_CONFIG_THEME 5
|
2004-09-14 03:56:18 +04:00
|
|
|
#define ICON_CONFIG_FONT 7
|
2004-11-03 02:23:07 +03:00
|
|
|
#define ICON_CONFIG_IMAGE 8
|
2004-07-27 19:49:28 +04:00
|
|
|
|
2004-09-14 03:56:18 +04:00
|
|
|
#define ICON_CONFIG_BR_LANG 1
|
|
|
|
#define ICON_CONFIG_BR_LANG_PICK 2
|
|
|
|
#define ICON_CONFIG_BR_ALANG 5
|
|
|
|
#define ICON_CONFIG_BR_ALANG_PICK 6
|
|
|
|
#define ICON_CONFIG_BR_HOMEPAGE 8
|
|
|
|
#define ICON_CONFIG_BR_OPENBROWSER 9
|
|
|
|
#define ICON_CONFIG_BR_BLOCKADS 10
|
|
|
|
#define ICON_CONFIG_BR_PLUGINS 11
|
2004-07-27 19:49:28 +04:00
|
|
|
|
|
|
|
#define ICON_CONFIG_PROX_HTTP 0
|
|
|
|
#define ICON_CONFIG_PROX_HTTPHOST 1
|
|
|
|
#define ICON_CONFIG_PROX_HTTPPORT 3
|
|
|
|
#define ICON_CONFIG_PROX_AUTHTYPE 5
|
|
|
|
#define ICON_CONFIG_PROX_AUTHTYPE_PICK 6
|
|
|
|
#define ICON_CONFIG_PROX_AUTHUSER 8
|
|
|
|
#define ICON_CONFIG_PROX_AUTHPASS 10
|
2004-10-02 03:48:15 +04:00
|
|
|
#define ICON_CONFIG_PROX_REFERER 11
|
2004-07-27 19:49:28 +04:00
|
|
|
|
|
|
|
#define ICON_CONFIG_TH_GET 0
|
|
|
|
#define ICON_CONFIG_TH_MANAGE 1
|
2003-08-27 02:37:32 +04:00
|
|
|
|
2004-11-03 02:23:07 +03:00
|
|
|
#define ICON_CONFIG_IMG_FG_DISP 3
|
|
|
|
#define ICON_CONFIG_IMG_FG_MENU 4
|
|
|
|
#define ICON_CONFIG_IMG_FG_VF 5
|
|
|
|
#define ICON_CONFIG_IMG_FG_FILTER 6
|
|
|
|
#define ICON_CONFIG_IMG_BG_DISP 10
|
|
|
|
#define ICON_CONFIG_IMG_BG_MENU 11
|
|
|
|
#define ICON_CONFIG_IMG_BG_VF 12
|
|
|
|
#define ICON_CONFIG_IMG_BG_FILTER 13
|
|
|
|
|
2004-09-14 03:56:18 +04:00
|
|
|
/* Note: The display icon numbers for font names *must* be ONE less
|
|
|
|
* than the icon number of the corresponding pick icon.
|
|
|
|
* This is assumed by ro_gui_dialog_click_font.
|
|
|
|
*/
|
|
|
|
#define ICON_CONFIG_FONT_SANS 2
|
|
|
|
#define ICON_CONFIG_FONT_SANS_PICK 3
|
|
|
|
#define ICON_CONFIG_FONT_SERIF 4
|
|
|
|
#define ICON_CONFIG_FONT_SERIF_PICK 5
|
|
|
|
#define ICON_CONFIG_FONT_MONO 6
|
|
|
|
#define ICON_CONFIG_FONT_MONO_PICK 7
|
|
|
|
#define ICON_CONFIG_FONT_CURS 8
|
|
|
|
#define ICON_CONFIG_FONT_CURS_PICK 9
|
|
|
|
#define ICON_CONFIG_FONT_FANT 10
|
|
|
|
#define ICON_CONFIG_FONT_FANT_PICK 11
|
|
|
|
#define ICON_CONFIG_FONT_DEF 12
|
|
|
|
#define ICON_CONFIG_FONT_DEF_PICK 13
|
|
|
|
#define ICON_CONFIG_FONT_FONTSIZE 14
|
|
|
|
#define ICON_CONFIG_FONT_FONTSIZE_DEC 15
|
|
|
|
#define ICON_CONFIG_FONT_FONTSIZE_INC 16
|
|
|
|
#define ICON_CONFIG_FONT_MINSIZE 17
|
|
|
|
#define ICON_CONFIG_FONT_MINSIZE_DEC 18
|
|
|
|
#define ICON_CONFIG_FONT_MINSIZE_INC 19
|
|
|
|
|
2004-06-28 03:24:11 +04:00
|
|
|
#define ICON_DOWNLOAD_ICON 0
|
|
|
|
#define ICON_DOWNLOAD_URL 1
|
|
|
|
#define ICON_DOWNLOAD_PATH 2
|
|
|
|
#define ICON_DOWNLOAD_DESTINATION 3
|
|
|
|
#define ICON_DOWNLOAD_PROGRESS 5
|
|
|
|
#define ICON_DOWNLOAD_STATUS 6
|
2003-08-28 23:21:27 +04:00
|
|
|
|
2003-10-23 04:09:17 +04:00
|
|
|
#define ICON_401LOGIN_LOGIN 0
|
|
|
|
#define ICON_401LOGIN_CANCEL 1
|
|
|
|
#define ICON_401LOGIN_HOST 2
|
|
|
|
#define ICON_401LOGIN_REALM 3
|
|
|
|
#define ICON_401LOGIN_USERNAME 4
|
|
|
|
#define ICON_401LOGIN_PASSWORD 5
|
|
|
|
|
2004-02-25 18:12:58 +03:00
|
|
|
#define ICON_ZOOM_VALUE 1
|
|
|
|
#define ICON_ZOOM_DEC 2
|
|
|
|
#define ICON_ZOOM_INC 3
|
2005-03-13 04:23:10 +03:00
|
|
|
#define ICON_ZOOM_75 5
|
|
|
|
#define ICON_ZOOM_100 6
|
|
|
|
#define ICON_ZOOM_150 7
|
|
|
|
#define ICON_ZOOM_200 8
|
2004-02-25 18:12:58 +03:00
|
|
|
#define ICON_ZOOM_CANCEL 9
|
|
|
|
#define ICON_ZOOM_OK 10
|
|
|
|
|
2004-02-26 03:44:42 +03:00
|
|
|
#define ICON_SAVE_ICON 0
|
|
|
|
#define ICON_SAVE_PATH 1
|
|
|
|
#define ICON_SAVE_OK 2
|
|
|
|
#define ICON_SAVE_CANCEL 3
|
|
|
|
|
2004-04-03 06:59:35 +04:00
|
|
|
#define ICON_PAGEINFO_TITLE 0
|
|
|
|
#define ICON_PAGEINFO_URL 1
|
|
|
|
#define ICON_PAGEINFO_ENC 2
|
|
|
|
#define ICON_PAGEINFO_TYPE 3
|
|
|
|
#define ICON_PAGEINFO_ICON 4
|
|
|
|
|
2004-05-05 04:02:13 +04:00
|
|
|
#define ICON_OBJINFO_URL 0
|
|
|
|
#define ICON_OBJINFO_TARGET 1
|
|
|
|
#define ICON_OBJINFO_TYPE 2
|
|
|
|
#define ICON_OBJINFO_ICON 3
|
|
|
|
|
2004-05-07 23:14:54 +04:00
|
|
|
#define ICON_WARNING_MESSAGE 0
|
|
|
|
#define ICON_WARNING_CONTINUE 1
|
|
|
|
#define ICON_WARNING_HELP 2
|
|
|
|
|
2004-08-06 00:32:00 +04:00
|
|
|
#define ICON_SEARCH_TEXT 0
|
|
|
|
#define ICON_SEARCH_START 1
|
|
|
|
#define ICON_SEARCH_CASE_SENSITIVE 2
|
|
|
|
#define ICON_SEARCH_FORWARDS 3
|
|
|
|
#define ICON_SEARCH_BACKWARDS 4
|
|
|
|
#define ICON_SEARCH_CANCEL 5
|
|
|
|
#define ICON_SEARCH_FIND 6
|
|
|
|
|
2004-08-09 10:28:57 +04:00
|
|
|
#define ICON_PRINT_TO_BOTTOM 1
|
|
|
|
#define ICON_PRINT_SHEETS 2
|
|
|
|
#define ICON_PRINT_SHEETS_VALUE 3
|
|
|
|
#define ICON_PRINT_SHEETS_DOWN 4
|
|
|
|
#define ICON_PRINT_SHEETS_UP 5
|
|
|
|
#define ICON_PRINT_SHEETS_TEXT 6
|
|
|
|
#define ICON_PRINT_FG_IMAGES 7
|
|
|
|
#define ICON_PRINT_BG_IMAGES 8
|
|
|
|
#define ICON_PRINT_IN_BACKGROUND 9
|
|
|
|
#define ICON_PRINT_UPRIGHT 10
|
|
|
|
#define ICON_PRINT_SIDEWAYS 11
|
|
|
|
#define ICON_PRINT_COPIES 12
|
|
|
|
#define ICON_PRINT_COPIES_DOWN 13
|
|
|
|
#define ICON_PRINT_COPIES_UP 14
|
|
|
|
#define ICON_PRINT_CANCEL 15
|
|
|
|
#define ICON_PRINT_PRINT 16
|
2004-08-19 05:01:31 +04:00
|
|
|
#define ICON_PRINT_TEXT_BLACK 20
|
2004-08-06 00:32:00 +04:00
|
|
|
|
2005-01-14 01:42:39 +03:00
|
|
|
#define ICON_THEME_INSTALL_MESSAGE 0
|
|
|
|
#define ICON_THEME_INSTALL_INSTALL 1
|
|
|
|
#define ICON_THEME_INSTALL_CANCEL 2
|
|
|
|
|
2003-07-30 17:06:22 +04:00
|
|
|
#endif
|