summaryrefslogtreecommitdiff
path: root/riscos/options.h
blob: 62bfcf2bbd941e7d1e9301cd793aa57e8e5bcbf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
 * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
 * Copyright 2004 James Bursa <bursa@users.sourceforge.net>
 * Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
 *
 * 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/>.
 */

/** \file
 * RISC OS specific options.
 */

#include "riscos/tinct.h"

#ifndef _NETSURF_DESKTOP_OPTIONS_INCLUDING_
#error "Frontend options header cannot be included directly"
#endif

#ifndef _NETSURF_RISCOS_OPTIONS_H_
#define _NETSURF_RISCOS_OPTIONS_H_

#define NSOPTION_EXTRA_DEFINE				\
	bool use_mouse_gestures;			\
	bool allow_text_selection;			\
	char *theme;					\
	char *language;					\
	int fg_plot_style; /* tinct flagword */			\
	int bg_plot_style; /* tinct flagword */			\
	bool history_tooltip;					\
	bool toolbar_show_buttons;				\
	bool toolbar_show_address;				\
	bool toolbar_show_throbber;				\
	char *toolbar_browser;					\
	char *toolbar_hotlist;					\
	char *toolbar_history;					\
	char *toolbar_cookies;					\
	bool window_stagger;					\
	bool window_size_clone;					\
	bool buffer_animations;					\
	bool buffer_everything;					\
	bool open_browser_at_startup;				\
	bool no_plugins;					\
	bool block_popups;					\
	int image_memory_direct; /* -1 means auto-detect */	\
	int image_memory_compressed; /* -1 means auto-detect */	\
	bool strip_extensions;					\
	bool confirm_overwrite;					\
	char *url_path;						\
	char *url_save;						\
	char *hotlist_path;					\
	char *hotlist_save;					\
	char *recent_path;					\
	char *recent_save;					\
	char *theme_path;					\
	char *theme_save;					\
	bool thumbnail_iconise;					\
	bool interactive_help;					\
	bool external_hotlists;					\
	char *external_hotlist_app


#define NSOPTION_EXTRA_DEFAULTS			\
	.use_mouse_gestures = false,		\
	.allow_text_selection = true,		\
	.theme = NULL,				\
	.language = NULL,			\
	.fg_plot_style = tinct_ERROR_DIFFUSE,	\
	.bg_plot_style = tinct_DITHER,		\
	.history_tooltip = true,		\
	.toolbar_show_buttons = true,		\
	.toolbar_show_address = true,		\
	.toolbar_show_throbber = true,		\
	.toolbar_browser = NULL,		\
	.toolbar_hotlist = NULL,		\
	.toolbar_history = NULL,		\
	.toolbar_cookies = NULL,		\
	.window_stagger = true,			\
	.window_size_clone = true,		\
	.buffer_animations = true,		\
	.buffer_everything = true,		\
	.open_browser_at_startup = false,	\
	.no_plugins = false,			\
	.block_popups = false,			\
	.image_memory_direct = -1,		\
	.image_memory_compressed = -1,		\
	.strip_extensions = true,		\
	.confirm_overwrite = true,		\
	.url_path = NULL,			\
	.url_save = NULL,			\
	.hotlist_path = NULL,			\
	.hotlist_save = NULL,			\
	.recent_path = NULL,			\
	.recent_save = NULL,			\
	.theme_path = NULL,			\
	.theme_save = NULL,			\
	.thumbnail_iconise = true,		\
	.interactive_help = true,		\
	.external_hotlists = false,		\
	.external_hotlist_app = NULL

#define NSOPTION_EXTRA_TABLE \
{ "use_mouse_gestures",     OPTION_BOOL,    &nsoptions.use_mouse_gestures },\
{ "allow_text_selection",   OPTION_BOOL,    &nsoptions.allow_text_selection },\
{ "theme",                  OPTION_STRING,  &nsoptions.theme },\
{ "language",               OPTION_STRING,  &nsoptions.language },\
{ "plot_fg_quality",        OPTION_INTEGER, &nsoptions.fg_plot_style },\
{ "plot_bg_quality",        OPTION_INTEGER, &nsoptions.bg_plot_style },\
{ "history_tooltip",        OPTION_BOOL,    &nsoptions.history_tooltip }, \
{ "toolbar_show_buttons",   OPTION_BOOL,    &nsoptions.toolbar_show_buttons }, \
{ "toolbar_show_address",   OPTION_BOOL,    &nsoptions.toolbar_show_address }, \
{ "toolbar_show_throbber",  OPTION_BOOL,    &nsoptions.toolbar_show_throbber }, \
{ "toolbar_browser",	    OPTION_STRING,  &nsoptions.toolbar_browser }, \
{ "toolbar_hotlist",	    OPTION_STRING,  &nsoptions.toolbar_hotlist }, \
{ "toolbar_history",	    OPTION_STRING,  &nsoptions.toolbar_history }, \
{ "toolbar_cookies",	    OPTION_STRING,  &nsoptions.toolbar_cookies }, \
{ "window_stagger",         OPTION_BOOL,    &nsoptions.window_stagger }, \
{ "window_size_clone",      OPTION_BOOL,    &nsoptions.window_size_clone }, \
{ "buffer_animations",      OPTION_BOOL,    &nsoptions.buffer_animations }, \
{ "buffer_everything",      OPTION_BOOL,    &nsoptions.buffer_everything }, \
{ "open_browser_at_startup",OPTION_BOOL,    &nsoptions.open_browser_at_startup }, \
{ "no_plugins",             OPTION_BOOL,    &nsoptions.no_plugins }, \
{ "block_popups",           OPTION_BOOL,    &nsoptions.block_popups }, \
{ "image_memory_direct",    OPTION_INTEGER, &nsoptions.image_memory_direct }, \
{ "image_memory_compressed",OPTION_INTEGER, &nsoptions.image_memory_compressed }, \
{ "strip_extensions",       OPTION_BOOL,    &nsoptions.strip_extensions }, \
{ "confirm_overwrite",      OPTION_BOOL,    &nsoptions.confirm_overwrite }, \
{ "url_path",               OPTION_STRING,  &nsoptions.url_path }, \
{ "url_save",               OPTION_STRING,  &nsoptions.url_save }, \
{ "hotlist_path",           OPTION_STRING,  &nsoptions.hotlist_path }, \
{ "hotlist_save",           OPTION_STRING,  &nsoptions.hotlist_save }, \
{ "recent_path",            OPTION_STRING,  &nsoptions.recent_path }, \
{ "recent_save",            OPTION_STRING,  &nsoptions.recent_save }, \
{ "theme_path",             OPTION_STRING,  &nsoptions.theme_path }, \
{ "theme_save",             OPTION_STRING,  &nsoptions.theme_save }, \
{ "thumbnail_iconise",      OPTION_BOOL,    &nsoptions.thumbnail_iconise }, \
{ "interactive_help",       OPTION_BOOL,    &nsoptions.interactive_help }, \
{ "external_hotlists",      OPTION_BOOL,    &nsoptions.external_hotlists }, \
{ "external_hotlist_app",   OPTION_STRING,  &nsoptions.external_hotlist_app }

#endif