TempoInspector.hpp
1 #pragma once
2 #include <Scenario/Document/Tempo/TempoProcess.hpp>
3 
4 #include <Automation/Inspector/CurvePointInspectorWidget.hpp>
5 #include <Inspector/InspectorWidgetFactoryInterface.hpp>
6 
7 namespace Scenario
8 {
9 
11 {
12 public:
14  const Curve::PointModel& model, const score::DocumentContext& doc,
15  QWidget* parent);
16 
17 private:
18  void on_pointChanged(double);
19  void on_editFinished();
20 
21  OngoingCommandDispatcher& m_dispatcher;
22 
23  QDoubleSpinBox* m_YBox{};
24  double m_yFactor{};
25  double m_Ymin{};
26 };
27 
29 {
30  SCORE_CONCRETE("c632cc83-d82b-45d8-9495-830b0e7830aa")
31 public:
33 
34  QWidget* make(
35  const InspectedObjects& sourceElements, const score::DocumentContext& doc,
36  QWidget* parent) const override;
37 
38  bool matches(const InspectedObjects& objects) const override;
39 };
40 }
Definition: CurvePointInspectorWidget.hpp:22
Definition: CurvePointModel.hpp:18
The InspectorWidgetFactoryInterface class.
Definition: InspectorWidgetFactoryInterface.hpp:32
The OngoingCommandDispatcher class.
Definition: OngoingCommandDispatcher.hpp:27
Definition: TempoInspector.hpp:29
QWidget * make(const InspectedObjects &sourceElements, const score::DocumentContext &doc, QWidget *parent) const override
makeWidget Makes a widget for the inspector from an object
Definition: TempoInspector.cpp:21
Definition: TempoInspector.hpp:11
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ObjectMatches.hpp:6
Definition: DocumentContext.hpp:18