![]() |
libxputty 0.1
|
Go to the source code of this file.
Data Structures | |
struct | MessageDialog |
Enumerations | |
enum | { INFO_BOX , WARNING_BOX , ERROR_BOX , QUESTION_BOX , SELECTION_BOX , ENTRY_BOX } |
Functions | |
Widget_t * | open_message_dialog (Widget_t *w, int style, const char *title, const char *message, const char *choices) |
open_message_dialog - open a non blocking dialog window, lines in message chould be separated by the character "|" choices for the SELECTION_BOX should be separated as well with the character "|". message and/or choices could be NULL when not needed. To fetch the response of a dialog, connect to the dialog_callback supported "styles" been INFO_BOX - a message dialog display a info text WARNING_BOX - a message dialog display a warning ERROR_BOX - a message dialog display a error message QUESTION_BOX - a no/yes dialog message SELECTION_BOX - a dialog to select between multiple options ENTRY_BOX - a dialog to get text input | |
void | radio_box_set_active (Widget_t *w) |
anonymous enum |
Enumerator | |
---|---|
INFO_BOX | |
WARNING_BOX | |
ERROR_BOX | |
QUESTION_BOX | |
SELECTION_BOX | |
ENTRY_BOX |
Definition at line 32 of file xmessage-dialog.h.
Widget_t * open_message_dialog | ( | Widget_t * | w, |
int | style, | ||
const char * | title, | ||
const char * | message, | ||
const char * | choices | ||
) |
open_message_dialog - open a non blocking dialog window, lines in message chould be separated by the character "|" choices for the SELECTION_BOX should be separated as well with the character "|". message and/or choices could be NULL when not needed. To fetch the response of a dialog, connect to the dialog_callback supported "styles" been
INFO_BOX - a message dialog display a info text
WARNING_BOX - a message dialog display a warning
ERROR_BOX - a message dialog display a error message
QUESTION_BOX - a no/yes dialog message
SELECTION_BOX - a dialog to select between multiple options
ENTRY_BOX - a dialog to get text input
Definition at line 386 of file xmessage-dialog.c.
References add_button(), Widget_t::app, CENTER, MessageDialog::choices, create_window(), ENTRY_BOX, ERROR_BOX, Func_t::expose_callback, Widget_t::flags, Widget_t::func, Resize_t::gravity, HAS_MEM, MessageDialog::height, Widget_t::image, INFO_BOX, IS_WINDOW, Widget_t::label, MessageDialog::lin, Func_t::mem_free_callback, MessageDialog::message, MessageDialog::message_type, os_get_root_window(), Widget_t::parent, Widget_t::parent_struct, QUESTION_BOX, MessageDialog::response, Widget_t::scale, MessageDialog::sel, SELECTION_BOX, Func_t::value_changed_callback, WARNING_BOX, widget_get_png(), widget_set_icon_from_surface(), widget_set_title(), widget_show_all(), and MessageDialog::width.
Referenced by hyperlink_pressed().
void radio_box_set_active | ( | Widget_t * | w | ) |
Definition at line 235 of file xmessage-dialog.c.
References Widget_t::adj, adj_set_value(), Widget_t::adj_y, Widget_t::childlist, Childlist_t::childs, Childlist_t::elem, Widget_t::flags, IS_RADIO, Widget_t::parent, Widget_t::parent_struct, and MessageDialog::response.