MoveTool.hpp
1 #pragma once
2 #include <Curve/Palette/CommandObjects/CreatePointCommandObject.hpp>
3 #include <Curve/Palette/CommandObjects/PenCommandObject.hpp>
4 #include <Curve/Palette/CommandObjects/SetSegmentParametersCommandObject.hpp>
5 #include <Curve/Palette/CurvePoint.hpp>
6 #include <Curve/Palette/Tools/CurveTool.hpp>
7 
8 #include <QPoint>
9 
10 namespace Curve
11 {
12 class ToolPalette;
13 
15 {
16 public:
18 
19  void on_pressed(QPointF, Curve::Point);
20  void on_moved(QPointF, Curve::Point);
21  void on_released(QPointF, Curve::Point);
22 };
23 
25 {
26 public:
27  explicit CreateTool(Curve::ToolPalette& sm, const score::DocumentContext& context);
28 
29 private:
31 };
32 
34 {
35 public:
36  explicit SetSegmentTool(Curve::ToolPalette& sm, const score::DocumentContext& context);
37 
38 private:
40 };
41 
43 {
44 public:
45  explicit CreatePenTool(Curve::ToolPalette& sm, const score::DocumentContext& context);
46 
47 private:
48  PenCommandObject m_co;
49 };
50 }
Definition: MoveTool.hpp:43
Definition: CreatePointCommandObject.hpp:17
Definition: MoveTool.hpp:25
Definition: CurveTool.hpp:19
Definition: MoveTool.hpp:15
Definition: PenCommandObject.hpp:17
Definition: SetSegmentParametersCommandObject.hpp:22
Definition: MoveTool.hpp:34
Definition: CurvePalette.hpp:33
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12
Definition: DocumentContext.hpp:18