00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef __DIALOGS_H__
00026 #define __DIALOGS_H__
00027
00028 #include <gtk/gtk.h>
00029
00031 typedef enum {
00032 DLGTYPE_NONE = 0,
00033 DLGTYPE_WARNING,
00034 DLGTYPE_QUESTION
00035 } DlgType;
00036
00038 GtkWidget *create_standard_dialog(const char *title, const char *text,
00039 const DlgType predefined_type, char **pixmap,
00040 const char *ok_text, void (*ok_callback) (void *),
00041 const char *cancel_text,
00042 void (*cancel_callback) (void *),
00043 void *callback_data);
00044
00046 GtkWidget *create_warning_dialog(const char *title, const char *text);
00047
00048 void display_error(char *title, char *message);
00049
00050 void file_open_dialog(GtkWidget *txt);
00051
00053 GtkWidget *show_warning_dialog(char *title, char *text);
00054
00055 #endif