NetSurf
Functions
dialog.h File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ ro_gui_dialog_add_persistent()

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().

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

◆ ro_gui_dialog_click()

void ro_gui_dialog_click ( wimp_pointer *  pointer)

◆ ro_gui_dialog_close()

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().

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

◆ ro_gui_dialog_close_persistent()

void ro_gui_dialog_close_persistent ( wimp_w  parent)

Close persistent dialogs associated with a window.

Parameters
parentthe 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().

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

◆ ro_gui_dialog_create()

wimp_w ro_gui_dialog_create ( const char *  template_name)

Create a window from a template.

Parameters
template_namename of template to load
Returns
window handle

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().

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

◆ ro_gui_dialog_font_menu_selection()

void ro_gui_dialog_font_menu_selection ( int  item)

◆ ro_gui_dialog_image_menu_selection()

void ro_gui_dialog_image_menu_selection ( int  item)

◆ ro_gui_dialog_init()

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().

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

◆ ro_gui_dialog_languages_menu_selection()

void ro_gui_dialog_languages_menu_selection ( const char *  lang)

◆ ro_gui_dialog_load_template()

wimp_window * ro_gui_dialog_load_template ( const char *  template_name)

Load a template without creating a window.

Parameters
template_namename of template to load
Returns
window block

Exits through die() on error.

Definition at line 242 of file dialog.c.

References die(), and NSLOG.

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().

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

◆ ro_gui_dialog_open()

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().

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

◆ ro_gui_dialog_open_at_pointer()

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().

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

◆ ro_gui_dialog_open_config()

void ro_gui_dialog_open_config ( void  )

◆ ro_gui_dialog_open_persistent()

void ro_gui_dialog_open_persistent ( wimp_w  parent,
wimp_w  w,
bool  pointer 
)

Open a persistent dialog box relative to the pointer.

Parameters
parentthe owning window (NULL for no owner)
wthe dialog window
pointeropen 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().

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

◆ ro_gui_dialog_open_top()

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:

  • The window is opened in the centre of the screen (at the supplied size)
  • Any toolbar editing session is stopped
  • The scroll position is set to the top of the window

If the window is currently open then:

  • The window is brought to the top of the stack
Parameters
wthe window to show
toolbarthe toolbar to consider
widththe window width if it is currently closed (or 0 to retain)
heightthe window height if it is currently closed (or 0 to retain)
Returns
true if the window was previously open

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().

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

◆ ro_gui_dialog_open_xy()

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().

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

◆ ro_gui_dialog_prepare_open_url()

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().

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

◆ ro_gui_dialog_prepare_zoom()

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().

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

◆ ro_gui_dialog_proxyauth_menu_selection()

void ro_gui_dialog_proxyauth_menu_selection ( int  item)

◆ ro_gui_dialog_update_zoom()

void ro_gui_dialog_update_zoom ( struct gui_window g)

Update the Scale View dialog to reflect the current window settings.

Parameters
gthe 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().

Here is the call graph for this function:

◆ ro_gui_save_options()

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().

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