2008-10-18 17:56:12 +04:00
|
|
|
/*
|
2012-02-29 23:09:55 +04:00
|
|
|
* Copyright 2008 - 2012 Chris Young <chris@unsatisfactorysoftware.co.uk>
|
2008-10-18 17:56:12 +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/>.
|
|
|
|
*/
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
#ifndef _NETSURF_DESKTOP_OPTIONS_INCLUDING_
|
|
|
|
#error "Frontend options header cannot be included directly"
|
|
|
|
#endif
|
|
|
|
|
2008-10-18 17:56:12 +04:00
|
|
|
#ifndef AMIGA_OPTIONS_H
|
|
|
|
#define AMIGA_OPTIONS_H
|
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
#define NSOPTION_EXTRA_DEFINE \
|
|
|
|
char *url_file; \
|
|
|
|
char *hotlist_file; \
|
|
|
|
char *use_pubscreen; \
|
|
|
|
char *modeid; \
|
|
|
|
int screen_compositing; \
|
2012-04-18 23:44:09 +04:00
|
|
|
int amiga_ydpi; \
|
2012-03-22 13:34:34 +04:00
|
|
|
int cache_bitmaps; \
|
|
|
|
char *theme; \
|
|
|
|
bool utf8_clipboard; \
|
|
|
|
bool context_menu; \
|
|
|
|
bool truecolour_mouse_pointers; \
|
|
|
|
bool use_os_pointers; \
|
2012-04-18 23:44:09 +04:00
|
|
|
bool use_openurl_lib; \
|
2012-03-22 13:34:34 +04:00
|
|
|
bool new_tab_active; \
|
|
|
|
bool new_tab_last; \
|
|
|
|
bool kiosk_mode; \
|
|
|
|
char *search_engines_file; \
|
|
|
|
char *arexx_dir; \
|
|
|
|
char *arexx_startup; \
|
|
|
|
char *arexx_shutdown; \
|
|
|
|
char *download_dir; \
|
|
|
|
bool download_notify; \
|
2012-06-04 20:15:12 +04:00
|
|
|
int download_task_pri; \
|
2012-03-22 13:34:34 +04:00
|
|
|
bool faster_scroll; \
|
|
|
|
bool scale_quality; \
|
2012-08-05 19:22:41 +04:00
|
|
|
int dither_quality; \
|
2012-08-10 21:21:57 +04:00
|
|
|
int mask_alpha; \
|
2012-03-22 13:34:34 +04:00
|
|
|
bool ask_overwrite; \
|
|
|
|
int printer_unit; \
|
|
|
|
int print_scale; \
|
|
|
|
bool startup_no_window; \
|
|
|
|
bool close_no_quit; \
|
|
|
|
bool hide_docky_icon; \
|
|
|
|
char *font_unicode; \
|
2012-05-10 02:23:10 +04:00
|
|
|
char *font_unicode_list; \
|
2012-05-05 23:09:42 +04:00
|
|
|
char *font_unicode_file; \
|
|
|
|
bool font_unicode_only; \
|
2012-08-12 14:30:44 +04:00
|
|
|
bool font_antialiasing; \
|
2012-03-22 13:34:34 +04:00
|
|
|
bool drag_save_icons; \
|
|
|
|
int hotlist_window_xpos; \
|
|
|
|
int hotlist_window_ypos; \
|
|
|
|
int hotlist_window_xsize; \
|
|
|
|
int hotlist_window_ysize; \
|
|
|
|
int history_window_xpos; \
|
|
|
|
int history_window_ypos; \
|
|
|
|
int history_window_xsize; \
|
|
|
|
int history_window_ysize; \
|
|
|
|
int cookies_window_xpos; \
|
|
|
|
int cookies_window_ypos; \
|
|
|
|
int cookies_window_xsize; \
|
|
|
|
int cookies_window_ysize; \
|
|
|
|
int cairo_renderer; \
|
|
|
|
bool direct_render; \
|
2012-04-29 03:23:29 +04:00
|
|
|
bool window_simple_refresh; \
|
2012-03-22 13:34:34 +04:00
|
|
|
int redraw_tile_size_x; \
|
|
|
|
int redraw_tile_size_y; \
|
|
|
|
int monitor_aspect_x; \
|
|
|
|
int monitor_aspect_y; \
|
|
|
|
bool accept_lang_locale; \
|
|
|
|
int menu_refresh
|
|
|
|
|
|
|
|
|
|
|
|
#define NSOPTION_EXTRA_DEFAULTS \
|
|
|
|
.url_file = NULL, \
|
|
|
|
.hotlist_file = NULL, \
|
|
|
|
.use_pubscreen = NULL, \
|
|
|
|
.modeid = NULL, \
|
|
|
|
.screen_compositing = -1, \
|
2012-04-18 23:44:09 +04:00
|
|
|
.amiga_ydpi = 72, \
|
2012-03-22 13:34:34 +04:00
|
|
|
.cache_bitmaps = 0, \
|
|
|
|
.theme = NULL, \
|
|
|
|
.utf8_clipboard = false, \
|
|
|
|
.context_menu = true, \
|
|
|
|
.truecolour_mouse_pointers = false, \
|
|
|
|
.use_os_pointers = true, \
|
2012-04-18 23:44:09 +04:00
|
|
|
.use_openurl_lib = false, \
|
2012-03-22 13:34:34 +04:00
|
|
|
.new_tab_active = false, \
|
|
|
|
.new_tab_last = false, \
|
|
|
|
.kiosk_mode = false, \
|
|
|
|
.search_engines_file = NULL, \
|
|
|
|
.arexx_dir = NULL, \
|
|
|
|
.arexx_startup = NULL, \
|
|
|
|
.arexx_shutdown = NULL, \
|
|
|
|
.download_dir = NULL, \
|
|
|
|
.download_notify = false, \
|
2012-06-04 20:15:12 +04:00
|
|
|
.download_task_pri = -1, \
|
2012-03-22 13:34:34 +04:00
|
|
|
.faster_scroll = true, \
|
|
|
|
.scale_quality = false, \
|
2012-08-05 19:22:41 +04:00
|
|
|
.dither_quality = 1, \
|
2012-08-12 14:03:05 +04:00
|
|
|
.mask_alpha = 50, \
|
2012-03-22 13:34:34 +04:00
|
|
|
.ask_overwrite = true, \
|
|
|
|
.printer_unit = 0, \
|
|
|
|
.print_scale = 100, \
|
|
|
|
.startup_no_window = false, \
|
|
|
|
.close_no_quit = false, \
|
|
|
|
.hide_docky_icon = false, \
|
|
|
|
.font_unicode = NULL, \
|
2012-05-10 02:23:10 +04:00
|
|
|
.font_unicode_list = NULL, \
|
2012-05-05 19:58:17 +04:00
|
|
|
.font_unicode_file = NULL, \
|
2012-05-05 23:09:42 +04:00
|
|
|
.font_unicode_only = false, \
|
2012-08-12 14:30:44 +04:00
|
|
|
.font_antialiasing = true, \
|
2012-03-22 13:34:34 +04:00
|
|
|
.drag_save_icons = true, \
|
|
|
|
.hotlist_window_xpos = 0, \
|
|
|
|
.hotlist_window_ypos = 0, \
|
|
|
|
.hotlist_window_xsize = 0, \
|
|
|
|
.hotlist_window_ysize = 0, \
|
|
|
|
.history_window_xpos = 0, \
|
|
|
|
.history_window_ypos = 0, \
|
|
|
|
.history_window_xsize = 0, \
|
|
|
|
.history_window_ysize = 0, \
|
|
|
|
.cookies_window_xpos = 0, \
|
|
|
|
.cookies_window_ypos = 0, \
|
|
|
|
.cookies_window_xsize = 0, \
|
|
|
|
.cookies_window_ysize = 0, \
|
|
|
|
.cairo_renderer = 1, \
|
|
|
|
.direct_render = false, \
|
2012-04-29 03:23:29 +04:00
|
|
|
.window_simple_refresh = false, \
|
2012-03-22 13:34:34 +04:00
|
|
|
.redraw_tile_size_x = 400, \
|
|
|
|
.redraw_tile_size_y = 150, \
|
|
|
|
.monitor_aspect_x = 0, \
|
|
|
|
.monitor_aspect_y = 0, \
|
|
|
|
.accept_lang_locale = true, \
|
|
|
|
.menu_refresh = 0
|
2008-10-18 17:56:12 +04:00
|
|
|
|
2012-03-22 13:34:34 +04:00
|
|
|
#define NSOPTION_EXTRA_TABLE \
|
|
|
|
{ "url_file", OPTION_STRING, &nsoptions.url_file }, \
|
|
|
|
{ "hotlist_file", OPTION_STRING, &nsoptions.hotlist_file }, \
|
|
|
|
{ "use_pubscreen", OPTION_STRING, &nsoptions.use_pubscreen}, \
|
|
|
|
{ "screen_modeid", OPTION_STRING, &nsoptions.modeid}, \
|
|
|
|
{ "screen_compositing", OPTION_INTEGER, &nsoptions.screen_compositing}, \
|
2012-04-18 23:44:09 +04:00
|
|
|
{ "screen_ydpi", OPTION_INTEGER, &nsoptions.amiga_ydpi}, \
|
2012-03-22 13:34:34 +04:00
|
|
|
{ "cache_bitmaps", OPTION_INTEGER, &nsoptions.cache_bitmaps}, \
|
|
|
|
{ "theme", OPTION_STRING, &nsoptions.theme}, \
|
|
|
|
{ "clipboard_write_utf8", OPTION_BOOL, &nsoptions.utf8_clipboard}, \
|
|
|
|
{ "context_menu", OPTION_BOOL, &nsoptions.context_menu}, \
|
|
|
|
{ "truecolour_mouse_pointers", OPTION_BOOL, &nsoptions.truecolour_mouse_pointers}, \
|
|
|
|
{ "os_mouse_pointers", OPTION_BOOL, &nsoptions.use_os_pointers}, \
|
2012-04-18 23:44:09 +04:00
|
|
|
{ "use_openurl_lib", OPTION_BOOL, &nsoptions.use_openurl_lib}, \
|
2012-03-22 13:34:34 +04:00
|
|
|
{ "new_tab_is_active", OPTION_BOOL, &nsoptions.new_tab_active}, \
|
|
|
|
{ "new_tab_last", OPTION_BOOL, &nsoptions.new_tab_last}, \
|
|
|
|
{ "kiosk_mode", OPTION_BOOL, &nsoptions.kiosk_mode}, \
|
|
|
|
{ "search_engines_file",OPTION_STRING, &nsoptions.search_engines_file }, \
|
|
|
|
{ "arexx_dir", OPTION_STRING, &nsoptions.arexx_dir }, \
|
|
|
|
{ "arexx_startup", OPTION_STRING, &nsoptions.arexx_startup }, \
|
|
|
|
{ "arexx_shutdown", OPTION_STRING, &nsoptions.arexx_shutdown }, \
|
|
|
|
{ "download_dir", OPTION_STRING, &nsoptions.download_dir }, \
|
|
|
|
{ "download_notify", OPTION_BOOL, &nsoptions.download_notify}, \
|
2012-06-04 20:15:12 +04:00
|
|
|
{ "download_task_pri", OPTION_INTEGER, &nsoptions.download_task_pri}, \
|
2012-03-22 13:34:34 +04:00
|
|
|
{ "faster_scroll", OPTION_BOOL, &nsoptions.faster_scroll}, \
|
|
|
|
{ "scale_quality", OPTION_BOOL, &nsoptions.scale_quality}, \
|
2012-08-05 19:22:41 +04:00
|
|
|
{ "dither_quality", OPTION_INTEGER, &nsoptions.dither_quality}, \
|
2012-08-10 21:21:57 +04:00
|
|
|
{ "mask_alpha", OPTION_INTEGER, &nsoptions.mask_alpha}, \
|
2012-03-22 13:34:34 +04:00
|
|
|
{ "ask_overwrite", OPTION_BOOL, &nsoptions.ask_overwrite}, \
|
|
|
|
{ "printer_unit", OPTION_INTEGER, &nsoptions.printer_unit}, \
|
|
|
|
{ "print_scale", OPTION_INTEGER, &nsoptions.print_scale}, \
|
|
|
|
{ "startup_no_window", OPTION_BOOL, &nsoptions.startup_no_window}, \
|
|
|
|
{ "close_no_quit", OPTION_BOOL, &nsoptions.close_no_quit}, \
|
|
|
|
{ "hide_docky_icon", OPTION_BOOL, &nsoptions.hide_docky_icon}, \
|
|
|
|
{ "font_unicode", OPTION_STRING, &nsoptions.font_unicode }, \
|
2012-05-10 02:23:10 +04:00
|
|
|
{ "font_unicode_list", OPTION_STRING, &nsoptions.font_unicode_list }, \
|
2012-05-05 19:58:17 +04:00
|
|
|
{ "font_unicode_file", OPTION_STRING, &nsoptions.font_unicode_file }, \
|
2012-05-05 23:09:42 +04:00
|
|
|
{ "font_unicode_only", OPTION_BOOL, &nsoptions.font_unicode_only }, \
|
2012-08-12 14:30:44 +04:00
|
|
|
{ "font_antialiasing", OPTION_BOOL, &nsoptions.font_antialiasing }, \
|
2012-03-22 13:34:34 +04:00
|
|
|
{ "drag_save_icons", OPTION_BOOL, &nsoptions.drag_save_icons}, \
|
|
|
|
{ "hotlist_window_xpos", OPTION_INTEGER, &nsoptions.hotlist_window_xpos}, \
|
|
|
|
{ "hotlist_window_ypos", OPTION_INTEGER, &nsoptions.hotlist_window_ypos}, \
|
|
|
|
{ "hotlist_window_xsize", OPTION_INTEGER, &nsoptions.hotlist_window_xsize}, \
|
|
|
|
{ "hotlist_window_ysize", OPTION_INTEGER, &nsoptions.hotlist_window_ysize}, \
|
|
|
|
{ "history_window_xpos", OPTION_INTEGER, &nsoptions.history_window_xpos}, \
|
|
|
|
{ "history_window_ypos", OPTION_INTEGER, &nsoptions.history_window_ypos}, \
|
|
|
|
{ "history_window_xsize", OPTION_INTEGER, &nsoptions.history_window_xsize}, \
|
|
|
|
{ "history_window_ysize", OPTION_INTEGER, &nsoptions.history_window_ysize}, \
|
|
|
|
{ "cookies_window_xpos", OPTION_INTEGER, &nsoptions.cookies_window_xpos}, \
|
|
|
|
{ "cookies_window_ypos", OPTION_INTEGER, &nsoptions.cookies_window_ypos}, \
|
|
|
|
{ "cookies_window_xsize", OPTION_INTEGER, &nsoptions.cookies_window_xsize}, \
|
|
|
|
{ "cookies_window_ysize", OPTION_INTEGER, &nsoptions.cookies_window_ysize}, \
|
|
|
|
{ "cairo_renderer", OPTION_INTEGER, &nsoptions.cairo_renderer}, \
|
|
|
|
{ "direct_render", OPTION_BOOL, &nsoptions.direct_render}, \
|
2012-04-29 03:23:29 +04:00
|
|
|
{ "window_simple_refresh", OPTION_BOOL, &nsoptions.window_simple_refresh}, \
|
2012-03-22 13:34:34 +04:00
|
|
|
{ "redraw_tile_size_x", OPTION_INTEGER, &nsoptions.redraw_tile_size_x}, \
|
|
|
|
{ "redraw_tile_size_y", OPTION_INTEGER, &nsoptions.redraw_tile_size_y}, \
|
|
|
|
{ "monitor_aspect_x", OPTION_INTEGER, &nsoptions.monitor_aspect_x}, \
|
|
|
|
{ "monitor_aspect_y", OPTION_INTEGER, &nsoptions.monitor_aspect_y}, \
|
|
|
|
{ "accept_lang_locale", OPTION_BOOL, &nsoptions.accept_lang_locale}, \
|
|
|
|
{ "menu_refresh", OPTION_INTEGER, &nsoptions.menu_refresh}
|
2008-10-18 17:56:12 +04:00
|
|
|
|
|
|
|
#endif
|