NetSurf
|
Go to the source code of this file.
Functions | |
void | ro_gui_dialog_init (void) |
Load and create dialogs from template file. More... | |
wimp_w | ro_gui_dialog_create (const char *template_name) |
Create a window from a template. More... | |
wimp_window * | ro_gui_dialog_load_template (const char *template_name) |
Load a template without creating a window. More... | |
void | ro_gui_dialog_open (wimp_w w) |
Open a dialog box, centred on the screen. More... | |
void | ro_gui_dialog_close (wimp_w close) |
Close a dialog box. More... | |
bool | ro_gui_dialog_open_top (wimp_w w, struct toolbar *toolbar, int width, int height) |
Moves a window to the top of the stack. More... | |
void | ro_gui_dialog_open_at_pointer (wimp_w w) |
Open window at the location of the pointer. More... | |
void | ro_gui_dialog_open_xy (wimp_w, int x, int y) |
Open window at a specified location. More... | |
void | ro_gui_dialog_open_persistent (wimp_w parent, wimp_w w, bool pointer) |
Open a persistent dialog box relative to the pointer. More... | |
void | ro_gui_dialog_add_persistent (wimp_w parent, wimp_w w) |
void | ro_gui_dialog_close_persistent (wimp_w parent) |
Close persistent dialogs associated with a window. More... | |
void | ro_gui_dialog_click (wimp_pointer *pointer) |
void | ro_gui_dialog_prepare_zoom (struct gui_window *g) |
Prepares the Scale view dialog. More... | |
void | ro_gui_dialog_update_zoom (struct gui_window *g) |
Update the Scale View dialog to reflect the current window settings. More... | |
void | ro_gui_dialog_prepare_open_url (void) |
Prepares the Open URL dialog. More... | |
void | ro_gui_save_options (void) |
Save the current options. More... | |
void | ro_gui_dialog_open_config (void) |
void | ro_gui_dialog_proxyauth_menu_selection (int item) |
void | ro_gui_dialog_image_menu_selection (int item) |
void | ro_gui_dialog_languages_menu_selection (const char *lang) |
void | ro_gui_dialog_font_menu_selection (int item) |
void ro_gui_dialog_add_persistent | ( | wimp_w | parent, |
wimp_w | w | ||
) |
Definition at line 608 of file dialog.c.
References dialog, MAX_PERSISTENT, NSLOG, parent, persistent_dialog, and ro_gui_wimp_update_window_furniture().
Referenced by ro_gui_dialog_open_persistent(), and ro_gui_wimp_event_mouse_click().
void ro_gui_dialog_click | ( | wimp_pointer * | pointer | ) |
void ro_gui_dialog_close | ( | wimp_w | close | ) |
Close a dialog box.
Definition at line 335 of file dialog.c.
References dialog, MAX_PERSISTENT, NSLOG, parent, persistent_dialog, ro_gui_dialog_close_persistent(), and ro_warn_user().
Referenced by gui_drag_save_object(), gui_drag_save_selection(), ro_cw_mouse_click(), ro_gui_close_window_request(), ro_gui_dialog_close_persistent(), ro_gui_drag_save_link(), ro_gui_query_close(), ro_gui_save_done(), ro_gui_send_datasave(), ro_gui_wimp_event_keypress(), ro_gui_wimp_event_mouse_click(), ro_gui_wimp_event_ok_click(), ro_local_history_mouse(), ro_pageinfo_mouse(), and ro_print_cleanup().
void ro_gui_dialog_close_persistent | ( | wimp_w | parent | ) |
Close persistent dialogs associated with a window.
parent | the window to close children of |
Definition at line 638 of file dialog.c.
References dialog, MAX_PERSISTENT, NSLOG, parent, persistent_dialog, ro_gui_dialog_close(), and ro_gui_wimp_event_close_window().
Referenced by gui_window_destroy(), gui_window_new_content(), ro_gui_dialog_close(), and ro_msg_window_info().
wimp_w ro_gui_dialog_create | ( | const char * | template_name | ) |
Create a window from a template.
template_name | name of template to load |
Exits through die() on error.
Definition at line 208 of file dialog.c.
References die(), gui_sprites, NSLOG, and ro_gui_dialog_load_template().
Referenced by ro_gui_configure_initialise(), ro_gui_configure_register(), ro_gui_dialog_init(), ro_gui_print_init(), and ro_gui_search_init().
void ro_gui_dialog_font_menu_selection | ( | int | item | ) |
void ro_gui_dialog_image_menu_selection | ( | int | item | ) |
void ro_gui_dialog_init | ( | void | ) |
Load and create dialogs from template file.
Definition at line 103 of file dialog.c.
References dialog_info, dialog_objinfo, dialog_pageinfo, dialog_saveas, dialog_theme_install, dialog_tooltip, dialog_url_complete, dialog_warning, dialog_zoom, ICON_SAVE_CANCEL, ICON_SAVE_ICON, ICON_SAVE_OK, ICON_SAVE_PATH, ICON_THEME_INSTALL_CANCEL, ICON_THEME_INSTALL_INSTALL, ICON_WARNING_CONTINUE, ICON_ZOOM_CANCEL, ICON_ZOOM_DEC, ICON_ZOOM_FRAMES, ICON_ZOOM_INC, ICON_ZOOM_OK, ICON_ZOOM_VALUE, netsurf_version, ro_gui_configure_initialise(), ro_gui_cookies_initialise(), ro_gui_dialog_create(), ro_gui_dialog_open_url_init(), ro_gui_dialog_zoom_apply(), ro_gui_global_history_initialise(), ro_gui_hotlist_initialise(), ro_gui_local_history_initialise(), ro_gui_pageinfo_initialise(), ro_gui_print_init(), ro_gui_save_ok(), ro_gui_save_start_drag(), ro_gui_saveas_create(), ro_gui_search_init(), ro_gui_set_icon_string(), ro_gui_theme_install_apply(), ro_gui_url_complete_click(), ro_gui_url_complete_entering(), ro_gui_url_complete_redraw(), ro_gui_wimp_event_register_button(), ro_gui_wimp_event_register_cancel(), ro_gui_wimp_event_register_checkbox(), ro_gui_wimp_event_register_mouse_click(), ro_gui_wimp_event_register_numeric_field(), ro_gui_wimp_event_register_ok(), ro_gui_wimp_event_register_pointer_entering_window(), ro_gui_wimp_event_register_redraw_window(), ro_gui_wimp_event_register_text_field(), and ro_gui_wimp_event_set_help_prefix().
Referenced by gui_init().
void ro_gui_dialog_languages_menu_selection | ( | const char * | lang | ) |
wimp_window * ro_gui_dialog_load_template | ( | const char * | template_name | ) |
Load a template without creating a window.
template_name | name of template to load |
Exits through die() on error.
Definition at line 242 of file dialog.c.
Referenced by ro_gui_cookies_initialise(), ro_gui_dialog_create(), ro_gui_dialog_open_url_init(), ro_gui_download_init(), ro_gui_global_history_initialise(), ro_gui_hotlist_initialise(), ro_gui_local_history_initialise(), ro_gui_pageinfo_initialise(), ro_gui_query_init(), and ro_gui_saveas_create().
void ro_gui_dialog_open | ( | wimp_w | w | ) |
Open a dialog box, centred on the screen.
Definition at line 297 of file dialog.c.
References NSLOG, PTR_WIMP_OPEN, ro_gui_open_window_request(), ro_gui_screen_size(), ro_gui_set_caret_first(), and ro_warn_user().
Referenced by gui_download_window_create(), query_user_xy(), ro_gui_query_window_bring_to_front(), and ro_warn_user().
void ro_gui_dialog_open_at_pointer | ( | wimp_w | w | ) |
Open window at the location of the pointer.
Definition at line 465 of file dialog.c.
References NSLOG, ro_gui_dialog_open_xy(), and ro_warn_user().
Referenced by ro_gui_dialog_open_persistent().
void ro_gui_dialog_open_config | ( | void | ) |
void ro_gui_dialog_open_persistent | ( | wimp_w | parent, |
wimp_w | w, | ||
bool | pointer | ||
) |
Open a persistent dialog box relative to the pointer.
parent | the owning window (NULL for no owner) |
w | the dialog window |
pointer | open the window at the pointer (centre of the parent otherwise) |
Definition at line 591 of file dialog.c.
References dialog_objinfo, dialog_pageinfo, parent, ro_gui_dialog_add_persistent(), ro_gui_dialog_open_at_pointer(), ro_gui_dialog_open_centre_parent(), ro_gui_set_caret_first(), and ro_gui_wimp_update_window_furniture().
Referenced by global_history_menu_select(), gui_window_save_link(), hotlist_menu_select(), ro_gui_configure_click(), ro_gui_iconbar_menu_select(), ro_gui_window_action_page_info(), ro_gui_window_action_print(), ro_gui_window_action_save(), ro_gui_window_action_search(), ro_gui_window_action_zoom(), ro_gui_window_menu_select(), ro_local_history_open(), and ro_pageinfo_open().
bool ro_gui_dialog_open_top | ( | wimp_w | w, |
struct toolbar * | toolbar, | ||
int | width, | ||
int | height | ||
) |
Moves a window to the top of the stack.
If the window is currently closed then:
If the window is currently open then:
w | the window to show |
toolbar | the toolbar to consider |
width | the window width if it is currently closed (or 0 to retain) |
height | the window height if it is currently closed (or 0 to retain) |
Definition at line 413 of file dialog.c.
References height, PTR_WIMP_OPEN, ro_get_vscroll_width(), ro_gui_open_window_request(), ro_gui_screen_size(), ro_toolbar_get_editing(), ro_toolbar_height(), ro_toolbar_toggle_edit(), ro_warn_user(), and width.
Referenced by ro_gui_configure_click(), ro_gui_configure_show(), ro_gui_cookies_present(), ro_gui_download_window_destroy(), ro_gui_global_history_present(), ro_gui_hotlist_present(), and theme_install_start().
void ro_gui_dialog_open_xy | ( | wimp_w | w, |
int | x, | ||
int | y | ||
) |
Open window at a specified location.
Definition at line 487 of file dialog.c.
References NSLOG, PTR_WIMP_OPEN, ro_gui_open_window_request(), and ro_warn_user().
Referenced by query_user_xy(), and ro_gui_dialog_open_at_pointer().
void ro_gui_dialog_prepare_open_url | ( | void | ) |
Prepares the Open URL dialog.
Definition at line 807 of file dialog.c.
References dialog_openurl, ICON_OPENURL_MENU, ICON_OPENURL_URL, ro_gui_set_icon_shaded_state(), ro_gui_set_icon_string(), ro_gui_url_suggest_prepare_menu(), and ro_gui_wimp_event_memorise().
Referenced by ro_gui_iconbar_menu_select(), and ro_gui_iconbar_menu_warning().
void ro_gui_dialog_prepare_zoom | ( | struct gui_window * | g | ) |
Prepares the Scale view dialog.
Definition at line 689 of file dialog.c.
References browser_window_get_scale(), gui_window::bw, dialog_zoom, ICON_ZOOM_FRAMES, ICON_ZOOM_VALUE, ro_gui_current_zoom_gui, ro_gui_set_icon_selected_state(), ro_gui_set_icon_shaded_state(), ro_gui_set_icon_string(), and ro_gui_wimp_event_memorise().
Referenced by ro_gui_dialog_update_zoom(), ro_gui_window_action_zoom(), and ro_gui_window_menu_warning().
void ro_gui_dialog_proxyauth_menu_selection | ( | int | item | ) |
void ro_gui_dialog_update_zoom | ( | struct gui_window * | g | ) |
Update the Scale View dialog to reflect the current window settings.
g | the gui_window to update for |
Definition at line 705 of file dialog.c.
References ro_gui_current_zoom_gui, and ro_gui_dialog_prepare_zoom().
void ro_gui_save_options | ( | void | ) |
Save the current options.
Definition at line 670 of file dialog.c.
References nsoption_write().
Referenced by cookie_toolbar_save(), global_history_toolbar_save(), hotlist_toolbar_save(), ro_gui_options_cache_ok(), ro_gui_options_connection_ok(), ro_gui_options_content_ok(), ro_gui_options_fonts_ok(), ro_gui_options_home_ok(), ro_gui_options_image_ok(), ro_gui_options_interface_ok(), ro_gui_options_language_ok(), ro_gui_options_security_ok(), ro_gui_options_theme_ok(), ro_gui_theme_install_apply(), ro_gui_window_menu_select(), and ro_gui_window_save_toolbar_buttons().