2003-06-30 12:44:03 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
|
2004-02-13 16:09:12 +00:00
|
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
2004-05-23 12:22:05 +00:00
|
|
|
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
|
2007-08-08 16:16:03 +00:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2004-02-13 16:09:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* RISC OS specific options.
|
2003-06-06 02:14:28 +00:00
|
|
|
*/
|
2003-06-01 23:02:56 +00:00
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_OPTIONS_H_
|
|
|
|
#define _NETSURF_RISCOS_OPTIONS_H_
|
|
|
|
|
2008-07-26 22:29:15 +00:00
|
|
|
#include <stdbool.h>
|
2007-05-30 22:39:54 +00:00
|
|
|
#include "desktop/options.h"
|
|
|
|
#include "riscos/tinct.h"
|
2003-06-01 23:02:56 +00:00
|
|
|
|
2004-02-13 23:07:42 +00:00
|
|
|
extern bool option_allow_text_selection;
|
2004-02-13 16:09:12 +00:00
|
|
|
extern char *option_theme;
|
2004-02-27 14:09:15 +00:00
|
|
|
extern char *option_language;
|
2004-11-02 23:23:07 +00:00
|
|
|
extern int option_fg_plot_style; /* tinct flagword */
|
|
|
|
extern int option_bg_plot_style; /* tinct flagword */
|
2004-04-12 21:46:08 +00:00
|
|
|
extern bool option_history_tooltip;
|
2004-05-04 22:23:44 +00:00
|
|
|
extern bool option_toolbar_show_buttons;
|
|
|
|
extern bool option_toolbar_show_address;
|
|
|
|
extern bool option_toolbar_show_throbber;
|
2005-03-21 14:48:26 +00:00
|
|
|
extern char *option_toolbar_browser;
|
|
|
|
extern char *option_toolbar_hotlist;
|
|
|
|
extern char *option_toolbar_history;
|
2006-07-13 12:46:02 +00:00
|
|
|
extern char *option_toolbar_cookies;
|
2004-06-27 14:41:14 +00:00
|
|
|
extern bool option_window_stagger;
|
2004-06-28 19:35:04 +00:00
|
|
|
extern bool option_window_size_clone;
|
2004-06-10 22:11:44 +00:00
|
|
|
extern bool option_background_images;
|
2004-07-19 23:35:12 +00:00
|
|
|
extern bool option_buffer_animations;
|
2004-07-20 20:02:59 +00:00
|
|
|
extern bool option_buffer_everything;
|
2004-07-26 20:13:45 +00:00
|
|
|
extern bool option_open_browser_at_startup;
|
2004-09-13 23:56:18 +00:00
|
|
|
extern bool option_no_plugins;
|
2005-02-03 10:04:06 +00:00
|
|
|
extern bool option_block_popups;
|
2005-06-23 17:24:23 +00:00
|
|
|
extern int option_image_memory_direct; /* -1 means auto-detect */
|
|
|
|
extern int option_image_memory_compressed; /* -1 means auto-detect */
|
2005-07-23 20:43:37 +00:00
|
|
|
extern bool option_strip_extensions;
|
2006-02-07 16:16:23 +00:00
|
|
|
extern bool option_confirm_overwrite;
|
2006-01-08 01:51:33 +00:00
|
|
|
extern char *option_url_path;
|
|
|
|
extern char *option_url_save;
|
|
|
|
extern char *option_hotlist_path;
|
|
|
|
extern char *option_hotlist_save;
|
|
|
|
extern char *option_recent_path;
|
|
|
|
extern char *option_recent_save;
|
|
|
|
extern char *option_theme_path;
|
|
|
|
extern char *option_theme_save;
|
2006-07-03 01:03:07 +00:00
|
|
|
extern bool option_thumbnail_iconise;
|
2007-10-10 21:22:36 +00:00
|
|
|
extern bool option_interactive_help;
|
2011-10-09 13:32:43 +00:00
|
|
|
extern bool option_external_hotlists;
|
2003-06-01 23:02:56 +00:00
|
|
|
|
2004-02-13 16:09:12 +00:00
|
|
|
#define EXTRA_OPTION_DEFINE \
|
2004-02-13 23:07:42 +00:00
|
|
|
bool option_use_mouse_gestures = false;\
|
|
|
|
bool option_allow_text_selection = true;\
|
2004-02-27 14:09:15 +00:00
|
|
|
char *option_theme = 0;\
|
2004-03-09 10:24:52 +00:00
|
|
|
char *option_language = 0;\
|
2004-11-02 23:23:07 +00:00
|
|
|
int option_fg_plot_style = tinct_ERROR_DIFFUSE;\
|
|
|
|
int option_bg_plot_style = tinct_DITHER;\
|
2004-05-04 22:23:44 +00:00
|
|
|
bool option_history_tooltip = true; \
|
|
|
|
bool option_toolbar_show_buttons = true; \
|
|
|
|
bool option_toolbar_show_address = true; \
|
|
|
|
bool option_toolbar_show_throbber = true; \
|
2005-03-21 14:48:26 +00:00
|
|
|
char *option_toolbar_browser = 0; \
|
|
|
|
char *option_toolbar_hotlist = 0; \
|
|
|
|
char *option_toolbar_history = 0; \
|
2006-07-13 12:46:02 +00:00
|
|
|
char *option_toolbar_cookies = 0; \
|
2004-06-27 14:41:14 +00:00
|
|
|
bool option_window_stagger = true; \
|
2004-06-28 19:35:04 +00:00
|
|
|
bool option_window_size_clone = true; \
|
2004-06-25 16:52:01 +00:00
|
|
|
bool option_background_images = true; \
|
2004-07-20 20:02:59 +00:00
|
|
|
bool option_buffer_animations = true; \
|
2008-02-29 23:03:26 +00:00
|
|
|
bool option_buffer_everything = true; \
|
2004-08-13 00:55:59 +00:00
|
|
|
bool option_open_browser_at_startup = false; \
|
2004-09-29 03:33:24 +00:00
|
|
|
bool option_no_plugins = false; \
|
2005-02-07 14:28:43 +00:00
|
|
|
bool option_block_popups = false; \
|
2005-06-23 17:24:23 +00:00
|
|
|
int option_image_memory_direct = -1; \
|
2005-07-23 20:43:37 +00:00
|
|
|
int option_image_memory_compressed = -1; \
|
2006-01-08 01:51:33 +00:00
|
|
|
bool option_strip_extensions = true; \
|
2006-02-07 16:16:23 +00:00
|
|
|
bool option_confirm_overwrite = true; \
|
2006-01-08 01:51:33 +00:00
|
|
|
char *option_url_path = 0; \
|
|
|
|
char *option_url_save = 0; \
|
|
|
|
char *option_hotlist_path = 0; \
|
|
|
|
char *option_hotlist_save = 0; \
|
|
|
|
char *option_recent_path = 0; \
|
|
|
|
char *option_recent_save = 0; \
|
|
|
|
char *option_theme_path = 0; \
|
2006-07-03 01:03:07 +00:00
|
|
|
char *option_theme_save = 0; \
|
2007-10-10 21:22:36 +00:00
|
|
|
bool option_thumbnail_iconise = true; \
|
2011-10-09 13:32:43 +00:00
|
|
|
bool option_interactive_help = true; \
|
2011-10-11 08:51:39 +00:00
|
|
|
bool option_external_hotlists = false;
|
2003-06-01 23:02:56 +00:00
|
|
|
|
2004-02-13 16:09:12 +00:00
|
|
|
#define EXTRA_OPTION_TABLE \
|
2004-04-10 18:12:58 +00:00
|
|
|
{ "use_mouse_gestures", OPTION_BOOL, &option_use_mouse_gestures },\
|
|
|
|
{ "allow_text_selection", OPTION_BOOL, &option_allow_text_selection },\
|
|
|
|
{ "theme", OPTION_STRING, &option_theme },\
|
|
|
|
{ "language", OPTION_STRING, &option_language },\
|
2004-11-02 23:23:07 +00:00
|
|
|
{ "plot_fg_quality", OPTION_INTEGER, &option_fg_plot_style },\
|
|
|
|
{ "plot_bg_quality", OPTION_INTEGER, &option_bg_plot_style },\
|
2004-05-04 22:23:44 +00:00
|
|
|
{ "history_tooltip", OPTION_BOOL, &option_history_tooltip }, \
|
|
|
|
{ "toolbar_show_buttons", OPTION_BOOL, &option_toolbar_show_buttons }, \
|
|
|
|
{ "toolbar_show_address", OPTION_BOOL, &option_toolbar_show_address }, \
|
|
|
|
{ "toolbar_show_throbber", OPTION_BOOL, &option_toolbar_show_throbber }, \
|
2005-03-21 14:48:26 +00:00
|
|
|
{ "toolbar_browser", OPTION_STRING, &option_toolbar_browser }, \
|
|
|
|
{ "toolbar_hotlist", OPTION_STRING, &option_toolbar_hotlist }, \
|
|
|
|
{ "toolbar_history", OPTION_STRING, &option_toolbar_history }, \
|
2006-07-13 12:46:02 +00:00
|
|
|
{ "toolbar_cookies", OPTION_STRING, &option_toolbar_cookies }, \
|
2004-06-27 14:41:14 +00:00
|
|
|
{ "window_stagger", OPTION_BOOL, &option_window_stagger }, \
|
2004-06-28 19:35:04 +00:00
|
|
|
{ "window_size_clone", OPTION_BOOL, &option_window_size_clone }, \
|
2004-06-25 16:52:01 +00:00
|
|
|
{ "background_images", OPTION_BOOL, &option_background_images }, \
|
2004-07-20 20:02:59 +00:00
|
|
|
{ "buffer_animations", OPTION_BOOL, &option_buffer_animations }, \
|
2004-08-06 23:45:21 +00:00
|
|
|
{ "buffer_everything", OPTION_BOOL, &option_buffer_everything }, \
|
2004-08-13 00:55:59 +00:00
|
|
|
{ "open_browser_at_startup",OPTION_BOOL, &option_open_browser_at_startup }, \
|
2004-09-13 23:56:18 +00:00
|
|
|
{ "no_plugins", OPTION_BOOL, &option_no_plugins }, \
|
2005-02-07 14:28:43 +00:00
|
|
|
{ "block_popups", OPTION_BOOL, &option_block_popups }, \
|
2005-06-23 17:24:23 +00:00
|
|
|
{ "image_memory_direct", OPTION_INTEGER, &option_image_memory_direct }, \
|
2005-07-23 20:43:37 +00:00
|
|
|
{ "image_memory_compressed",OPTION_INTEGER, &option_image_memory_compressed }, \
|
2006-01-08 01:51:33 +00:00
|
|
|
{ "strip_extensions", OPTION_BOOL, &option_strip_extensions }, \
|
2006-02-07 16:16:23 +00:00
|
|
|
{ "confirm_overwrite", OPTION_BOOL, &option_confirm_overwrite }, \
|
2006-01-08 01:51:33 +00:00
|
|
|
{ "url_path", OPTION_STRING, &option_url_path }, \
|
|
|
|
{ "url_save", OPTION_STRING, &option_url_save }, \
|
|
|
|
{ "hotlist_path", OPTION_STRING, &option_hotlist_path }, \
|
|
|
|
{ "hotlist_save", OPTION_STRING, &option_hotlist_save }, \
|
|
|
|
{ "recent_path", OPTION_STRING, &option_recent_path }, \
|
|
|
|
{ "recent_save", OPTION_STRING, &option_recent_save }, \
|
|
|
|
{ "theme_path", OPTION_STRING, &option_theme_path }, \
|
2006-07-03 01:03:07 +00:00
|
|
|
{ "theme_save", OPTION_STRING, &option_theme_save }, \
|
2007-10-10 21:22:36 +00:00
|
|
|
{ "thumbnail_iconise", OPTION_BOOL, &option_thumbnail_iconise }, \
|
2011-10-09 13:32:43 +00:00
|
|
|
{ "interactive_help", OPTION_BOOL, &option_interactive_help }, \
|
|
|
|
{ "external_hotlists", OPTION_BOOL, &option_external_hotlists }
|
2004-09-13 23:56:18 +00:00
|
|
|
|
2003-06-01 23:02:56 +00:00
|
|
|
#endif
|