[ruby-gnome2-doc-cvs] [Hiki] update - Gtk::MessageDialog

Back to archive index

ruby-****@lists***** ruby-****@lists*****
2003年 4月 28日 (月) 22:58:54 JST


-------------------------
REMOTE_ADDR = 211.7.202.74
REMOTE_HOST = 
-------------------------
= class Gtk::MessageDialog
Gtk::MessageDialog presents a dialog with an image representing the type of message (Error, Question, etc.) alongside some message text. It's simply a convenience widget; you could construct the equivalent of Gtk::MessageDialog from Gtk::Dialog without too much effort, but Gtk::MessageDialog saves typing.

The easiest way to do a modal message dialog is to use Gtk::Dialog#run, though you can also pass in the Gtk::Dialog::MODAL flag, Gtk::Dialog#run automatically makes the dialog modal and waits for the user to respond to it. Gtk::Dialog#run returns when any dialog button is clicked. 

== super class
* Gtk::Dialog

== class methods
--- Gtk::MessageDialog.new(parent, flags, type, buttons, message = nil)
    Creates a new message dialog, which is a simple dialog with an icon indicating the dialog type (error, warning, etc.) and some text the user may want to see. When the user clicks a button a "response" signal is emitted with response IDs from GtkResponseType. See Gtk::Dialog for more details.
    * parent: transient parent, or nil for none.
    * flags: ((<GtkDialogFlags|Gtk::Dialog#GtkDialogFlags>)).
    * type: type of message.
    * buttons: set of buttons to use
    * message: message.
    * Returns: a new Gtk::MessageDialog

== public instance methods
--- buttons=(button_type)
    Set ((<GtkButtonType|Gtk::MessageDialog#GtkButtonType>)).
    * button_type: ((<GtkButtonType|Gtk::MessageDialog#GtkButtonType>)).
    * Returns: button_type.

--- set_buttons(button_type)
    Same as buttons=.
    * button_type: ((<GtkButtonType|Gtk::MessageDialog#GtkButtonType>)).
    * Returns: self.

--- message_type
    Get ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
--- message_type=(message_type)
    Set GtkMessageType.
    * message_type: ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
    * Returns: ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
--- set_message_type(message_type)
    Same as message_type=.
    * message_type: ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
    * Returns: self.

== constants
=== GtkButtonsType
Prebuilt sets of buttons for the dialog. If none of these choices are appropriate.
--- BUTTONS_CANCEL
    a Cancel button.
--- BUTTONS_CLOSE
    a Close button.
--- BUTTONS_NONE
    no buttons at all.
--- BUTTONS_OK
    an OK button.
--- BUTTONS_OK_CANCEL
    OK and Cancel buttons.
--- BUTTONS_YES_NO
    Yes and No buttons.

=== GtkMessageType
The type of message being displayed in the dialog. 
--- ERROR
    Fatal error message.
--- INFO
    Informational message.
--- QUESTION
    Question requiring a choice.
--- WARNING
    Nonfatal warning message.


- ((<Masao>))

-------------------------
= class Gtk::MessageDialog
Gtk::MessageDialog presents a dialog with an image representing the type of message (Error, Question, etc.) alongside some message text. It's simply a convenience widget; you could construct the equivalent of Gtk::MessageDialog from Gtk::Dialog without too much effort, but Gtk::MessageDialog saves typing.

The easiest way to do a modal message dialog is to use Gtk::Dialog#run, though you can also pass in the Gtk::Dialog::MODAL flag, Gtk::Dialog#run automatically makes the dialog modal and waits for the user to respond to it. Gtk::Dialog#run returns when any dialog button is clicked. 

== super class
* Gtk::Dialog

== class methods
--- Gtk::MessageDialog.new(parent, flags, type, buttons, message = nil)
    Creates a new message dialog, which is a simple dialog with an icon indicating the dialog type (error, warning, etc.) and some text the user may want to see. When the user clicks a button a "response" signal is emitted with response IDs from GtkResponseType. See Gtk::Dialog for more details.
    * parent: transient parent, or nil for none.
    * flags: ((<GtkDialogFlags|Gtk::Dialog#GtkDialogFlags>)).
    * type: ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)). 
    * buttons: ((<GtkButtonType|Gtk::MessageDialog#GtkButtonType>)).
    * message: message.
    * Returns: a new Gtk::MessageDialog

== public instance methods
--- buttons=(button_type)
    Set ((<GtkButtonType|Gtk::MessageDialog#GtkButtonType>)).
    * button_type: ((<GtkButtonType|Gtk::MessageDialog#GtkButtonType>)).
    * Returns: button_type.

--- set_buttons(button_type)
    Same as buttons=.
    * button_type: ((<GtkButtonType|Gtk::MessageDialog#GtkButtonType>)).
    * Returns: self.

--- message_type
    Get ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
--- message_type=(message_type)
    Set GtkMessageType.
    * message_type: ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
    * Returns: ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
--- set_message_type(message_type)
    Same as message_type=.
    * message_type: ((<GtkMessageType|Gtk::MessageDialog#GtkMessageType>)).
    * Returns: self.

== constants
=== GtkButtonsType
Prebuilt sets of buttons for the dialog. If none of these choices are appropriate.
--- BUTTONS_CANCEL
    a Cancel button.
--- BUTTONS_CLOSE
    a Close button.
--- BUTTONS_NONE
    no buttons at all.
--- BUTTONS_OK
    an OK button.
--- BUTTONS_OK_CANCEL
    OK and Cancel buttons.
--- BUTTONS_YES_NO
    Yes and No buttons.

=== GtkMessageType
The type of message being displayed in the dialog. 
--- ERROR
    Fatal error message.
--- INFO
    Informational message.
--- QUESTION
    Question requiring a choice.
--- WARNING
    Nonfatal warning message.


- ((<Masao>))




ruby-gnome2-cvs メーリングリストの案内
Back to archive index