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

query_import_dlg.c

Go to the documentation of this file.
00001 
00005 /* GtkSQL -- an interactive graphical query tool for PostgreSQL and MySQL.
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 tdo_he 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 #include <gtk/gtk.h>
00024 #include <stdio.h>
00025 
00026 #include "buf.h"
00027 #include "gui_common.h"
00028 #include "interface.h"
00029 
00030 void query_import_dialog_hide(void)
00031 {
00032     if (queryImportDialog != NULL)
00033         gtk_widget_hide(GTK_WIDGET(queryImportDialog));
00034 }
00035 
00036 GtkFileSelection *query_import_dialog_create() {
00037     ABuf *buf = buf_new(500);
00038 
00039     if (queryImportDialog == NULL) {
00040         queryImportDialog = GTK_FILE_SELECTION(create_queryImportDlg());
00041 
00042         buf_strcpy(buf, cfg_get_current_dir());
00043         buf_strcat(buf, "/*.sql");
00044         gtk_file_selection_set_filename(GTK_FILE_SELECTION(queryImportDialog), buf->b_dat);
00045         buf = buf_free(buf);
00046     }
00047     return queryImportDialog;
00048 }
00049 
00050 void query_import_dialog_show(void)
00051 {
00052     query_import_dialog_create();
00053     gtk_widget_show(GTK_WIDGET(queryImportDialog));
00054 }

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