messagebox.c File Reference

Implementation of the messagebox functions. More...

#include "messagebox.h"

Include dependency graph for messagebox.c:

Go to the source code of this file.

Functions

jclass getMessageboxClass ()
 Gets the Messagebox-Class.
jint showConfirmDialog (const char *msg)
 Displays a dialog with a message an the buttons "Yes", "No", "Cancel".
char * showInputDialog (const char *msg, const char *defaultValue)
 Displays a dialog which requests user input.
void showMessageDialog (const char *msg)
 Displays a dialog with the message.
jint showModalConfirmDialog (Frame *frame, const char *msg)
 Displays a modal dialog with a message an the buttons "Yes", "No", "Cancel".
char * showModalInputDialog (Frame *frame, const char *msg, const char *defaultValue)
 Displays a modal dialog which requests user input.
void showModalMessageDialog (Frame *frame, const char *msg)
 Displays a modal dialog with the message.


Detailed Description

Implementation of the messagebox functions.

The Messagebox provides an easy way to interact with an user. You can show the user an information, ask him/her to decide what he/she wants to do or request some input. The Messagebox can be displayed modal on a frame.

Author:
Stefan Gruber
Date:
01.02.2005

Definition in file messagebox.c.


Function Documentation

jclass getMessageboxClass  ) 
 

Gets the Messagebox-Class.

Returns:
the Messagebox-Class.

Definition at line 24 of file messagebox.c.

jint showConfirmDialog const char *  msg  ) 
 

Displays a dialog with a message an the buttons "Yes", "No", "Cancel".

Parameters:
msg - The message to display.
Returns:
the clicked button (MSGBOX_YES, MSGBOX_NO, MSGBOX_CANCEL, MSGBOX_CLOSED)
See also:
showModalConfirmDialog(Frame* frame, const char* msg)

Definition at line 76 of file messagebox.c.

char* showInputDialog const char *  msg,
const char *  defaultValue
 

Displays a dialog which requests user input.

Parameters:
msg - The message to display.
defaultValue - The default value.
Returns:
the user input.
See also:
showModalInputDialog(Frame* frame, const char* msg, const char* defaultValue)

Definition at line 130 of file messagebox.c.

void showMessageDialog const char *  msg  ) 
 

Displays a dialog with the message.

Parameters:
msg - The message to display.
See also:
showModalMessageDialog(Frame* frame, const char* msg)

Definition at line 169 of file messagebox.c.

jint showModalConfirmDialog Frame frame,
const char *  msg
 

Displays a modal dialog with a message an the buttons "Yes", "No", "Cancel".

Parameters:
frame - A pointer to a frame to which the messagebox belongs.
msg - The message to display.
Returns:
the clicked button (MSGBOX_YES, MSGBOX_NO, MSGBOX_CANCEL, MSGBOX_CLOSED)
See also:
showConfirmDialog(const char* msg)

Definition at line 44 of file messagebox.c.

char* showModalInputDialog Frame frame,
const char *  msg,
const char *  defaultValue
 

Displays a modal dialog which requests user input.

Parameters:
frame - A pointer to a frame to which the messagebox belongs.
msg - The message to display.
defaultValue - The default value.
Returns:
the user input.
See also:
showInputDialog(const char* msg, const char* defaultValue)

Definition at line 91 of file messagebox.c.

void showModalMessageDialog Frame frame,
const char *  msg
 

Displays a modal dialog with the message.

Parameters:
frame - A pointer to a frame to which the messagebox belongs.
msg - The message to display.
See also:
showMessageDialog(const char* msg)

Definition at line 142 of file messagebox.c.


Generated on Sat Nov 19 14:11:14 2005 for GrubC by  doxygen 1.4.4