NetSurf
Macros | Functions
con_home.c File Reference
#include <stdbool.h>
#include <stdlib.h>
#include "utils/messages.h"
#include "utils/nsoption.h"
#include "riscos/gui.h"
#include "riscos/menus.h"
#include "riscos/url_suggest.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_home.c:

Go to the source code of this file.

Macros

#define HOME_URL_FIELD   3
 
#define HOME_URL_GRIGHT   4
 
#define HOME_OPEN_STARTUP   5
 
#define HOME_DEFAULT_BUTTON   6
 
#define HOME_CANCEL_BUTTON   7
 
#define HOME_OK_BUTTON   8
 

Functions

static void ro_gui_options_home_default (wimp_pointer *pointer)
 
static bool ro_gui_options_home_ok (wimp_w w)
 
static bool ro_gui_options_home_menu_prepare (wimp_w w, wimp_i i, wimp_menu *menu, wimp_pointer *pointer)
 Callback to prepare menus in the Configure Home dialog. More...
 
bool ro_gui_options_home_initialise (wimp_w w)
 

Macro Definition Documentation

◆ HOME_CANCEL_BUTTON

#define HOME_CANCEL_BUTTON   7

Definition at line 38 of file con_home.c.

◆ HOME_DEFAULT_BUTTON

#define HOME_DEFAULT_BUTTON   6

Definition at line 37 of file con_home.c.

◆ HOME_OK_BUTTON

#define HOME_OK_BUTTON   8

Definition at line 39 of file con_home.c.

◆ HOME_OPEN_STARTUP

#define HOME_OPEN_STARTUP   5

Definition at line 36 of file con_home.c.

◆ HOME_URL_FIELD

#define HOME_URL_FIELD   3

Definition at line 34 of file con_home.c.

◆ HOME_URL_GRIGHT

#define HOME_URL_GRIGHT   4

Definition at line 35 of file con_home.c.

Function Documentation

◆ ro_gui_options_home_default()

void ro_gui_options_home_default ( wimp_pointer *  pointer)
static

Definition at line 76 of file con_home.c.

References HOME_OPEN_STARTUP, HOME_URL_FIELD, ro_gui_set_icon_selected_state(), and ro_gui_set_icon_string().

Referenced by ro_gui_options_home_initialise().

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

◆ ro_gui_options_home_initialise()

bool ro_gui_options_home_initialise ( wimp_w  w)

◆ ro_gui_options_home_menu_prepare()

bool ro_gui_options_home_menu_prepare ( wimp_w  w,
wimp_i  i,
wimp_menu *  menu,
wimp_pointer *  pointer 
)
static

Callback to prepare menus in the Configure Home dialog.

At present, this only has to handle the URL Suggestion pop-up.

Parameters
wThe window handle owning the menu.
iThe icon handle owning the menu.
*menuThe menu to be prepared.
*pointerThe associated mouse click event block, or NULL on an Adjust-click re-opening.
Returns
true if the event was handled; false if not.

Definition at line 108 of file con_home.c.

References HOME_URL_GRIGHT, ro_gui_url_suggest_menu, and ro_gui_url_suggest_prepare_menu().

Referenced by ro_gui_options_home_initialise().

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

◆ ro_gui_options_home_ok()

bool ro_gui_options_home_ok ( wimp_w  w)
static

Definition at line 83 of file con_home.c.

References HOME_OPEN_STARTUP, HOME_URL_FIELD, nsoption_set_bool, nsoption_set_charp, ro_gui_get_icon_selected_state(), ro_gui_get_icon_string(), and ro_gui_save_options().

Referenced by ro_gui_options_home_initialise().

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