Loading...
Searching...
No Matches
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
11class QDoubleSpinBox;
12class QWidget;
13namespace Inspector
14{
15class Layout;
16}
17namespace Curve
18{
19class PointModel;
20class SCORE_PLUGIN_AUTOMATION_EXPORT PointInspectorWidget
22{
23public:
24 explicit PointInspectorWidget(
25 const Curve::PointModel& model, const score::DocumentContext& context,
26 QWidget* parent);
27
28protected:
29 QPointer<const Curve::PointModel> m_model;
30
31 Inspector::Layout* m_layout{};
32 QDoubleSpinBox* m_XBox{};
33 double m_xFactor{};
34};
35}
36
37namespace Automation
38{
40{
41public:
42 explicit PointInspectorWidget(
43 const Curve::PointModel& model, const score::DocumentContext& context,
44 QWidget* parent);
45
46private:
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