1 /*
2  *  dialog.h
3  *
4  *  Copyright (C) 1998 Ullrich Hafner <hafner@bigfoot.de>
5  *
6  *  This program 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; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
19  */
20 
21 /*
22  *  $Date: 1999/10/23 17:43:25 $
23  *  $Author: hafner $
24  *  $Revision: 1.13 $
25  *  $State: Exp $
26  */
27 
28 #ifndef _DIALOG_H
29 #define _DIALOG_H
30 
31 #include <gtk/gtk.h>
32 
33 typedef enum dialog {DIALOG_INFO, DIALOG_QUESTION, DIALOG_WARNING,
34 		    DIALOG_ERROR} dialog_e;
35 
36 void
37 dialog_popup (dialog_e type, void (*ok_function) (GtkWidget *, gpointer),
38 	      gpointer dataptr_ok_function, const char *format, ...);
39 void
40 dialog (dialog_e type, const char *close_text, const char *ok_text,
41 	void (*ok_function) (GtkWidget *, gpointer), gpointer dataptr_ok_function,
42 	const char *format, ...);
43 GtkWidget *
44 generate_option_menu (const char *description,
45 		      GtkTooltips *tooltips, const char *info,
46 		      const char **entry, const char *current,
47 		      proplist_t text,
48 		      void (*callback) (GtkWidget *, gpointer),
49 		      gpointer callback_data);
50 void
51 set_option_menu_default (GtkOptionMenu *menu, const char **list,
52 			 const char *value);
53 gint
54 progress_timer (gpointer data);
55 gint
56 delete_button (GtkWidget *widget, GdkEventAny  *event, gpointer ptr);
57 
58 #endif /* not _DIALOG_H */
59 
60