NetSurf
Macros | Functions
con_cache.c File Reference
#include <stdbool.h>
#include <oslib/hourglass.h>
#include "utils/nsoption.h"
#include "utils/filename.h"
#include "utils/messages.h"
#include "riscos/gui.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_cache.c:

Go to the source code of this file.

Macros

#define CACHE_MEMORY_SIZE   3
 
#define CACHE_MEMORY_DEC   4
 
#define CACHE_MEMORY_INC   5
 
#define CACHE_DISC_SIZE   10
 
#define CACHE_DISC_DEC   11
 
#define CACHE_DISC_INC   12
 
#define CACHE_DISC_EXPIRE   15
 
#define CACHE_DISC_EXPIRE_DEC   16
 
#define CACHE_DISC_EXPIRE_INC   17
 
#define CACHE_DEFAULT_BUTTON   19
 
#define CACHE_CANCEL_BUTTON   20
 
#define CACHE_OK_BUTTON   21
 

Functions

static bool ro_gui_options_cache_click (wimp_pointer *pointer)
 
static bool ro_gui_options_cache_ok (wimp_w w)
 
bool ro_gui_options_cache_initialise (wimp_w w)
 

Macro Definition Documentation

◆ CACHE_CANCEL_BUTTON

#define CACHE_CANCEL_BUTTON   20

Definition at line 44 of file con_cache.c.

◆ CACHE_DEFAULT_BUTTON

#define CACHE_DEFAULT_BUTTON   19

Definition at line 43 of file con_cache.c.

◆ CACHE_DISC_DEC

#define CACHE_DISC_DEC   11

Definition at line 38 of file con_cache.c.

◆ CACHE_DISC_EXPIRE

#define CACHE_DISC_EXPIRE   15

Definition at line 40 of file con_cache.c.

◆ CACHE_DISC_EXPIRE_DEC

#define CACHE_DISC_EXPIRE_DEC   16

Definition at line 41 of file con_cache.c.

◆ CACHE_DISC_EXPIRE_INC

#define CACHE_DISC_EXPIRE_INC   17

Definition at line 42 of file con_cache.c.

◆ CACHE_DISC_INC

#define CACHE_DISC_INC   12

Definition at line 39 of file con_cache.c.

◆ CACHE_DISC_SIZE

#define CACHE_DISC_SIZE   10

Definition at line 37 of file con_cache.c.

◆ CACHE_MEMORY_DEC

#define CACHE_MEMORY_DEC   4

Definition at line 35 of file con_cache.c.

◆ CACHE_MEMORY_INC

#define CACHE_MEMORY_INC   5

Definition at line 36 of file con_cache.c.

◆ CACHE_MEMORY_SIZE

#define CACHE_MEMORY_SIZE   3

Definition at line 34 of file con_cache.c.

◆ CACHE_OK_BUTTON

#define CACHE_OK_BUTTON   21

Definition at line 45 of file con_cache.c.

Function Documentation

◆ ro_gui_options_cache_click()

bool ro_gui_options_cache_click ( wimp_pointer *  pointer)
static

Definition at line 78 of file con_cache.c.

References CACHE_DEFAULT_BUTTON, CACHE_DISC_EXPIRE, CACHE_DISC_SIZE, CACHE_MEMORY_SIZE, and ro_gui_set_icon_decimal().

Referenced by ro_gui_options_cache_initialise().

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

◆ ro_gui_options_cache_initialise()

bool ro_gui_options_cache_initialise ( wimp_w  w)

Definition at line 50 of file con_cache.c.

References CACHE_CANCEL_BUTTON, CACHE_DISC_DEC, CACHE_DISC_EXPIRE, CACHE_DISC_EXPIRE_DEC, CACHE_DISC_EXPIRE_INC, CACHE_DISC_INC, CACHE_DISC_SIZE, CACHE_MEMORY_DEC, CACHE_MEMORY_INC, CACHE_MEMORY_SIZE, CACHE_OK_BUTTON, nsoption_int, nsoption_uint, ro_gui_options_cache_click(), ro_gui_options_cache_ok(), ro_gui_set_icon_decimal(), ro_gui_wimp_event_memorise(), ro_gui_wimp_event_register_cancel(), ro_gui_wimp_event_register_mouse_click(), ro_gui_wimp_event_register_numeric_field(), 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_cache_ok()

bool ro_gui_options_cache_ok ( wimp_w  w)
static

Definition at line 94 of file con_cache.c.

References CACHE_DISC_EXPIRE, CACHE_DISC_SIZE, CACHE_MEMORY_SIZE, nsoption_set_int, nsoption_set_uint, ro_gui_get_icon_decimal(), and ro_gui_save_options().

Referenced by ro_gui_options_cache_initialise().

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