DAZ Script | |
---|---|
PixmapMode | { Normal, Disabled, Active, Selected } |
PixmapState | { On, Off } |
DAZ Script | |
---|---|
DzError | compileStyleDefinition ( String infile, String outfile ) |
Number | findPixelMetric ( String name ) |
Number | findPrimitiveElement ( String name ) |
Number | findStandardPixmap ( String name ) |
Number | findStyleHint ( String name ) |
Number | findTextStyle ( String name ) |
Number | getNumPixelMetrics () |
Number | getNumPrimitiveElements () |
Number | getNumStandardPixmaps () |
Number | getNumStyleHints () |
Number | getNumTextStyles () |
String | getPixelMetricName ( Number which ) |
String | getPrimitiveElementName ( Number which ) |
String | getStandardPixmapName ( Number which ) |
String | getStyleHintName ( Number which ) |
String | getTextStyleName ( Number which ) |
void | interfaceColorsChanged () |
void | interfaceNumbersChanged () |
Interface Colors
Interface Numbers
Text Styles
Pixel Metrics
Style Hints
Standard Pixmaps
Primitive Elements
Action Icons
var oMgr = MainWindow.getActionMgr(); var oAction; for( var i = 0, n = oMgr.getNumActions(); i < n; i += 1 ) { oAction = oMgr.getAction( i ); print( oAction.actionGroup, ":", oAction.text.replace( "&", "" ), ":", oAction.className() ); }
Example:
Reset the current style colors to their default values.
var oStyle = App.getStyle(); for( var i = 0, n = oStyle.getNumInterfaceColors(); i < n; i += 1 ){ oStyle.setInterfaceColor( i, oStyle.getInterfaceColorDefault( i ) ); }
TODO: Add description.
—–
TODO: Add description.
DzError : compileStyleDefinition( String infile, String outfile )
Compiles a text-based style definition and its images into a single binary style definition file.
Parameter(s):
Return Value:
true
on success, otherwise false
.Number : findPixelMetric( String name )
Parameter(s):
Return Value:
Number : findPrimitiveElement( String name )
Parameter(s):
Return Value:
Number : findStandardPixmap( String name )
Parameter(s):
Return Value:
Number : findStyleHint( String name )
Parameter(s):
Return Value:
Number : findTextStyle( String name )
Parameter(s):
Return Value:
Return Value:
Number : getNumPrimitiveElements()
Return Value:
Number : getNumStandardPixmaps()
Return Value:
Return Value:
Return Value:
String : getPixelMetricName( Number which )
Parameter(s):
Return Value:
String : getPrimitiveElementName( Number which )
Parameter(s):
Return Value:
String : getStandardPixmapName( Number which )
Parameter(s):
Return Value:
String : getStyleHintName( Number which )
Parameter(s):
Return Value:
String : getTextStyleName( Number which )
Parameter(s):
Return Value:
Pixmap : actionPixmap( String className, PixmapMode mode, PixmapState state )
Return Value:
Number : findInterfaceColor( String name )
Return Value:
Number : findInterfaceNumber( String name )
Return Value:
Since:
Color : getInterfaceColor( String name )
Return Value:
Color : getInterfaceColor( Number which )
Return Value:
Color : getInterfaceColorDefault( Number which )
Return Value:
String : getInterfaceColorDescription( Number which )
Return Value:
void : getInterfaceColorDisplaySettings( Number which, DzSettings settings )
Since:
String : getInterfaceColorName( Number which )
Return Value:
Number : getInterfaceNumber( String name, Number defaultValue=0.0 )
Return Value:
Since:
Number : getInterfaceNumber( Number which )
Return Value:
Since:
Number : getInterfaceNumberDefault( Number which )
Return Value:
Since:
String : getInterfaceNumberDescription( Number which )
Return Value:
Since:
void : getInterfaceNumberDisplaySettings( Number which, DzSettings settings )
Since:
String : getInterfaceNumberName( Number which )
Return Value:
Since:
Number : getNumInterfaceColors()
Return Value:
Number : getNumInterfaceNumbers()
Return Value:
Since:
Return Value:
Number : pixelMetric( String metricName )
Parameter(s):
Return Value:
void : 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.
void : setInterfaceNumber( Number which, Number value )
Sets the given interface number to the new value. The interface will not automatically update - the current style must be reloaded before the changes will take affect.
Since:
Boolean : setStyledIcon( QAbstractButton button, String pixmapName )
Parameter(s):
Return Value:
true
if the button icon was set, otherwise false
.Pixmap : standardPixmap( String pixmapName )
Parameter(s):
Return Value:
Font : textStyle( String styleName )
Parameter(s):
Return Value:
Color : textStyleColor( String styleName )
Parameter(s):
Return Value:
void : interfaceColorsChanged()
Emitted when the interface color settings have changed.
void : interfaceNumbersChanged()
Emitted when the interface number settings have changed.