2 #include <Process/Tools/ToolPalette.hpp>
4 #include <Curve/CurvePresenter.hpp>
5 #include <Curve/CurveView.hpp>
6 #include <Curve/Palette/CurveEditionSettings.hpp>
7 #include <Curve/Palette/CurvePoint.hpp>
8 #include <Curve/Palette/Tools/MoveTool.hpp>
9 #include <Curve/Palette/Tools/SmartTool.hpp>
11 #include <score/statemachine/GraphicsSceneToolPalette.hpp>
15 #include <score_plugin_curve_export.h>
18 class CommandStackFacade;
41 const Model& model()
const;
42 void on_pressed(QPointF point);
43 void on_moved(QPointF point);
44 void on_released(QPointF point);
48 void activate(Curve::Tool);
49 void desactivate(Curve::Tool);
52 void createPoint(QPointF);
55 Curve::Point ScenePointToCurvePoint(
const QPointF& point)
57 const auto rect = m_presenter.rect();
58 return {point.x() / rect.width(), 1. - point.y() / rect.height()};
69 template <
typename Context_T>
74 , m_inputDisp{pres.view(), *
this, ctx}
Definition: CurveEditionSettings.hpp:34
Definition: CurveModel.hpp:25
Definition: CurvePresenter.hpp:32
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DocumentContext.hpp:18