NetSurf
Macros | Functions
con_language.c File Reference
#include <stdbool.h>
#include "utils/nsoption.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "riscos/gui.h"
#include "riscos/menus.h"
#include "riscos/wimp.h"
#include "riscos/wimp_event.h"
#include "riscos/configure.h"
#include "riscos/configure/configure.h"
#include "riscos/dialog.h"
Include dependency graph for con_language.c:

Go to the source code of this file.

Macros

#define LANGUAGE_INTERFACE_FIELD   3
 
#define LANGUAGE_INTERFACE_GRIGHT   4
 
#define LANGUAGE_WEB_PAGES_FIELD   6
 
#define LANGUAGE_WEB_PAGES_GRIGHT   7
 
#define LANGUAGE_DEFAULT_BUTTON   8
 
#define LANGUAGE_CANCEL_BUTTON   9
 
#define LANGUAGE_OK_BUTTON   10
 

Functions

static void ro_gui_options_language_default (wimp_pointer *pointer)
 
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. More...
 
bool ro_gui_options_language_initialise (wimp_w w)
 

Macro Definition Documentation

◆ LANGUAGE_CANCEL_BUTTON

#define LANGUAGE_CANCEL_BUTTON   9

Definition at line 40 of file con_language.c.

◆ LANGUAGE_DEFAULT_BUTTON

#define LANGUAGE_DEFAULT_BUTTON   8

Definition at line 39 of file con_language.c.

◆ LANGUAGE_INTERFACE_FIELD

#define LANGUAGE_INTERFACE_FIELD   3

Definition at line 35 of file con_language.c.

◆ LANGUAGE_INTERFACE_GRIGHT

#define LANGUAGE_INTERFACE_GRIGHT   4

Definition at line 36 of file con_language.c.

◆ LANGUAGE_OK_BUTTON

#define LANGUAGE_OK_BUTTON   10

Definition at line 41 of file con_language.c.

◆ LANGUAGE_WEB_PAGES_FIELD

#define LANGUAGE_WEB_PAGES_FIELD   6

Definition at line 37 of file con_language.c.

◆ LANGUAGE_WEB_PAGES_GRIGHT

#define LANGUAGE_WEB_PAGES_GRIGHT   7

Definition at line 38 of file con_language.c.

Function Documentation

◆ ro_gui_options_language_default()

void ro_gui_options_language_default ( wimp_pointer *  pointer)
static

Definition at line 73 of file con_language.c.

References LANGUAGE_INTERFACE_FIELD, LANGUAGE_WEB_PAGES_FIELD, ro_gui_default_language(), ro_gui_options_language_name(), and ro_gui_set_icon_string().

Referenced by ro_gui_options_language_initialise().

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

◆ ro_gui_options_language_initialise()

bool ro_gui_options_language_initialise ( wimp_w  w)

Definition at line 47 of file con_language.c.

References LANGUAGE_CANCEL_BUTTON, LANGUAGE_DEFAULT_BUTTON, LANGUAGE_INTERFACE_FIELD, LANGUAGE_INTERFACE_GRIGHT, LANGUAGE_OK_BUTTON, LANGUAGE_WEB_PAGES_FIELD, LANGUAGE_WEB_PAGES_GRIGHT, languages_menu, nsoption_charp, ro_gui_options_language_default(), ro_gui_options_language_name(), ro_gui_options_language_ok(), 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_ok(), 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_language_name()

const char * ro_gui_options_language_name ( const char *  code)
static

Convert a 2-letter ISO language code to the language name.

Parameters
code2-letter ISO language code
Returns
language name, or code if unknown

Definition at line 134 of file con_language.c.

References messages_get().

Referenced by ro_gui_options_language_default(), and ro_gui_options_language_initialise().

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

◆ ro_gui_options_language_ok()

bool ro_gui_options_language_ok ( wimp_w  w)
static

Definition at line 86 of file con_language.c.

References LANGUAGE_INTERFACE_FIELD, LANGUAGE_WEB_PAGES_FIELD, languages_menu, NSLOG, nsoption_charp, nsoption_set_charp, ro_gui_get_icon_string(), ro_gui_menu_find_menu_entry_key(), ro_gui_save_options(), and ro_warn_user().

Referenced by ro_gui_options_language_initialise().

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