Dialog Class Reference

Inheritance diagram for Dialog:

ColorSelectionDialog FileSelection FontSelectionDialog InputDialog MessageDialog List of all members.

Detailed Description

Dialog is a window that can be modal and contains a default vbox.


Public Member Functions

Response run ()
 Make the dialog modal and show it.
 this ()
 Creates a new dialog.
 this (char[] title)
 Creates a new dialog with a title.
VBox getVBox ()
 Gets the Dialog VBox, it's main container.
 this (String title, Window parent, DialogFlags flags, String[] buttonsText, Response[] responses)
 Creates a new dialog with a set of buttons.
 this (String title, Window parent, DialogFlags flags, Stock[] buttons, Response[] responses)
 Creates a new dialog with a set of buttons from the stock.
void addActionWidget (Widget child, Response response)
 Adds an activatable widget to the action area of a GtkDialog.
Button addButton (String buttonText, Response responseID)
 Adds a button to this dialog.
Button addButton (Stock stockID, Response responseID)
 Adds a button to this dialog.
void addButtons (String[] buttonsText, Response[] responses)
 Add buttons to the dialog.
void addButtons (Stock[] stockID, Response[] responses)
 Add stock buttons to the dialog.
void setReponseSensitive (Response response, bit setting)
 Calls gtk_widget_set_sensitive (widget, setting) for each widget in the dialog's action area with the given response_id.
void setDefaultResponse (Response response)
 Sets the default response for this dialog.
void setHasSeparator (bit setting)
 Setst if this dialog should have a separator ???
bit getHasSeparator ()
 Cheks if this dialog has a separator ???

Static Public Member Functions

GType getType ()
 gets this class Type


Member Function Documentation

void Dialog.addActionWidget Widget  child,
Response  response
 

Adds an activatable widget to the action area of a GtkDialog.

connecting a signal handler that will emit the "response" signal on the dialog when the widget is activated. The widget is appended to the end of the dialog's action area. If you want to add a non-activatable widget, simply pack it into the action_area field of the GtkDialog struct.

Parameters:
child the widget to add
response 

Button Dialog.addButton Stock  stockID,
Response  responseID
 

Adds a button to this dialog.

Parameters:
stockID 
responseID 

Button Dialog.addButton String  buttonText,
Response  responseID
 

Adds a button to this dialog.

Parameters:
buttonText 
responseID 

void Dialog.addButtons Stock[]  stockID,
Response[]  responses
 

Add stock buttons to the dialog.

Parameters:
stockID 
responses 

void Dialog.addButtons String[]  buttonsText,
Response[]  responses
 

Add buttons to the dialog.

Parameters:
buttonsText 
responses 

bit Dialog.getHasSeparator  ) 
 

Cheks if this dialog has a separator ???

Returns:
true if the dialog has a separator

GType Dialog.getType  )  [static]
 

gets this class Type

Reimplemented in FileSelection, FontSelectionDialog, InputDialog, and MessageDialog.

VBox Dialog.getVBox  ) 
 

Gets the Dialog VBox, it's main container.

Returns:
the dialog VBox

Response Dialog.run  ) 
 

Make the dialog modal and show it.

void Dialog.setDefaultResponse Response  response  ) 
 

Sets the default response for this dialog.

Parameters:
response 

void Dialog.setHasSeparator bit  setting  ) 
 

Setst if this dialog should have a separator ???

Parameters:
setting 

void Dialog.setReponseSensitive Response  response,
bit  setting
 

Calls gtk_widget_set_sensitive (widget, setting) for each widget in the dialog's action area with the given response_id.

A convenient way to sensitize/desensitize dialog buttons.

Parameters:
response 
setting 

Dialog.this String  title,
Window  parent,
DialogFlags  flags,
Stock[]  buttons,
Response[]  responses
 

Creates a new dialog with a set of buttons from the stock.

Parameters:
title 
parent the parent window
flags the dialog flags
buttons text the buttons text
responses the buttons response actions

Dialog.this String  title,
Window  parent,
DialogFlags  flags,
String[]  buttonsText,
Response[]  responses
 

Creates a new dialog with a set of buttons.

Parameters:
title 
parent the parent window
flags the dialog flags
buttonsText the buttons text
responses the buttons response actions

Dialog.this char[]  title  ) 
 

Creates a new dialog with a title.

Parameters:
title the dialog title

Reimplemented in ColorSelectionDialog, and FileSelection.

Dialog.this  ) 
 

Creates a new dialog.

Reimplemented in InputDialog.


SourceForge.net Logo DSource.org Logo digitalmars.com Logo