summaryrefslogtreecommitdiffstats
path: root/src/PatchageCanvas.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-25 04:02:49 +0000
committerDavid Robillard <d@drobilla.net>2011-11-25 04:02:49 +0000
commit572adb6873294bf2f26062cf297660aa449eb675 (patch)
treea1073ae1d3f50474a6c0983e11d418b88b309d62 /src/PatchageCanvas.hpp
parentb5f4e302523971c305fbc4a815705913ac565d6a (diff)
downloadpatchage-572adb6873294bf2f26062cf297660aa449eb675.tar.gz
patchage-572adb6873294bf2f26062cf297660aa449eb675.tar.bz2
patchage-572adb6873294bf2f26062cf297660aa449eb675.zip
Make it possible to remove connections by middle-clicking on their handle, or
selecting them and pressing delete (implement #616). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3626 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageCanvas.hpp')
-rw-r--r--src/PatchageCanvas.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/PatchageCanvas.hpp b/src/PatchageCanvas.hpp
index bf70007..5262a5e 100644
--- a/src/PatchageCanvas.hpp
+++ b/src/PatchageCanvas.hpp
@@ -65,6 +65,10 @@ public:
void add_module(const std::string& name, PatchageModule* module);
+ bool add_connection(FlowCanvas::Connectable* tail,
+ FlowCanvas::Connectable* head,
+ uint32_t color);
+
void remove_port(const PortID& id);
void destroy();
@@ -74,6 +78,9 @@ private:
bool remove_item(FlowCanvas::Item* i);
+ bool on_event(GdkEvent* ev);
+ bool on_connection_event(FlowCanvas::Connection* c, GdkEvent* ev);
+
typedef std::map<const PortID, PatchagePort*> PortIndex;
PortIndex _port_index;