37#define SEARCH_WEB_URLBAR 2
38#define SEARCH_WEB_PROVIDER_FIELD 4
39#define SEARCH_WEB_PROVIDER_GRIGHT 5
40#define SEARCH_DEFAULT_BUTTON 6
41#define SEARCH_CANCEL_BUTTON 7
42#define SEARCH_OK_BUTTON 8
47 const char *defprovider;
49 if (defprovider == NULL) {
50 defprovider =
"DuckDuckGo";
64 const char* defprovider;
76 (strcmp(provider, defprovider) == 0)) {
86 NSLOG(netsurf, INFO,
"No memory to duplicate search code");
97 const char* defprovider;
104 if (defprovider == NULL) {
105 defprovider =
"DuckDuckGo";
#define SEARCH_WEB_URLBAR
bool ro_gui_options_search_initialise(wimp_w w)
static bool ro_gui_options_search_ok(wimp_w w)
static void ro_gui_options_search_default(wimp_pointer *pointer)
#define SEARCH_WEB_PROVIDER_GRIGHT
#define SEARCH_DEFAULT_BUTTON
#define SEARCH_CANCEL_BUTTON
#define SEARCH_WEB_PROVIDER_FIELD
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 ro_gui_save_options(void)
Save the current options.
#define NSLOG(catname, level, logmsg, args...)
Localised message support (interface).
nserror ro_warn_user(const char *warning, const char *detail)
Display a warning for a serious problem (eg memory exhaustion).
core web search facilities interface.
Option reading and saving interface.
#define nsoption_charp(OPTION)
Get the value of a string option.
#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.
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_selected_state(wimp_w w, wimp_i i, bool state)
Set the selected state of an icon.
bool ro_gui_get_icon_selected_state(wimp_w w, wimp_i i)
Gets the selected state of an icon.
General RISC OS WIMP/OS library functions (interface).
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_checkbox(wimp_w w, wimp_i i)
Register a checkbox to be automatically handled.
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).