summaryrefslogtreecommitdiffstats
path: root/src/object.cpp
diff options
context:
space:
mode:
authorAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-09 15:19:23 +0000
committerAdrian Boguszewski <adrbogus1@student.pg.gda.pl>2016-06-09 15:19:23 +0000
commit5633812ca77f35e52db62e7b432761e0e59253fe (patch)
tree2985071a7a26ae482e9e6e468f7175bf124aa1f8 /src/object.cpp
parentSplitted tests to separate executables (diff)
downloadinkscape-5633812ca77f35e52db62e7b432761e0e59253fe.tar.gz
inkscape-5633812ca77f35e52db62e7b432761e0e59253fe.zip
Removed Object class and temporary test dependencies
(bzr r14954.1.4)
Diffstat (limited to 'src/object.cpp')
-rw-r--r--src/object.cpp50
1 files changed, 0 insertions, 50 deletions
diff --git a/src/object.cpp b/src/object.cpp
deleted file mode 100644
index c05d50b3a..000000000
--- a/src/object.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Temporary file
- *
- * Authors:
- * Adrian Boguszewski
- *
- * Copyright (C) 2016 Adrian Boguszewski
- *
- * Released under GNU GPL, read the file 'COPYING' for more information
- */
-
-#include "object.h"
-
-Object::Object(std::string name) : name(name), parent(NULL) { }
-
-Object::~Object() {
- // only for this prototype
- // call destructor on every child
- children.clear_and_dispose(delete_disposer());
- release_signal.emit(this);
-}
-
-const std::string& Object::getName() const {
- return name;
-}
-
-Object *Object::getParent() {
- return parent;
-}
-
-bool Object::isDescendantOf(Object *o) {
- Object* p = parent;
- while(p != NULL) {
- if (p == o) {
- return true;
- }
- p = p->parent;
- }
- return false;
-}
-
-void Object::addChild(Object* o) {
- o->parent = this;
- children.push_back(*o);
-}
-
-sigc::connection Object::connectRelease(sigc::slot<bool, Object*> slot) {
- return release_signal.connect(slot);
-}
-