Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
prefs.h
Go to the documentation of this file.
1/*
2 * Preferences
3 *
4 * Copyright (C) 2006-2009 Jorge Arellano Cid <jcid@dillo.org>
5 * Copyright (C) 2024 Rodrigo Arias Mallo <rodarima@gmail.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3 of the License, or
10 * (at your option) any later version.
11 */
12
13#ifndef __PREFS_H__
14#define __PREFS_H__
15
16#include "url.h"
17
18#ifdef __cplusplus
19extern "C" {
20#endif /* __cplusplus */
21
22#define PREFS_GEOMETRY_DEFAULT_WIDTH 780
23#define PREFS_GEOMETRY_DEFAULT_HEIGHT 580
24#define PREFS_GEOMETRY_DEFAULT_XPOS -9999
25#define PREFS_GEOMETRY_DEFAULT_YPOS -9999
26
27/* FLTK has free color indices from 16 to 31 */
28#define PREFS_UI_BUTTON_HIGHLIGHT_COLOR 16
29#define PREFS_UI_TAB_ACTIVE_BG_COLOR 17
30#define PREFS_UI_TAB_ACTIVE_FG_COLOR 18
31#define PREFS_UI_TAB_BG_COLOR 19
32#define PREFS_UI_TAB_FG_COLOR 20
33
35enum { P_tiny = 0, P_small, P_medium };
36
37typedef struct {
38 int width;
39 int height;
40 int xpos;
41 int ypos;
48 char *no_proxy;
54 int32_t bg_color;
56 int32_t ui_fg_color;
68 char *theme;
79 int32_t scroll_step;
120 char *save_dir;
124 int penalty_hyphen, penalty_hyphen_2;
125 int penalty_em_dash_left, penalty_em_dash_right, penalty_em_dash_right_2;
128} DilloPrefs;
129
131extern DilloPrefs prefs;
132
133void a_Prefs_init(void);
134void a_Prefs_freeall(void);
135
136#ifdef __cplusplus
137}
138#endif /* __cplusplus */
139
140#endif /* __PREFS_H__ */
unsigned char bool_t
Definition d_size.h:21
DilloPrefs prefs
Global Data.
Definition prefs.c:33
@ P_small
Definition prefs.h:35
@ P_tiny
Definition prefs.h:35
@ P_medium
Definition prefs.h:35
void a_Prefs_freeall(void)
memory-deallocation.
Definition prefs.c:145
void a_Prefs_init(void)
Sets the default settings.
Definition prefs.c:39
bool_t http_persistent_conns
Definition prefs.h:104
bool_t enterpress_forces_submit
Definition prefs.h:113
bool_t show_progress_box
Definition prefs.h:96
int32_t ui_tab_fg_color
Definition prefs.h:62
char * font_sans_serif
Definition prefs.h:109
char * font_monospace
Definition prefs.h:112
bool_t parse_embedded_css
Definition prefs.h:103
bool_t show_reload
Definition prefs.h:86
bool_t show_filemenu
Definition prefs.h:91
bool_t small_icons
Definition prefs.h:70
int32_t ui_button_highlight_color
Definition prefs.h:55
char * font_fantasy
Definition prefs.h:111
bool_t load_images
Definition prefs.h:99
bool_t show_tooltip
Definition prefs.h:66
char * http_user_agent
Definition prefs.h:47
int32_t http_max_conns
Definition prefs.h:43
char * ignore_image_formats
Definition prefs.h:100
char * no_proxy
Definition prefs.h:48
int xpos
Definition prefs.h:40
int32_t ui_tab_active_bg_color
Definition prefs.h:59
bool_t fullwindow_start
Definition prefs.h:98
bool_t show_help
Definition prefs.h:95
int width
Definition prefs.h:38
char * http_proxyuser
Definition prefs.h:45
DilloUrl * http_proxy
Definition prefs.h:44
int ypos
Definition prefs.h:41
int32_t font_min_size
Definition prefs.h:78
bool_t limit_text_width
Definition prefs.h:71
char * font_serif
Definition prefs.h:108
bool_t focus_new_tab
Definition prefs.h:74
int32_t ui_selection_color
Definition prefs.h:58
int32_t bg_color
Definition prefs.h:54
int32_t ui_fg_color
Definition prefs.h:56
int32_t white_bg_replacement
Definition prefs.h:53
bool_t show_extra_warnings
Definition prefs.h:122
Dlist * link_actions
Definition prefs.h:127
bool_t load_background_images
Definition prefs.h:101
bool_t load_stylesheets
Definition prefs.h:102
bool_t show_tools
Definition prefs.h:90
int32_t ui_tab_active_fg_color
Definition prefs.h:60
int32_t buffered_drawing
Definition prefs.h:107
bool_t show_search
Definition prefs.h:94
bool_t allow_white_bg
Definition prefs.h:52
bool_t show_stop
Definition prefs.h:88
int32_t ui_tab_bg_color
Definition prefs.h:61
int panel_size
Definition prefs.h:69
int32_t ui_text_bg_color
Definition prefs.h:64
bool_t middle_click_drags_page
Definition prefs.h:123
bool_t right_click_closes_tab
Definition prefs.h:115
int32_t ui_main_bg_color
Definition prefs.h:57
bool_t adjust_table_min_width
Definition prefs.h:73
bool_t show_quit_dialog
Definition prefs.h:97
bool_t http_strict_transport_security
Definition prefs.h:105
bool_t scrollbar_on_left
Definition prefs.h:81
bool_t scrollbar_page_mode
Definition prefs.h:82
int32_t scroll_page_overlap
Definition prefs.h:80
bool_t show_home
Definition prefs.h:85
DilloUrl * start_page
Definition prefs.h:49
bool_t http_force_https
Definition prefs.h:106
int32_t scroll_step
Definition prefs.h:79
bool_t show_ui_tooltip
Definition prefs.h:67
DilloUrl * new_tab_page
Definition prefs.h:51
bool_t adjust_min_width
Definition prefs.h:72
bool_t show_save
Definition prefs.h:87
bool_t contrast_visited_color
Definition prefs.h:65
bool_t scroll_switches_tabs
Definition prefs.h:116
bool_t show_clear_url
Definition prefs.h:92
bool_t show_msg
Definition prefs.h:121
int stretchability_factor
Definition prefs.h:126
bool_t show_back
Definition prefs.h:83
bool_t scroll_switches_tabs_reverse
Definition prefs.h:117
bool_t show_bookmarks
Definition prefs.h:89
double zoom_factor
Definition prefs.h:76
Dlist * search_urls
Definition prefs.h:119
double font_factor
Definition prefs.h:75
char * http_referer
Definition prefs.h:46
char * theme
Definition prefs.h:68
char * font_cursive
Definition prefs.h:110
char * save_dir
Definition prefs.h:120
int32_t font_max_size
Definition prefs.h:77
bool_t middle_click_opens_new_tab
Definition prefs.h:114
bool_t show_url
Definition prefs.h:93
int32_t ui_tab_height
Definition prefs.h:63
int height
Definition prefs.h:39
int penalty_hyphen
Definition prefs.h:124
char * http_language
Definition prefs.h:42
DilloUrl * home
Definition prefs.h:50
bool_t search_url_idx
Definition prefs.h:118
bool_t show_forw
Definition prefs.h:84
int penalty_em_dash_left
Definition prefs.h:125
Definition url.h:88
Definition dlib.h:131
Parse and normalize all URL's inside Dillo.