Class MessageBox (version 0.18)

Description: Various methods to display message boxes

Class overview

Index

Method Overview

[static] int b_okb_ok constant describing the respective button label
[static] int b_cancelb_cancel constant describing the respective button label
[static] int b_yesb_yes constant describing the respective button label
[static] int b_nob_no constant describing the respective button label
[static] int b_abortb_abort constant describing the respective button label
[static] int b_retryb_retry constant describing the respective button label
[static] int b_ignoreb_ignore constant describing the respective button label
[static] int warning( string title, string text, int buttons )Open a warning message box
[static] int question( string title, string text, int buttons )Open a question message box
[static] int info( string title, string text, int buttons )Open a information message box
[static] int critical( string title, string text, int buttons )Open a critical (error) message box
assign( MessageBox other )Assign the contents of another object to self
[const] MessageBox dupCreates a copy of self.
destroyExplicitly destroy the object
[const] bool destroyedTell, if the object was destroyed

assign( MessageBox other )

Description: Assign the contents of another object to self

This method assigns the contents of another object to self. This is a deep copy that does not only copy the reference but the actual content.

[static] int b_abort

Description: b_abort constant describing the respective button label

[static] int b_cancel

Description: b_cancel constant describing the respective button label

[static] int b_ignore

Description: b_ignore constant describing the respective button label

[static] int b_no

Description: b_no constant describing the respective button label

[static] int b_ok

Description: b_ok constant describing the respective button label

[static] int b_retry

Description: b_retry constant describing the respective button label

[static] int b_yes

Description: b_yes constant describing the respective button label

[static] int critical( string title, string text, int buttons )

Description: Open a critical (error) message box

title:The title of the window
text:The text to show
buttons:A combination (+) of b_... constants describing the buttons to show for the message box
returns:The b_... constant describing the button that was pressed

destroy

Description: Explicitly destroy the object

Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.

[const] bool destroyed

Description: Tell, if the object was destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

[const] MessageBox dup

Description: Creates a copy of self.

[static] int info( string title, string text, int buttons )

Description: Open a information message box

title:The title of the window
text:The text to show
buttons:A combination (+) of b_... constants describing the buttons to show for the message box
returns:The b_... constant describing the button that was pressed

[static] int question( string title, string text, int buttons )

Description: Open a question message box

title:The title of the window
text:The text to show
buttons:A combination (+) of b_... constants describing the buttons to show for the message box
returns:The b_... constant describing the button that was pressed

[static] int warning( string title, string text, int buttons )

Description: Open a warning message box

title:The title of the window
text:The text to show
buttons:A combination (+) of b_... constants describing the buttons to show for the message box
returns:The b_... constant describing the button that was pressed