18#ifndef LAYER_MANAGER_H
19#define LAYER_MANAGER_H
21#include "basemanager.h"
42 Layer* currentLayer();
43 Layer* currentLayer(
int offset);
44 Layer* getLayer(
int index);
45 LayerCamera* getCameraLayerBelow(
int layerIndex)
const;
46 Layer* findLayerByName(
QString sName, Layer::LAYER_TYPE type = Layer::UNDEFINED);
47 Layer* findLayerById(
int layerId);
48 Layer* getLastCameraLayer();
49 int currentLayerIndex();
50 void setCurrentLayer(
int nIndex);
51 void setCurrentLayer(
Layer* layer);
54 bool canDeleteLayer(
int index)
const;
55 Status deleteLayer(
int index);
57 void notifyLayerChanged(
Layer*);
60 void gotoPreviouslayer();
70 int lastFrameAtFrame(
int frameIndex);
71 int firstKeyFrameIndex();
72 int lastKeyFrameIndex();
80 int getLastLayerIndex() {
return count() - 1; }
83 void currentLayerWillChange(
int index);
84 void currentLayerChanged(
int index);
85 void layerCountChanged(
int count);
86 void animationLengthChanged(
int length);
87 void layerDeleted(
int index);
90 int getIndex(
Layer*)
const;
92 int mLastCameraLayerIdx = 0;
int animationLength(bool includeSounds=true)
Get the length of current project.
Layer * createLayer(Layer::LAYER_TYPE type, const QString &strLayerName)
Returns a new Layer with the given LAYER_TYPE.
void notifyAnimationLengthChanged()
This should be emitted whenever the animation length frames, eg.