1 /* hf_creation_dialog.h - headers for height field creation dialog class
2  *
3  * Copyright (C) 2001, 2006 Patrice St-Gelais
4  *         patrstg@users.sourceforge.net
5  *         http://geomorph.sourceforge.net
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20  */
21 
22 //	This file includes the prototypes for the dialog creation functions
23 //	for each HF subtypes
24 //	These functions are defined in other files than hf_dialog.c
25 
26 #ifndef _HF_CREATION_DIALOG
27 #define _HF_CREATION_DIALOG 1
28 
29 #include <gtk/gtk.h>
30 #include "globals.h"
31 
32 typedef struct {
33 	GtkWidget *hf_types_toolbar;
34 	omenu_struct_type *size_menu;
35 } hf_creation_wdg_struct;
36 
37 GtkWidget* hf_creation_dialog_new (GtkWidget *window, GtkTooltips *tooltips,
38 			gpointer hf_options_ptr, gpointer widget_list_ptr);
39 
40 GtkWidget *hf_types_toolbar_new (GtkWidget *window, GtkTooltips *tooltips,
41 		GtkWidget **tb_widget, gpointer hf_options_ptr);
42 
43 void hfuniform_callb(GtkWidget *wdg, gpointer data) ;
44 void hfsubdiv1_callb(GtkWidget *wdg, gpointer data);
45 void hfsubdiv2_callb(GtkWidget *wdg, gpointer data);
46 void hfsurfadd_callb(GtkWidget *wdg, gpointer data);
47 
48 void hf_commit_creation(gpointer);
49 void set_size_menu_from_size (gpointer hfo_ptr, gint size);
50 
51 /***********************************************************************************/
52 
53 //	Prototypes for HF subtypes creation dialog functions
54 GtkWidget * uniform_dialog_new(gpointer data, gint default_value);
55 
56 GtkWidget *subdiv1_dialog_new(gpointer data);
57 GtkWidget *subdiv2_dialog_new(gpointer data);
58 GtkWidget *surfadd_dialog_new(gpointer data);
59 // GtkWidget *waves_dialog_new(gpointer data);
60 
61 #endif // _HF_CREATION_DIALOG
62