summaryrefslogtreecommitdiffstats
path: root/src/handle_event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/handle_event.cpp')
-rw-r--r--src/handle_event.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/handle_event.cpp b/src/handle_event.cpp
index bbe86fc..fa11ec3 100644
--- a/src/handle_event.cpp
+++ b/src/handle_event.cpp
@@ -48,29 +48,29 @@ public:
: _patchage{patchage}
{}
- void operator()(const DriverAttachmentEvent& event)
+ void operator()(const event::DriverAttached& event)
{
_patchage.driver_attached(event.type);
}
- void operator()(const DriverDetachmentEvent& event)
+ void operator()(const event::DriverDetached& event)
{
_patchage.driver_detached(event.type);
}
- void operator()(const ClientCreationEvent& event)
+ void operator()(const event::ClientCreated& event)
{
// Don't create empty modules, they will be created when ports are added
_patchage.metadata().set_client(event.id, event.info);
}
- void operator()(const ClientDestructionEvent& event)
+ void operator()(const event::ClientDestroyed& event)
{
_patchage.canvas()->remove_module(event.id);
_patchage.metadata().erase_client(event.id);
}
- void operator()(const PortCreationEvent& event)
+ void operator()(const event::PortCreated& event)
{
_patchage.metadata().set_port(event.id, event.info);
@@ -83,13 +83,13 @@ public:
}
}
- void operator()(const PortDestructionEvent& event)
+ void operator()(const event::PortDestroyed& event)
{
_patchage.canvas()->remove_port(event.id);
_patchage.metadata().erase_port(event.id);
}
- void operator()(const ConnectionEvent& event)
+ void operator()(const event::PortsConnected& event)
{
CanvasPort* port_1 = _patchage.canvas()->find_port(event.tail);
CanvasPort* port_2 = _patchage.canvas()->find_port(event.head);
@@ -105,7 +105,7 @@ public:
}
}
- void operator()(const DisconnectionEvent& event)
+ void operator()(const event::PortsDisconnected& event)
{
CanvasPort* port_1 = _patchage.canvas()->find_port(event.tail);
CanvasPort* port_2 = _patchage.canvas()->find_port(event.head);