NetSurf
|
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <oslib/osspriteop.h>
#include <oslib/wimp.h>
#include <oslib/wimpspriteop.h>
#include "utils/config.h"
#include "utils/nsoption.h"
#include "utils/log.h"
#include "utils/messages.h"
#include "riscos/gui.h"
#include "riscos/configure/configure.h"
#include "riscos/configure.h"
#include "riscos/dialog.h"
#include "riscos/menus.h"
#include "riscos/theme.h"
#include "riscos/toolbar.h"
#include "riscos/url_complete.h"
#include "riscos/wimp.h"
#include "riscos/wimp_event.h"
#include "riscos/wimputils.h"
Go to the source code of this file.
Data Structures | |
struct | toolbar_display |
Macros | |
#define | THEME_PANE_AREA 0 |
#define | THEME_DEFAULT_BUTTON 2 |
#define | THEME_CANCEL_BUTTON 3 |
#define | THEME_OK_BUTTON 4 |
Functions | |
static bool | ro_gui_options_theme_ok (wimp_w w) |
static bool | ro_gui_options_theme_click (wimp_pointer *pointer) |
static void | ro_gui_options_theme_load (void) |
static void | ro_gui_options_theme_free (void) |
bool | ro_gui_options_theme_initialise (wimp_w w) |
void | ro_gui_options_theme_finalise (wimp_w w) |
Variables | |
static wimp_window | theme_pane_definition |
static wimp_w | theme_pane |
static struct theme_descriptor * | theme_list = NULL |
static struct toolbar_display * | toolbars = NULL |
static char | theme_radio_validation [] = "Sradiooff,radioon" |
static char | theme_null_validation [] = "" |
static char | theme_line_validation [] = "R2" |
#define THEME_CANCEL_BUTTON 3 |
Definition at line 46 of file con_theme.c.
#define THEME_DEFAULT_BUTTON 2 |
Definition at line 45 of file con_theme.c.
#define THEME_OK_BUTTON 4 |
Definition at line 47 of file con_theme.c.
#define THEME_PANE_AREA 0 |
Definition at line 44 of file con_theme.c.
|
static |
Definition at line 220 of file con_theme.c.
References toolbar::next, ro_gui_set_icon_selected_state(), ro_gui_theme_find(), ro_gui_wimp_event_memorise(), ro_gui_wimp_event_restore(), THEME_CANCEL_BUTTON, THEME_DEFAULT_BUTTON, THEME_OK_BUTTON, theme_pane, toolbar_display::toolbar, and toolbars.
Referenced by ro_gui_options_theme_initialise().
void ro_gui_options_theme_finalise | ( | wimp_w | w | ) |
Definition at line 176 of file con_theme.c.
References NSLOG, ro_gui_options_theme_free(), ro_gui_wimp_event_finalise(), ro_warn_user(), and theme_pane.
Referenced by ro_gui_configure_initialise().
|
static |
Definition at line 404 of file con_theme.c.
References toolbar::next, ro_gui_theme_close(), ro_toolbar_destroy(), theme_list, theme_pane, toolbar_display::toolbar, and toolbars.
Referenced by ro_gui_options_theme_finalise(), and ro_gui_options_theme_load().
bool ro_gui_options_theme_initialise | ( | wimp_w | w | ) |
Definition at line 94 of file con_theme.c.
References toolbar::next, NSLOG, nsoption_charp, PTR_WIMP_OPEN, ro_get_vscroll_width(), ro_gui_options_theme_click(), ro_gui_options_theme_load(), ro_gui_options_theme_ok(), ro_gui_set_icon_selected_state(), ro_gui_theme_find(), ro_gui_wimp_event_memorise(), ro_gui_wimp_event_register_cancel(), ro_gui_wimp_event_register_mouse_click(), ro_gui_wimp_event_register_ok(), ro_gui_wimp_event_set_help_prefix(), THEME_CANCEL_BUTTON, THEME_OK_BUTTON, theme_pane, THEME_PANE_AREA, theme_pane_definition, toolbar_display::toolbar, and toolbars.
Referenced by ro_gui_configure_initialise().
|
static |
Definition at line 243 of file con_theme.c.
References theme_descriptor::author, brower_toolbar_buttons, toolbar_display::descriptor, toolbar_display::icon_number, theme_descriptor::name, toolbar_display::next, theme_descriptor::next, NSLOG, nsoption_charp, PTR_WIMP_OPEN, ro_gui_options_theme_free(), ro_gui_theme_get_available(), ro_gui_theme_open(), ro_gui_wimp_event_register_radio(), ro_toolbar_add_buttons(), ro_toolbar_add_throbber(), ro_toolbar_add_url(), ro_toolbar_create(), ro_toolbar_get_window(), ro_toolbar_height(), ro_toolbar_process(), ro_toolbar_rebuild(), ro_warn_user(), theme_line_validation, theme_list, theme_null_validation, theme_pane, theme_radio_validation, THEME_STYLE_BROWSER_TOOLBAR, toolbar_display::toolbar, TOOLBAR_FLAGS_DISPLAY, and toolbars.
Referenced by ro_gui_options_theme_initialise().
|
static |
Definition at line 193 of file con_theme.c.
References theme_descriptor::leafname, toolbar::next, nsoption_set_charp, ro_gui_get_icon_selected_state(), ro_gui_save_options(), ro_gui_theme_apply(), ro_gui_wimp_event_memorise(), theme_pane, toolbar_display::toolbar, and toolbars.
Referenced by ro_gui_options_theme_initialise().
|
static |
Definition at line 87 of file con_theme.c.
Referenced by ro_gui_options_theme_load().
|
static |
Definition at line 83 of file con_theme.c.
Referenced by ro_gui_options_theme_free(), and ro_gui_options_theme_load().
|
static |
Definition at line 86 of file con_theme.c.
Referenced by ro_gui_options_theme_load().
|
static |
Definition at line 82 of file con_theme.c.
Referenced by ro_gui_options_theme_click(), ro_gui_options_theme_finalise(), ro_gui_options_theme_free(), ro_gui_options_theme_initialise(), ro_gui_options_theme_load(), and ro_gui_options_theme_ok().
|
static |
Definition at line 56 of file con_theme.c.
Referenced by ro_gui_options_theme_initialise().
|
static |
Definition at line 85 of file con_theme.c.
Referenced by ro_gui_options_theme_load().
|
static |
Definition at line 84 of file con_theme.c.
Referenced by nsgtk_menu_toolbars_submenu(), nsgtk_menu_view_submenu(), nsgtk_popup_menu_create(), ro_gui_options_theme_click(), ro_gui_options_theme_free(), ro_gui_options_theme_initialise(), ro_gui_options_theme_load(), and ro_gui_options_theme_ok().