summaryrefslogtreecommitdiffstats
path: root/src/handle_event.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-05-11 13:45:26 -0400
committerDavid Robillard <d@drobilla.net>2021-05-11 13:45:26 -0400
commitdf0fdf362347495531bc3a5d19233220721d846b (patch)
treee3631d08630d4d6651eb24aa53c9fc49157778ab /src/handle_event.hpp
parentc6ae340c6222240dc45e9bba714c722cebece186 (diff)
downloadpatchage-df0fdf362347495531bc3a5d19233220721d846b.tar.gz
patchage-df0fdf362347495531bc3a5d19233220721d846b.tar.bz2
patchage-df0fdf362347495531bc3a5d19233220721d846b.zip
Refactor most functionality around actions and settings
This moves more code into general places, and completely eliminates dependencies on the Patchage "god object".
Diffstat (limited to 'src/handle_event.hpp')
-rw-r--r--src/handle_event.hpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/handle_event.hpp b/src/handle_event.hpp
index 6a62d61..5cf15ef 100644
--- a/src/handle_event.hpp
+++ b/src/handle_event.hpp
@@ -21,11 +21,18 @@
namespace patchage {
-class Patchage;
+class Configuration;
+class Metadata;
+class Canvas;
+class ILog;
/// Handle an event from the system by updating the GUI as necessary
void
-handle_event(Patchage& patchage, const Event& event);
+handle_event(Configuration& conf,
+ Metadata& metadata,
+ Canvas& canvas,
+ ILog& log,
+ const Event& event);
} // namespace patchage