blob: 33cfbbc0b4235656dbbb4f8de5c78f72fa81f18f (
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
33
34
35
36
|
#include "flatcomponent.h"
#include "flatsignal.h"
Component::Component(Component *parent, const std::string& id)
: parent(parent)
{
// TODO, check flatland initialization
if (id.empty())
setID(FlatObject::randomID());
if (parent == 0)
{
// TODO set screen as parent layer
}
}
Component::~Component()
{
}
void Component::setParent(Component *parent)
{
if (parent == 0)
// TODO set screen as parent layer
;
this->parent = parent;
}
Component * Component::getParent()
{
return parent;
}
|