CurvePointInspectorWidget.hpp
1 #pragma once
2 
3 #include <Curve/Palette/CommandObjects/MovePointCommandObject.hpp>
4 
5 #include <Inspector/InspectorWidgetBase.hpp>
6 
7 #include <score/command/Dispatchers/OngoingCommandDispatcher.hpp>
8 
9 #include <score_plugin_automation_export.h>
10 
11 class QDoubleSpinBox;
12 class QWidget;
13 namespace Inspector
14 {
15 class Layout;
16 }
17 namespace Curve
18 {
19 class PointModel;
20 class SCORE_PLUGIN_AUTOMATION_EXPORT PointInspectorWidget
22 {
23 public:
24  explicit PointInspectorWidget(
25  const Curve::PointModel& model, const score::DocumentContext& context,
26  QWidget* parent);
27 
28 protected:
29  QPointer<const Curve::PointModel> m_model;
30 
31  Inspector::Layout* m_layout{};
32  QDoubleSpinBox* m_XBox{};
33  double m_xFactor{};
34 };
35 }
36 
37 namespace Automation
38 {
40 {
41 public:
42  explicit PointInspectorWidget(
43  const Curve::PointModel& model, const score::DocumentContext& context,
44  QWidget* parent);
45 
46 private:
47  void on_pointXChanged(double);
48  void on_pointYChanged(double);
49  void on_editXFinished();
50  void on_editYFinished();
51  Curve::StateBase* m_moveState{};
53  OngoingCommandDispatcher& m_dispatcher;
54 
55  QDoubleSpinBox* m_YBox{};
56  double m_yFactor{};
57  double m_Ymin{};
58  bool m_startedEditing{};
59 };
60 }
Definition: CurvePointInspectorWidget.hpp:40
Definition: MovePointCommandObject.hpp:12
Definition: CurvePointInspectorWidget.hpp:22
Definition: CurvePointModel.hpp:18
Definition: CurvePaletteBaseStates.hpp:20
The InspectorWidgetBase class Set the global structuration for an inspected element.
Definition: InspectorWidgetBase.hpp:37
Definition: lib/score/widgets/Layout.hpp:29
The OngoingCommandDispatcher class.
Definition: OngoingCommandDispatcher.hpp:27
Namespace related to the Automation process.
Definition: AutomationColors.cpp:8
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12
Classes used for making and extending the inspector (default right panel).
Definition: lib/score/widgets/Layout.hpp:27
Definition: DocumentContext.hpp:18