diff options
author | David Robillard <d@drobilla.net> | 2020-11-29 18:31:45 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-29 18:31:45 +0100 |
commit | 98e2535b82ab601081a56c8a22d789d2da25cfd8 (patch) | |
tree | 5627e1219725342edd6aba36cd48ba24a256ba1c /src/handle_event.cpp | |
parent | 178d1cbe1dfc9e7b66c36cbb75590e1cee419174 (diff) | |
download | patchage-98e2535b82ab601081a56c8a22d789d2da25cfd8.tar.gz patchage-98e2535b82ab601081a56c8a22d789d2da25cfd8.tar.bz2 patchage-98e2535b82ab601081a56c8a22d789d2da25cfd8.zip |
Use more reasonable class names
Diffstat (limited to 'src/handle_event.cpp')
-rw-r--r-- | src/handle_event.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/handle_event.cpp b/src/handle_event.cpp index b6412c2..40f6c22 100644 --- a/src/handle_event.cpp +++ b/src/handle_event.cpp @@ -16,11 +16,11 @@ #include "handle_event.hpp" +#include "Canvas.hpp" +#include "CanvasModule.hpp" +#include "CanvasPort.hpp" +#include "Event.hpp" #include "Patchage.hpp" -#include "PatchageCanvas.hpp" -#include "PatchageEvent.hpp" -#include "PatchageModule.hpp" -#include "PatchagePort.hpp" PATCHAGE_DISABLE_FMT_WARNINGS #include <fmt/core.h> @@ -83,8 +83,8 @@ public: void operator()(const ConnectionEvent& event) { - PatchagePort* port_1 = _patchage.canvas()->find_port(event.tail); - PatchagePort* port_2 = _patchage.canvas()->find_port(event.head); + CanvasPort* port_1 = _patchage.canvas()->find_port(event.tail); + CanvasPort* port_2 = _patchage.canvas()->find_port(event.head); if (!port_1) { _patchage.log().error(fmt::format( @@ -99,8 +99,8 @@ public: void operator()(const DisconnectionEvent& event) { - PatchagePort* port_1 = _patchage.canvas()->find_port(event.tail); - PatchagePort* port_2 = _patchage.canvas()->find_port(event.head); + CanvasPort* port_1 = _patchage.canvas()->find_port(event.tail); + CanvasPort* port_2 = _patchage.canvas()->find_port(event.head); if (!port_1) { _patchage.log().error(fmt::format( @@ -120,7 +120,7 @@ private: } // namespace void -handle_event(Patchage& patchage, const PatchageEvent& event) +handle_event(Patchage& patchage, const Event& event) { EventHandler handler{patchage}; boost::apply_visitor(handler, event); |