diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-08 13:45:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-08 13:45:07 +0200 |
commit | 48503f483f29450eca0f5a33381e0b64ef509d80 (patch) | |
tree | 4244f578599044a278f48f09e4f3d33c9c148e2b /logic/work.cpp | |
parent | e2d5245359de0cd419d49b1f3c8e1392c5d9342a (diff) |
logic: add extension support
It's missing a dialog and testing.
Diffstat (limited to 'logic/work.cpp')
-rw-r--r-- | logic/work.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/logic/work.cpp b/logic/work.cpp index 62c15403..1b1b87fa 100644 --- a/logic/work.cpp +++ b/logic/work.cpp @@ -5,7 +5,6 @@ #include <QMessageBox> #include <QFileDialog> - QString Work::browse_datalogging_file(main_settings &s) { QString filename = s.tracklogging_filename; @@ -60,10 +59,10 @@ std::shared_ptr<TrackLogger> Work::make_logger(main_settings &s) } -Work::Work(Mappings& m, QFrame* frame, std::shared_ptr<dylib> tracker_, std::shared_ptr<dylib> filter_, std::shared_ptr<dylib> proto_) : +Work::Work(Mappings& m, event_handler& ev, QFrame* frame, std::shared_ptr<dylib> tracker_, std::shared_ptr<dylib> filter_, std::shared_ptr<dylib> proto_) : libs(frame, tracker_, filter_, proto_), logger(make_logger(s)), - tracker(std::make_shared<Tracker>(m, libs, *logger)), + tracker(std::make_shared<Tracker>(m, libs, ev, *logger)), sc(std::make_shared<Shortcuts>()), keys { key_tuple(s.key_center1, [&](bool) -> void { tracker->center(); }, true), |