2024-10-06 15:16:11 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <score_addon_hardware_export.h>
|
|
|
|
|
|
|
|
#include <Scenario/Document/Interval/IntervalModel.hpp>
|
|
|
|
#include <Scenario/Process/ScenarioModel.hpp>
|
2024-10-03 23:50:15 +01:00
|
|
|
|
2024-10-16 23:25:53 +01:00
|
|
|
#include <painter.hpp>
|
2024-10-08 16:12:35 +01:00
|
|
|
|
2024-10-06 00:31:31 +01:00
|
|
|
namespace Hardware
|
2024-10-03 23:50:15 +01:00
|
|
|
{
|
2024-10-06 15:16:11 +01:00
|
|
|
class SCORE_ADDON_HARDWARE_EXPORT Controller
|
2024-10-16 23:25:53 +01:00
|
|
|
: public bugui::painter
|
2024-10-08 16:12:35 +01:00
|
|
|
, public QObject
|
2024-10-03 23:50:15 +01:00
|
|
|
{
|
2024-10-06 15:16:11 +01:00
|
|
|
W_OBJECT(Controller)
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit Controller(const score::DocumentContext& doc);
|
2024-10-03 23:50:15 +01:00
|
|
|
|
2024-10-06 15:16:11 +01:00
|
|
|
void setup_scenario(Scenario::ProcessModel* s);
|
|
|
|
void draw_intervals();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Scenario::ProcessModel* scenar;
|
|
|
|
|
|
|
|
void on_interval_changed(const Scenario::IntervalModel &);
|
|
|
|
};
|
2024-10-08 16:12:35 +01:00
|
|
|
|
2024-10-03 23:50:15 +01:00
|
|
|
}
|
|
|
|
|