22#include <proto/exec.h>
23#include <proto/graphics.h>
24#include <proto/intuition.h>
25#include <proto/utility.h>
27#include <proto/application.h>
29#include <libraries/gadtools.h>
30#include <exec/types.h>
31#include <intuition/classusr.h>
32#include <graphics/gfxbase.h>
34#include <proto/window.h>
35#include <proto/layout.h>
36#include <proto/button.h>
37#include <proto/clicktab.h>
38#include <proto/label.h>
39#include <proto/string.h>
40#include <proto/checkbox.h>
41#include <proto/radiobutton.h>
42#include <proto/getscreenmode.h>
43#include <proto/getfile.h>
44#include <proto/chooser.h>
45#include <proto/integer.h>
46#include <proto/getfont.h>
47#include <classes/window.h>
48#include <images/label.h>
49#include <gadgets/button.h>
50#include <gadgets/clicktab.h>
51#include <gadgets/string.h>
52#include <gadgets/checkbox.h>
53#include <gadgets/radiobutton.h>
54#include <gadgets/getscreenmode.h>
55#include <gadgets/getfile.h>
56#include <gadgets/chooser.h>
57#include <gadgets/integer.h>
58#include <gadgets/getfont.h>
59#include <reaction/reaction.h>
60#include <reaction/reaction_macros.h>
213#define OPTS_LAST LAB_OPTS_LAST
214#define OPTS_MAX_TABS 10
215#define OPTS_MAX_SCREEN 4
216#define OPTS_MAX_THEMEPAGE 3
217#define OPTS_MAX_PROXY 5
218#define OPTS_MAX_NATIVEBM 4
219#define OPTS_MAX_DITHER 4
273#define AMI_GUI_OPTS_REFRESH_FONT_BM(TYPE) RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_FONT_##TYPE], \
275 GETFONT_TextAttr, &default_bm_font_##TYPE, \
276 GETFONT_OTagOnly, FALSE, \
277 GETFONT_ScalableOnly, FALSE, \
280#define AMI_GUI_OPTS_REFRESH_FONT_CG(TYPE) RefreshSetGadgetAttrs((struct Gadget *)gow->objects[GID_OPTS_FONT_##TYPE], \
282 GETFONT_TextAttr, &default_cg_font_##TYPE, \
283 GETFONT_OTagOnly, TRUE, \
284 GETFONT_ScalableOnly, TRUE, \
312 node = AllocClickTabNode(TNA_Text, array[i], TNA_Number, i, TAG_DONE);
315 node = AllocChooserNode(CNA_Text, array[i], TAG_DONE);
319 node = AllocRadioButtonNode(0, RBNA_Labels, array[i], TAG_DONE);
326 }
while (array[i] != 0);
334 if(IsListEmpty((
struct List *)list))
return;
335 node =
GetHead((
struct List *)list);
343 FreeClickTabNode(node);
346 FreeChooserNode(node);
349 FreeRadioButtonNode(node);
355 }
while((node = nnode));
386#ifdef WITH_PDF_EXPORT
592 uint16 screenoptsselected;
593 ULONG screenmodeid = 0;
595 BOOL screenmodedisabled = FALSE, screennamedisabled = FALSE;
596 BOOL proxyhostdisabled = TRUE, proxyauthdisabled = TRUE, proxybypassdisabled = FALSE;
597 BOOL disableanims, acceptlangdisabled = FALSE;
598 BOOL scaleselected =
nsoption_bool(scale_quality), scaledisabled = FALSE;
599 BOOL ditherdisable = TRUE;
600 BOOL download_notify_disabled = FALSE, tab_always_show_disabled = FALSE;
601 BOOL ptr_disable = FALSE;
604 struct TextAttr fontsans, fontserif, fontmono, fontcursive, fontfantasy;
614 if(
LIB_IS_AT_LEAST((
struct Library *)IntuitionBase, 53, 42)) ptr_disable = TRUE;
623 screenoptsselected = 1;
624 screennamedisabled = TRUE;
625 screenmodedisabled = TRUE;
629 screenoptsselected = 2;
630 screenmodedisabled = TRUE;
635 screenoptsselected = 0;
636 screennamedisabled = TRUE;
646 ditherdisable = FALSE;
656 proxyauthdisabled = FALSE;
658 proxyhostdisabled = FALSE;
662 proxybypassdisabled = TRUE;
667 disableanims = FALSE;
675 acceptlangdisabled = TRUE;
677 acceptlangdisabled = FALSE;
679 if(GfxBase->LibNode.lib_Version < 53)
681 scaledisabled = TRUE;
682 scaleselected = FALSE;
685 if(ApplicationBase->lib_Version < 53)
688 download_notify_disabled = TRUE;
692 if(ClickTabBase->lib_Version < 53) {
693 tab_always_show_disabled = TRUE;
704 fontsans.ta_Style = 0;
705 fontserif.ta_Style = 0;
706 fontmono.ta_Style = 0;
707 fontcursive.ta_Style = 0;
708 fontfantasy.ta_Style = 0;
710 fontsans.ta_YSize = 0;
711 fontserif.ta_YSize = 0;
712 fontmono.ta_YSize = 0;
713 fontcursive.ta_YSize = 0;
714 fontfantasy.ta_YSize = 0;
716 fontsans.ta_Flags = 0;
717 fontserif.ta_Flags = 0;
718 fontmono.ta_Flags = 0;
719 fontcursive.ta_Flags = 0;
720 fontfantasy.ta_Flags = 0;
725 if(
gow == NULL)
return;
733 WA_DepthGadget, TRUE,
735 WA_CloseGadget, TRUE,
736 WA_SizeGadget, FALSE,
740 WINDOW_IconifyGadget, FALSE,
741 WINDOW_Position, WPOS_CENTERSCREEN,
742 WA_IDCMP, IDCMP_GADGETUP | IDCMP_CLOSEWINDOW,
758 LAYOUT_SpaceOuter, TRUE,
759 LAYOUT_BevelStyle, BVS_GROUP,
764 STRINGA_TextVal, homepage_url_lc,
788 CHILD_WeightedHeight, 0,
791 LAYOUT_SpaceOuter, TRUE,
792 LAYOUT_BevelStyle, BVS_GROUP,
802 LAYOUT_SpaceOuter, TRUE,
803 LAYOUT_BevelStyle, BVS_GROUP,
808 GA_Disabled, acceptlangdisabled,
823 LAYOUT_SpaceOuter, TRUE,
824 LAYOUT_BevelStyle, BVS_GROUP,
827 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
833 INTEGER_Maximum, 366,
834 INTEGER_Arrows, TRUE,
836 CHILD_WeightedWidth, 0,
841 CHILD_WeightedWidth, 0,
847 LAYOUT_SpaceOuter, TRUE,
848 LAYOUT_BevelStyle, BVS_GROUP,
858 CHILD_WeightedHeight, 0,
860 LAYOUT_SpaceOuter, TRUE,
861 LAYOUT_BevelStyle, BVS_GROUP,
876 CHILD_WeightedHeight, 0,
878 CHILD_WeightedHeight, 0,
886 LAYOUT_SpaceOuter, TRUE,
887 LAYOUT_BevelStyle, BVS_GROUP,
898 RADIOBUTTON_Selected, screenoptsselected,
900 CHILD_WeightedWidth,0,
905 GA_Disabled,screenmodedisabled,
906 GETSCREENMODE_DisplayID,screenmodeid,
907 GETSCREENMODE_MinDepth, 0,
908 GETSCREENMODE_MaxDepth, 32,
913 GA_Disabled,screennamedisabled,
918 CHILD_WeightedHeight,0,
921 CHILD_WeightedHeight,0,
923 LAYOUT_SpaceOuter, TRUE,
924 LAYOUT_BevelStyle, BVS_GROUP,
933 CHILD_WeightedHeight,0,
935 LAYOUT_SpaceOuter, TRUE,
936 LAYOUT_BevelStyle, BVS_GROUP,
942 GETFILE_DrawersOnly, TRUE,
943 GETFILE_ReadOnly, TRUE,
944 GETFILE_FullFileExpand, FALSE,
964 CHILD_WeightedHeight, 0,
966 LAYOUT_SpaceOuter, TRUE,
967 LAYOUT_BevelStyle, BVS_GROUP,
974 GA_Disabled, ptr_disable,
981 GA_Disabled, ptr_disable,
984 CHILD_WeightedHeight,0,
989 CHILD_WeightedHeight, 0,
997 LAYOUT_SpaceOuter, TRUE,
998 LAYOUT_BevelStyle, BVS_GROUP,
1003 CHOOSER_PopUp, TRUE,
1009 CHOOSER_Selected, proxytype,
1018 GA_Disabled, proxyhostdisabled,
1020 STRINGA_BufferPos,0,
1025 GA_Disabled, proxyhostdisabled,
1028 INTEGER_Maximum, 65535,
1029 INTEGER_Arrows, FALSE,
1031 CHILD_WeightedWidth, 0,
1036 CHILD_WeightedHeight, 0,
1043 GA_Disabled, proxyauthdisabled,
1045 STRINGA_BufferPos,0,
1053 GA_Disabled, proxyauthdisabled,
1055 STRINGA_BufferPos,0,
1063 GA_Disabled, proxybypassdisabled,
1065 STRINGA_BufferPos, 0,
1071 CHILD_WeightedHeight, 0,
1073 LAYOUT_SpaceOuter, TRUE,
1074 LAYOUT_BevelStyle, BVS_GROUP,
1081 INTEGER_Maximum, 99,
1082 INTEGER_Arrows, TRUE,
1084 CHILD_WeightedWidth, 0,
1093 INTEGER_Maximum, 99,
1094 INTEGER_Arrows, TRUE,
1096 CHILD_WeightedWidth, 0,
1103 INTEGER_Number,
nsoption_int(max_cached_fetch_handles),
1105 INTEGER_Maximum, 99,
1106 INTEGER_Arrows, TRUE,
1108 CHILD_WeightedWidth, 0,
1113 CHILD_WeightedHeight, 0,
1115 CHILD_WeightedHeight, 0,
1123 LAYOUT_SpaceOuter, TRUE,
1124 LAYOUT_BevelStyle, BVS_GROUP,
1129 CHOOSER_PopUp, TRUE,
1143 GA_Disabled, ditherdisable,
1144 CHOOSER_PopUp, TRUE,
1157 GA_Disabled, scaledisabled,
1160 GA_Selected, scaleselected,
1163 CHILD_WeightedHeight, 0,
1165 LAYOUT_SpaceOuter, TRUE,
1166 LAYOUT_BevelStyle, BVS_GROUP,
1172 GA_Selected, disableanims,
1175 CHILD_WeightedHeight, 0,
1177 LAYOUT_SpaceOuter, TRUE,
1178 LAYOUT_BevelStyle, BVS_GROUP,
1181 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1186 INTEGER_Minimum, 20,
1187 INTEGER_Maximum, 200,
1188 INTEGER_Arrows, TRUE,
1190 CHILD_WeightedWidth, 0,
1199 CHILD_WeightedHeight, 0,
1201 CHILD_WeightedHeight, 0,
1209 LAYOUT_SpaceOuter, TRUE,
1210 LAYOUT_BevelStyle, BVS_GROUP,
1215 GETFONT_TextAttr, &fontsans,
1225 GETFONT_TextAttr, &fontserif,
1235 GETFONT_TextAttr, &fontmono,
1238 GETFONT_FixedWidthOnly, TRUE,
1246 GETFONT_TextAttr, &fontcursive,
1256 GETFONT_TextAttr, &fontfantasy,
1266 CHOOSER_PopUp, TRUE,
1278 CHILD_WeightedHeight, 0,
1281 LAYOUT_SpaceOuter, TRUE,
1282 LAYOUT_BevelStyle, BVS_GROUP,
1285 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1291 INTEGER_Maximum, 99,
1292 INTEGER_Arrows, TRUE,
1294 CHILD_WeightedWidth, 0,
1303 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1309 INTEGER_Maximum, 99,
1310 INTEGER_Arrows, TRUE,
1312 CHILD_WeightedWidth, 0,
1322 LAYOUT_SpaceOuter, TRUE,
1323 LAYOUT_BevelStyle, BVS_GROUP,
1338 CHOOSER_PopUp, TRUE,
1351 CHILD_WeightedHeight, 0,
1353 CHILD_WeightedHeight, 0,
1361 LAYOUT_SpaceOuter, TRUE,
1362 LAYOUT_BevelStyle, BVS_GROUP,
1365 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1369 INTEGER_Number,
nsoption_int(memory_cache_size) / 1048576,
1371 INTEGER_Maximum, 2048,
1372 INTEGER_Arrows, TRUE,
1374 CHILD_WeightedWidth, 0,
1383 CHILD_WeightedHeight, 0,
1385 LAYOUT_SpaceOuter, TRUE,
1386 LAYOUT_BevelStyle, BVS_GROUP,
1389 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1395 INTEGER_Maximum, 4096,
1396 INTEGER_Arrows, TRUE,
1398 CHILD_WeightedWidth, 0,
1407 CHILD_WeightedHeight, 0,
1409 CHILD_WeightedHeight, 0,
1418 LAYOUT_SpaceOuter, TRUE,
1419 LAYOUT_BevelStyle, BVS_GROUP,
1438 GA_Disabled, tab_always_show_disabled,
1449 CHILD_WeightedHeight, 0,
1457 LAYOUT_SpaceOuter, TRUE,
1458 LAYOUT_BevelStyle, BVS_GROUP,
1471 GA_Disabled, download_notify_disabled,
1483 GETFILE_DrawersOnly, TRUE,
1484 GETFILE_ReadOnly, TRUE,
1485 GETFILE_FullFileExpand, FALSE,
1491 CHILD_WeightedHeight, 0,
1494 LAYOUT_SpaceOuter, TRUE,
1495 LAYOUT_BevelStyle, BVS_GROUP,
1519 CHILD_WeightedHeight, 0,
1521 CHILD_WeightedHeight, 0,
1524 LAYOUT_SpaceOuter, TRUE,
1525 LAYOUT_BevelStyle, BVS_GROUP,
1534 CHILD_WeightedHeight, 0,
1536 LAYOUT_SpaceOuter, TRUE,
1537 LAYOUT_BevelStyle, BVS_GROUP,
1542 CHOOSER_PopUp, TRUE,
1545 CHOOSER_MaxLabels, 40,
1551 CHILD_WeightedHeight, 0,
1553 CHILD_WeightedHeight, 0,
1555 LAYOUT_BevelStyle, BVS_GROUP,
1557 LAYOUT_SpaceOuter, TRUE,
1578 CHILD_WeightedHeight, 0,
1581 CHILD_WeightedHeight, 0,
1586#ifdef WITH_PDF_EXPORT
1590 LAYOUT_SpaceOuter, TRUE,
1591 LAYOUT_BevelStyle, BVS_GROUP,
1594 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1600 INTEGER_Maximum, 99,
1601 INTEGER_Arrows, TRUE,
1603 CHILD_WeightedWidth, 0,
1612 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1618 INTEGER_Maximum, 99,
1619 INTEGER_Arrows, TRUE,
1621 CHILD_WeightedWidth, 0,
1630 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1636 INTEGER_Maximum, 99,
1637 INTEGER_Arrows, TRUE,
1639 CHILD_WeightedWidth, 0,
1648 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1654 INTEGER_Maximum, 99,
1655 INTEGER_Arrows, TRUE,
1657 CHILD_WeightedWidth, 0,
1666 CHILD_WeightedHeight, 0,
1668 LAYOUT_SpaceOuter, TRUE,
1669 LAYOUT_BevelStyle, BVS_GROUP,
1672 LAYOUT_LabelColumn, PLACETEXT_RIGHT,
1678 INTEGER_Maximum, 100,
1679 INTEGER_Arrows, TRUE,
1681 CHILD_WeightedWidth, 0,
1690 CHILD_WeightedHeight, 0,
1692 LAYOUT_SpaceOuter, TRUE,
1693 LAYOUT_BevelStyle, BVS_GROUP,
1714 CHILD_WeightedHeight, 0,
1716 LAYOUT_SpaceOuter, TRUE,
1717 LAYOUT_BevelStyle, BVS_GROUP,
1733 CHILD_WeightedHeight, 0,
1735 CHILD_WeightedHeight, 0,
1769 struct Node *tmp_node = NULL;
1770 struct TextAttr *tattr;
1773 bool rescan_fonts =
false;
1774 bool old_tab_always_show;
1859 char *modeid = malloc(20);
1860 sprintf(modeid,
"0x%lx",
id);
1865 if ((data == TRUE) && (
nsoption_bool(window_simple_refresh) ==
false)) {
1868 }
else if ((data == FALSE) && (
nsoption_bool(window_simple_refresh) ==
true)) {
1948 tattr = (
struct TextAttr *)data;
1950 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1954 tattr = (
struct TextAttr *)data;
1956 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1960 tattr = (
struct TextAttr *)data;
1962 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1966 tattr = (
struct TextAttr *)data;
1968 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
1972 tattr = (
struct TextAttr *)data;
1974 if((dot = strrchr(tattr->ta_Name,
'.'))) *dot =
'\0';
2066 if(tmp_node != NULL) {
2067 GetChooserNodeAttrs(tmp_node, CNA_Text, (ULONG *)&label, TAG_DONE);
2112#ifdef WITH_PDF_EXPORT
2159 if(rescan_fonts ==
true) {
2190 switch(
result & WMHI_CLASSMASK)
2192 case WMHI_CLOSEWINDOW:
2197 case WMHI_GADGETHELP:
2200 if((
result & WMHI_GADGETMASK) == 0) {
2211 switch(
result & WMHI_GADGETMASK)
2230 gow->
win,NULL,STRINGA_TextVal,NETSURF_HOMEPAGE,
2236 gow->
win, NULL, STRINGA_TextVal,
2242 gow->
win, NULL, STRINGA_TextVal,
2243 "about:blank", TAG_DONE);
2248 gow->
win, NULL, GA_Disabled, code, TAG_DONE);
2253 gow->
win, NULL, STRINGA_TextVal,
text, TAG_DONE);
2264 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2266 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2271 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2273 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2278 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2280 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2301 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2303 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2306 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2308 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2310 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2314 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2316 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2319 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2321 gow->
win,NULL, GA_Disabled, TRUE, TAG_DONE);
2323 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2329 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2331 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2334 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2336 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2338 gow->
win,NULL, GA_Disabled, FALSE, TAG_DONE);
2399 list = malloc(
sizeof(
struct List));
2405 node = AllocChooserNode(CNA_Text, name, TAG_DONE);
2406 AddTail(list, node);
2423 if(websearchlist == NULL)
return;
2424 if(IsListEmpty(websearchlist))
return;
2425 node =
GetHead(websearchlist);
2430 FreeChooserNode(node);
2431 }
while((node = nnode));
2433 free(websearchlist);
struct Screen * ami_gui_get_screen(void)
Get a pointer to the screen NetSurf is running on.
nserror ami_gui_win_list_add(void *win, int type, const struct ami_win_event_table *table)
Add a window to the NetSurf window list (to enable event processing)
struct gui_window * ami_gui_get_active_gw(void)
Get a pointer to the gui_window which NetSurf considers to be the current/active one.
STRPTR ami_gui_get_screen_title(void)
Get the string for NetSurf's screen titlebar.
STRPTR ami_locale_langs(int *codeset)
void ami_gui_win_list_remove(void *win)
Remove a window from the NetSurf window list.
struct browser_window * ami_gui_get_browser_window(struct gui_window *gw)
Get browser window from gui_window.
void ami_gui_tabs_toggle_all(void)
struct MsgPort * ami_gui_get_shared_msgport(void)
Get shared message port.
void ami_help_open(ULONG node, struct Screen *screen)
char * translate_escape_chars(const char *s)
returns a string with escape chars translated and string converted to local charset (based on remove_...
bool ami_plot_screen_is_palettemapped(void)
void ami_update_pointer(struct Window *win, gui_pointer_shape shape)
Browser window creation and manipulation interface.
struct nsurl * browser_window_access_url(const struct browser_window *bw)
Access a browser window's URL.
nserror search_web_select_provider(const char *selection)
Change the currently selected web search provider.
ssize_t search_web_iterate_providers(ssize_t iter, const char **name)
Iterate the search providers, returning their names.
void ami_font_finiscanner(void)
void ami_font_initscanner(bool force, bool save)
void ami_font_savescanner(void)
void ami_file_req_free(void)
void ami_file_req_init(void)
void ami_font_setdevicedpi(int id)
nserror ami_nsoption_write(void)
void ami_utf8_free(char *ptr)
char * ami_to_utf8_easy(const char *string)
char * ami_utf8_easy(const char *string)
static char * download_dir
Current download directory.
static struct TextAttr default_bm_font_FANTASY
@ GID_OPTS_STARTUP_NO_WIN
@ GID_OPTS_FONT_ANTIALIASING
@ GID_OPTS_HOMEPAGE_CURRENT
@ GID_OPTS_HOMEPAGE_DEFAULT
@ GID_OPTS_EXPORT_PASSWORD
@ GID_OPTS_EXPORT_NOIMAGES
@ GID_OPTS_EXPORT_COMPRESS
@ GID_OPTS_HOMEPAGE_BLANK
static struct TextAttr default_cg_font_MONO
static CONST_STRPTR ditheropts[OPTS_MAX_DITHER]
@ GRP_OPTS_CONTENTBLOCKING
@ GRP_OPTS_CONTENTLANGUAGE
static CONST_STRPTR proxyopts[OPTS_MAX_PROXY]
static struct TextAttr default_cg_font_CURSIVE
static void ami_gui_opts_array_to_list(struct List *list, const char *array[], int type)
static CONST_STRPTR tabs[OPTS_MAX_TABS]
static void ami_gui_opts_close(void *w)
#define OPTS_MAX_THEMEPAGE
static STRPTR screenopts[OPTS_MAX_SCREEN]
static struct ami_gui_opts_window * gow
static void ami_gui_opts_free(struct ami_gui_opts_window *gow)
static struct TextAttr default_bm_font_MONO
static CONST_STRPTR fontengines[3]
static struct TextAttr default_bm_font_SERIF
static struct TextAttr default_cg_font_SANS
void ami_gui_opts_websearch_free(struct List *websearchlist)
#define AMI_GUI_OPTS_REFRESH_FONT_CG(TYPE)
static void ami_gui_opts_set_default_fonts(struct ami_gui_opts_window *gow, BOOL outline)
static void ami_gui_opts_use(bool save)
static BOOL ami_gui_opts_event(void *w)
static void ami_gui_opts_setup(struct ami_gui_opts_window *gow)
static struct TextAttr default_bm_font_CURSIVE
static CONST_STRPTR nativebmopts[OPTS_MAX_NATIVEBM]
static struct TextAttr default_cg_font_SERIF
static CONST_STRPTR pagethemeopts[OPTS_MAX_THEMEPAGE]
static const struct ami_win_event_table ami_guiopts_table
static struct TextAttr default_bm_font_SANS
#define AMI_GUI_OPTS_REFRESH_FONT_BM(TYPE)
static CONST_STRPTR gadlab[OPTS_LAST]
static void ami_gui_opts_free_list(struct List *list, int type)
static struct TextAttr default_cg_font_FANTASY
static struct List * websearch_list
#define OPTS_MAX_NATIVEBM
static CONST_STRPTR helphints[OPTS_LAST]
struct List * ami_gui_opts_websearch(int *idx)
static CONST_STRPTR fontopts[6]
void ami_gui_opts_open(void)
Interface to platform-specific graphical user interface window operations.
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
NetSurf URL handling (interface).
const char * nsurl_access(const nsurl *url)
Access a NetSurf URL object as a string.
char * ASPrintf(const char *fmt,...)
struct Node * GetHead(struct List *list)
ULONG RefreshSetGadgetAttrs(struct Gadget *g, struct Window *w, struct Requester *r, Tag tag1,...)
struct Node * GetSucc(struct Node *node)
#define LIB_IS_AT_LEAST(B, V, R)
#define GETFONT_ScalableOnly
@ PLOT_FONT_FAMILY_SANS_SERIF
core web search facilities interface.
Interface to utility string handling.
struct List fontenginelist
Object * objects[GID_OPTS_LAST]
struct List proxyoptslist
struct List nativebmoptslist
struct List pagethemeoptslist
struct List ditheroptslist
struct ami_generic_window w
struct List screenoptslist
Option reading and saving interface.
#define nsoption_charp(OPTION)
Get the value of a string option.
#define nsoption_int(OPTION)
Get the value of an integer option.
#define nsoption_set_int(OPTION, VALUE)
set an integer option in the default table
#define nsoption_set_bool(OPTION, VALUE)
set a boolean option in the default table
#define nsoption_set_charp(OPTION, VALUE)
set string option in default table
#define nsoption_uint(OPTION)
Get the value of an unsigned integer option.
@ OPTION_HTTP_PROXY_AUTH_NONE
@ OPTION_HTTP_PROXY_AUTH_NTLM
@ OPTION_HTTP_PROXY_AUTH_BASIC
#define nsoption_bool(OPTION)
Get the value of a boolean option.
#define nsoption_set_uint(OPTION, VALUE)
set an unsigned integer option in the default table
static nserror text(const struct redraw_context *ctx, const struct plot_font_style *fstyle, int x, int y, const char *text, size_t length)
Text plotting.