Pencil2D
ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
Main Page
Classes
Files
File List
All
Classes
Functions
core_lib
interface
timeline.h
1
/*
2
3
Pencil - Traditional Animation Software
4
Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5
Copyright (C) 2012-2017 Matthew Chiawen Chang
6
7
This program is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License
9
as published by the Free Software Foundation; version 2 of the License.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
*/
17
#ifndef TIMELINE_H
18
#define TIMELINE_H
19
20
#include "basedockwidget.h"
21
22
class
QScrollBar;
23
class
Editor
;
24
class
TimeLineCells
;
25
class
TimeControls
;
26
27
28
class
TimeLine
:
public
BaseDockWidget
29
{
30
Q_OBJECT
31
32
public
:
33
TimeLine
( QWidget* parent );
34
35
void
initUI()
override
;
36
void
updateUI()
override
;
37
38
void
updateFrame(
int
frameNumber );
39
void
updateLayerNumber(
int
number );
40
void
updateLayerView();
41
void
updateLength();
42
void
updateContent();
43
void
setLoop(
bool
loop );
44
void
setRangeState(
bool
range );
45
void
setPlaying(
bool
isPlaying );
46
int
getFrameLength();
47
int
getRangeLower();
48
int
getRangeUpper();
49
50
void
onObjectLoaded();
51
52
Q_SIGNALS:
53
void
modification();
54
void
lengthChange( QString );
55
void
frameSizeChange(
int
);
56
void
fontSizeChange(
int
);
57
void
labelChange(
int
);
58
void
scrubChange(
int
);
59
60
void
addKeyClick();
61
void
removeKeyClick();
62
void
duplicateKeyClick();
63
void
toogleAbsoluteOnionClick();
64
65
void
newBitmapLayer();
66
void
newVectorLayer();
67
void
newSoundLayer();
68
void
newCameraLayer();
69
70
void
loopStartClick(
int
);
71
void
loopEndClick(
int
);
72
73
void
soundClick(
bool
);
74
void
fpsClick(
int
);
75
void
onionPrevClick();
76
void
onionNextClick();
77
78
public
:
79
bool
scrubbing =
false
;
80
81
protected
:
82
void
resizeEvent( QResizeEvent* event )
override
;
83
void
wheelEvent( QWheelEvent* )
override
;
84
85
private
:
86
void
deleteCurrentLayer();
87
88
QScrollBar* mHScrollbar =
nullptr
;
89
QScrollBar* mVScrollbar =
nullptr
;
90
TimeLineCells
* mTracks =
nullptr
;
91
TimeLineCells
* mLayerList =
nullptr
;
92
TimeControls
* mTimeControls =
nullptr
;
93
94
int
mNumLayers = 0;
95
int
mLastUpdatedFrame = 0;
96
};
97
98
#endif
TimeLine
Definition:
timeline.h:28
TimeControls
Definition:
timecontrols.h:31
TimeLineCells
Definition:
timelinecells.h:39
Editor
Definition:
editor.h:45
BaseDockWidget
Definition:
basedockwidget.h:26
Generated on Fri Sep 1 2017 16:48:40 for Pencil2D by
1.8.6