NetSurf
Data Structures | Macros | Enumerations | Functions | Variables
gui_options.c File Reference
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <proto/exec.h>
#include <proto/graphics.h>
#include <proto/intuition.h>
#include <proto/utility.h>
#include <libraries/gadtools.h>
#include <exec/types.h>
#include <intuition/classusr.h>
#include <graphics/gfxbase.h>
#include <proto/window.h>
#include <proto/layout.h>
#include <proto/button.h>
#include <proto/clicktab.h>
#include <proto/label.h>
#include <proto/string.h>
#include <proto/checkbox.h>
#include <proto/radiobutton.h>
#include <proto/getscreenmode.h>
#include <proto/getfile.h>
#include <proto/chooser.h>
#include <proto/integer.h>
#include <proto/getfont.h>
#include <classes/window.h>
#include <images/label.h>
#include <gadgets/button.h>
#include <gadgets/clicktab.h>
#include <gadgets/string.h>
#include <gadgets/checkbox.h>
#include <gadgets/radiobutton.h>
#include <gadgets/getscreenmode.h>
#include <gadgets/getfile.h>
#include <gadgets/chooser.h>
#include <gadgets/integer.h>
#include <gadgets/getfont.h>
#include <reaction/reaction.h>
#include <reaction/reaction_macros.h>
#include "utils/nsurl.h"
#include "utils/messages.h"
#include "utils/nsoption.h"
#include "netsurf/browser_window.h"
#include "desktop/searchweb.h"
#include "netsurf/window.h"
#include "amiga/file.h"
#include "amiga/font.h"
#include "amiga/font_bullet.h"
#include "amiga/gui.h"
#include "amiga/gui_menu.h"
#include "amiga/gui_options.h"
#include "amiga/help.h"
#include "amiga/libs.h"
#include "amiga/nsoption.h"
#include "amiga/object.h"
#include "amiga/selectmenu.h"
#include "amiga/theme.h"
#include "amiga/utf8.h"
#include "amiga/plotters.h"
Include dependency graph for gui_options.c:

Go to the source code of this file.

Data Structures

struct  ami_gui_opts_window
 

Macros

#define OPTS_LAST   LAB_OPTS_LAST
 
#define OPTS_MAX_TABS   10
 
#define OPTS_MAX_SCREEN   4
 
#define OPTS_MAX_THEMEPAGE   3
 
#define OPTS_MAX_PROXY   5
 
#define OPTS_MAX_NATIVEBM   4
 
#define OPTS_MAX_DITHER   4
 

Enumerations

enum  {
  OID_MAIN = 0 , GID_OPTS_MAIN , GID_OPTS_HOMEPAGE , GID_OPTS_HOMEPAGE_DEFAULT ,
  GID_OPTS_HOMEPAGE_CURRENT , GID_OPTS_HOMEPAGE_BLANK , GID_OPTS_HIDEADS , GID_OPTS_CONTENTLANG ,
  GID_OPTS_FROMLOCALE , GID_OPTS_HISTORY , GID_OPTS_JAVASCRIPT , GID_OPTS_ENABLECSS ,
  GID_OPTS_REFERRAL , GID_OPTS_DONOTTRACK , GID_OPTS_FASTSCROLL , GID_OPTS_SCREEN ,
  GID_OPTS_SCREENMODE , GID_OPTS_SCREENNAME , GID_OPTS_WIN_SIMPLE , GID_OPTS_THEME ,
  GID_OPTS_THEMEPAGE , GID_OPTS_DARK , GID_OPTS_LIGHT , GID_OPTS_PTRTRUE ,
  GID_OPTS_PTROS , GID_OPTS_PROXY , GID_OPTS_PROXY_HOST , GID_OPTS_PROXY_PORT ,
  GID_OPTS_PROXY_USER , GID_OPTS_PROXY_PASS , GID_OPTS_PROXY_BYPASS , GID_OPTS_FETCHMAX ,
  GID_OPTS_FETCHHOST , GID_OPTS_FETCHCACHE , GID_OPTS_NATIVEBM , GID_OPTS_SCALEQ ,
  GID_OPTS_DITHERQ , GID_OPTS_ANIMDISABLE , GID_OPTS_DPI_Y , GID_OPTS_FONT_SANS ,
  GID_OPTS_FONT_SERIF , GID_OPTS_FONT_MONO , GID_OPTS_FONT_CURSIVE , GID_OPTS_FONT_FANTASY ,
  GID_OPTS_FONT_DEFAULT , GID_OPTS_FONT_SIZE , GID_OPTS_FONT_MINSIZE , GID_OPTS_FONT_ANTIALIASING ,
  GID_OPTS_FONT_BITMAP , GID_OPTS_CACHE_MEM , GID_OPTS_CACHE_DISC , GID_OPTS_OVERWRITE ,
  GID_OPTS_NOTIFY , GID_OPTS_DLDIR , GID_OPTS_TAB_ACTIVE , GID_OPTS_TAB_2 ,
  GID_OPTS_TAB_LAST , GID_OPTS_TAB_ALWAYS , GID_OPTS_TAB_CLOSE , GID_OPTS_SEARCH_PROV ,
  GID_OPTS_CLIPBOARD , GID_OPTS_SELECTMENU , GID_OPTS_STARTUP_NO_WIN , GID_OPTS_CLOSE_NO_QUIT ,
  GID_OPTS_DOCKY , GID_OPTS_MARGIN_TOP , GID_OPTS_MARGIN_LEFT , GID_OPTS_MARGIN_BOTTOM ,
  GID_OPTS_MARGIN_RIGHT , GID_OPTS_EXPORT_SCALE , GID_OPTS_EXPORT_NOIMAGES , GID_OPTS_EXPORT_NOBKG ,
  GID_OPTS_EXPORT_LOOSEN , GID_OPTS_EXPORT_COMPRESS , GID_OPTS_EXPORT_PASSWORD , GID_OPTS_SAVE ,
  GID_OPTS_USE , GID_OPTS_CANCEL , GID_OPTS_LAST
}
 
enum  {
  GRP_OPTS_HOMEPAGE = GID_OPTS_LAST , GRP_OPTS_CONTENTBLOCKING , GRP_OPTS_CONTENTLANGUAGE , GRP_OPTS_HISTORY ,
  GRP_OPTS_SCRIPTING , GRP_OPTS_PRIVACY , GRP_OPTS_MISC , GRP_OPTS_SCREEN ,
  GRP_OPTS_WINDOW , GRP_OPTS_THEME , GRP_OPTS_MOUSE , GRP_OPTS_PROXY ,
  GRP_OPTS_FETCHING , GRP_OPTS_IMAGES , GRP_OPTS_ANIMS , GRP_OPTS_DPI ,
  GRP_OPTS_FONTFACES , GRP_OPTS_FONTSIZE , GRP_OPTS_MEMCACHE , GRP_OPTS_DISCCACHE ,
  GRP_OPTS_DOWNLOADS , GRP_OPTS_TABS , GRP_OPTS_SEARCH , GRP_OPTS_CLIPBOARD ,
  GRP_OPTS_BEHAVIOUR , GRP_OPTS_MARGINS , GRP_OPTS_SCALING , GRP_OPTS_APPEARANCE ,
  GRP_OPTS_ADVANCED , GRP_OPTS_LAST
}
 
enum  {
  LAB_OPTS_WINTITLE = GRP_OPTS_LAST , LAB_OPTS_RESTART , LAB_OPTS_DAYS , LAB_OPTS_SECS ,
  LAB_OPTS_PT , LAB_OPTS_MB , LAB_OPTS_MM , LAB_OPTS_DPI ,
  LAB_OPTS_LAST
}
 
enum  { NSA_LIST_CLICKTAB = 0 , NSA_LIST_CHOOSER , NSA_LIST_RADIO }
 

Functions

static BOOL ami_gui_opts_event (void *w)
 
static void ami_gui_opts_close (void *w)
 
static void ami_gui_opts_array_to_list (struct List *list, const char *array[], int type)
 
static void ami_gui_opts_free_list (struct List *list, int type)
 
static void ami_gui_opts_setup (struct ami_gui_opts_window *gow)
 
static void ami_gui_opts_free (struct ami_gui_opts_window *gow)
 
void ami_gui_opts_open (void)
 
static void ami_gui_opts_use (bool save)
 
struct List * ami_gui_opts_websearch (int *idx)
 
void ami_gui_opts_websearch_free (struct List *websearchlist)
 

Variables

static const struct ami_win_event_table ami_guiopts_table
 
static struct ami_gui_opts_windowgow = NULL
 
static CONST_STRPTR tabs [OPTS_MAX_TABS]
 
static STRPTR screenopts [OPTS_MAX_SCREEN]
 
static CONST_STRPTR pagethemeopts [OPTS_MAX_THEMEPAGE]
 
static CONST_STRPTR proxyopts [OPTS_MAX_PROXY]
 
static CONST_STRPTR nativebmopts [OPTS_MAX_NATIVEBM]
 
static CONST_STRPTR ditheropts [OPTS_MAX_DITHER]
 
static CONST_STRPTR fontopts [6]
 
static CONST_STRPTR gadlab [OPTS_LAST]
 
static struct List * websearch_list
 

Macro Definition Documentation

◆ OPTS_LAST

#define OPTS_LAST   LAB_OPTS_LAST

Definition at line 214 of file gui_options.c.

◆ OPTS_MAX_DITHER

#define OPTS_MAX_DITHER   4

Definition at line 220 of file gui_options.c.

◆ OPTS_MAX_NATIVEBM

#define OPTS_MAX_NATIVEBM   4

Definition at line 219 of file gui_options.c.

◆ OPTS_MAX_PROXY

#define OPTS_MAX_PROXY   5

Definition at line 218 of file gui_options.c.

◆ OPTS_MAX_SCREEN

#define OPTS_MAX_SCREEN   4

Definition at line 216 of file gui_options.c.

◆ OPTS_MAX_TABS

#define OPTS_MAX_TABS   10

Definition at line 215 of file gui_options.c.

◆ OPTS_MAX_THEMEPAGE

#define OPTS_MAX_THEMEPAGE   3

Definition at line 217 of file gui_options.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
OID_MAIN 
GID_OPTS_MAIN 
GID_OPTS_HOMEPAGE 
GID_OPTS_HOMEPAGE_DEFAULT 
GID_OPTS_HOMEPAGE_CURRENT 
GID_OPTS_HOMEPAGE_BLANK 
GID_OPTS_HIDEADS 
GID_OPTS_CONTENTLANG 
GID_OPTS_FROMLOCALE 
GID_OPTS_HISTORY 
GID_OPTS_JAVASCRIPT 
GID_OPTS_ENABLECSS 
GID_OPTS_REFERRAL 
GID_OPTS_DONOTTRACK 
GID_OPTS_FASTSCROLL 
GID_OPTS_SCREEN 
GID_OPTS_SCREENMODE 
GID_OPTS_SCREENNAME 
GID_OPTS_WIN_SIMPLE 
GID_OPTS_THEME 
GID_OPTS_THEMEPAGE 
GID_OPTS_DARK 
GID_OPTS_LIGHT 
GID_OPTS_PTRTRUE 
GID_OPTS_PTROS 
GID_OPTS_PROXY 
GID_OPTS_PROXY_HOST 
GID_OPTS_PROXY_PORT 
GID_OPTS_PROXY_USER 
GID_OPTS_PROXY_PASS 
GID_OPTS_PROXY_BYPASS 
GID_OPTS_FETCHMAX 
GID_OPTS_FETCHHOST 
GID_OPTS_FETCHCACHE 
GID_OPTS_NATIVEBM 
GID_OPTS_SCALEQ 
GID_OPTS_DITHERQ 
GID_OPTS_ANIMDISABLE 
GID_OPTS_DPI_Y 
GID_OPTS_FONT_SANS 
GID_OPTS_FONT_SERIF 
GID_OPTS_FONT_MONO 
GID_OPTS_FONT_CURSIVE 
GID_OPTS_FONT_FANTASY 
GID_OPTS_FONT_DEFAULT 
GID_OPTS_FONT_SIZE 
GID_OPTS_FONT_MINSIZE 
GID_OPTS_FONT_ANTIALIASING 
GID_OPTS_FONT_BITMAP 
GID_OPTS_CACHE_MEM 
GID_OPTS_CACHE_DISC 
GID_OPTS_OVERWRITE 
GID_OPTS_NOTIFY 
GID_OPTS_DLDIR 
GID_OPTS_TAB_ACTIVE 
GID_OPTS_TAB_2 
GID_OPTS_TAB_LAST 
GID_OPTS_TAB_ALWAYS 
GID_OPTS_TAB_CLOSE 
GID_OPTS_SEARCH_PROV 
GID_OPTS_CLIPBOARD 
GID_OPTS_SELECTMENU 
GID_OPTS_STARTUP_NO_WIN 
GID_OPTS_CLOSE_NO_QUIT 
GID_OPTS_DOCKY 
GID_OPTS_MARGIN_TOP 
GID_OPTS_MARGIN_LEFT 
GID_OPTS_MARGIN_BOTTOM 
GID_OPTS_MARGIN_RIGHT 
GID_OPTS_EXPORT_SCALE 
GID_OPTS_EXPORT_NOIMAGES 
GID_OPTS_EXPORT_NOBKG 
GID_OPTS_EXPORT_LOOSEN 
GID_OPTS_EXPORT_COMPRESS 
GID_OPTS_EXPORT_PASSWORD 
GID_OPTS_SAVE 
GID_OPTS_USE 
GID_OPTS_CANCEL 
GID_OPTS_LAST 

Definition at line 84 of file gui_options.c.

◆ anonymous enum

anonymous enum
Enumerator
GRP_OPTS_HOMEPAGE 
GRP_OPTS_CONTENTBLOCKING 
GRP_OPTS_CONTENTLANGUAGE 
GRP_OPTS_HISTORY 
GRP_OPTS_SCRIPTING 
GRP_OPTS_PRIVACY 
GRP_OPTS_MISC 
GRP_OPTS_SCREEN 
GRP_OPTS_WINDOW 
GRP_OPTS_THEME 
GRP_OPTS_MOUSE 
GRP_OPTS_PROXY 
GRP_OPTS_FETCHING 
GRP_OPTS_IMAGES 
GRP_OPTS_ANIMS 
GRP_OPTS_DPI 
GRP_OPTS_FONTFACES 
GRP_OPTS_FONTSIZE 
GRP_OPTS_MEMCACHE 
GRP_OPTS_DISCCACHE 
GRP_OPTS_DOWNLOADS 
GRP_OPTS_TABS 
GRP_OPTS_SEARCH 
GRP_OPTS_CLIPBOARD 
GRP_OPTS_BEHAVIOUR 
GRP_OPTS_MARGINS 
GRP_OPTS_SCALING 
GRP_OPTS_APPEARANCE 
GRP_OPTS_ADVANCED 
GRP_OPTS_LAST 

Definition at line 167 of file gui_options.c.

◆ anonymous enum

anonymous enum
Enumerator
LAB_OPTS_WINTITLE 
LAB_OPTS_RESTART 
LAB_OPTS_DAYS 
LAB_OPTS_SECS 
LAB_OPTS_PT 
LAB_OPTS_MB 
LAB_OPTS_MM 
LAB_OPTS_DPI 
LAB_OPTS_LAST 

Definition at line 201 of file gui_options.c.

◆ anonymous enum

anonymous enum
Enumerator
NSA_LIST_CLICKTAB 
NSA_LIST_CHOOSER 
NSA_LIST_RADIO 

Definition at line 222 of file gui_options.c.

Function Documentation

◆ ami_gui_opts_array_to_list()

static void ami_gui_opts_array_to_list ( struct List *  list,
const char *  array[],
int  type 
)
static

Definition at line 265 of file gui_options.c.

References NSA_LIST_CHOOSER, NSA_LIST_CLICKTAB, NSA_LIST_RADIO, and type.

Referenced by ami_gui_opts_setup().

Here is the caller graph for this function:

◆ ami_gui_opts_close()

static void ami_gui_opts_close ( void *  w)
static

Definition at line 2125 of file gui_options.c.

References ami_gui_opts_free(), ami_gui_win_list_remove(), gow, ami_gui_opts_window::objects, and OID_MAIN.

Referenced by ami_gui_opts_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_opts_event()

static BOOL ami_gui_opts_event ( void *  w)
static

◆ ami_gui_opts_free()

static void ami_gui_opts_free ( struct ami_gui_opts_window gow)
static

Definition at line 495 of file gui_options.c.

References ami_gui_opts_free_list(), ami_gui_opts_websearch_free(), ami_gui_opts_window::clicktablist, ami_gui_opts_window::ditheroptslist, ami_gui_opts_window::fontoptslist, gadlab, gow, nativebmopts, ami_gui_opts_window::nativebmoptslist, NSA_LIST_CHOOSER, NSA_LIST_CLICKTAB, NSA_LIST_RADIO, OPTS_LAST, OPTS_MAX_NATIVEBM, OPTS_MAX_PROXY, OPTS_MAX_SCREEN, OPTS_MAX_TABS, ami_gui_opts_window::pagethemeoptslist, proxyopts, ami_gui_opts_window::proxyoptslist, screenopts, ami_gui_opts_window::screenoptslist, tabs, and websearch_list.

Referenced by ami_gui_opts_close().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_opts_free_list()

static void ami_gui_opts_free_list ( struct List *  list,
int  type 
)
static

Definition at line 292 of file gui_options.c.

References GetHead(), GetSucc(), NSA_LIST_CHOOSER, NSA_LIST_CLICKTAB, NSA_LIST_RADIO, and type.

Referenced by ami_gui_opts_free().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_opts_open()

void ami_gui_opts_open ( void  )

Definition at line 527 of file gui_options.c.

References ami_gui_get_screen(), ami_gui_get_screen_title(), ami_gui_get_shared_msgport(), ami_gui_opts_setup(), ami_gui_win_list_add(), ami_guiopts_table, ami_plot_screen_is_palettemapped(), ami_selectmenu_is_safe(), ami_utf8_easy(), ami_utf8_free(), AMINS_GUIOPTSWINDOW, ASPrintf(), ButtonObj, CheckBoxObj, ChooserObj, ami_gui_opts_window::clicktablist, ClickTabObj, ditheropts, ami_gui_opts_window::ditheroptslist, download_dir, fontopts, ami_gui_opts_window::fontoptslist, gadlab, GetFileEnd, GetFileObj, GETFONT_OTagOnly, GETFONT_ScalableOnly, GetFontEnd, GetFontObj, GetScreenModeEnd, GetScreenModeObj, GID_OPTS_ANIMDISABLE, GID_OPTS_CACHE_DISC, GID_OPTS_CACHE_MEM, GID_OPTS_CANCEL, GID_OPTS_CLIPBOARD, GID_OPTS_CLOSE_NO_QUIT, GID_OPTS_CONTENTLANG, GID_OPTS_DITHERQ, GID_OPTS_DLDIR, GID_OPTS_DOCKY, GID_OPTS_DONOTTRACK, GID_OPTS_DPI_Y, GID_OPTS_ENABLECSS, GID_OPTS_EXPORT_COMPRESS, GID_OPTS_EXPORT_LOOSEN, GID_OPTS_EXPORT_NOBKG, GID_OPTS_EXPORT_NOIMAGES, GID_OPTS_EXPORT_PASSWORD, GID_OPTS_EXPORT_SCALE, GID_OPTS_FASTSCROLL, GID_OPTS_FETCHCACHE, GID_OPTS_FETCHHOST, GID_OPTS_FETCHMAX, GID_OPTS_FONT_ANTIALIASING, GID_OPTS_FONT_BITMAP, GID_OPTS_FONT_CURSIVE, GID_OPTS_FONT_DEFAULT, GID_OPTS_FONT_FANTASY, GID_OPTS_FONT_MINSIZE, GID_OPTS_FONT_MONO, GID_OPTS_FONT_SANS, GID_OPTS_FONT_SERIF, GID_OPTS_FONT_SIZE, GID_OPTS_FROMLOCALE, GID_OPTS_HIDEADS, GID_OPTS_HISTORY, GID_OPTS_HOMEPAGE, GID_OPTS_HOMEPAGE_BLANK, GID_OPTS_HOMEPAGE_CURRENT, GID_OPTS_HOMEPAGE_DEFAULT, GID_OPTS_JAVASCRIPT, GID_OPTS_MAIN, GID_OPTS_MARGIN_BOTTOM, GID_OPTS_MARGIN_LEFT, GID_OPTS_MARGIN_RIGHT, GID_OPTS_MARGIN_TOP, GID_OPTS_NATIVEBM, GID_OPTS_NOTIFY, GID_OPTS_OVERWRITE, GID_OPTS_PROXY, GID_OPTS_PROXY_BYPASS, GID_OPTS_PROXY_HOST, GID_OPTS_PROXY_PASS, GID_OPTS_PROXY_PORT, GID_OPTS_PROXY_USER, GID_OPTS_PTROS, GID_OPTS_PTRTRUE, GID_OPTS_REFERRAL, GID_OPTS_SAVE, GID_OPTS_SCALEQ, GID_OPTS_SCREEN, GID_OPTS_SCREENMODE, GID_OPTS_SCREENNAME, GID_OPTS_SEARCH_PROV, GID_OPTS_SELECTMENU, GID_OPTS_STARTUP_NO_WIN, GID_OPTS_TAB_2, GID_OPTS_TAB_ACTIVE, GID_OPTS_TAB_ALWAYS, GID_OPTS_TAB_CLOSE, GID_OPTS_TAB_LAST, GID_OPTS_THEME, GID_OPTS_THEMEPAGE, GID_OPTS_USE, GID_OPTS_WIN_SIMPLE, gow, GRP_OPTS_ADVANCED, GRP_OPTS_ANIMS, GRP_OPTS_APPEARANCE, GRP_OPTS_BEHAVIOUR, GRP_OPTS_CLIPBOARD, GRP_OPTS_CONTENTBLOCKING, GRP_OPTS_CONTENTLANGUAGE, GRP_OPTS_DISCCACHE, GRP_OPTS_DOWNLOADS, GRP_OPTS_DPI, GRP_OPTS_FETCHING, GRP_OPTS_FONTFACES, GRP_OPTS_FONTSIZE, GRP_OPTS_HISTORY, GRP_OPTS_HOMEPAGE, GRP_OPTS_IMAGES, GRP_OPTS_MARGINS, GRP_OPTS_MEMCACHE, GRP_OPTS_MISC, GRP_OPTS_MOUSE, GRP_OPTS_PRIVACY, GRP_OPTS_PROXY, GRP_OPTS_SCALING, GRP_OPTS_SCREEN, GRP_OPTS_SCRIPTING, GRP_OPTS_SEARCH, GRP_OPTS_TABS, GRP_OPTS_THEME, GRP_OPTS_WINDOW, IntegerObj, LAB_OPTS_DAYS, LAB_OPTS_DPI, LAB_OPTS_MB, LAB_OPTS_MM, LAB_OPTS_PT, LAB_OPTS_RESTART, LAB_OPTS_WINTITLE, LabelObj, LayoutHObj, LayoutVObj, LIB_IS_AT_LEAST, nativebmopts, ami_gui_opts_window::nativebmoptslist, nsoption_bool, nsoption_charp, nsoption_int, nsoption_set_bool, nsoption_uint, ami_gui_opts_window::objects, OID_MAIN, OPTION_HTTP_PROXY_AUTH_BASIC, OPTION_HTTP_PROXY_AUTH_NONE, OPTION_HTTP_PROXY_AUTH_NTLM, PageObj, pagethemeopts, ami_gui_opts_window::pagethemeoptslist, PLOT_FONT_FAMILY_SANS_SERIF, proxyopts, ami_gui_opts_window::proxyoptslist, RadioButtonObj, screenopts, ami_gui_opts_window::screenoptslist, StringObj, tabs, ami_gui_opts_window::websearch_idx, websearch_list, ami_gui_opts_window::win, and WindowObj.

Referenced by ami_handle_applib(), and HOOKF().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_opts_setup()

static void ami_gui_opts_setup ( struct ami_gui_opts_window gow)
static

Definition at line 322 of file gui_options.c.

References ami_gui_opts_array_to_list(), ami_gui_opts_websearch(), ami_utf8_easy(), ami_gui_opts_window::clicktablist, ditheropts, ami_gui_opts_window::ditheroptslist, fontopts, ami_gui_opts_window::fontoptslist, gadlab, GID_OPTS_ANIMDISABLE, GID_OPTS_CACHE_DISC, GID_OPTS_CACHE_MEM, GID_OPTS_CANCEL, GID_OPTS_CLIPBOARD, GID_OPTS_CLOSE_NO_QUIT, GID_OPTS_DARK, GID_OPTS_DITHERQ, GID_OPTS_DLDIR, GID_OPTS_DOCKY, GID_OPTS_DONOTTRACK, GID_OPTS_DPI_Y, GID_OPTS_ENABLECSS, GID_OPTS_EXPORT_COMPRESS, GID_OPTS_EXPORT_LOOSEN, GID_OPTS_EXPORT_NOBKG, GID_OPTS_EXPORT_NOIMAGES, GID_OPTS_EXPORT_PASSWORD, GID_OPTS_EXPORT_SCALE, GID_OPTS_FASTSCROLL, GID_OPTS_FETCHCACHE, GID_OPTS_FETCHHOST, GID_OPTS_FETCHMAX, GID_OPTS_FONT_ANTIALIASING, GID_OPTS_FONT_BITMAP, GID_OPTS_FONT_CURSIVE, GID_OPTS_FONT_DEFAULT, GID_OPTS_FONT_FANTASY, GID_OPTS_FONT_MINSIZE, GID_OPTS_FONT_MONO, GID_OPTS_FONT_SANS, GID_OPTS_FONT_SERIF, GID_OPTS_FONT_SIZE, GID_OPTS_FROMLOCALE, GID_OPTS_HIDEADS, GID_OPTS_HISTORY, GID_OPTS_HOMEPAGE, GID_OPTS_HOMEPAGE_BLANK, GID_OPTS_HOMEPAGE_CURRENT, GID_OPTS_HOMEPAGE_DEFAULT, GID_OPTS_JAVASCRIPT, GID_OPTS_LIGHT, GID_OPTS_MARGIN_BOTTOM, GID_OPTS_MARGIN_LEFT, GID_OPTS_MARGIN_RIGHT, GID_OPTS_MARGIN_TOP, GID_OPTS_NATIVEBM, GID_OPTS_NOTIFY, GID_OPTS_OVERWRITE, GID_OPTS_PROXY, GID_OPTS_PROXY_BYPASS, GID_OPTS_PROXY_HOST, GID_OPTS_PROXY_PASS, GID_OPTS_PROXY_USER, GID_OPTS_PTROS, GID_OPTS_PTRTRUE, GID_OPTS_REFERRAL, GID_OPTS_SAVE, GID_OPTS_SCALEQ, GID_OPTS_SEARCH_PROV, GID_OPTS_SELECTMENU, GID_OPTS_STARTUP_NO_WIN, GID_OPTS_TAB_2, GID_OPTS_TAB_ACTIVE, GID_OPTS_TAB_ALWAYS, GID_OPTS_TAB_CLOSE, GID_OPTS_TAB_LAST, GID_OPTS_THEME, GID_OPTS_THEMEPAGE, GID_OPTS_USE, GID_OPTS_WIN_SIMPLE, gow, GRP_OPTS_ADVANCED, GRP_OPTS_ANIMS, GRP_OPTS_APPEARANCE, GRP_OPTS_BEHAVIOUR, GRP_OPTS_CLIPBOARD, GRP_OPTS_CONTENTBLOCKING, GRP_OPTS_CONTENTLANGUAGE, GRP_OPTS_DISCCACHE, GRP_OPTS_DOWNLOADS, GRP_OPTS_DPI, GRP_OPTS_FETCHING, GRP_OPTS_FONTFACES, GRP_OPTS_FONTSIZE, GRP_OPTS_HISTORY, GRP_OPTS_HOMEPAGE, GRP_OPTS_IMAGES, GRP_OPTS_MARGINS, GRP_OPTS_MEMCACHE, GRP_OPTS_MISC, GRP_OPTS_MOUSE, GRP_OPTS_PRIVACY, GRP_OPTS_PROXY, GRP_OPTS_SCALING, GRP_OPTS_SCREEN, GRP_OPTS_SCRIPTING, GRP_OPTS_SEARCH, GRP_OPTS_TABS, GRP_OPTS_THEME, GRP_OPTS_WINDOW, LAB_OPTS_DAYS, LAB_OPTS_DPI, LAB_OPTS_MB, LAB_OPTS_MM, LAB_OPTS_PT, LAB_OPTS_RESTART, LAB_OPTS_WINTITLE, messages_get(), nativebmopts, ami_gui_opts_window::nativebmoptslist, NSA_LIST_CHOOSER, NSA_LIST_CLICKTAB, NSA_LIST_RADIO, pagethemeopts, ami_gui_opts_window::pagethemeoptslist, proxyopts, ami_gui_opts_window::proxyoptslist, screenopts, ami_gui_opts_window::screenoptslist, tabs, ami_gui_opts_window::websearch_idx, and websearch_list.

Referenced by ami_gui_opts_open().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_opts_use()

static void ami_gui_opts_use ( bool  save)
static

Definition at line 1701 of file gui_options.c.

References ami_file_req_free(), ami_file_req_init(), ami_font_fini(), ami_font_finiscanner(), ami_font_init(), ami_font_initscanner(), ami_font_savescanner(), ami_font_setdevicedpi(), ami_gui_menu_set_check_toggled(), ami_gui_menu_set_checked(), ami_gui_tabs_toggle_all(), ami_nsoption_write(), ami_to_utf8_easy(), ami_update_pointer(), download_dir, GID_OPTS_ANIMDISABLE, GID_OPTS_CACHE_DISC, GID_OPTS_CACHE_MEM, GID_OPTS_CLIPBOARD, GID_OPTS_CLOSE_NO_QUIT, GID_OPTS_CONTENTLANG, GID_OPTS_DITHERQ, GID_OPTS_DLDIR, GID_OPTS_DOCKY, GID_OPTS_DONOTTRACK, GID_OPTS_DPI_Y, GID_OPTS_ENABLECSS, GID_OPTS_EXPORT_COMPRESS, GID_OPTS_EXPORT_LOOSEN, GID_OPTS_EXPORT_NOBKG, GID_OPTS_EXPORT_NOIMAGES, GID_OPTS_EXPORT_PASSWORD, GID_OPTS_EXPORT_SCALE, GID_OPTS_FASTSCROLL, GID_OPTS_FETCHCACHE, GID_OPTS_FETCHHOST, GID_OPTS_FETCHMAX, GID_OPTS_FONT_ANTIALIASING, GID_OPTS_FONT_BITMAP, GID_OPTS_FONT_CURSIVE, GID_OPTS_FONT_DEFAULT, GID_OPTS_FONT_FANTASY, GID_OPTS_FONT_MINSIZE, GID_OPTS_FONT_MONO, GID_OPTS_FONT_SANS, GID_OPTS_FONT_SERIF, GID_OPTS_FONT_SIZE, GID_OPTS_FROMLOCALE, GID_OPTS_HIDEADS, GID_OPTS_HISTORY, GID_OPTS_HOMEPAGE, GID_OPTS_JAVASCRIPT, GID_OPTS_MARGIN_BOTTOM, GID_OPTS_MARGIN_LEFT, GID_OPTS_MARGIN_RIGHT, GID_OPTS_MARGIN_TOP, GID_OPTS_NATIVEBM, GID_OPTS_NOTIFY, GID_OPTS_OVERWRITE, GID_OPTS_PROXY, GID_OPTS_PROXY_BYPASS, GID_OPTS_PROXY_HOST, GID_OPTS_PROXY_PASS, GID_OPTS_PROXY_PORT, GID_OPTS_PROXY_USER, GID_OPTS_PTROS, GID_OPTS_PTRTRUE, GID_OPTS_REFERRAL, GID_OPTS_SCALEQ, GID_OPTS_SCREEN, GID_OPTS_SCREENMODE, GID_OPTS_SCREENNAME, GID_OPTS_SEARCH_PROV, GID_OPTS_SELECTMENU, GID_OPTS_STARTUP_NO_WIN, GID_OPTS_TAB_2, GID_OPTS_TAB_ACTIVE, GID_OPTS_TAB_ALWAYS, GID_OPTS_TAB_CLOSE, GID_OPTS_TAB_LAST, GID_OPTS_THEME, GID_OPTS_THEMEPAGE, GID_OPTS_WIN_SIMPLE, gow, GUI_POINTER_DEFAULT, GUI_POINTER_WAIT, M_CSS, M_JS, nsoption_bool, nsoption_charp, nsoption_int, nsoption_set_bool, nsoption_set_charp, nsoption_set_int, nsoption_set_uint, nsoption_uint, ami_gui_opts_window::objects, PLOT_FONT_FAMILY_SANS_SERIF, search_web_select_provider(), ami_gui_opts_window::websearch_idx, and ami_gui_opts_window::win.

Referenced by ami_gui_opts_event().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_opts_websearch()

struct List * ami_gui_opts_websearch ( int *  idx)

Definition at line 2339 of file gui_options.c.

References nsoption_charp, and search_web_iterate_providers().

Referenced by ami_gui_opts_setup(), and gui_window_create().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ami_gui_opts_websearch_free()

void ami_gui_opts_websearch_free ( struct List *  websearchlist)

Definition at line 2368 of file gui_options.c.

References GetHead(), and GetSucc().

Referenced by ami_gui_opts_free(), and gui_window_destroy().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ ami_guiopts_table

const struct ami_win_event_table ami_guiopts_table
static
Initial value:
= {
}
static void ami_gui_opts_close(void *w)
Definition: gui_options.c:2125
static BOOL ami_gui_opts_event(void *w)
Definition: gui_options.c:2133

Definition at line 247 of file gui_options.c.

Referenced by ami_gui_opts_open().

◆ ditheropts

CONST_STRPTR ditheropts[OPTS_MAX_DITHER]
static

Definition at line 259 of file gui_options.c.

Referenced by ami_gui_opts_open(), and ami_gui_opts_setup().

◆ fontopts

CONST_STRPTR fontopts[6]
static

Definition at line 260 of file gui_options.c.

Referenced by ami_gui_opts_open(), and ami_gui_opts_setup().

◆ gadlab

CONST_STRPTR gadlab[OPTS_LAST]
static

Definition at line 261 of file gui_options.c.

Referenced by ami_gui_opts_free(), ami_gui_opts_open(), and ami_gui_opts_setup().

◆ gow

struct ami_gui_opts_window* gow = NULL
static

◆ nativebmopts

CONST_STRPTR nativebmopts[OPTS_MAX_NATIVEBM]
static

Definition at line 258 of file gui_options.c.

Referenced by ami_gui_opts_free(), ami_gui_opts_open(), and ami_gui_opts_setup().

◆ pagethemeopts

CONST_STRPTR pagethemeopts[OPTS_MAX_THEMEPAGE]
static

Definition at line 256 of file gui_options.c.

Referenced by ami_gui_opts_open(), and ami_gui_opts_setup().

◆ proxyopts

CONST_STRPTR proxyopts[OPTS_MAX_PROXY]
static

Definition at line 257 of file gui_options.c.

Referenced by ami_gui_opts_free(), ami_gui_opts_open(), and ami_gui_opts_setup().

◆ screenopts

STRPTR screenopts[OPTS_MAX_SCREEN]
static

Definition at line 255 of file gui_options.c.

Referenced by ami_gui_opts_free(), ami_gui_opts_open(), and ami_gui_opts_setup().

◆ tabs

CONST_STRPTR tabs[OPTS_MAX_TABS]
static

◆ websearch_list

struct List* websearch_list
static

Definition at line 262 of file gui_options.c.

Referenced by ami_gui_opts_free(), ami_gui_opts_open(), and ami_gui_opts_setup().