summaryrefslogtreecommitdiffstats
path: root/src/client/PatchModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-13 01:22:29 +0000
committerDavid Robillard <d@drobilla.net>2011-05-13 01:22:29 +0000
commit981c7950a6f5fc9f22decaee261556d20b641d5c (patch)
tree326c2256d5876e3c55ec2fb9ea13c4a04f29bf0b /src/client/PatchModel.cpp
parenteae8f927dbf4913c7cb72605af5da0763f7be422 (diff)
downloadingen-981c7950a6f5fc9f22decaee261556d20b641d5c.tar.gz
ingen-981c7950a6f5fc9f22decaee261556d20b641d5c.tar.bz2
ingen-981c7950a6f5fc9f22decaee261556d20b641d5c.zip
Make signals private with accessors, and localise dependency on sigc::signal.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3258 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PatchModel.cpp')
-rw-r--r--src/client/PatchModel.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/PatchModel.cpp b/src/client/PatchModel.cpp
index 190bc3ba..5dcf4ab0 100644
--- a/src/client/PatchModel.cpp
+++ b/src/client/PatchModel.cpp
@@ -42,7 +42,7 @@ PatchModel::add_child(SharedPtr<ObjectModel> c)
SharedPtr<NodeModel> nm = PtrCast<NodeModel>(c);
if (nm)
- signal_new_node.emit(nm);
+ _signal_new_node.emit(nm);
}
bool
@@ -64,7 +64,7 @@ PatchModel::remove_child(SharedPtr<ObjectModel> o)
|| cm->src_port_path() == o->path()
|| cm->dst_port_path().parent() == o->path()
|| cm->dst_port_path() == o->path()) {
- signal_removed_connection.emit(cm);
+ _signal_removed_connection.emit(cm);
_connections->erase(j); // cuts our reference
}
j = next;
@@ -76,7 +76,7 @@ PatchModel::remove_child(SharedPtr<ObjectModel> o)
SharedPtr<NodeModel> nm = PtrCast<NodeModel>(o);
if (nm)
- signal_removed_node.emit(nm);
+ _signal_removed_node.emit(nm);
return true;
}
@@ -132,7 +132,7 @@ PatchModel::add_connection(SharedPtr<ConnectionModel> cm)
assert(cm->dst_port() == existing->dst_port());
} else {
_connections->insert(make_pair(make_pair(cm->src_port().get(), cm->dst_port().get()), cm));
- signal_new_connection.emit(cm);
+ _signal_new_connection.emit(cm);
}
}
@@ -142,7 +142,7 @@ PatchModel::remove_connection(const Port* src_port, const Ingen::Port* dst_port)
Connections::iterator i = _connections->find(make_pair(src_port, dst_port));
if (i != _connections->end()) {
SharedPtr<ConnectionModel> c = PtrCast<ConnectionModel>(i->second);
- signal_removed_connection.emit(c);
+ _signal_removed_connection.emit(c);
_connections->erase(i);
} else {
warn << "[PatchModel::remove_connection] Failed to find connection " <<