3 #include <Scenario/Document/Interval/IntervalExecution.hpp>
5 #include <Execution/Clock/ClockFactory.hpp>
6 #include <Execution/Clock/DefaultClock.hpp>
7 #include <Execution/DocumentPlugin.hpp>
9 #include <ossia/editor/scenario/time_value.hpp>
11 #include <QMainWindow>
28 auto pb = addAction(
"+1");
29 connect(pb, &QAction::triggered,
this, [
this] { advance(1); });
33 auto pb = addAction(
"+5");
34 connect(pb, &QAction::triggered,
this, [
this] { advance(5); });
38 auto pb = addAction(
"+100");
39 connect(pb, &QAction::triggered,
this, [
this] { advance(100); });
43 void advance(
int arg_1) W_SIGNAL(advance, arg_1);
49 ,
public Nano::Observer
63 void play_impl(
const TimeVal& t)
override
68 if(context.doc.app.mainWindow)
70 context.doc.app.mainWindow->addToolBar(Qt::ToolBarArea::BottomToolBarArea, m_widg);
72 QObject::connect(m_widg, &TimeWidget::advance,
this, [
this](
int val) {
73 using namespace ossia;
74 ossia::time_interval& itv = *scenario->baseInterval().OSSIAInterval();
75 ossia::time_value time{val};
76 ossia::token_request tok{};
77 itv.tick_offset(time, 0_tv, tok);
82 m_default.play(t, bs);
86 void pause_impl()
override { }
87 void resume_impl()
override { }
88 void stop_impl()
override
93 bool paused()
const override {
return m_paused; }
Definition: ClockFactory.hpp:41
Definition: DefaultClock.hpp:14
Definition: plugins/score-plugin-engine/Execution/DocumentPlugin.hpp:60
Definition: ManualClock.hpp:50
Components used for the execution of a score.
Definition: ProcessComponent.cpp:12
Definition: ExecutionContext.hpp:76
Definition: TimeValue.hpp:21