Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/tests/timeline_model_test.cpp
Show All 37 Lines | |||||
38 | #include "timeline_frames_view.h" | 38 | #include "timeline_frames_view.h" | ||
39 | #include "timeline_frames_model.h" | 39 | #include "timeline_frames_model.h" | ||
40 | 40 | | |||
41 | #include "kis_node_dummies_graph.h" | 41 | #include "kis_node_dummies_graph.h" | ||
42 | 42 | | |||
43 | #include "commands/kis_image_layer_add_command.h" | 43 | #include "commands/kis_image_layer_add_command.h" | ||
44 | #include "commands/kis_image_layer_remove_command.h" | 44 | #include "commands/kis_image_layer_remove_command.h" | ||
45 | 45 | | |||
46 | #include "kis_double_parse_spin_box.h" | ||||
47 | #include "kis_int_parse_spin_box.h" | ||||
46 | 48 | | |||
47 | void TimelineModelTest::init() | 49 | void TimelineModelTest::init() | ||
48 | { | 50 | { | ||
49 | m_doc = KisPart::instance()->createDocument(); | 51 | m_doc = KisPart::instance()->createDocument(); | ||
50 | 52 | | |||
51 | m_nameServer = new KisNameServer(); | 53 | m_nameServer = new KisNameServer(); | ||
52 | m_shapeController = new KisShapeController(m_doc, m_nameServer); | 54 | m_shapeController = new KisShapeController(m_doc, m_nameServer); | ||
53 | //m_nodeModel = new KisNodeModel(0); | 55 | //m_nodeModel = new KisNodeModel(0); | ||
▲ Show 20 Lines • Show All 96 Lines • ▼ Show 20 Line(s) | |||||
150 | void TimelineModelTest::testView() | 152 | void TimelineModelTest::testView() | ||
151 | { | 153 | { | ||
152 | QDialog dlg; | 154 | QDialog dlg; | ||
153 | 155 | | |||
154 | QFont font; | 156 | QFont font; | ||
155 | font.setPointSizeF(9); | 157 | font.setPointSizeF(9); | ||
156 | dlg.setFont(font); | 158 | dlg.setFont(font); | ||
157 | 159 | | |||
158 | QSpinBox *intFps = new QSpinBox(&dlg); | 160 | QSpinBox *intFps = new KisIntParseSpinBox(&dlg); | ||
159 | intFps->setValue(12); | 161 | intFps->setValue(12); | ||
160 | 162 | | |||
161 | QSpinBox *intTime = new QSpinBox(&dlg); | 163 | QSpinBox *intTime = new KisIntParseSpinBox(&dlg); | ||
162 | intTime->setValue(0); | 164 | intTime->setValue(0); | ||
163 | intTime->setMaximum(10000); | 165 | intTime->setMaximum(10000); | ||
164 | 166 | | |||
165 | QSpinBox *intLayer = new QSpinBox(&dlg); | 167 | QSpinBox *intLayer = new KisIntParseSpinBox(&dlg); | ||
166 | intLayer->setValue(0); | 168 | intLayer->setValue(0); | ||
167 | intLayer->setMaximum(100); | 169 | intLayer->setMaximum(100); | ||
168 | 170 | | |||
169 | TimelineFramesView *framesTable = new TimelineFramesView(&dlg); | 171 | TimelineFramesView *framesTable = new TimelineFramesView(&dlg); | ||
170 | 172 | | |||
171 | TimelineFramesModel *model = new TimelineFramesModel(&dlg); | 173 | TimelineFramesModel *model = new TimelineFramesModel(&dlg); | ||
172 | 174 | | |||
173 | constructImage(); | 175 | constructImage(); | ||
▲ Show 20 Lines • Show All 123 Lines • Show Last 20 Lines |