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

gui_common.h

Go to the documentation of this file.
00001 
00005 /* GtkSQL -- an interactive graphical query tool for PostgreSQL
00006  * Copyright (C) 1998-2003  Lionel ULMER, Darryl Luff
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 
00023 #ifndef __COMMON_H__
00024 #define __COMMON_H__
00025 
00026 #include "../config.h"
00027 
00028 #include <gtk/gtk.h>
00029 
00030 #include <stdio.h>
00031 #include <stdlib.h>
00032 
00033 #include "appconfig.h"
00034 
00035 extern int running;
00036 
00037 extern GtkWidget *queryNotebook;    
00038 extern GtkWidget *resultNotebook;
00039 extern GtkWidget *queryExportItem;
00040 
00041 extern GtkWidget *mainWindow;
00042 extern GtkWidget *aboutDialog;
00043 extern GtkFileSelection *queryImportDialog;
00044 extern GtkFileSelection *querySaveDialog;
00045 extern GtkWidget *scriptOpenDialog;
00046 extern GtkWidget *scriptSaveDialog;
00047 
00048 extern GtkWidget *mainmenu_databaseConnect;
00049 extern GtkWidget *mainmenu_databaseDisconnect;
00050 
00051 extern GtkWidget *mainmenu_fileQueryImport;
00052 extern GtkWidget *mainmenu_fileQueryLoad;
00053 extern GtkWidget *mainmenu_fileQuerySave;
00054 extern GtkWidget *mainmenu_fileQuerySaveAs;
00055 extern GtkWidget *mainmenu_fileResultExport;
00056 extern GtkWidget *mainmenu_fileScriptLoad;
00057 extern GtkWidget *mainmenu_fileScriptSave;
00058 
00059 extern GtkWidget *mainmenu_queryClear;
00060 extern GtkWidget *mainmenu_queryClose;
00061 extern GtkWidget *mainmenu_queryNew;
00062 extern GtkWidget *mainmenu_querySend;
00063 
00064 extern GtkWidget *mainmenu_tableRefresh;
00065 
00066 
00068 #define APPNAME "GtkSQL"                            
00069 
00071 #define MAIL    "djluff@users.sourceforge.net"
00072 
00074 #define URL     "http://gtksql.sourceforge.net/"
00075 
00077 void update_button_sensitivity();
00078 
00081 void common_cancel_callback(GtkWidget * widget, gpointer data);
00082 
00084 int notebook_page_count(GtkNotebook *nb);
00085 
00086 void setup_widget_vars();
00087 
00088 #endif

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