Project:DUI

Class List Class Hierarchy
Summary: Ctors Methods Mixins

Module dui.Dialog

Class Dialog

dui.ObjectG.ObjectG
        dui.DUIObject.DUIObject
                dui.Widget.Widget
                        dui.Container.Container
                                dui.Bin.Bin
                                        dui.Window.Window
                                                dui.Dialog.Dialog

Implemented interfaces:


public class

Dialog



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

Constructor Summary
protected (GtkWidget* gtkWidget)
          
()
          Creates a new dialog
(char title)
          Creates a new dialog with a title
(String title)
          
(String title, Window parent, DialogFlags flags, String buttonsText, Response responses)
          Creates a new dialog with a set of buttons
(String title, Window parent, DialogFlags flags, Stock buttons, Response responses)
          Creates a new dialog with a set of buttons from the stock

Methods Summary
public static GType getType()
          gets this class Type
Response run()
          Make the dialog modal and show it
VBox getVBox()
          Gets the Dialog VBox, it's main container
HButtonBox getActionArea()
          
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 ???




protected ctor(Dialog)(GtkWidget* gtkWidget)

getType

public static GType getType()
gets this class Type

run

Response run()
Make the dialog modal and show it



ctor(Dialog)()
Creates a new dialog



ctor(Dialog)(char title)
Creates a new dialog with a title

Parameters:
title - the dialog title



ctor(Dialog)(String title)

getVBox

VBox getVBox()
Gets the Dialog VBox, it's main container

Returns:
the dialog VBox

getActionArea

HButtonBox getActionArea()



ctor(Dialog)(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



ctor(Dialog)(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

addActionWidget

void 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 -

addButton

Button addButton(String buttonText, Response responseID)
Adds a button to this dialog

Parameters:
buttonText -
responseID -

addButton

Button addButton(Stock stockID, Response responseID)
Adds a button to this dialog

Parameters:
stockID -
responseID -

addButtons

void addButtons(String buttonsText, Response responses)
Add buttons to the dialog

Parameters:
buttonsText -
responses -

addButtons

void addButtons(Stock stockID, Response responses)
Add stock buttons to the dialog

Parameters:
stockID -
responses -

setReponseSensitive

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.
A convenient way to sensitize/desensitize dialog buttons.

Parameters:
response -
setting -

setDefaultResponse

void setDefaultResponse(Response response)
Sets the default response for this dialog

Parameters:
response -

setHasSeparator

void setHasSeparator(bit setting)
Setst if this dialog should have a separator ???

Parameters:
setting -

getHasSeparator

bit getHasSeparator()
Cheks if this dialog has a separator ???

Returns:
true if the dialog has a separator