21#include "oslib/osspriteop.h"
22#include "oslib/wimp.h"
35#define CONNECTION_PROXY_FIELD 3
36#define CONNECTION_PROXY_MENU 4
37#define CONNECTION_PROXY_HOST_LABEL 5
38#define CONNECTION_PROXY_HOST 6
39#define CONNECTION_PROXY_PORT_LABEL 7
40#define CONNECTION_PROXY_PORT 8
41#define CONNECTION_PROXY_USERNAME_LABEL 9
42#define CONNECTION_PROXY_USERNAME 10
43#define CONNECTION_PROXY_PASSWORD_LABEL 11
44#define CONNECTION_PROXY_PASSWORD 12
45#define CONNECTION_MAX_FETCH_FIELD 16
46#define CONNECTION_MAX_FETCH_DEC 17
47#define CONNECTION_MAX_FETCH_INC 18
48#define CONNECTION_HOST_FETCH_FIELD 20
49#define CONNECTION_HOST_FETCH_DEC 21
50#define CONNECTION_HOST_FETCH_INC 22
51#define CONNECTION_CACHE_FETCH_FIELD 24
52#define CONNECTION_CACHE_FETCH_DEC 25
53#define CONNECTION_CACHE_FETCH_INC 26
54#define CONNECTION_DEFAULT_BUTTON 27
55#define CONNECTION_CANCEL_BUTTON 28
56#define CONNECTION_OK_BUTTON 29
58#define http_proxy_type (nsoption_bool(http_proxy) ? (nsoption_int(http_proxy_auth) + 1) : 0)
74 data.indirected_text.text,
true);
136 host = (proxy_type > 0);
137 user = (proxy_type > 1);
157 for (i = 0; (i < 4); i++)
159 data.indirected_text.text))
168 data.indirected_text.text,
true);
184 if (proxy_type == 0) {
#define CONNECTION_CACHE_FETCH_INC
#define CONNECTION_PROXY_PASSWORD_LABEL
#define CONNECTION_PROXY_HOST_LABEL
#define CONNECTION_HOST_FETCH_FIELD
#define CONNECTION_HOST_FETCH_INC
#define CONNECTION_MAX_FETCH_FIELD
static int ro_gui_options_connection_proxy_type(wimp_w w)
#define CONNECTION_OK_BUTTON
#define CONNECTION_PROXY_MENU
#define CONNECTION_DEFAULT_BUTTON
#define CONNECTION_PROXY_USERNAME
#define CONNECTION_CACHE_FETCH_DEC
#define CONNECTION_CACHE_FETCH_FIELD
#define CONNECTION_HOST_FETCH_DEC
#define CONNECTION_PROXY_FIELD
#define CONNECTION_PROXY_HOST
#define CONNECTION_PROXY_PORT
#define CONNECTION_PROXY_PASSWORD
static void ro_gui_options_connection_default(wimp_pointer *pointer)
bool ro_gui_options_connection_initialise(wimp_w w)
#define CONNECTION_PROXY_PORT_LABEL
#define CONNECTION_PROXY_USERNAME_LABEL
static bool ro_gui_options_connection_update(wimp_w w, wimp_i i, wimp_menu *m, wimp_selection *s, menu_action a)
#define CONNECTION_CANCEL_BUTTON
#define CONNECTION_MAX_FETCH_INC
#define CONNECTION_MAX_FETCH_DEC
static bool ro_gui_options_connection_ok(wimp_w w)
void ro_gui_save_options(void)
Save the current options.
Tinct SWI numbers and flags for version 0.11.
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_bool(OPTION)
Get the value of a boolean option.
void ro_gui_set_icon_string(wimp_w w, wimp_i i, const char *text, bool is_utf8)
Set the contents of a text or sprite icon to a string.
int ro_gui_get_icon_decimal(wimp_w w, wimp_i i, int decimal_places)
Get the contents of an icon as a number.
void ro_gui_set_icon_shaded_state(wimp_w w, wimp_i i, bool state)
Set the shaded state of an icon.
const char * ro_gui_get_icon_string(wimp_w w, wimp_i i)
Read the contents of a text or sprite icon.
void ro_gui_set_icon_integer(wimp_w w, wimp_i i, int value)
Set the contents of an icon to a number.
General RISC OS WIMP/OS library functions (interface).
bool ro_gui_wimp_event_register_text_field(wimp_w w, wimp_i i)
Register a text field to be automatically handled.
bool ro_gui_wimp_event_register_numeric_field(wimp_w w, wimp_i i, wimp_i up, wimp_i down, int min, int max, int stepping, int decimal_places)
Register a numeric field to be automatically handled.
bool ro_gui_wimp_event_set_help_prefix(wimp_w w, const char *help_prefix)
Set the associated help prefix for a given window.
bool ro_gui_wimp_event_register_menu_gright(wimp_w w, wimp_i i, wimp_i gright, wimp_menu *menu)
Register an icon menu to be automatically handled.
bool ro_gui_wimp_event_register_cancel(wimp_w w, wimp_i i)
Register a function to be called for the Cancel action on a window.
bool ro_gui_wimp_event_memorise(wimp_w w)
Memorises the current state of any registered components in a window.
bool ro_gui_wimp_event_register_menu_selection(wimp_w w, bool(*callback)(wimp_w w, wimp_i i, wimp_menu *m, wimp_selection *s, menu_action a))
Register a function to be called following a menu selection.
bool ro_gui_wimp_event_register_ok(wimp_w w, wimp_i i, bool(*callback)(wimp_w w))
Register a function to be called for the OK action on a window.
bool ro_gui_wimp_event_register_button(wimp_w w, wimp_i i, void(*callback)(wimp_pointer *pointer))
Register a function to be called when a particular button is pressed.
Automated RISC OS WIMP event handling (interface).
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.