35#define LANGUAGE_INTERFACE_FIELD 3
36#define LANGUAGE_INTERFACE_GRIGHT 4
37#define LANGUAGE_WEB_PAGES_FIELD 6
38#define LANGUAGE_WEB_PAGES_GRIGHT 7
39#define LANGUAGE_DEFAULT_BUTTON 8
40#define LANGUAGE_CANCEL_BUTTON 9
41#define LANGUAGE_OK_BUTTON 10
102 "No memory to duplicate language code");
118 "No memory to duplicate language code");
136 char key[] =
"lang_xx";
#define LANGUAGE_INTERFACE_GRIGHT
bool ro_gui_options_language_initialise(wimp_w w)
#define LANGUAGE_INTERFACE_FIELD
#define LANGUAGE_DEFAULT_BUTTON
static void ro_gui_options_language_default(wimp_pointer *pointer)
#define LANGUAGE_WEB_PAGES_GRIGHT
static bool ro_gui_options_language_ok(wimp_w w)
static const char * ro_gui_options_language_name(const char *code)
Convert a 2-letter ISO language code to the language name.
#define LANGUAGE_WEB_PAGES_FIELD
#define LANGUAGE_OK_BUTTON
#define LANGUAGE_CANCEL_BUTTON
void ro_gui_save_options(void)
Save the current options.
#define NSLOG(catname, level, logmsg, args...)
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
Localised message support (interface).
nserror ro_warn_user(const char *warning, const char *detail)
Display a warning for a serious problem (eg memory exhaustion).
const char * ro_gui_default_language(void)
Determine the default language to use.
Option reading and saving interface.
#define nsoption_charp(OPTION)
Get the value of a string option.
#define nsoption_set_charp(OPTION, VALUE)
set string option in default table
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.
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_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).