Dialog class. More...
#include <ilviews/gadgets/stdialog.h>
Public Member Functions | |
IlvIErrorDialog (IlvDisplay *display, const char *const *strings, IlUShort count, IlBoolean copy=IlTrue, const char *fileordata=0, IlvIDialogType type=IlvDialogOk, IlvSystemView transientFor=0) | |
Constructor. More... | |
IlvIErrorDialog (IlvDisplay *display, const char *title, const char *fileordata=0, IlvIDialogType type=IlvDialogOk, IlvSystemView transientFor=0) | |
Constructor. More... | |
Public Member Functions inherited from IlvIMessageDialog | |
IlvIMessageDialog (IlvDisplay *display, const char *const *strings, IlUShort count, IlBoolean copy=IlTrue, const char *fileordata=0, IlvIDialogType type=IlvDialogOkCancel, IlvSystemView transientFor=0) | |
Constructor. More... | |
IlvIMessageDialog (IlvDisplay *display, const char *string, const char *fileordata=0, IlvIDialogType type=IlvDialogOkCancel, IlvSystemView transientFor=0) | |
Constructor. More... | |
IlBoolean | get (IlBoolean grab=IlFalse, IlvCursor *cursor=0) |
Displays the dialog as a modal dialog. More... | |
IlBoolean | getResult () |
Returns a Boolean value indicating whether the user clicked on Apply or Cancel in the dialog. More... | |
void | setString (const char *const *strings, IlUShort count, IlBoolean copy=IlTrue) |
Sets a message with multiple lines to the dialog. More... | |
void | setString (const char *string) |
Sets a message with a single line to the dialog. More... | |
Public Member Functions inherited from IlvDialog | |
IlvDialog (IlvDisplay *display, const char *name, const char *title, const char *filename, const IlvRect *rect=0) | |
Constructor. More... | |
IlvDialog (IlvDisplay *display, const char *name, const char *title, const char *filename, IlUInt properties, const IlvRect *rect=0, IlvSystemView transientFor=0) | |
Constructor. More... | |
IlvDialog (IlvDisplay *display, const char *name, const char *title, const IlvRect &rect, IlUInt properties=0, IlvSystemView transientFor=0) | |
Constructor. More... | |
virtual void | apply () |
Is called when the callback associated with the apply symbol is triggered. More... | |
virtual void | cancel () |
Is called when the callback associated with the cancel symbol is triggered. More... | |
virtual void | wait (IlBoolean grab=IlFalse, IlvCursor *cursor=0) |
Displays a modal dialog. More... | |
IlBoolean | wasCanceled () const |
Returns the status of the dialog after closing it. More... | |
Public Member Functions inherited from IlvGadgetContainer | |
IlvGadgetContainer (IlvAbstractView *parent, const IlvRect &rect, IlBoolean useacc=IlFalse, IlBoolean visible=IlTrue, const char *cssElementName="IlvGadgetContainer") | |
Initializes a new instance of the IlvGadgetContainer class as a child view of another view. More... | |
IlvGadgetContainer (IlvDisplay *display, const char *name, const char *title, const IlvRect &rect, IlBoolean useacc=IlFalse, IlBoolean visible=IlTrue, const char *cssElementName="IlvGadgetContainer") | |
Initializes a new instance of the IlvGadgetContainer class as a top view. More... | |
IlvGadgetContainer (IlvDisplay *display, const char *name, const char *title, const IlvRect &rect, IlUInt properties, IlBoolean useacc=IlFalse, IlBoolean visible=IlTrue, IlvSystemView transientFor=0, const char *cssElementName="IlvGadgetContainer") | |
Initializes a new instance of the IlvGadgetContainer class as a top view. More... | |
IlvGadgetContainer (IlvDisplay *display, IlvSystemView parent, const IlvRect &rect, IlBoolean useacc=IlFalse, IlBoolean visible=IlTrue, const char *cssElementName="IlvGadgetContainer") | |
Initializes a new instance of the IlvGadgetContainer class as a child view of a system view. More... | |
IlvGadgetContainer (IlvDisplay *display, IlvSystemView window, IlBoolean useacc=IlFalse, const char *cssElementName="IlvGadgetContainer") | |
Initializes a new instance of the IlvGadgetContainer class using an existing system view. More... | |
virtual IlBoolean | allowFocus (IlBoolean value) |
Specifies whether the container manages the focus. More... | |
virtual void | applyResize (IlFloat sx, IlFloat sy, IlBoolean redraw=IlTrue) |
Is called to carry out the resize events applying to the gadget container. More... | |
IlBoolean | autoResize (IlBoolean a) |
Sets the auto resize mode of the gadget container. More... | |
IlvButton * | getDefaultButton () const |
Returns the default button of the gadget container. More... | |
virtual IlvGraphic * | getFirstFocusGraphic () const |
Returns the first object that receives the focus in this container. More... | |
virtual IlvGraphic * | getFocus () const |
Returns the object that has the keyboard focus in the gadget container. More... | |
virtual IlvGraphic * | getGrab () const |
Returns the object that is currently grabbing events in the container. More... | |
virtual IlvGraphic * | getLastFocusGraphic () const |
Returns the last object that receives the focus in this container. More... | |
virtual IlvLookFeelHandler * | getLookFeelHandler () const |
Returns the look and feel handler associated with this container. More... | |
virtual IlvGraphic * | getNextFocusGraphic (IlvGraphic *object) const |
Returns the next object that will receive the focus after the specified object. More... | |
IlvGraphic * | getOverriddenFocus () const |
Returns the object that will receive the focus after calling setFocus() . More... | |
virtual IlvGraphic * | getPreviousFocusGraphic (IlvGraphic *object) const |
Returns the previous object that received the focus before the specified object. More... | |
IlBoolean | isAutoResizing () const |
Indicates whether the gadget container gets resized when loading a file. More... | |
virtual IlBoolean | isFocusAllowed () const |
Indicates whether the focus is allowed in the container. More... | |
virtual void | moveFocusAfter (IlBoolean redraw=IlTrue) |
Is called to find the next focusable object. More... | |
virtual void | moveFocusBefore (IlBoolean redraw=IlTrue) |
Is called to find the previous focusable object. More... | |
void | overrideFocus (IlvGraphic *obj) |
Sets the object that will receive the focus after calling setFocus() . More... | |
virtual void | removeGrab () |
Cancels the grabbing settings defined with setGrab() . More... | |
void | setDefaultButton (IlvButton *button, IlBoolean redraw=IlTrue) |
Sets the default button of the gadget container. More... | |
virtual void | setFocus (IlvGraphic *graphic=0, IlBoolean redraw=IlTrue) |
Sets the focus to the specified object of the gadget container. More... | |
virtual void | setGrab (IlvGraphic *object) |
Sets the specified object as the grabbing object. More... | |
virtual void | setLookFeelHandler (IlvLookFeelHandler *lfh) |
Sets the look and feel handler of this container. More... | |
Dialog class.
Library: ilvgadgt
The IlvIErrorDialog
class displays an error message. The names of the graphic objects are displayed to let you change the default look of the dialog.
- An Error Dialog -
IlvIErrorDialog::IlvIErrorDialog | ( | IlvDisplay * | display, |
const char * | title, | ||
const char * | fileordata = 0 , |
||
IlvIDialogType | type = IlvDialogOk , |
||
IlvSystemView | transientFor = 0 |
||
) |
Constructor.
Initializes a new instance of the IlvIErrorDialog
class.
display | The connection to the display. |
title | The message to be displayed. |
fileordata | Specifies an alternative source of Rogue Wave Views data defining the user interface of this dialog. This data can be stored in a file, in which case fileordata represents the name of the file, or in a C++ string, in which case fileordata stands for the string itself. If fileordata is not specified, the default dialog is used. |
type | The type of the dialog. For details, see IlvIDialogType . |
transientFor | A system view for which the dialog is transient. For details, see the IlvView constructors. |
IlvIErrorDialog::IlvIErrorDialog | ( | IlvDisplay * | display, |
const char *const * | strings, | ||
IlUShort | count, | ||
IlBoolean | copy = IlTrue , |
||
const char * | fileordata = 0 , |
||
IlvIDialogType | type = IlvDialogOk , |
||
IlvSystemView | transientFor = 0 |
||
) |
Constructor.
Initializes a new instance of the IlvIErrorDialog
class.
display | The connection to the display. |
strings | An array of strings representing the message to be displayed. |
count | The number of elements of in the strings array. |
copy | Not used. |
fileordata | Specifies an alternative source of Rogue Wave Views data defining the user interface of this dialog. This data can be stored in a file, in which case fileordata represents the name of the file, or in a C++ string, in which case fileordata stands for the string itself. If fileordata is not specified, the default dialog is used. |
type | The type of the dialog. For details, see IlvIDialogType . |
transientFor | The system view for which the dialog is transient. For details, see the IlvView constructors. |