diff options
author | James Bursa <james@netsurf-browser.org> | 2004-02-13 16:09:12 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-02-13 16:09:12 +0000 |
commit | 1319ff78c89fd0c34feea187ca3d67058875fbe6 (patch) | |
tree | b3a1bb74c14305e38991db53e9119c72084daa87 /riscos/options.h | |
parent | add94ad0381bae4889dcd46620b8bfe4e4f443ce (diff) | |
download | netsurf-1319ff78c89fd0c34feea187ca3d67058875fbe6.tar.gz netsurf-1319ff78c89fd0c34feea187ca3d67058875fbe6.tar.bz2 |
[project @ 2004-02-13 16:09:12 by bursa]
Clean up and rewrite options code.
svn path=/import/netsurf/; revision=536
Diffstat (limited to 'riscos/options.h')
-rw-r--r-- | riscos/options.h | 60 |
1 files changed, 19 insertions, 41 deletions
diff --git a/riscos/options.h b/riscos/options.h index 6615edec5..368e1964c 100644 --- a/riscos/options.h +++ b/riscos/options.h @@ -3,6 +3,11 @@ * 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> + */ + +/** \file + * RISC OS specific options. */ #ifndef _NETSURF_RISCOS_OPTIONS_H_ @@ -10,48 +15,21 @@ #include "netsurf/desktop/options.h" -#define PLATFORM_OPTIONS \ - int use_mouse_gestures;\ - int allow_text_selection;\ - int use_riscos_elements;\ - int show_toolbar;\ - int show_print_preview;\ - \ - char* theme; - -/* choices made easier for the dialogue boxes. only used by the interface */ - -struct browser_choices -{ - int use_mouse_gestures; - int allow_text_selection; - int use_riscos_elements; - int show_toolbar; - int show_print_preview; -} ; +extern int option_use_mouse_gestures; +extern int option_allow_text_selection; +extern int option_show_toolbar; +extern char *option_theme; -struct proxy_choices -{ - int http; - char http_proxy[256]; - int http_port; -} ; +#define EXTRA_OPTION_DEFINE \ +int option_use_mouse_gestures = false;\ +int option_allow_text_selection = true;\ +int option_show_toolbar = true;\ +char *option_theme = 0; -struct theme_choices -{ - char name[256]; -}; - -struct ro_choices -{ - struct browser_choices browser; - struct proxy_choices proxy; - struct theme_choices theme; -}; - -void options_to_ro(struct options* opt, struct ro_choices* ro); -void ro_to_options(struct ro_choices* ro, struct options* opt); +#define EXTRA_OPTION_TABLE \ +{ "use_mouse_gestures", OPTION_BOOL, &option_use_mouse_gestures },\ +{ "allow_text_selection", OPTION_BOOL, &option_allow_text_selection },\ +{ "show_toolbar", OPTION_BOOL, &option_show_toolbar },\ +{ "theme", OPTION_STRING, &option_theme } #endif - - |