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 ExecutionContext.hpp:76