DzDialog Class Reference
[Interface Dialog Objects]

DAZ Script DzDialog box. More...

Inheritance diagram for DzDialog:

DzWidget DzBasicDialog List of all members.

Properties

String caption
Orientation orientation
Boolean sizeGripEnabled

Methods

Boolean close ()
Boolean exec ()
DzWidget extension () const
void hideExtension ()
void setAcceptButton (DzButton btn)
void setExtension (DzWidget wgt)
void setRejectButton (DzButton btn)
void showExtension (Boolean onOff)
void showExtension ()

Constructors

 DzDialog ()

Detailed Description

DAZ Script DzDialog box.

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

The following example shows the creation and use of a simple custom interface using the DzDialog class:

DAZ Script "Simple Dialog" sample


Constructor & Destructor Documentation

DzDialog::DzDialog (  ) 

Creates a new dialog box


Member Function Documentation

bool DzDialog::close (  ) 

Closes the dialog.

Returns:
true if the dialog was closed, false if not.

bool DzDialog::exec (  ) 

Shows the dialog box to the user.

Returns:
true if the box was accepted, false if it was rejected.

DzWidget * DzDialog::extension (  )  const

Returns:
The current extension widget for the dialog 'Undefined' if none.

void DzDialog::hideExtension (  ) 

Causes the extension widget for the dialog to be hidden

void DzDialog::setAcceptButton ( DzButton  btn  ) 

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

void DzDialog::setExtension ( DzWidget  wgt  ) 

Sets the extension widget for the dialog

void DzDialog::setRejectButton ( DzButton  btn  ) 

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

void DzDialog::showExtension ( Boolean  onOff  ) 

Sets the extension widget visibility to onOff

void DzDialog::showExtension (  ) 

Causes the extension widget for the dialog to be shown


Member Data Documentation

QString DzDialog::caption

The title of the dialog box

int DzDialog::orientation

The orientation of the dialog box extention

bool DzDialog::sizeGripEnabled

Whether or not the size grip is enabled


Generated on Thu Sep 24 12:21:11 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.