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

gui_common.c File Reference

Common GUI functions. More...

#include "dialogs.h"
#include "support.h"

Include dependency graph for gui_common.c:

Include dependency graph

Go to the source code of this file.

Functions

void common_cancel_callback (GtkWidget *widget, gpointer data)
 Cancels a dialog by hiding it.

int notebook_page_count (GtkNotebook *nb)
 Count the pages in a GTK notebook.

void setup_widget_vars ()
 Setup the global widget variables.

void show_widget_paths (GtkWidget *widget, char *id)
 Function to display the widget path and class path for a GtkWidget.


Variables

int running = 0
 Non-zero when gtk main loop is running.

GtkWidget * queryNotebook = NULL
 The notebook holding the results.

GtkWidget * mainWindow = NULL
 Main window.

GtkWidget * aboutDialog = NULL
 About dialog.

GtkFileSelection * queryImportDialog = NULL
 Query Import dialog.

GtkFileSelection * querySaveDialog = NULL
 Query Save dialog.

GtkWidget * scriptOpenDialog = NULL
 Script Open dialog.

GtkWidget * scriptSaveDialog = NULL
 Script Save dialog.

GtkWidget * mainmenu_databaseConnect = NULL
 'Connect' menu item

GtkWidget * mainmenu_databaseDisconnect = NULL
 'Disconnect' menu item

GtkWidget * mainmenu_fileScriptLoad = NULL
 'Script Load' menu item

GtkWidget * mainmenu_fileScriptSave = NULL
 'Script Save' menu item

GtkWidget * mainmenu_fileQueryImport = NULL
 'Import' menu item

GtkWidget * mainmenu_fileQueryLoad = NULL
 'Load' menu item

GtkWidget * mainmenu_fileQuerySave = NULL
 'Save Query' menu item

GtkWidget * mainmenu_fileQuerySaveAs = NULL
 'Save Query As' menu item

GtkWidget * mainmenu_fileResultExport = NULL
 'Export' menu item

GtkWidget * mainmenu_queryClear = NULL
 'Clear' menu item

GtkWidget * mainmenu_queryClose = NULL
 'Close' menu item

GtkWidget * mainmenu_queryNew = NULL
 'New' query menu item

GtkWidget * mainmenu_querySend = NULL
 'Send' menu item

GtkWidget * mainmenu_tableRefresh = NULL
 'Refresh' menu item


Detailed Description

Common GUI functions.

Author:
Lionel ULMER , Darryl Luff

Definition in file gui_common.c.


Function Documentation

void common_cancel_callback GtkWidget *    widget,
gpointer    data
 

Cancels a dialog by hiding it.

Parameters:
widget  The cancel button.
data  The dialog pointer.

Definition at line 76 of file gui_common.c.

int notebook_page_count GtkNotebook *    nb
 

Count the pages in a GTK notebook.

Parameters:
nb  The notebook.
Returns:
The page count, or -1 on error.

Definition at line 85 of file gui_common.c.

Referenced by results_display().

void show_widget_paths GtkWidget *    widget,
char *    id
 

Function to display the widget path and class path for a GtkWidget.

This is mainly used for debugging and doesn't have a use in the final application.

Parameters:
widget  The widget to test.
id  A text string that is displayed at the start of the line, so you can tell multiple widget dumps apart.

Definition at line 131 of file gui_common.c.


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