2 #include <Curve/Segment/CurveSegmentData.hpp>
4 #include <score/command/Dispatchers/SingleOngoingCommandDispatcher.hpp>
5 #include <score/model/Identifier.hpp>
6 #include <score/model/path/Path.hpp>
7 #include <score/tools/IdentifierGeneration.hpp>
8 #include <score/tools/std/Optional.hpp>
14 #include <score_plugin_curve_export.h>
20 class CommandStackFacade;
64 void submit(std::vector<SegmentData>&&);
66 auto find(std::vector<SegmentData>& segments,
const OptionalId<SegmentModel>&
id)
69 segments.begin(), segments.end(), [&](
const auto& seg) { return seg.id == id; });
71 auto find(
const std::vector<SegmentData>& segments,
const OptionalId<SegmentModel>&
id)
73 return std::find_if(segments.cbegin(), segments.cend(), [&](
const auto& seg) {
78 virtual void on_press() = 0;
80 QVector<QByteArray> m_oldCurveData;
81 QPointF m_originalPress;
90 std::vector<SegmentData> m_startSegments;
93 double m_xmin{-1}, m_xmax{2}, m_xLastPoint{2};
Definition: CurveCommandObjectBase.hpp:49
Definition: CurveModel.hpp:25
Definition: CurvePresenter.hpp:32
Definition: CurvePaletteBaseStates.hpp:20
The SingleOngoingCommandDispatcher class.
Definition: SingleOngoingCommandDispatcher.hpp:17
A small abstraction layer over the score::CommandStack.
Definition: CommandStackFacade.hpp:20
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12
Base toolkit upon which the software is built.
Definition: Application.cpp:90