blob: 0aa9fad6eeaddc9c335410598602a4e2cf485c53 (
plain)
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
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef OBJECTTYPELAYOUT_H
#define OBJECTTYPELAYOUT_H
#include "libsamplemacros.h"
#include "objecttype.h"
#include <list>
class ObjectType;
class LIBSAMPLE_API ObjectTypeLayout : public ObjectType
{
public:
void addObject(ObjectType *obj);
std::list<ObjectType*> objects() const;
bool isLayoutType() override { return true; }
inline static ObjectTypeLayout *create() { return new ObjectTypeLayout(); }
ObjectType *takeChild(const Str &name) override { return ObjectType::takeChild(name); }
private:
std::list<ObjectType*> m_objects;
void reparentChildren(ObjectType *parent);
friend LIBSAMPLE_API void ObjectType::setLayout(ObjectTypeLayout *l);
};
#endif // OBJECTTYPELAYOUT_H
|