summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-12-02 04:07:05 +0000
committerDavid Robillard <d@drobilla.net>2011-12-02 04:07:05 +0000
commitc411f3ec2c55a2d9b0bda0c5db000439b86856e8 (patch)
tree5a40a756be711a328ef6f472ef972c1b7239dea5 /src/PatchageCanvas.cpp
parent05b451e8be70bb49c1ac663cdbef6640fc2c5045 (diff)
downloadpatchage-c411f3ec2c55a2d9b0bda0c5db000439b86856e8.tar.gz
patchage-c411f3ec2c55a2d9b0bda0c5db000439b86856e8.tar.bz2
patchage-c411f3ec2c55a2d9b0bda0c5db000439b86856e8.zip
Connection => Edge.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3745 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r--src/PatchageCanvas.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index 44e844f..720a73e 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -255,7 +255,7 @@ PatchageCanvas::add_module(const std::string& name, PatchageModule* module)
}
bool
-PatchageCanvas::on_connection_event(FlowCanvas::Connection* c, GdkEvent* ev)
+PatchageCanvas::on_connection_event(FlowCanvas::Edge* c, GdkEvent* ev)
{
if (ev->type == GDK_BUTTON_PRESS) {
switch (ev->button.button) {
@@ -264,7 +264,7 @@ PatchageCanvas::on_connection_event(FlowCanvas::Connection* c, GdkEvent* ev)
&& !(ev->button.state & GDK_SHIFT_MASK)) {
clear_selection();
}
- select_connection(c);
+ select_edge(c);
return true;
case 2:
disconnect(c->get_tail(), c->get_head());
@@ -278,10 +278,10 @@ bool
PatchageCanvas::on_event(GdkEvent* ev)
{
if (ev->type == GDK_KEY_PRESS && ev->key.keyval == GDK_Delete) {
- SelectedConnections cs = selected_connections();
+ SelectedEdges cs = selected_edges();
clear_selection();
- for (Connections::const_iterator i = cs.begin(); i != cs.end(); ++i) {
+ for (Edges::const_iterator i = cs.begin(); i != cs.end(); ++i) {
disconnect((*i)->get_tail(), (*i)->get_head());
}
}
@@ -294,7 +294,7 @@ PatchageCanvas::make_connection(FlowCanvas::Joinable* tail,
FlowCanvas::Joinable* head,
uint32_t color)
{
- FlowCanvas::Connection* c = new FlowCanvas::Connection(
+ FlowCanvas::Edge* c = new FlowCanvas::Edge(
*this, tail, head, color);
c->signal_event().connect(
sigc::bind<0>(sigc::mem_fun(*this, &PatchageCanvas::on_connection_event),