2003-06-30 16:44:03 +04:00
|
|
|
/*
|
|
|
|
* 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-05-23 16:22:05 +04:00
|
|
|
* Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
|
2007-08-08 20:16:03 +04: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 19:09:12 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/** \file
|
|
|
|
* RISC OS specific options.
|
2003-06-06 06:14:28 +04:00
|
|
|
*/
|
2003-06-02 03:02:56 +04:00
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_OPTIONS_H_
|
|
|
|
#define _NETSURF_RISCOS_OPTIONS_H_
|
|
|
|
|
2008-07-27 02:29:15 +04:00
|
|
|
#include <stdbool.h>
|
2007-05-31 02:39:54 +04:00
|
|
|
#include "desktop/options.h"
|
|
|
|
#include "riscos/tinct.h"
|
2003-06-02 03:02:56 +04:00
|
|
|
|
2004-02-14 02:07:42 +03:00
|
|
|
extern bool option_allow_text_selection;
|
2004-02-13 19:09:12 +03:00
|
|
|
extern char *option_theme;
|
2004-02-27 17:09:15 +03:00
|
|
|
extern char *option_language;
|
2004-11-03 02:23:07 +03:00
|
|
|
extern int option_fg_plot_style; /* tinct flagword */
|
|
|
|
extern int option_bg_plot_style; /* tinct flagword */
|
2004-04-13 01:46:08 +04:00
|
|
|
extern bool option_history_tooltip;
|
2004-05-05 02:23:44 +04:00
|
|
|
extern bool option_toolbar_show_buttons;
|
|
|
|
extern bool option_toolbar_show_address;
|
|
|
|
extern bool option_toolbar_show_throbber;
|
2005-03-21 17:48:26 +03:00
|
|
|
extern char *option_toolbar_browser;
|
|
|
|
extern char *option_toolbar_hotlist;
|
|
|
|
extern char *option_toolbar_history;
|
2006-07-13 16:46:02 +04:00
|
|
|
extern char *option_toolbar_cookies;
|
2004-06-27 18:41:14 +04:00
|
|
|
extern bool option_window_stagger;
|
2004-06-28 23:35:04 +04:00
|
|
|
extern bool option_window_size_clone;
|
2004-06-11 02:11:44 +04:00
|
|
|
extern bool option_background_images;
|
2004-07-20 03:35:12 +04:00
|
|
|
extern bool option_buffer_animations;
|
2004-07-21 00:02:59 +04:00
|
|
|
extern bool option_buffer_everything;
|
2004-07-27 00:13:45 +04:00
|
|
|
extern bool option_open_browser_at_startup;
|
2004-09-14 03:56:18 +04:00
|
|
|
extern bool option_no_plugins;
|
2005-02-03 13:04:06 +03:00
|
|
|
extern bool option_block_popups;
|
2005-06-23 21:24:23 +04:00
|
|
|
extern int option_image_memory_direct; /* -1 means auto-detect */
|
|
|
|
extern int option_image_memory_compressed; /* -1 means auto-detect */
|
2005-07-24 00:43:37 +04:00
|
|
|
extern bool option_strip_extensions;
|
2006-02-07 19:16:23 +03:00
|
|
|
extern bool option_confirm_overwrite;
|
2006-01-08 04:51:33 +03: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 05:03:07 +04:00
|
|
|
extern bool option_thumbnail_iconise;
|
2007-10-11 01:22:36 +04:00
|
|
|
extern bool option_interactive_help;
|
2003-06-02 03:02:56 +04:00
|
|
|
|
2004-02-13 19:09:12 +03:00
|
|
|
#define EXTRA_OPTION_DEFINE \
|
2004-02-14 02:07:42 +03:00
|
|
|
bool option_use_mouse_gestures = false;\
|
|
|
|
bool option_allow_text_selection = true;\
|
2004-02-27 17:09:15 +03:00
|
|
|
char *option_theme = 0;\
|
2004-03-09 13:24:52 +03:00
|
|
|
char *option_language = 0;\
|
2004-11-03 02:23:07 +03:00
|
|
|
int option_fg_plot_style = tinct_ERROR_DIFFUSE;\
|
|
|
|
int option_bg_plot_style = tinct_DITHER;\
|
2004-05-05 02:23:44 +04: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 17:48:26 +03:00
|
|
|
char *option_toolbar_browser = 0; \
|
|
|
|
char *option_toolbar_hotlist = 0; \
|
|
|
|
char *option_toolbar_history = 0; \
|
2006-07-13 16:46:02 +04:00
|
|
|
char *option_toolbar_cookies = 0; \
|
2004-06-27 18:41:14 +04:00
|
|
|
bool option_window_stagger = true; \
|
2004-06-28 23:35:04 +04:00
|
|
|
bool option_window_size_clone = true; \
|
2004-06-25 20:52:01 +04:00
|
|
|
bool option_background_images = true; \
|
2004-07-21 00:02:59 +04:00
|
|
|
bool option_buffer_animations = true; \
|
2008-03-01 02:03:26 +03:00
|
|
|
bool option_buffer_everything = true; \
|
2004-08-13 04:55:59 +04:00
|
|
|
bool option_open_browser_at_startup = false; \
|
2004-09-29 07:33:24 +04:00
|
|
|
bool option_no_plugins = false; \
|
2005-02-07 17:28:43 +03:00
|
|
|
bool option_block_popups = false; \
|
2005-06-23 21:24:23 +04:00
|
|
|
int option_image_memory_direct = -1; \
|
2005-07-24 00:43:37 +04:00
|
|
|
int option_image_memory_compressed = -1; \
|
2006-01-08 04:51:33 +03:00
|
|
|
bool option_strip_extensions = true; \
|
2006-02-07 19:16:23 +03:00
|
|
|
bool option_confirm_overwrite = true; \
|
2006-01-08 04:51:33 +03: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 05:03:07 +04:00
|
|
|
char *option_theme_save = 0; \
|
2007-10-11 01:22:36 +04:00
|
|
|
bool option_thumbnail_iconise = true; \
|
|
|
|
bool option_interactive_help = true;
|
2003-06-02 03:02:56 +04:00
|
|
|
|
2004-02-13 19:09:12 +03:00
|
|
|
#define EXTRA_OPTION_TABLE \
|
2004-04-10 22:12:58 +04: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-03 02:23:07 +03:00
|
|
|
{ "plot_fg_quality", OPTION_INTEGER, &option_fg_plot_style },\
|
|
|
|
{ "plot_bg_quality", OPTION_INTEGER, &option_bg_plot_style },\
|
2004-05-05 02:23:44 +04: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 17:48:26 +03: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 16:46:02 +04:00
|
|
|
{ "toolbar_cookies", OPTION_STRING, &option_toolbar_cookies }, \
|
2004-06-27 18:41:14 +04:00
|
|
|
{ "window_stagger", OPTION_BOOL, &option_window_stagger }, \
|
2004-06-28 23:35:04 +04:00
|
|
|
{ "window_size_clone", OPTION_BOOL, &option_window_size_clone }, \
|
2004-06-25 20:52:01 +04:00
|
|
|
{ "background_images", OPTION_BOOL, &option_background_images }, \
|
2004-07-21 00:02:59 +04:00
|
|
|
{ "buffer_animations", OPTION_BOOL, &option_buffer_animations }, \
|
2004-08-07 03:45:21 +04:00
|
|
|
{ "buffer_everything", OPTION_BOOL, &option_buffer_everything }, \
|
2004-08-13 04:55:59 +04:00
|
|
|
{ "open_browser_at_startup",OPTION_BOOL, &option_open_browser_at_startup }, \
|
2004-09-14 03:56:18 +04:00
|
|
|
{ "no_plugins", OPTION_BOOL, &option_no_plugins }, \
|
2005-02-07 17:28:43 +03:00
|
|
|
{ "block_popups", OPTION_BOOL, &option_block_popups }, \
|
2005-06-23 21:24:23 +04:00
|
|
|
{ "image_memory_direct", OPTION_INTEGER, &option_image_memory_direct }, \
|
2005-07-24 00:43:37 +04:00
|
|
|
{ "image_memory_compressed",OPTION_INTEGER, &option_image_memory_compressed }, \
|
2006-01-08 04:51:33 +03:00
|
|
|
{ "strip_extensions", OPTION_BOOL, &option_strip_extensions }, \
|
2006-02-07 19:16:23 +03:00
|
|
|
{ "confirm_overwrite", OPTION_BOOL, &option_confirm_overwrite }, \
|
2006-01-08 04:51:33 +03: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 05:03:07 +04:00
|
|
|
{ "theme_save", OPTION_STRING, &option_theme_save }, \
|
2007-10-11 01:22:36 +04:00
|
|
|
{ "thumbnail_iconise", OPTION_BOOL, &option_thumbnail_iconise }, \
|
|
|
|
{ "interactive_help", OPTION_BOOL, &option_interactive_help }
|
2004-09-14 03:56:18 +04:00
|
|
|
|
2003-06-02 03:02:56 +04:00
|
|
|
#endif
|