CurvePaletteBaseStates.hpp
1 #pragma once
2 #include "CurvePoint.hpp"
3 
4 #include <score/model/Identifier.hpp>
5 
6 #include <QState>
7 class QGraphicsItem;
8 
9 namespace Curve
10 {
11 class SegmentModel;
12 
13 struct PointId
14 {
15  OptionalId<SegmentModel> previous;
16  OptionalId<SegmentModel> following;
17 };
18 
19 class StateBase : public QState
20 {
21 public:
22  using QState::QState;
23  Id<SegmentModel> clickedSegmentId;
24  PointId clickedPointId;
25 
26  Id<SegmentModel> hoveredSegmentId;
27  PointId hoveredPointId;
28 
29  Curve::Point currentPoint;
30 };
31 }
Definition: CurvePaletteBaseStates.hpp:20
The id_base_t class.
Definition: Identifier.hpp:57
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12
Definition: CurvePaletteBaseStates.hpp:14