-
Notifications
You must be signed in to change notification settings - Fork 0
/
animationtoolbar.cpp
54 lines (38 loc) · 1.17 KB
/
animationtoolbar.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "animationtoolbar.h"
#include "animationframe.h"
#include "qactions.h"
#include <QSpinBox>
#include <QDoubleSpinBox>
AnimationToolBar::AnimationToolBar(AnimationFrame *parent)
{
addAction(parent->actions()->aOpen);
addSeparator();
addAction(parent->actions()->aAddBlank);
addAction(parent->actions()->aDeleteImg);
addSeparator();
addAction(parent->actions()->aCut);
addAction(parent->actions()->aCopy);
addAction(parent->actions()->aPaste);
addSeparator();
addAction(parent->actions()->aZoomIn);
addAction(parent->actions()->aZoomOut);
addAction(parent->actions()->aZoom100);
addSeparator();
addAction(parent->actions()->aPlay);
addAction(parent->actions()->aPause);
addAction(parent->actions()->aStop);
addSeparator();
speed = new QDoubleSpinBox(parent);
speed->setValue(0.03);
speed->setPrefix("Speed: ");
speed->setDecimals(4);
speed->setSingleStep(0.0001);
speed->setAccelerated(true);
addWidget(speed);
addSeparator();
frame = new QSpinBox(parent);
frame->setMaximum(0);
frame->setPrefix("Frame: ");
frame->setAccelerated(true);
addWidget(frame);
}