Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

dialogs.h

Go to the documentation of this file.
00001 
00005 /* GtkSQL -- an interactive graphical query tool for PostgreSQL
00006  * Copyright (C) 1998  Lionel ULMER
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00021  *
00022  * Dialog routine.
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

Generated on Sun May 9 19:19:16 2004 for GtkSQL by doxygen1.2.18