score-addon-hardware/Hardware/Hardware.hpp

39 lines
795 B
C++

#pragma once
// #include <score_addon_hardware_export.h>
#include <Scenario/Document/Interval/IntervalModel.hpp>
#include <Scenario/Process/ScenarioModel.hpp>
#include "MidiController.hpp"
namespace Hardware
{
class /*SCORE_PLUGIN_HARDWARE_EXPORT*/ Hardware
: public QObject
{
W_OBJECT(Hardware)
public:
explicit Hardware(const score::DocumentContext& doc);
void setupController();
void setup_scenario(Scenario::ProcessModel* s);
void draw_intervals();
private:
double h_ofset;
double v_ofset;
double h_zoom;
double v_zoom;
MidiController* ctl;
Explorer::DeviceDocumentPlugin& m_dev;
Scenario::ProcessModel* scenar;
std::function<void(Controller::Commands, const bool&)> commandCallback;
void on_interval_changed(const Scenario::IntervalModel &);
};
}