Inheritance diagram for DzExpressionInput:
Signals | |
void | currentValueChanged () |
Signature: "currentValueChanged()" | |
void | labelChanged (String label) |
Signature: "labelChanged(const QString&)" | |
void | propertyDeleted (DzProperty prop) |
Signature: "propertyDeleted(DzProperty*)" | |
void | sourcePropertyRemoved (DzProperty prop) |
Signature: "sourcePropertyRemoved(DzProperty*)" | |
Public Member Functions | |
DzExpressionInput (DzNumericProperty prop, String label) | |
DzExpressionInput () | |
DzNumericProperty | getCurrentProperty () |
String | getLabel () |
DzNumericProperty | getProperty () |
Number | getValue (DzTime tm) |
void | setLabel (String label) |
void | setProperty (DzNumericProperty prop) |
Public Attributes | |
Boolean | autoOverride |
This class specifies an input property that is used as a variable in an expression. Inputs to an expression must be explicitly declared - this enables automatic reevaluation of the expression when the values of the input properties have changed. This class associates a property with a variable name that is available in the expression.
DzExpressionInput::DzExpressionInput | ( | ) |
Default Constructor. Creates an invalid input with no property or label.
DzExpressionInput::DzExpressionInput | ( | DzNumericProperty | prop, | |
String | label | |||
) |
Creates a new input with the given property and label.
prop | The property that defines the value of the input. | |
label | The variable name that this input will be available by in the expression. |
void DzExpressionInput::currentValueChanged | ( | ) | [signal] |
Signature: "currentValueChanged()"
Emitted when the current value for the input has changed.
DzNumericProperty DzExpressionInput::getCurrentProperty | ( | ) |
QString DzExpressionInput::getLabel | ( | ) |
DzNumericProperty DzExpressionInput::getProperty | ( | ) |
void DzExpressionInput::labelChanged | ( | String | label | ) | [signal] |
Signature: "labelChanged(const QString&)"
Emitted when the label of the input has changed.
void DzExpressionInput::propertyDeleted | ( | DzProperty | prop | ) | [signal] |
Signature: "propertyDeleted(DzProperty*)"
Emitted when the source property or current property is deleted.
void DzExpressionInput::setLabel | ( | String | label | ) |
Set the label for the input. The label is used as the variable name that makes this input available in the expression.
label | The new label for this input. |
void DzExpressionInput::setProperty | ( | DzNumericProperty | prop | ) |
Set the property that provides the value for the input.
prop | A pointer to the property for this input. |
void DzExpressionInput::sourcePropertyRemoved | ( | DzProperty | prop | ) | [signal] |
Signature: "sourcePropertyRemoved(DzProperty*)"
Emitted when the source property has been removed from its owner.
This property determines whether or not the input will automatically be redirected when its owner is fit to another figure.