DzStyle Class Reference
[Interface Components]

Class that defines the look and feel of the DAZ Studio interface. More...

List of all members.

Methods

DzError compileStyleDefinition (String infile, String outfile)
Color getInterfaceColor (Number which)
Color getInterfaceColorDefault (Number which)
String getInterfaceColorDescription (Number which)
Number getNumInterfaceColors ()
String getStyleDefinition ()
void setInterfaceColor (Number which, Color color)

Signals

void interfaceColorsChanged ()


Detailed Description

Class that defines the look and feel of the DAZ Studio interface.

Example:
Reset the current style colors to their default values.
        var oSTYLE = App.getStyle(); 
        var nCOLORS = oSTYLE.getNumInterfaceColors(); 
        for( var i = 0; i < nCOLORS; i += 1 )
        { 
           oSTYLE.setInterfaceColor( i, oSTYLE.getInterfaceColorDefault( i ) ); 
        }


Member Function Documentation

DzError DzStyle::compileStyleDefinition ( String  infile,
String  outfile 
)

Compiles a text-based style definition and its images into a single binary style definition file.

Parameters:
infile The name of the XML-based text style description
outfile The name of the DAZ Studio style definition file to create
Returns:
true on success, false on failure

String DzStyle::getInterfaceColor ( Number  which  ) 

Returns:
The current value of the given interface color.

String DzStyle::getInterfaceColorDefault ( Number  which  ) 

Returns:
The default value of the given interface color.

String DzStyle::getInterfaceColorDescription ( Number  which  ) 

Returns:
A user-readable description for the given interface color

Number DzStyle::getNumInterfaceColors (  ) 

Returns:
The number of user-customizable interface colors for the current style

String DzStyle::getStyleDefinition (  ) 

Returns:
The name of the currently active style definition.

void DzStyle::interfaceColorsChanged (  )  [signal]

Emitted when the interface color settings have changed.

void DzStyle::setInterfaceColor ( Number  which,
Color  color 
)

Sets the given interface color to the new value. The interface will not automatically update - the current style must be reloaded before the changes will take affect.


Generated on Thu Sep 24 12:21:15 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.