1
/***************************************************************************
2
* Project TUPI: Magia 2D *
3
* Project Contact: info@maefloresta.com *
4
* Project Website: http://www.maefloresta.com *
5
* Project Leader: Gustav Gonzalez <info@maefloresta.com> *
9
* Gustavo Gonzalez / xtingray *
20
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
22
* This program is free software; you can redistribute it and/or modify *
23
* it under the terms of the GNU General Public License as published by *
24
* the Free Software Foundation; either version 3 of the License, or *
25
* (at your option) any later version. *
27
* This program is distributed in the hope that it will be useful, *
28
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
29
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
30
* GNU General Public License for more details. *
32
* You should have received a copy of the GNU General Public License *
33
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
34
***************************************************************************/
39
#include "tupmodulewidgetbase.h"
40
#include "ttabwidget.h"
43
#include <QStackedWidget>
45
class TupLayerManager;
47
class TupProjectActionBar;
48
class TupFramesTableItem;
52
* @author David Cuadrado
55
class TupTimeLine : public TupModuleWidgetBase
60
TupTimeLine(QWidget *parent = 0);
62
void closeAllScenes();
64
void setLibrary(const TupLibrary *library);
67
TupLayerManager *layerManager(int sceneIndex);
68
TupFramesTable *framesTable(int sceneIndex);
71
void sceneResponse(TupSceneResponse *e);
72
void layerResponse(TupLayerResponse *e);
73
void frameResponse(TupFrameResponse *e);
74
void libraryResponse(TupLibraryResponse *response);
77
void insertScene(int position, const QString &name);
78
void removeScene(int position);
79
void emitRequestChangeFrame(int sceneIndex, int layerIndex, int frameIndex);
82
void requestCommand(int action);
83
bool requestFrameAction(int action, int framePos = -1, int layerPos = -1, int scenePos = -1, const QVariant &arg = QVariant());
84
bool requestLayerAction(int action, int layerPos = -1, int scenePos = -1, const QVariant &arg = QVariant());
85
bool requestSceneAction(int action, int scenePos = -1, const QVariant &arg = QVariant());
86
void selectFrame(int indexLayer, int indexFrame);
88
void emitRequestRenameLayer(int layer, const QString &name);
89
void emitSelectionSignal();
90
void emitLayerVisibility(int sceneIndex, int layerIndex, bool checked);
91
void emitRequestChangeScene(int sceneIndex);