NetSurf
Macros | Functions
con_connect.c File Reference
#include <stdbool.h>
#include "swis.h"
#include "oslib/osspriteop.h"
#include "oslib/wimp.h"
#include "utils/nsoption.h"
#include "utils/log.h"
#include "riscos/configure/configure.h"
#include "riscos/dialog.h"
#include "riscos/menus.h"
#include "riscos/tinct.h"
#include "riscos/wimp.h"
#include "riscos/wimp_event.h"
Include dependency graph for con_connect.c:

Go to the source code of this file.

Macros

#define CONNECTION_PROXY_FIELD   3
 
#define CONNECTION_PROXY_MENU   4
 
#define CONNECTION_PROXY_HOST_LABEL   5
 
#define CONNECTION_PROXY_HOST   6
 
#define CONNECTION_PROXY_PORT_LABEL   7
 
#define CONNECTION_PROXY_PORT   8
 
#define CONNECTION_PROXY_USERNAME_LABEL   9
 
#define CONNECTION_PROXY_USERNAME   10
 
#define CONNECTION_PROXY_PASSWORD_LABEL   11
 
#define CONNECTION_PROXY_PASSWORD   12
 
#define CONNECTION_MAX_FETCH_FIELD   16
 
#define CONNECTION_MAX_FETCH_DEC   17
 
#define CONNECTION_MAX_FETCH_INC   18
 
#define CONNECTION_HOST_FETCH_FIELD   20
 
#define CONNECTION_HOST_FETCH_DEC   21
 
#define CONNECTION_HOST_FETCH_INC   22
 
#define CONNECTION_CACHE_FETCH_FIELD   24
 
#define CONNECTION_CACHE_FETCH_DEC   25
 
#define CONNECTION_CACHE_FETCH_INC   26
 
#define CONNECTION_DEFAULT_BUTTON   27
 
#define CONNECTION_CANCEL_BUTTON   28
 
#define CONNECTION_OK_BUTTON   29
 
#define http_proxy_type   (nsoption_bool(http_proxy) ? (nsoption_int(http_proxy_auth) + 1) : 0)
 

Functions

static int ro_gui_options_connection_proxy_type (wimp_w w)
 
static void ro_gui_options_connection_default (wimp_pointer *pointer)
 
static bool ro_gui_options_connection_ok (wimp_w w)
 
static bool ro_gui_options_connection_update (wimp_w w, wimp_i i, wimp_menu *m, wimp_selection *s, menu_action a)
 
bool ro_gui_options_connection_initialise (wimp_w w)
 

Macro Definition Documentation

◆ CONNECTION_CACHE_FETCH_DEC

#define CONNECTION_CACHE_FETCH_DEC   25

Definition at line 52 of file con_connect.c.

◆ CONNECTION_CACHE_FETCH_FIELD

#define CONNECTION_CACHE_FETCH_FIELD   24

Definition at line 51 of file con_connect.c.

◆ CONNECTION_CACHE_FETCH_INC

#define CONNECTION_CACHE_FETCH_INC   26

Definition at line 53 of file con_connect.c.

◆ CONNECTION_CANCEL_BUTTON

#define CONNECTION_CANCEL_BUTTON   28

Definition at line 55 of file con_connect.c.

◆ CONNECTION_DEFAULT_BUTTON

#define CONNECTION_DEFAULT_BUTTON   27

Definition at line 54 of file con_connect.c.

◆ CONNECTION_HOST_FETCH_DEC

#define CONNECTION_HOST_FETCH_DEC   21

Definition at line 49 of file con_connect.c.

◆ CONNECTION_HOST_FETCH_FIELD

#define CONNECTION_HOST_FETCH_FIELD   20

Definition at line 48 of file con_connect.c.

◆ CONNECTION_HOST_FETCH_INC

#define CONNECTION_HOST_FETCH_INC   22

Definition at line 50 of file con_connect.c.

◆ CONNECTION_MAX_FETCH_DEC

#define CONNECTION_MAX_FETCH_DEC   17

Definition at line 46 of file con_connect.c.

◆ CONNECTION_MAX_FETCH_FIELD

#define CONNECTION_MAX_FETCH_FIELD   16

Definition at line 45 of file con_connect.c.

◆ CONNECTION_MAX_FETCH_INC

#define CONNECTION_MAX_FETCH_INC   18

Definition at line 47 of file con_connect.c.

◆ CONNECTION_OK_BUTTON

#define CONNECTION_OK_BUTTON   29

Definition at line 56 of file con_connect.c.

◆ CONNECTION_PROXY_FIELD

#define CONNECTION_PROXY_FIELD   3

Definition at line 35 of file con_connect.c.

◆ CONNECTION_PROXY_HOST

#define CONNECTION_PROXY_HOST   6

Definition at line 38 of file con_connect.c.

◆ CONNECTION_PROXY_HOST_LABEL

#define CONNECTION_PROXY_HOST_LABEL   5

Definition at line 37 of file con_connect.c.

◆ CONNECTION_PROXY_MENU

#define CONNECTION_PROXY_MENU   4

Definition at line 36 of file con_connect.c.

◆ CONNECTION_PROXY_PASSWORD

#define CONNECTION_PROXY_PASSWORD   12

Definition at line 44 of file con_connect.c.

◆ CONNECTION_PROXY_PASSWORD_LABEL

#define CONNECTION_PROXY_PASSWORD_LABEL   11

Definition at line 43 of file con_connect.c.

◆ CONNECTION_PROXY_PORT

#define CONNECTION_PROXY_PORT   8

Definition at line 40 of file con_connect.c.

◆ CONNECTION_PROXY_PORT_LABEL

#define CONNECTION_PROXY_PORT_LABEL   7

Definition at line 39 of file con_connect.c.

◆ CONNECTION_PROXY_USERNAME

#define CONNECTION_PROXY_USERNAME   10

Definition at line 42 of file con_connect.c.

◆ CONNECTION_PROXY_USERNAME_LABEL

#define CONNECTION_PROXY_USERNAME_LABEL   9

Definition at line 41 of file con_connect.c.

◆ http_proxy_type

#define http_proxy_type   (nsoption_bool(http_proxy) ? (nsoption_int(http_proxy_auth) + 1) : 0)

Definition at line 58 of file con_connect.c.

Function Documentation

◆ ro_gui_options_connection_default()

void ro_gui_options_connection_default ( wimp_pointer *  pointer)
static

Definition at line 164 of file con_connect.c.

References CONNECTION_CACHE_FETCH_FIELD, CONNECTION_HOST_FETCH_FIELD, CONNECTION_MAX_FETCH_FIELD, CONNECTION_PROXY_FIELD, CONNECTION_PROXY_HOST, CONNECTION_PROXY_PASSWORD, CONNECTION_PROXY_PORT, CONNECTION_PROXY_USERNAME, NO_ACTION, proxy_type_menu, ro_gui_options_connection_update(), ro_gui_set_icon_integer(), and ro_gui_set_icon_string().

Referenced by ro_gui_options_connection_initialise().

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

◆ ro_gui_options_connection_initialise()

bool ro_gui_options_connection_initialise ( wimp_w  w)

Definition at line 66 of file con_connect.c.

References CONNECTION_CACHE_FETCH_DEC, CONNECTION_CACHE_FETCH_FIELD, CONNECTION_CACHE_FETCH_INC, CONNECTION_CANCEL_BUTTON, CONNECTION_DEFAULT_BUTTON, CONNECTION_HOST_FETCH_DEC, CONNECTION_HOST_FETCH_FIELD, CONNECTION_HOST_FETCH_INC, CONNECTION_MAX_FETCH_DEC, CONNECTION_MAX_FETCH_FIELD, CONNECTION_MAX_FETCH_INC, CONNECTION_OK_BUTTON, CONNECTION_PROXY_FIELD, CONNECTION_PROXY_HOST, CONNECTION_PROXY_HOST_LABEL, CONNECTION_PROXY_MENU, CONNECTION_PROXY_PASSWORD, CONNECTION_PROXY_PASSWORD_LABEL, CONNECTION_PROXY_PORT, CONNECTION_PROXY_PORT_LABEL, CONNECTION_PROXY_USERNAME, CONNECTION_PROXY_USERNAME_LABEL, NO_ACTION, nsoption_bool, nsoption_charp, nsoption_int, proxy_type_menu, ro_gui_options_connection_default(), ro_gui_options_connection_ok(), ro_gui_options_connection_update(), ro_gui_set_icon_integer(), ro_gui_set_icon_string(), ro_gui_wimp_event_memorise(), ro_gui_wimp_event_register_button(), ro_gui_wimp_event_register_cancel(), ro_gui_wimp_event_register_menu_gright(), ro_gui_wimp_event_register_menu_selection(), ro_gui_wimp_event_register_numeric_field(), ro_gui_wimp_event_register_ok(), ro_gui_wimp_event_register_text_field(), and ro_gui_wimp_event_set_help_prefix().

Referenced by ro_gui_configure_initialise().

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

◆ ro_gui_options_connection_ok()

bool ro_gui_options_connection_ok ( wimp_w  w)
static

Definition at line 179 of file con_connect.c.

References CONNECTION_CACHE_FETCH_FIELD, CONNECTION_HOST_FETCH_FIELD, CONNECTION_MAX_FETCH_FIELD, CONNECTION_PROXY_HOST, CONNECTION_PROXY_PASSWORD, CONNECTION_PROXY_PORT, CONNECTION_PROXY_USERNAME, nsoption_set_bool, nsoption_set_charp, nsoption_set_int, ro_gui_get_icon_decimal(), ro_gui_get_icon_string(), ro_gui_options_connection_proxy_type(), and ro_gui_save_options().

Referenced by ro_gui_options_connection_initialise().

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

◆ ro_gui_options_connection_proxy_type()

int ro_gui_options_connection_proxy_type ( wimp_w  w)
static

Definition at line 151 of file con_connect.c.

References CONNECTION_PROXY_FIELD, proxy_type_menu, ro_gui_get_icon_string(), and text().

Referenced by ro_gui_options_connection_ok(), and ro_gui_options_connection_update().

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

◆ ro_gui_options_connection_update()

bool ro_gui_options_connection_update ( wimp_w  w,
wimp_i  i,
wimp_menu *  m,
wimp_selection *  s,
menu_action  a 
)
static

Definition at line 128 of file con_connect.c.

References CONNECTION_PROXY_HOST, CONNECTION_PROXY_HOST_LABEL, CONNECTION_PROXY_PASSWORD, CONNECTION_PROXY_PASSWORD_LABEL, CONNECTION_PROXY_PORT, CONNECTION_PROXY_PORT_LABEL, CONNECTION_PROXY_USERNAME, CONNECTION_PROXY_USERNAME_LABEL, ro_gui_options_connection_proxy_type(), and ro_gui_set_icon_shaded_state().

Referenced by ro_gui_options_connection_default(), and ro_gui_options_connection_initialise().

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