1 /* 2 * Copyright 2005 Richard Wilson <info@tinct.net> 3 * 4 * This file is part of NetSurf, http://www.netsurf-browser.org/ 5 * 6 * NetSurf is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; version 2 of the License. 9 * 10 * NetSurf is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #ifndef _NETSURF_RISCOS_DIALOG_H_ 20 #define _NETSURF_RISCOS_DIALOG_H_ 21 22 struct toolbar; 23 struct gui_window; 24 25 void ro_gui_dialog_init(void); 26 wimp_w ro_gui_dialog_create(const char *template_name); 27 wimp_window * ro_gui_dialog_load_template(const char *template_name); 28 29 void ro_gui_dialog_open(wimp_w w); 30 void ro_gui_dialog_close(wimp_w close); 31 32 bool ro_gui_dialog_open_top(wimp_w w, struct toolbar *toolbar, 33 int width, int height); 34 void ro_gui_dialog_open_at_pointer(wimp_w w); 35 void ro_gui_dialog_open_xy(wimp_w, int x, int y); 36 37 void ro_gui_dialog_open_persistent(wimp_w parent, wimp_w w, bool pointer); 38 void ro_gui_dialog_add_persistent(wimp_w parent, wimp_w w); 39 void ro_gui_dialog_close_persistent(wimp_w parent); 40 41 42 43 44 void ro_gui_dialog_click(wimp_pointer *pointer); 45 void ro_gui_dialog_prepare_zoom(struct gui_window *g); 46 void ro_gui_dialog_update_zoom(struct gui_window *g); 47 void ro_gui_dialog_prepare_open_url(void); 48 void ro_gui_save_options(void); 49 void ro_gui_dialog_open_config(void); 50 void ro_gui_dialog_proxyauth_menu_selection(int item); 51 void ro_gui_dialog_image_menu_selection(int item); 52 void ro_gui_dialog_languages_menu_selection(const char *lang); 53 void ro_gui_dialog_font_menu_selection(int item); 54 #endif 55