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

dialogs.h File Reference

Dialog module include file. More...

#include <gtk/gtk.h>

Include dependency graph for dialogs.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Enumerations

enum  DlgType { DLGTYPE_NONE = 0, DLGTYPE_WARNING, DLGTYPE_QUESTION }
 The predefined standard dialog types. More...


Functions

GtkWidget * create_standard_dialog (const char *title, const char *text, const DlgType predefined_type, char **pixmap, const char *ok_text, void(*ok_callback)(void *), const char *cancel_text, void(*cancel_callback)(void *), void *callback_data)
 Creates a default dialog.

GtkWidget * create_warning_dialog (const char *title, const char *text)
 Create a standard warning dialog.

void display_error (char *title, char *message)
 Displays an error dialog.

void file_open_dialog (GtkWidget *txt)
 Display the export dialog.

GtkWidget * show_warning_dialog (char *title, char *text)
 Create and show a standard warning dialog.


Detailed Description

Dialog module include file.

Author:
Lionel ULMER , Darryl Luff

Definition in file dialogs.h.


Enumeration Type Documentation

enum DlgType
 

The predefined standard dialog types.

Enumeration values:
DLGTYPE_NONE  Not a predefined dialog.
DLGTYPE_WARNING  A warning dialog.
DLGTYPE_QUESTION  A question dialog.

Definition at line 31 of file dialogs.h.

Referenced by create_standard_dialog().


Function Documentation

GtkWidget* create_standard_dialog const char *    title,
const char *    text,
const DlgType    predefined_type,
char **    pixmap,
const char *    ok_text,
void(*    ok_callback)(void *),
const char *    cancel_text,
void(*    cancel_callback)(void *),
void *    callback_data
 

Creates a default dialog.

Parameters:
title  The title text (Optional).
text  The dialog text (Optional).
predefined_type  One of the DlgType values.
pixmap  Pixmap to display for DLGTYPE_NONE (NULL if unused).
ok_text  The text to display on the "OK" button. Optional. If NULL, no OK button will be displayed.
ok_callback  The callback for the OK button.
cancel_text  The text for the Cancel button. Optional. If NULL, no Cancel button will be displayed.
cancel_callback  The callback function for the Cancel button.
callback_data  The user data to pass to the callback functions.

Definition at line 84 of file dialogs.c.

References _call_data::dialog, DlgType, DLGTYPE_QUESTION, DLGTYPE_WARNING, _call_data::user_cancel_callback, _call_data::user_data, and _call_data::user_ok_callback.

Referenced by create_warning_dialog(), display_error(), gui_send_query(), on_databaseDisconnect_activate(), show_warning_dialog(), and tables_new_connection().

GtkWidget* create_warning_dialog const char *    title,
const char *    text
 

Create a standard warning dialog.

Parameters:
title  The dialog title.
text  The dialog text.
Returns:
The dialog widget.

Definition at line 56 of file dialogs.c.

References create_standard_dialog(), and DLGTYPE_WARNING.

GtkWidget* show_warning_dialog char *    title,
char *    text
 

Create and show a standard warning dialog.

Parameters:
title  The dialog title.
text  The dialog text.
Returns:
The dialog widget.

Definition at line 269 of file dialogs.c.

References create_standard_dialog(), and DLGTYPE_WARNING.


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