|
The Timeline JavaScript global object. Used to get informations about layers and frames from the Timeline view. More...
Public Slots | |
| bool | selIsAttribute (int selectionIndex) |
| Returns true if the selectionIndex points to an attribute. More... | |
| bool | selIsColumn (int selectionIndex) |
| Returns true if the selectionIndex points to a column. More... | |
| QObject | selToAttribute (int selectionIndex) |
| Converts the selection index to an attribute. More... | |
| String | selToColumn (int selectionIndex) |
| Converts the selection index to a column. More... | |
| String | selToNode (int selectionIndex) |
| Converts the selection index to a node. More... | |
| bool | selIsNode (int selectionIndex) |
| Returns true if the selection index is a node. More... | |
| QList< QObject > | selectionToAttributeList () |
| Creates a list of attributes from the selected timeline layers. More... | |
| StringList | selectionToColumnList () |
| Creates a list of columns from the selected timeline layers. More... | |
| StringList | selectionToNodeList () |
| Creates a list of nodes from the selected timeline layers. More... | |
| bool | layerIsColumn (int layerIndex) |
| Returns true if the layer index is a column. More... | |
| String | layerToColumn (int layerIndex) |
| Returns the layer as a column, or the empty string if this layer is not a column. More... | |
| bool | layerIsAttribute (int layerIndex) |
| Returns true if the layer index is an attribute. More... | |
| QObject | layerToAttribute (int layerIndex) |
| Returns the layer as an attribute, or null if this layer is not an attribute. More... | |
| bool | layerIsNode (int layerIndex) |
| Returns true if the layer is a node. More... | |
| String | layerToNode (int layerIndex) |
| Returns the node associated to the layer, or the empty string if this layer is not a node. More... | |
| int | selToLayer (int selectionIndex) |
| Converts a selection index to a layer index. More... | |
| int | parentNodeIndex (int layerIndex) |
| Returns the layer index of the parent node. More... | |
| bool | isAncestorOf (int parentLayerIndex, int layerIndex) |
| Returns true if the parent layer index is an ancestor of the layer index. More... | |
| bool | setDisplayToUnconnected () |
| Returns true if the display was set to unconnected. More... | |
| QScriptValue | getFrameMarker (int layerIndex, int frameNumber) |
| Return an object representing the Timeline Frame Marker at the given frame for the given layer index. More... | |
| QScriptValue | getAllFrameMarkers (int layerIndex) |
| Return an array of object representing the Timeline Frame Markers for the given layer index. More... | |
| QScriptValue | filterFrameMarkers (int layerIndex, String markerType) |
| Return an array of object representing the Timeline Frame Markers for the given layer index, with the given type. More... | |
| int | createFrameMarker (int layerIndex, String markerType, int frameNumber) |
| Creates a Timeline Frame Marker with the given properties. More... | |
| bool | deleteFrameMarker (int layerIndex, int markerId) |
| Deletes the Timeline Frame Marker with the given id. More... | |
| bool | moveFrameMarker (int layerIndex, int markerId, int newFrame) |
| Moves a Timeline Frame Marker from it's current frame to the new frame. More... | |
| bool | changeFrameMarkerType (int layerIndex, int markerId, String markerType) |
| Changes the type of a Timeline Frame Marker. More... | |
| StringList | frameMarkerTypes () |
| Returns a list of Timeline Frame Marker types. More... | |
| void | centerOnFrame (int frameNum) |
| Centers the timeline view on the given frame. More... | |
| bool | layerEnabled (int layerIndex) |
| Returns the enable/Disable status of the layer in timeline view. More... | |
| bool | setLayerEnabled (int layerIndex, bool flag) |
| Enables/Disables the layer in timeline view. More... | |
Public Member Functions | |
| int | numLayerSel () |
| Returns the number of layer selected. More... | |
| int | firstFrameSel () |
| Returns the first frame selected. More... | |
| int | numFrameSel () |
| Returns the number of the selected frame, if only one frame is selected. It will return zero (0) if no frames are selected. More... | |
| int | numLayers () |
| Returns the number of layers in the timeline. More... | |
Properties | |
| int | numLayerSel |
| Returns the number of selected layers. More... | |
| int | firstFrameSel |
| Returns the first selected frame number. More... | |
| int | numFrameSel |
| Returns the number of selected the frame. If only 1 frame is selected. More... | |
| int | numLayers |
| Returns the number of layers in the timeline. More... | |
The Timeline JavaScript global object. Used to get informations about layers and frames from the Timeline view.
There are two main groups of Timeline functions:
The layerIdx and selIdx parameters are used in many of the functions:
|
slot |
Centers the timeline view on the given frame.
| frameNum | : The frame number to center on |
|
slot |
Changes the type of a Timeline Frame Marker.
| layerIndex | : The layer index in the timeline layer. |
| markerId | : The id of the marker to move. |
| markerType | : The type to change the marker to. |
|
slot |
Creates a Timeline Frame Marker with the given properties.
The objects have the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
| layerIndex | : The layer index in the timeline layer. |
| markerType | : The type of frame marker to create. |
| frameNumber | : The frame to create the marker on. |
|
slot |
Deletes the Timeline Frame Marker with the given id.
| layerIndex | : The layer index in the timeline layer. |
| markerId | : The id of the marker to delete. |
|
slot |
Return an array of object representing the Timeline Frame Markers for the given layer index, with the given type.
The objects have the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
| layerIndex | : The layer index in the timeline layer. |
| markerType | : The type of frame marker to filter for. |
| int Timeline::firstFrameSel | ( | ) |
Returns the first frame selected.
|
slot |
|
slot |
Return an array of object representing the Timeline Frame Markers for the given layer index.
The objects have the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Return an object representing the Timeline Frame Marker at the given frame for the given layer index.
The object has the following properties:
type - The type of the frame marker. By default, these are the colours of the frame markers.
frame - The frame number.
id - The id of the frame marker. These are unique within the layer.
| layerIndex | : The layer index in the timeline layer. |
| frameNumber | : The frame number. |
|
slot |
Returns true if the parent layer index is an ancestor of the layer index.
| parentLayerIndex | : The parent layer index in the timeline layer. |
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Returns the enable/Disable status of the layer in timeline view.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Returns true if the layer index is an attribute.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Returns true if the layer index is a column.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Returns true if the layer is a node.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Returns the layer as an attribute, or null if this layer is not an attribute.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Returns the layer as a column, or the empty string if this layer is not a column.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Returns the node associated to the layer, or the empty string if this layer is not a node.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Moves a Timeline Frame Marker from it's current frame to the new frame.
| layerIndex | : The layer index in the timeline layer. |
| markerId | : The id of the marker to move. |
| newFrame | : The frame to move to the marker to. |
| int Timeline::numFrameSel | ( | ) |
Returns the number of the selected frame, if only one frame is selected. It will return zero (0) if no frames are selected.
| int Timeline::numLayers | ( | ) |
Returns the number of layers in the timeline.
| int Timeline::numLayerSel | ( | ) |
Returns the number of layer selected.
|
slot |
Returns the layer index of the parent node.
| layerIndex | : The layer index in the timeline layer. |
|
slot |
Creates a list of attributes from the selected timeline layers.
|
slot |
Creates a list of columns from the selected timeline layers.
|
slot |
Creates a list of nodes from the selected timeline layers.
|
slot |
Returns true if the selectionIndex points to an attribute.
| selectionIndex | : The selection index in the timeline layer. |
|
slot |
Returns true if the selectionIndex points to a column.
| selectionIndex | : The selection index in the timeline layer. |
|
slot |
Returns true if the selection index is a node.
| selectionIndex | : The selection index in the timeline layer. |
|
slot |
Converts the selection index to an attribute.
| selectionIndex | : The selection index in the timeline layer. |
|
slot |
Converts the selection index to a column.
| selectionIndex | : The selection index in the timeline layer. |
|
slot |
Converts a selection index to a layer index.
| selectionIndex | : The selection index in the timeline layer. |
|
slot |
Converts the selection index to a node.
| selectionIndex | : The selecton index in the timeline layer. |
|
slot |
Returns true if the display was set to unconnected.
|
slot |
Enables/Disables the layer in timeline view.
| layerIndex | : The layer index in the timeline layer. |
| flag | : The enable/disable status of the specified layer |
|
read |
Returns the first selected frame number.
|
read |
Returns the number of selected the frame. If only 1 frame is selected.
|
read |
Returns the number of layers in the timeline.
|
read |
Returns the number of selected layers.