summaryrefslogtreecommitdiff
path: root/riscos/options.h
blob: 9324865696ae86bf67cb59518925c912edd98657 (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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
/*
 * 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>
 * Copyright 2004 James Bursa <bursa@users.sourceforge.net>
 * Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net>
 */

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

#ifndef _NETSURF_RISCOS_OPTIONS_H_
#define _NETSURF_RISCOS_OPTIONS_H_

#include "netsurf/desktop/options.h"
#include "netsurf/riscos/tinct.h"

extern bool option_use_mouse_gestures;
extern bool option_allow_text_selection;
extern char *option_theme;
extern char *option_language;
extern int option_fg_plot_style;	/* tinct flagword */
extern int option_bg_plot_style;	/* tinct flagword */
extern bool option_thumbnail_32bpp;
extern bool option_history_tooltip;
extern int option_scale;
extern int option_toolbar_status_width;
extern bool option_toolbar_show_status;
extern bool option_toolbar_show_buttons;
extern bool option_toolbar_show_address;
extern bool option_toolbar_show_throbber;
extern bool option_animate_images;
extern int option_window_x;
extern int option_window_y;
extern int option_window_width;
extern int option_window_height;
extern int option_window_screen_width;
extern int option_window_screen_height;
extern bool option_window_stagger;
extern bool option_window_size_clone;
extern bool option_background_images;
extern bool option_background_blending;
extern bool option_buffer_animations;
extern bool option_buffer_everything;
extern char *option_homepage_url;
extern bool option_open_browser_at_startup;
extern bool option_no_plugins;
extern char *option_font_sans;
extern char *option_font_sans_italic;
extern char *option_font_sans_bold;
extern char *option_font_sans_bold_italic;
extern char *option_font_serif;
extern char *option_font_serif_italic;
extern char *option_font_serif_bold;
extern char *option_font_serif_bold_italic;
extern char *option_font_mono;
extern char *option_font_mono_italic;
extern char *option_font_mono_bold;
extern char *option_font_mono_bold_italic;
extern char *option_font_cursive;
extern char *option_font_cursive_italic;
extern char *option_font_cursive_bold;
extern char *option_font_cursive_bold_italic;
extern char *option_font_fantasy;
extern char *option_font_fantasy_italic;
extern char *option_font_fantasy_bold;
extern char *option_font_fantasy_bold_italic;
extern char *option_font_default;
extern char *option_font_default_italic;
extern char *option_font_default_bold;
extern char *option_font_default_bold_italic;
extern bool option_font_ufont;

#define EXTRA_OPTION_DEFINE \
bool option_use_mouse_gestures = false;\
bool option_allow_text_selection = true;\
char *option_theme = 0;\
char *option_language = 0;\
int option_fg_plot_style = tinct_ERROR_DIFFUSE;\
int option_bg_plot_style = tinct_DITHER;\
bool option_thumbnail_32bpp = true;\
bool option_history_tooltip = true; \
int option_scale = 100; \
int option_toolbar_status_width = 5000; \
bool option_toolbar_show_status = true; \
bool option_toolbar_show_buttons = true; \
bool option_toolbar_show_address = true; \
bool option_toolbar_show_throbber = true; \
bool option_animate_images = true; \
int option_window_x = 0; \
int option_window_y = 0; \
int option_window_width = 0; \
int option_window_height = 0; \
int option_window_screen_width = 0; \
int option_window_screen_height = 0; \
bool option_window_stagger = true; \
bool option_window_size_clone = true; \
bool option_background_images = true; \
bool option_background_blending = true; \
bool option_buffer_animations = true; \
bool option_buffer_everything = false; \
char *option_homepage_url = 0; \
bool option_open_browser_at_startup = false; \
bool option_no_plugins = false; \
char *option_font_sans = 0; \
char *option_font_sans_italic = 0; \
char *option_font_sans_bold = 0; \
char *option_font_sans_bold_italic = 0; \
char *option_font_serif = 0; \
char *option_font_serif_italic = 0; \
char *option_font_serif_bold = 0; \
char *option_font_serif_bold_italic = 0; \
char *option_font_mono = 0; \
char *option_font_mono_italic = 0; \
char *option_font_mono_bold = 0; \
char *option_font_mono_bold_italic = 0; \
char *option_font_cursive = 0; \
char *option_font_cursive_italic = 0; \
char *option_font_cursive_bold = 0; \
char *option_font_cursive_bold_italic = 0; \
char *option_font_fantasy = 0; \
char *option_font_fantasy_italic = 0; \
char *option_font_fantasy_bold = 0; \
char *option_font_fantasy_bold_italic = 0; \
char *option_font_default = 0; \
char *option_font_default_italic = 0; \
char *option_font_default_bold = 0; \
char *option_font_default_bold_italic = 0; \
bool option_font_ufont = false;

#define EXTRA_OPTION_TABLE \
{ "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 },\
{ "plot_fg_quality",        OPTION_INTEGER, &option_fg_plot_style },\
{ "plot_bg_quality",        OPTION_INTEGER, &option_bg_plot_style },\
{ "thumbnail_32bpp",        OPTION_BOOL,    &option_thumbnail_32bpp },\
{ "history_tooltip",        OPTION_BOOL,    &option_history_tooltip }, \
{ "scale",                  OPTION_INTEGER, &option_scale }, \
{ "toolbar_show_status",    OPTION_BOOL,    &option_toolbar_show_status }, \
{ "toolbar_status_size",    OPTION_INTEGER, &option_toolbar_status_width }, \
{ "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 }, \
{ "animate_images",         OPTION_BOOL,    &option_animate_images }, \
{ "window_x",               OPTION_INTEGER, &option_window_x }, \
{ "window_y",               OPTION_INTEGER, &option_window_y }, \
{ "window_width",           OPTION_INTEGER, &option_window_width }, \
{ "window_height",          OPTION_INTEGER, &option_window_height }, \
{ "window_screen_width",    OPTION_INTEGER, &option_window_screen_width }, \
{ "window_screen_height",   OPTION_INTEGER, &option_window_screen_height }, \
{ "window_stagger",         OPTION_BOOL,    &option_window_stagger }, \
{ "window_size_clone",      OPTION_BOOL,    &option_window_size_clone }, \
{ "background_images",      OPTION_BOOL,    &option_background_images }, \
{ "background_blending",    OPTION_BOOL,    &option_background_blending }, \
{ "buffer_animations",      OPTION_BOOL,    &option_buffer_animations }, \
{ "buffer_everything",      OPTION_BOOL,    &option_buffer_everything }, \
{ "homepage_url",           OPTION_STRING,  &option_homepage_url }, \
{ "open_browser_at_startup",OPTION_BOOL,    &option_open_browser_at_startup }, \
{ "no_plugins",             OPTION_BOOL,    &option_no_plugins }, \
{ "font_sans",              OPTION_STRING,  &option_font_sans }, \
{ "font_sans_italic",       OPTION_STRING,  &option_font_sans_italic }, \
{ "font_sans_bold",         OPTION_STRING,  &option_font_sans_bold }, \
{ "font_sans_bold_italic",  OPTION_STRING,  &option_font_sans_bold_italic }, \
{ "font_serif",             OPTION_STRING,  &option_font_serif }, \
{ "font_serif_italic",      OPTION_STRING,  &option_font_serif_italic }, \
{ "font_serif_bold",        OPTION_STRING,  &option_font_serif_bold }, \
{ "font_serif_bold_italic", OPTION_STRING,  &option_font_serif_bold_italic }, \
{ "font_mono",              OPTION_STRING,  &option_font_mono }, \
{ "font_mono_italic",       OPTION_STRING,  &option_font_mono_italic }, \
{ "font_mono_bold",         OPTION_STRING,  &option_font_mono_bold }, \
{ "font_mono_bold_italic",  OPTION_STRING,  &option_font_mono_bold_italic }, \
{ "font_cursive",           OPTION_STRING,  &option_font_cursive }, \
{ "font_cursive_italic",    OPTION_STRING,  &option_font_cursive_italic }, \
{ "font_cursive_bold",      OPTION_STRING,  &option_font_cursive_bold }, \
{ "font_cursive_bold_italic", OPTION_STRING,  &option_font_cursive_bold_italic }, \
{ "font_fantasy",           OPTION_STRING,  &option_font_fantasy }, \
{ "font_fantasy_italic",    OPTION_STRING,  &option_font_fantasy_italic }, \
{ "font_fantasy_bold",      OPTION_STRING,  &option_font_fantasy_bold }, \
{ "font_fantasy_bold_italic", OPTION_STRING,  &option_font_fantasy_bold_italic }, \
{ "font_default",           OPTION_STRING,  &option_font_default }, \
{ "font_default_italic",    OPTION_STRING,  &option_font_default_italic }, \
{ "font_default_bold",      OPTION_STRING,  &option_font_default_bold }, \
{ "font_default_bold_italic", OPTION_STRING,  &option_font_default_bold_italic }, \
{ "font_ufont",             OPTION_BOOL,    &option_font_ufont}

#endif