User Tools

Site Tools


DzDialog

DAZScript DzDialog box.

More...

Inherits :

Inherited By : DzBasicDialog

Properties

Constructors

DAZ Script
DzDialog ( QWidget parent=undefined )

Methods

DAZ Script
Booleanclose ()
Booleanexec ()
DzWidgetextension ()
voidhideExtension ()
voidsetAcceptButton ( DzButton btn )
voidsetExtension ( DzWidget extension )
voidsetRejectButton ( DzButton btn )
voidshowExtension ( Boolean onOff )
voidshowExtension ()

Detailed Description

This is the basic building block for DAZScript interfaces. DzDialog provides an independent window widget that in turn can act as the parent for other DAZScript widgets. Most custom DAZScript interfaces will be built starting with a DzDialog customized with Layout and DzWidget components.

Properties


String : caption

Holds the title of the dialog.


DzWidget::Orientation : orientation

Holds the orientation of the dialog extension.


Boolean : sizeGripEnabled

Holds whether or not the size grip is enabled.

Constructors


DzDialog( QWidget parent=undefined )

Default Constructor.

Methods


Boolean : close()

Closes the dialog.

Return Value:

  • true if the dialog was closed, otherwise false.

Boolean : exec()

Displays the dialog to the user.

Return Value:

  • true if the box was accepted, otherwise false.

DzWidget : extension()

Return Value:

  • The current extension widget (if any) for the dialog.

void : hideExtension()

Causes the extension widget for the dialog to be hidden.


void : setAcceptButton( DzButton btn )

Sets the button that will cause the dialog to close and return true.


void : setExtension( DzWidget extension )

Sets the extension widget for the dialog.


void : setRejectButton( DzButton btn )

Sets the button that will cause the dialog to close and return false.


void : showExtension( Boolean onOff )

Sets the extension widget visibility to onOff.


void : showExtension()

Causes the extension widget for the dialog to be shown.