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

dialogs.c File Reference

Dialog module. More...

#include "../config.h"
#include <gtk/gtk.h>
#include "appconfig.h"
#include "dialogs.h"
#include "Pics/warning.xpm"
#include "Pics/question.xpm"

Include dependency graph for dialogs.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  _call_data
 Call data for dialog. More...


Typedefs

typedef _call_data CallData
 Call data for dialog.


Functions

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

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.

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.


Variables

int openFileDialogDisplayed = 0
 Tracks whether the open File Dialog is currently displayed.

GtkWidget * openFileDialog = NULL
 Pointer to the open File Dialog widget.


Detailed Description

Dialog module.

Author:
Lionel ULMER , Darryl Luff

Definition in file dialogs.c.


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