summaryrefslogtreecommitdiffhomepage
path: root/logic/work.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-23 06:06:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-23 08:54:32 +0100
commit6f69cdc4305740ed9f54b296a62a8c59ff98da0c (patch)
treea3ff480d2766c2429f8697983edd6ac8ef4f750b /logic/work.hpp
parent21329f2428143140d7884b37c7db1f15a7953dc6 (diff)
logic, gui: move selected-libraries to struct work
Diffstat (limited to 'logic/work.hpp')
-rw-r--r--logic/work.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/logic/work.hpp b/logic/work.hpp
index b614c580..ff0524bd 100644
--- a/logic/work.hpp
+++ b/logic/work.hpp
@@ -14,6 +14,8 @@
#include "shortcuts.h"
#include "export.hpp"
#include "tracklogger.hpp"
+#include "logic/selected-libraries.hpp"
+#include "api/plugin-support.hpp"
#include <QObject>
#include <QFrame>
@@ -27,16 +29,16 @@ struct OPENTRACK_LOGIC_EXPORT Work
using fn_t = std::function<void(bool)>;
using key_tuple = std::tuple<key_opts&, fn_t, bool>;
main_settings s; // tracker needs settings, so settings must come before it
- SelectedLibraries& libs;
std::shared_ptr<TrackLogger> logger; // must come before tracker, since tracker depends on it
+ SelectedLibraries libs; // idem
std::shared_ptr<Tracker> tracker;
std::shared_ptr<Shortcuts> sc;
- WId handle;
std::vector<key_tuple> keys;
- Work(Mappings& m, SelectedLibraries& libs, WId handle);
+ Work(Mappings& m, QFrame* frame, mem<dylib>& tracker, mem<dylib>& filter, mem<dylib>& proto);
~Work();
void reload_shortcuts();
+ bool is_ok() const;
private:
static std::shared_ptr<TrackLogger> make_logger(main_settings &s);