User Tools

Site Tools


DzDialog

A top-level window used for short-term tasks.

More...

Inherits :

Inherited By : DzBasicDialog

Properties

Constructors

DAZ Script
DzDialog ( QWidget parent=null )

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 script interfaces. DzDialog provides an independent window widget that can act as the parent for other script widgets. Most custom script interfaces will be built starting with a DzDialog (or subclass) customized with DzLayout 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=null )

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 extension widget (if any) for the dialog, otherwise undefined.

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.

Parameter(s):

  • btn - The button to set.

void : setExtension( DzWidget extension )

Sets the extension widget for the dialog.

Parameter(s):

  • extension - The widget to set as the extension - use undefined or null to clear the extension.

void : setRejectButton( DzButton btn )

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

Parameter(s):

  • btn - The button to set.

void : showExtension( Boolean onOff )

Sets the extension widget visibility.

Parameter(s):

  • onOff - If true, the extension (if any) is shown.

void : showExtension()

Causes the extension widget for the dialog to be shown.