Skip to content

Commit 558e340

Browse files
committed
Cleanup and fix dspxmodel and opendspx
1 parent a7d880b commit 558e340

101 files changed

Lines changed: 276 additions & 311 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/libs/application/dspxmodel/src/AnchorNode.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#include "AnchorNode.h"
22

3-
#include <QVariant>
43
#include <QJSEngine>
4+
#include <QVariant>
55

66
#include <opendspx/anchornode.h>
77

@@ -52,7 +52,7 @@ namespace dspx {
5252
setXUnchecked(x_);
5353
}
5454

55-
AnchorNode::AnchorNode(Handle handle, Model *model)
55+
AnchorNode::AnchorNode(Handle handle, Model *model)
5656
: EntityObject(handle, model), d_ptr(new AnchorNodePrivate) {
5757
Q_D(AnchorNode);
5858
Q_ASSERT(model->strategy()->getEntityType(handle) == ModelStrategy::EI_ParamCurveAnchorNode);
@@ -98,7 +98,7 @@ namespace dspx {
9898

9999
QDspx::AnchorNode AnchorNode::toQDspx() const {
100100
Q_D(const AnchorNode);
101-
return QDspx::AnchorNode {
101+
return {
102102
.interp = static_cast<QDspx::AnchorNode::Interpolation>(d->interp),
103103
.x = d->x,
104104
.y = d->y,
@@ -137,4 +137,4 @@ namespace dspx {
137137

138138
}
139139

140-
#include "moc_AnchorNode.cpp"
140+
#include "moc_AnchorNode.cpp"

‎src/libs/application/dspxmodel/src/AnchorNode.h‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#ifndef DIFFSCOPE_DSPX_MODEL_ANCHORNODE_H
22
#define DIFFSCOPE_DSPX_MODEL_ANCHORNODE_H
33

4-
#include <dspxmodel/EntityObject.h>
54
#include <qqmlintegration.h>
65

6+
#include <dspxmodel/EntityObject.h>
7+
78
namespace QDspx {
89
struct AnchorNode;
910
}
@@ -59,4 +60,4 @@ namespace dspx {
5960

6061
}
6162

62-
#endif //DIFFSCOPE_DSPX_MODEL_ANCHORNODE_H
63+
#endif //DIFFSCOPE_DSPX_MODEL_ANCHORNODE_H

‎src/libs/application/dspxmodel/src/AnchorNodeSequence.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#include "AnchorNodeSequence.h"
22

3-
#include <QJSValue>
43
#include <QJSEngine>
4+
#include <QJSValue>
55

66
#include <opendspx/anchornode.h>
77

8-
#include <dspxmodel/private/PointSequenceContainer_p.h>
9-
#include <dspxmodel/private/Model_p.h>
108
#include <dspxmodel/AnchorNode.h>
119
#include <dspxmodel/ModelStrategy.h>
10+
#include <dspxmodel/private/Model_p.h>
11+
#include <dspxmodel/private/PointSequenceContainer_p.h>
1212
#include <dspxmodel/private/PointSequenceData_p.h>
1313

1414
namespace dspx {
@@ -104,4 +104,4 @@ namespace dspx {
104104

105105
}
106106

107-
#include "moc_AnchorNodeSequence.cpp"
107+
#include "moc_AnchorNodeSequence.cpp"

‎src/libs/application/dspxmodel/src/AnchorNodeSequence.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ namespace dspx {
6262

6363
}
6464

65-
#endif //DIFFSCOPE_DSPX_MODEL_ANCHORNODESEQUENCE_H
65+
#endif //DIFFSCOPE_DSPX_MODEL_ANCHORNODESEQUENCE_H

‎src/libs/application/dspxmodel/src/AudioClip.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
#include <opendspx/audioclip.h>
44

5-
#include <dspxmodel/private/Model_p.h>
6-
#include <dspxmodel/ModelStrategy.h>
75
#include <dspxmodel/BusControl.h>
86
#include <dspxmodel/ClipTime.h>
7+
#include <dspxmodel/ModelStrategy.h>
98
#include <dspxmodel/Workspace.h>
9+
#include <dspxmodel/private/Model_p.h>
1010

1111
namespace dspx {
1212

@@ -68,4 +68,4 @@ namespace dspx {
6868
}
6969
}
7070

71-
}
71+
}

‎src/libs/application/dspxmodel/src/AudioClip.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ namespace dspx {
3939
friend class ModelPrivate;
4040
explicit AudioClip(Handle handle, Model *model);
4141
QScopedPointer<AudioClipPrivate> d_ptr;
42-
4342
};
4443

4544
}

‎src/libs/application/dspxmodel/src/BasicModelStrategy.cpp‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
#include <algorithm>
44

5-
#include <QVariant>
65
#include <QHash>
6+
#include <QVariant>
77

88
#include <dspxmodel/private/SpliceHelper_p.h>
99

@@ -15,7 +15,6 @@ namespace dspx {
1515
using QObject::QObject;
1616

1717
ModelStrategy::Entity type{};
18-
1918
};
2019

2120
class BasicModelStrategyItemEntity : public BasicModelStrategyEntity {
@@ -126,7 +125,7 @@ namespace dspx {
126125

127126
Handle BasicModelStrategy::createEntity(Entity entityType) {
128127
auto object = createByType(entityType, this);
129-
Handle entity {reinterpret_cast<quintptr>(object)};
128+
Handle entity{reinterpret_cast<quintptr>(object)};
130129
Q_EMIT createEntityNotified(entity, entityType);
131130
return entity;
132131
}
@@ -203,7 +202,7 @@ namespace dspx {
203202
}
204203
auto object = listContainerObject->list.takeAt(index);
205204
object->setParent(this);
206-
Handle entity {reinterpret_cast<quintptr>(object)};
205+
Handle entity{reinterpret_cast<quintptr>(object)};
207206
Q_EMIT takeFromListContainerNotified(entity, listContainerEntity, index);
208207
return entity;
209208
}
@@ -213,7 +212,7 @@ namespace dspx {
213212
if (mapContainerObject->map.contains(key)) {
214213
auto object = mapContainerObject->map.take(key);
215214
object->setParent(this);
216-
Handle entity {reinterpret_cast<quintptr>(object)};
215+
Handle entity{reinterpret_cast<quintptr>(object)};
217216
Q_EMIT takeFromMapContainerNotified(entity, mapContainerEntity, key);
218217
return entity;
219218
}
@@ -334,10 +333,10 @@ namespace dspx {
334333
subObject = createByType(subObjectType, object);
335334
object->associatedSubEntities.insert(relationship, subObject);
336335
}
337-
Handle subEntity {reinterpret_cast<quintptr>(subObject)};
336+
Handle subEntity{reinterpret_cast<quintptr>(subObject)};
338337
return subEntity;
339338
}
340339

341340
}
342341

343-
#include "BasicModelStrategy.moc"
342+
#include "BasicModelStrategy.moc"

‎src/libs/application/dspxmodel/src/BasicModelStrategy.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ namespace dspx {
2828
int getSizeOfDataArray(Handle dataContainerEntity) override;
2929
bool rotateDataArray(Handle dataContainerEntity, int leftIndex, int middleIndex, int rightIndex) override;
3030
Handle getAssociatedSubEntity(Handle entity, Relationship relationship) override;
31-
3231
};
3332

3433
}

‎src/libs/application/dspxmodel/src/BusControl.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ namespace dspx {
2727
Control::handleProxySetEntityProperty(property, value);
2828
}
2929

30-
}
30+
}

0 commit comments

Comments
 (0)